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%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 
      
<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/7b2b5838-9355-4071-bf33-27945f3abcec%40googlegroups.com.

Reply via email to