Hi everyone , I am trying to setup lightdash local...
# general
d
Hi everyone , I am trying to setup lightdash locally using the fast setup but i am encountering an error the
lightdash-lightdash-1
docker container doesn't seem to running these are some logs for reference
Copy code
ASUS@LAPTOP-8AVD04VR MINGW64 ~/Documents/Github/lightdash (main)
$ docker ps
CONTAINER ID   IMAGE                                  COMMAND                  CREATED         STATUS         PORTS                    NAMES
be0602821126   postgres:15.4                          "docker-entrypoint.s…"   2 minutes ago   Up 2 minutes   5432/tcp                 lightdash-db-1
b5e2fe1604a3   ghcr.io/browserless/chromium:v2.24.3   "./scripts/start.sh"     2 minutes ago   Up 2 minutes   0.0.0.0:3001->3000/tcp   lightdash-headless-browser-1
Copy code
ASUS@LAPTOP-8AVD04VR MINGW64 ~/Documents/Github/lightdash (main)
$ docker logs lightdash-lightdash-1

> backend@0.1538.0 migrate-production /usr/app/packages/backend
> knex migrate:latest --knexfile dist/knexfile.js

Working directory changed to /usr/app/packages/backend/dist
Cannot find module '@lightdash/common/src/utils/colors'
Require stack:
- /usr/app/packages/backend/dist/config/parseConfig.js
- /usr/app/packages/backend/dist/config/lightdashConfig.js
- /usr/app/packages/backend/dist/knexfile.js
- /usr/app/node_modules/.pnpm/knex@2.5.1_pg@8.13.1/node_modules/knex/lib/migrations/util/import-file.js
- /usr/app/node_modules/.pnpm/knex@2.5.1_pg@8.13.1/node_modules/knex/bin/cli.js
Error: Cannot find module '@lightdash/common/src/utils/colors'
Require stack:
- /usr/app/packages/backend/dist/config/parseConfig.js
- /usr/app/packages/backend/dist/config/lightdashConfig.js
- /usr/app/packages/backend/dist/knexfile.js
- /usr/app/node_modules/.pnpm/knex@2.5.1_pg@8.13.1/node_modules/knex/lib/migrations/util/import-file.js
- /usr/app/node_modules/.pnpm/knex@2.5.1_pg@8.13.1/node_modules/knex/bin/cli.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Module._load (node:internal/modules/cjs/loader:1051:27)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/usr/app/packages/backend/dist/config/parseConfig.js:5:18)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  backend@0.1538.0 migrate-production: `knex migrate:latest --knexfile dist/knexfile.js`
Exit status 1

ASUS@LAPTOP-8AVD04VR MINGW64 ~/Documents/Github/lightdash (main)
$
1
p
👋 Thanks for your message - someone from the Lightdash support team will get back to you asap. Feel free to add any additional context to the thread here in the meantime (screenshots, app version if you're self-hosting etc.).
j
Thanks for reaching out - someone from the team will take a look and provide some help as soon as possible if nobody from the community jumps in 🙂 Let us know if you're able to get it working in the meantime!
i
Hi @Divyansh Khatri, just created a PR that will fix this issue. Watch out for the branch to be merged and try again (likely tomorrow) - https://github.com/lightdash/lightdash/pull/14068 In the meantime, you can also revert to a version from two weeks ago and try running Lightdash from that version.
I will get back to you once it’s merged
d
Sure,thanks for the quick resolution.
j
Hi @Divyansh Khatri, there's a new version with the fix to the above ^: 0.1538.1 🙂
d
Thanks it's working now.
🙌 2