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.

Connecting to custom dbt project throws error - Lightdash timedout trying to connect to dbt. Is dbt running correctly

See original GitHub issue

Following snippet from the docker run instance -

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

{
  timestamp: '2021-06-29T20:59:17.915417Z',
  message: 'sending response (<Response 41076 bytes [200 OK]>) to 127.0.0.1',
  channel: 'dbt',
  level: 11,
  levelname: 'INFO',
  thread_name: 'Thread-61',
  process: 36,
  extra: {
    response_code: 200,
    request_id: 'e96e7de4-1436-4b34-8401-322e9250ef1e',
    addr: '127.0.0.1',
    http_method: 'POST',
    context: 'server',
    run_state: 'internal'
  }
}
NetworkError: Lightdash timedout trying to connect to dbt. Is dbt running correctly?
    at /usr/app/packages/backend/dist/dbt/rpcClient.js:135:24
    at Generator.next (<anonymous>)
    at fulfilled (/usr/app/packages/backend/dist/dbt/rpcClient.js:5:58)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  statusCode: 500,
  data: {}
}
GET /api/v1/status 200 0.492 ms - 33
GET /api/v1/status 304 0.383 ms - -
GET /api/v1/status 304 0.402 ms - -
GET /api/v1/status 304 0.385 ms - -
GET /api/v1/status 304 0.455 ms - -
GET /api/v1/tables 500 1.498 ms - 160
GET /api/v1/status 304 0.714 ms - -
GET /api/v1/tables 500 0.383 ms - 160
GET /api/v1/status 304 0.407 ms - -
GET / 304 3.070 ms - -
GET /api/v1/tables 500 1.956 ms - 160
GET /static/css/2.c6d9bebb.chunk.css 304 1.493 ms - -
GET /static/css/main.a1756aaf.chunk.css 304 1.738 ms - -
GET /static/js/main.6efc40bc.chunk.js 304 2.316 ms - -
GET /static/js/2.2f7f0701.chunk.js 304 2.262 ms - -
GET /api/v1/tables 500 0.458 ms - 160
GET /api/v1/status 304 0.412 ms - -
GET /favicon.ico 200 2.525 ms - 15086
GET /manifest.json 304 0.539 ms - -
GET /apple-touch-icon.png 304 0.355 ms - -
GET /api/v1/tables 500 0.413 ms - 160
GET /api/v1/tables 500 0.401 ms - 160
GET /api/v1/status 304 0.314 ms - -

Profiles is set to connect to Snowflake.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
srjonemedcommented, Jun 30, 2021

Yes please, we can close this issue now. Thanks for your quick help. I’ll try and reach out to your discord for UI issue

0reactions
owlascommented, Jun 30, 2021

@srjonemed are you happy for me to resolve this in favour of #153 and #154 - and pending any error you get with the missing data

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging errors - dbt Developer Hub
Compile the dependencies into a graph. Check that it's acyclic. Dependency Error. SQL execution, Run the models, Database Error. Let's dive into ...
Read more >
The experience of syncing Lightdash with dbt should change.
The problem: it's hard to debug dbt connection problems right now. Most of the errors that users run into come from their connection...
Read more >
Update your project connection | Documentation | Lightdash
To setup your Lightdash connection you'll need to: Connect to your data warehouse (bigquery, postgres, redshift, snowflake, databricks); Connect to your dbt ......
Read more >
Oh, my dbt (data build tool) - Towards Data Science
sql file, I just created a database named db. Python Dockerfile: FROM python:3.8. COPY requirements.txt requirements.txt. RUN pip install -r ...
Read more >
Transformations for dbt Core | Setup Guide - Fivetran
Run the dbt run command. If you have successfully linked your destination, you will see a Completed successfully message. Link dbt project to...
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