question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Emailservice is failing on a non-GKE cluster

See original GitHub issue

Is there a way to disable the use of GOOGLE_APPLICATION_CREDENTIALS so that the app can be deployed in a non-GKE cluster? Thanks.

{"timestamp": 1585492106.3320029, "severity": "INFO", "name": "emailservice-server", "message": "starting the email service in dummy mode."}
{"timestamp": 1585492106.3322504, "severity": "INFO", "name": "emailservice-server", "message": "Profiler disabled."}
{"timestamp": 1585492106.3323855, "severity": "INFO", "name": "emailservice-server", "message": "Tracing enabled."}
Traceback (most recent call last):
  File "email_server.py", line 190, in <module>
    transport=AsyncTransport)
  File "/usr/local/lib/python3.7/site-packages/opencensus/trace/exporters/stackdriver_exporter.py", line 199, in __init__
    client = Client(project=project_id)
  File "/usr/local/lib/python3.7/site-packages/google/cloud/trace/client.py", line 43, in __init__
    super(Client, self).__init__(project=project, credentials=credentials)
  File "/usr/local/lib/python3.7/site-packages/google/cloud/client.py", line 223, in __init__
    _ClientProjectMixin.__init__(self, project=project)
  File "/usr/local/lib/python3.7/site-packages/google/cloud/client.py", line 175, in __init__
    project = self._determine_default(project)
  File "/usr/local/lib/python3.7/site-packages/google/cloud/client.py", line 190, in _determine_default
    return _determine_default_project(project)
  File "/usr/local/lib/python3.7/site-packages/google/cloud/_helpers.py", line 186, in _determine_default_project
    _, project = google.auth.default()
  File "/usr/local/lib/python3.7/site-packages/google/auth/_default.py", line 306, in default
    raise exceptions.DefaultCredentialsError(_HELP_MESSAGE)
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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
meetbinoycommented, Mar 29, 2020

Uncomment following variables in kubernetes-manifests

- name: DISABLE_TRACING
   value: "1"
- name: DISABLE_PROFILER
  value: "1"
1reaction
huikangcommented, Mar 31, 2020

@nikos9742 , fyi, uncommenting tracing and profiler works for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Untitled
Kastamonu romania sa contact, Gestolen dochters, Shenzhen nongke, ... Record apple tv to dvd, Biotech cluster map, Mcgill brown building hours, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found