[google-appengine] Re: Could not automatically determine credentials.

2019-09-11 Thread EPS Dev-Team
-- MORE INFORMATION --
The service account was created on Jul 17, 2017 for APP Engine Default 
Service Account. Downloaded the .json file some 2 years ago and never had a 
problem with it until recently. The downloaded(to local machine) .json file 
is still the target for GOOGLE_APPLICATION_CREDENTIALS variable. 

However, I see auto generated credentials file(
application_default_credentials.json) when I do "gcloud auth 
application-default login". But the GOOGLE_APPLICATION_CREDENTIALS variable 
still refers to the downloaded(2 yrs ago) .json file and not the auto 
generated credentials.

I did not have to do "*gcloud auth application-default login*" before, I 
think this is a *new step* and that may be generating a new .json 
credentials file thats *causing the disruption*.

Any ideas what I should be doing?


On Wednesday, September 11, 2019 at 11:44:32 AM UTC-7, EPS Dev-Team wrote:
>
> I have set the GOOGLE_APPLICATION_CREDENTIAL env variable to a path on my 
> local machine. 
> Deployed the flex app that uses Django. The application runs fine for 6 
> hours approx. I see the following exception afterwards:
>
> *LOG TRACE:*
> *{*
> * insertId: "m90qw3t62w08eghn1"  *
> * labels: {…}  *
> * logName: "projects//logs/appengine.googleapis.com 
> %2Fstdout"  *
> * receiveTimestamp: "2019-09-11T16:57:06.769920232Z"  *
> * resource: {*
> * labels: {…}  *
> * type: "gae_app"  *
> * }*
> * textPayload: "Exception: Could not automatically determine credentials. 
> Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials 
> and re-run the application. For more information, please see 
> https://cloud.google.com/docs/authentication/getting-started 
>  "  *
> * timestamp: "2019-09-11T16:57:02Z"  *
> *}*
>
> *ERROR TRACE:*
> google.auth.exceptions.DefaultCredentialsError: Could not automatically 
> determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or 
> explicitly create credentials and re-run the application. For more 
> information, please see 
> https://cloud.google.com/docs/authentication/getting-started 
>
>1. 
>   1. at default (
>   /env/lib/python3.5/site-packages/google/auth/_default.py:317 
>   
> 
>   )
>   2. at _determine_default_project (
>   /env/lib/python3.5/site-packages/google/cloud/_helpers.py:179 
>   
> 
>   )
>   3. at _determine_default_project (
>   /env/lib/python3.5/site-packages/google/cloud/datastore/client.py:75 
>   
> 
>   )
>   4. at _determine_default (
>   /env/lib/python3.5/site-packages/google/cloud/datastore/client.py:222 
>   
> 
>   )
>   5. at __init__ (
>   /env/lib/python3.5/site-packages/google/cloud/client.py:169 
>   
> 
>   )
>   6. at __init__ (
>   /env/lib/python3.5/site-packages/google/cloud/client.py:215 
>   
> 
>   )
>   7. at __init__ (
>   /env/lib/python3.5/site-packages/google/cloud/datastore/client.py:205 
>   
> 
>   )
>
>
>
> I was under the impression that the deployed app will have access to the 
> datastore and its entities. Even with the above exception, the entities 
> seem to be getting updated somehow - probably intermittent. 
> Do I have to set the credentials separately on the cloud?
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/99686c4b-bd9d-49c5-ae67-9ce96336ef32%40googlegroups.com.


[google-appengine] If possible to disable TLS 1.0/1.1 in a GCP proyect

2019-09-11 Thread Alexander Marín
Guys , Actually I have a problem with TLS 1.0, because the certification 
PCI-DSS says That use of TLS 1.0 is not recommended only TLS1.2 should be 
used up, so, exist a possibility to exclude or disable in our project this ?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3ae5a54e-617f-4cea-8fb6-eefcb5473ad1%40googlegroups.com.


[google-appengine] Could not automatically determine credentials.

2019-09-11 Thread EPS Dev-Team
I have set the GOOGLE_APPLICATION_CREDENTIAL env variable to a path on my 
local machine. 
Deployed the flex app that uses Django. The application runs fine for 6 
hours approx. I see the following exception afterwards:

*LOG TRACE:*
*{*
* insertId: "m90qw3t62w08eghn1"  *
* labels: {…}  *
* logName: "projects//logs/appengine.googleapis.com%2Fstdout"  *
* receiveTimestamp: "2019-09-11T16:57:06.769920232Z"  *
* resource: {*
* labels: {…}  *
* type: "gae_app"  *
* }*
* textPayload: "Exception: Could not automatically determine credentials. 
Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials 
and re-run the application. For more information, please see 
https://cloud.google.com/docs/authentication/getting-started "  *
* timestamp: "2019-09-11T16:57:02Z"  *
*}*

*ERROR TRACE:*
google.auth.exceptions.DefaultCredentialsError: Could not automatically 
determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or 
explicitly create credentials and re-run the application. For more 
information, please see 
https://cloud.google.com/docs/authentication/getting-started 

   1. 
  1. at default (
  /env/lib/python3.5/site-packages/google/auth/_default.py:317 
  

  )
  2. at _determine_default_project (
  /env/lib/python3.5/site-packages/google/cloud/_helpers.py:179 
  

  )
  3. at _determine_default_project (
  /env/lib/python3.5/site-packages/google/cloud/datastore/client.py:75 
  

  )
  4. at _determine_default (
  /env/lib/python3.5/site-packages/google/cloud/datastore/client.py:222 
  

  )
  5. at __init__ (
  /env/lib/python3.5/site-packages/google/cloud/client.py:169 
  

  )
  6. at __init__ (
  /env/lib/python3.5/site-packages/google/cloud/client.py:215 
  

  )
  7. at __init__ (
  /env/lib/python3.5/site-packages/google/cloud/datastore/client.py:205 
  

  )
   


I was under the impression that the deployed app will have access to the 
datastore and its entities. Even with the above exception, the entities 
seem to be getting updated somehow - probably intermittent. 
Do I have to set the credentials separately on the cloud?


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7b2b5838-9355-4071-bf33-27945f3abcec%40googlegroups.com.


[google-appengine] Re: Save/Export GAE logs for more than 30 days in an easily readable way

2019-09-11 Thread 'Vivak Patel' via Google App Engine


Hi Khaled

I believe what Anthony meant to say was that exporting logs using sinks 
will help mitigate the loss of logs on Log Viewer past the 30 day mark. 
However, logs prior to the creation of the sink will still be lost.

As for the feature request, we always appreciate users collaborating with 
our engineers on ideas to improve the product. This discussion group does 
not allow the moderation of feature requests, which is why I encourage you 
to create the feature request on Public Issue Tracker[1] as it will provide 
you visibility on the request.

[1] - https://issuetracker.google.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/062ef5a2-ec10-4f02-a304-28a90ea6454d%40googlegroups.com.


[google-appengine] Re: api-proxy container and nginx proxy container in GAE instance

2019-09-11 Thread 'Aref Amiri (Cloud Platform Support)' via Google App Engine
Hi Elan,
 
API Proxy is a Docker container running on Flex VMs that provides an error 
message to non-whitelisted apps that attempt to use back-end operations for 
legacy App Engine API calls.
 
Moreover, the Nginx proxy forwards requests to the App Engine application. 
These requests could include static file serving, admin ACL handlers, 
request queuing, logging on incoming requests and monitoring of request 
latency.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ca8e0b27-778d-42bb-b48b-848959a61e52%40googlegroups.com.


Re: [google-appengine] Google AppEngine Flexible PHP - "SQLSTATE[HY000] [2002] No such file or directory"

2019-09-11 Thread Poloyapoy's Prince
what

On Wed, Sep 11, 2019, 7:51 PM Hampus Boås  wrote:

> Hello,
>
> I have several projects on Google AppEngine Flexible, but one of my
> projects randomly after a couple of days looses the ability to connect to
> the database.
>
> I'm using the unix socket to connect and i have SQL Admin activated. If i
> debug the sql instance and the flexible instance they are both up and
> running.
>
> My DB User has privileges from any host.
>
> The PDO error says "SQLSTATE[HY000] [2002] No such file or directory".
>
> This has happen a couple of times now.
>
> Has someone have this issues before?
> I don't really know what to do here.
>
> Best regards Hampus
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/ecec867c-ebeb-4093-b603-127ed9e03449%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CANjaNWE-JuQMpsFOCS%2BsFiUGthyi54JbeLHW2KhAcZhiuCbnnA%40mail.gmail.com.


