Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Running with docker still complains about missing config.json #4757

Open
skinkie opened this issue Jan 20, 2025 · 1 comment · May be fixed by #4801
Open

[BUG] Running with docker still complains about missing config.json #4757

skinkie opened this issue Jan 20, 2025 · 1 comment · May be fixed by #4801
Assignees
Labels
Bug docker Related to setting up or running CV in a dockerized environment

Comments

@skinkie
Copy link

skinkie commented Jan 20, 2025

Describe the bug
Running docker-compose eventually causes:

web      | [FE] Webpack: Rebuilding...
web      | [CO] 
web      | [CO] 10:28:01 PM - Found 0 errors. Watching for file changes.
web      | [BE] 
web      | [BE] 10:28:14 PM - Found 0 errors. Watching for file changes.
web      | [BE] $ cd .. && node --trace-warnings server/js/main.js
web      | [BE] Could not load config.json, using defaults (error message: ENOENT: no such file or directory, open './config.json')
web      | [BE] unhandled promise rejection TypeError: Cannot read properties of null (reading 'includes')
web      | [BE]     at resolveWellKnownUri (/code/node_modules/openid-client/lib/issuer.js:179:23)
web      | [BE]     at Function.discover (/code/node_modules/openid-client/lib/issuer.js:142:26)
web      | [BE]     at setupAuthRouter (/code/server/src/auth-router.ts:36:34)
web      | [BE]     at Server.setupApp (/code/server/src/server.ts:125:36)
web      | [BE]     at runServer (/code/server/src/main.ts:27:18)
web      | [BE]     at Object.<anonymous> (/code/server/src/main.ts:34:1)
web      | [BE]     at Module._compile (node:internal/modules/cjs/loader:1364:14)
web      | [BE]     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
web      | [BE]     at Module.load (node:internal/modules/cjs/loader:1203:32)
web      | [BE]     at Function.Module._load (node:internal/modules/cjs/loader:1019:12)
web      | [BE]     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
web      | [BE]     at node:internal/main/run_main_module:28:49
web      | [BE] Cache is redis
web      | [BE] Job UpdateValidatedSentences added to queue update-validated-sentences-queue
web      | [FE] Webpack: Built!
Gracefully stopping... (press Ctrl+C again to force)

To Reproduce
Steps to reproduce the behavior:

  1. docker-compose up

Expected behavior
Complete documentation in https://github.com/common-voice/common-voice/blob/main/docs/DEVELOPMENT.md

@skinkie skinkie added the Bug label Jan 20, 2025
@skinkie
Copy link
Author

skinkie commented Jan 21, 2025

I would also argue that the DEVELOPMENT documentatien in multiple branches still refers to AUTH0 while the key is now FXA?

@KathyReid KathyReid self-assigned this Feb 19, 2025
@moz-kathyreid moz-kathyreid added the docker Related to setting up or running CV in a dockerized environment label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug docker Related to setting up or running CV in a dockerized environment
Projects
None yet
3 participants