Page MenuHomePhabricator

Debug docker-dev maps container
Closed, ResolvedPublic

Description

We've been having persistent issues running our maps container, possibly related to node 10 end-of-life. This task is complete when a clean install just works™.

Known problems:

kartotherian_1  | Could not set up pretty logging stream { Error: Cannot find module '@ojolabs/bunyan-prettystream'
...
kartotherian_1  |     at Object.debug (/srv/kartotherian/packages/kartotherian/node_modules/service-runner/lib/logger.js:79:34)
kartotherian_1  |     at conf.streams.forEach (/srv/kartotherian/packages/kartotherian/node_modules/service-runner/lib/logger.js:185:67)
kartotherian_1  |     at Array.forEach (<anonymous>)
kartotherian_1  |     at Logger._processConf (/srv/kartotherian/packages/kartotherian/node_modules/service-runner/lib/logger.js:181:26)
kartotherian_1  |     at new Logger (/srv/kartotherian/packages/kartotherian/node_modules/service-runner/lib/logger.js:124:31)
kartotherian_1  |     at _getConfigUpdateAction.then (/srv/kartotherian/packages/kartotherian/node_modules/service-runner/lib/base_service.js:122:28)
kartotherian_1  | {"name":"@wikimedia/kartotherian","hostname":"5a7247313273","pid":2390,"level":60,"err":{"message":"","name":"Error","stack":"Error: Cannot find module '@w
ikimedia/kartotherian-cassandra'\n    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)\n    at Function.Module._load (internal/modules/cjs/loader.
js:562:25)\n    at Module.require (internal/modules/cjs/loader.js:692:17)\n    at require (internal/modules/cjs/helpers.js:25:18)\n    at core.init.module (/srv/kartotherian
/packages/kartotherian/routes/kartotherian.js:27:17)\n    at registerTileliveModule (/srv/kartotherian/packages/core/lib/core.js:91:20)\n    at Function.each (/srv/kartother
ian/packages/core/node_modules/underscore/underscore-umd.js:1330:9)\n    at Promise.try (/srv/kartotherian/packages/core/lib/sources.js:73:7)\n    at tryCatcher (/srv/kartot
herian/packages/core/node_modules/bluebird/js/release/util.js:16:23)\n    at Function.Promise.attempt.Promise.try (/srv/kartotherian/packages/core/node_modules/bluebird/js/r
elease/method.js:39:29)\n    at Sources.init (/srv/kartotherian/packages/core/lib/sources.js:68:21)\n    at startup.bootstrap.then (/srv/kartotherian/packages/kartotherian/r
outes/kartotherian.js:10:20)\n    at tryCatcher (/srv/kartotherian/packages/kartotherian/node_modules/bluebird/js/release/util.js:16:23)\n    at Promise._settlePromiseFromHa
ndler (/srv/kartotherian/packages/kartotherian/node_modules/bluebird/js/release/promise.js:547:31)\n    at Promise._settlePromise (/srv/kartotherian/packages/kartotherian/no
de_modules/bluebird/js/release/promise.js:604:18)\n    at Promise._settlePromiseCtx (/srv/kartotherian/packages/kartotherian/node_modules/bluebird/js/release/promise.js:641:
10)\n    at _drainQueueStep (/srv/kartotherian/packages/kartotherian/node_modules/bluebird/js/release/async.js:97:12)\n    at _drainQueue (/srv/kartotherian/packages/kartoth
erian/node_modules/bluebird/js/release/async.js:86:9)\n    at Async._drainQueues (/srv/kartotherian/packages/kartotherian/node_modules/bluebird/js/release/async.js:102:5)\n 
   at Immediate.Async.drainQueues [as _onImmediate] (/srv/kartotherian/packages/kartotherian/node_modules/bluebird/js/release/async.js:15:14)\n    at runCallback (timers.js:
705:18)\n    at tryOnImmediate (timers.js:676:5)\n    at processImmediate (timers.js:658:5)","code":"MODULE_NOT_FOUND","levelPath":"fatal/service-runner/worker"},"msg":"Cann
ot find module '@wikimedia/kartotherian-cassandra'","time":"2022-02-04T09:21:16.968Z","v":0}

Code:

Event Timeline

Seems that the @ojolabs/bunyan-prettystream error isn't fatal to the process. FWIW, it's caused by the debug logging calling a library that is only installed as a devDependency.

thiemowmde updated the task description. (Show Details)