Skip to content

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

@skinkie

Description

@skinkie

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

Metadata

Metadata

Assignees

Labels

BugDockerRelated to setting up or running CV in a dockerized environment

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions