-- 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/<company>/logs/appengine.googleapis.com 
> <http://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 
> <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 
>       
> <https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=20190910t090251&file=%2Fenv%2Flib%2Fpython3.5%2Fsite-packages%2Fgoogle%2Fauth%2F_default.py&line=317&project=eps-server>
>       )
>       2. at _determine_default_project (
>       /env/lib/python3.5/site-packages/google/cloud/_helpers.py:179 
>       
> <https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=20190910t090251&file=%2Fenv%2Flib%2Fpython3.5%2Fsite-packages%2Fgoogle%2Fcloud%2F_helpers.py&line=179&project=eps-server>
>       )
>       3. at _determine_default_project (
>       /env/lib/python3.5/site-packages/google/cloud/datastore/client.py:75 
>       
> <https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=20190910t090251&file=%2Fenv%2Flib%2Fpython3.5%2Fsite-packages%2Fgoogle%2Fcloud%2Fdatastore%2Fclient.py&line=75&project=eps-server>
>       )
>       4. at _determine_default (
>       /env/lib/python3.5/site-packages/google/cloud/datastore/client.py:222 
>       
> <https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=20190910t090251&file=%2Fenv%2Flib%2Fpython3.5%2Fsite-packages%2Fgoogle%2Fcloud%2Fdatastore%2Fclient.py&line=222&project=eps-server>
>       )
>       5. at __init__ (
>       /env/lib/python3.5/site-packages/google/cloud/client.py:169 
>       
> <https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=20190910t090251&file=%2Fenv%2Flib%2Fpython3.5%2Fsite-packages%2Fgoogle%2Fcloud%2Fclient.py&line=169&project=eps-server>
>       )
>       6. at __init__ (
>       /env/lib/python3.5/site-packages/google/cloud/client.py:215 
>       
> <https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=20190910t090251&file=%2Fenv%2Flib%2Fpython3.5%2Fsite-packages%2Fgoogle%2Fcloud%2Fclient.py&line=215&project=eps-server>
>       )
>       7. at __init__ (
>       /env/lib/python3.5/site-packages/google/cloud/datastore/client.py:205 
>       
> <https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=20190910t090251&file=%2Fenv%2Flib%2Fpython3.5%2Fsite-packages%2Fgoogle%2Fcloud%2Fdatastore%2Fclient.py&line=205&project=eps-server>
>       )
>    
>
>
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/99686c4b-bd9d-49c5-ae67-9ce96336ef32%40googlegroups.com.

Reply via email to