[google-appengine] Re: Google AppEngine Flexible PHP - "SQLSTATE[HY000] [2002] No such file or directory"

2019-09-11 Thread 'George (Cloud Platform Support)' via Google App Engine
Hello Humpus, 

Have you set the host to 'localhost' or '127.0.0.1' ? This is strictly for 
testing locally during development, unsuitable for deployed applications 
running in production.

This discussion Group is meant for general discussion, voicing of opinions, 
and socializing, and is not for technical support. For further technical 
support with error-free connecting your App Engine app to Cloud SQL, it is 
recommended to post your detailed questions [3] to Stack Exchange [4] using 
the supported Cloud tags.

[1] 
https://cloud.google.com/appengine/docs/flexible/php/using-cloud-sql#setting_connection_strings_and_adding_a_library
[2] 
https://cloud.google.com/sql/docs/mysql/connect-app-engine#setting_up_and
[3] https://stackoverflow.com/help/how-to-ask 

[4] https://cloud.google.com/support/docs/stackexchange

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9e1b5a29-d26a-445d-91b9-415a6a067fa4%40googlegroups.com.


Re: [google-appengine] Google AppEngine Flexible PHP - "SQLSTATE[HY000] [2002] No such file or directory"

2019-09-11 Thread Mua Rachmann
Hi Hampus,

Is your app.yaml file well configured with the database credentials? such
as connection name, database name etc etc.

DB_CONNECTION: mysql
DB_HOST: localhost
DB_DATABASE: xxx
DB_USERNAME: xx
DB_PASSWORD: xxx
DB_SOCKET: /cloudsql/:us-central1:


If running on beta

beta_settings:
  # for Cloud SQL, set this value to the Cloud SQL connection name,
  cloud_sql_instances: :us-central1:

You might want to check if you did not maybe omit something. Talking prior
to the fact you said it worked a couple
of days ago.

Regards,
Mua

On Wed, Sep 11, 2019 at 12:51 PM Hampus Boås 
wrote:

> Hello,
>
> I have several projects on Google AppEngine Flexible, but one of my
> projects randomly after a couple of days looses the ability to connect to
> the database.
>
> I'm using the unix socket to connect and i have SQL Admin activated. If i
> debug the sql instance and the flexible instance they are both up and
> running.
>
> My DB User has privileges from any host.
>
> The PDO error says "SQLSTATE[HY000] [2002] No such file or directory".
>
> This has happen a couple of times now.
>
> Has someone have this issues before?
> I don't really know what to do here.
>
> Best regards Hampus
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/ecec867c-ebeb-4093-b603-127ed9e03449%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAHAhu-i1B07c09e%3Dc-JGAj1%2BXNQ92nv74sSvZARYOrqcq3WgEQ%40mail.gmail.com.


[google-appengine] api-proxy container and nginx proxy container in GAE instance

2019-09-11 Thread Elan Gamer
I started GAE using flex env/Docker file that runs ubuntu and when I ssh to 
the instance I can see 6 containers .
2 stackdriver related containers
1 api-proxy
1 nginx proxy
1 iap_watcher

Trying to understand why we need api-proxy and nginx proxy?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0eab04fc-3e73-400f-a04f-d5e04bdb45d4%40googlegroups.com.


[google-appengine] Google AppEngine Flexible PHP - "SQLSTATE[HY000] [2002] No such file or directory"

2019-09-11 Thread Hampus Boås
Hello, 

I have several projects on Google AppEngine Flexible, but one of my 
projects randomly after a couple of days looses the ability to connect to 
the database.

I'm using the unix socket to connect and i have SQL Admin activated. If i 
debug the sql instance and the flexible instance they are both up and 
running.

My DB User has privileges from any host.

The PDO error says "SQLSTATE[HY000] [2002] No such file or directory".

This has happen a couple of times now.

Has someone have this issues before?
I don't really know what to do here.

Best regards Hampus

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ecec867c-ebeb-4093-b603-127ed9e03449%40googlegroups.com.