Page MenuHomePhabricator

Vagrant restbase can't launch: statsd.childClient is not a function
Closed, ResolvedPublic

Description

{"name":"restbase","hostname":"vagrantnew","pid":23406,"level":60,"err":{"message":"","name":"TypeError","stack":"TypeError: statsd.childClient is not a function\n    at LogStatsD.statsd.makeChild (/vagrant/srv/restbase/node_modules/service-runner/lib/statsd.js:91:30)\n    at main (/vagrant/srv/restbase/node_modules/hyperswitch/lib/server.js:389:58)\n    at _requireModule.then (/vagrant/srv/restbase/node_modules/service-runner/lib/worker.js:174:56)\n    at tryCatcher (/vagrant/srv/restbase/node_modules/bluebird/js/release/util.js:16:23)\n    at Promise._settlePromiseFromHandler (/vagrant/srv/restbase/node_modules/bluebird/js/release/promise.js:512:31)\n    at Promise._settlePromise (/vagrant/srv/restbase/node_modules/bluebird/js/release/promise.js:569:18)\n    at Promise._settlePromiseCtx (/vagrant/srv/restbase/node_modules/bluebird/js/release/promise.js:606:10)\n    at _drainQueueStep (/vagrant/srv/restbase/node_modules/bluebird/js/release/async.js:142:12)\n    at _drainQueue (/vagrant/srv/restbase/node_modules/bluebird/js/release/async.js:131:9)\n    at Async._drainQueues (/vagrant/srv/restbase/node_modules/bluebird/js/release/async.js:147:5)\n    at Immediate.Async.drainQueues [as _onImmediate] (/vagrant/srv/restbase/node_modules/bluebird/js/release/async.js:17:14)\n    at runCallback (timers.js:705:18)\n    at tryOnImmediate (timers.js:676:5)\n    at processImmediate (timers.js:658:5)","levelPath":"fatal/service-runner/worker"},"msg":"statsd.childClient is not a function","time":"2019-03-14T02:00:43.589Z","v":0}

The recently-merged T203617 looks suspiciously related.

Event Timeline

DLynch created this task.Mar 14 2019, 2:06 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 14 2019, 2:06 AM

Oh, we have made use of the hot-shots internal childClient method, but forgot there's a debugging LogStatsD. Need to fix this in service-runner and make sure RESTBase starts if we configure metrics.type to 'log'.

mobrovac triaged this task as Normal priority.Mar 14 2019, 4:08 PM
mobrovac closed this task as Resolved.
mobrovac added subscribers: holger.knust, mobrovac.

PR #200 fixes it. v2.6.12 contains the fix, so force-updating the modules ought to make the problem go away. Please reopen if that's not the case.

I'll confirm that some forced-updating seems to have fixed this. Thanks!