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.

Cannot find credentials file for BigQuery method: service-account

See original GitHub issue

Summary: When using BigQuery service-account method [0] the app throws an error because it cannot find the credentials file.

Screenshot 2021-06-18 at 16 57 31

Reproduction steps: Precondition: dbt project with a profile using BigQuery service-account method Run lightdash (via docker)

# Go to your project
cd /path/to/my/dbt/project

export DBT_PROJECT_DIR=${PWD}
export DBT_PROFILES_DIR=${HOME}/.dbt
export LIGHTDASH_PORT=8080

docker run -p "${LIGHTDASH_PORT}:8080" -v "${DBT_PROJECT_DIR}:/usr/app/dbt" -v "${DBT_PROFILES_DIR}:/usr/app/profiles" lightdash/lightdash

[0] https://docs.getdbt.com/reference/warehouse-profiles/bigquery-profile#service-account-file

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
kningcommented, Jul 21, 2021

Can confirm this worked, thanks!

Note, there’s a \ missing in the docker command after the first line for the line break. Might want to add that in so it can copy/paste correctly out of the box especially if this is public facing.

0reactions
owlascommented, Jul 22, 2021

Closed by #255

Read more comments on GitHub >

github_iconTop Results From Across the Web

Authenticating with a service account key file | BigQuery
Create credentials in your application from the service account file. Then use the credentials to create a service object with the BigQuery client...
Read more >
Google BigQuery Service Account Credentials using JSON file ...
Now i am trying to connect Service Account Credentials using JSON file type, but i could not get the proper syntax for creating....
Read more >
Using OAuth 2.0 for Server to Server Applications | Authorization
See the Handle client credentials securely section of OAuth 2.0 Policies for more information. Delegating domain-wide authority to the service account. If you ......
Read more >
The Missing Guide To Setting Up Google Cloud Service ...
Create a Service Account and IAM policy that allows Openbridge to access BigQuery within your project. The process should take no more than...
Read more >
A Complete Guide for Google BigQuery Authentication Tutorial
Service Account based Authentication ... Login to your Google Cloud Console. Open the Burger Menu on the side and Go to IAM ->...
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