Error reading configuration file "botpress.config.json": ENOENT: no such file or directory, open '/botpress/data/global/botpress.config.json'


#1

I’ve tried multiple 11.x builds. I still get the same error.

sudo docker container run --rm -v $(pwd):/botpress/data botpress/server:ce-2018-11-27-none /botpress//bp 
09:19:28.007 Launcher ========================================
                        Botpress Server - Community Edition  
                                   Version 11.0.4             
                      ========================================
Error starting botpress
{ VError: Error reading configuration file "botpress.config.json": ENOENT: no such file or directory, open '/botpress/data/global/botpress.config.json'
    at GhostConfigProvider.<anonymous> (/snapshot/build-linux/out/bp/core/config/config-loader.js:0:0)
    at Generator.throw (<anonymous>)
    at rejected (/snapshot/build-linux/out/bp/core/config/config-loader.js:0:0)
    at tryCatcher (/snapshot/build-linux/node_modules/bluebird/js/release/util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (/snapshot/build-linux/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise.module.exports.Promise._settlePromise (/snapshot/build-linux/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise.module.exports.Promise._settlePromise0 (/snapshot/build-linux/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise.module.exports.Promise._settlePromises (/snapshot/build-linux/node_modules/bluebird/js/release/promise.js:690:18)
    at _drainQueueStep (/snapshot/build-linux/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/snapshot/build-linux/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/snapshot/build-linux/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/snapshot/build-linux/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
  jse_shortmsg: 'Error reading configuration file "botpress.config.json"',
  jse_cause:
   { Error: ENOENT: no such file or directory, open '/botpress/data/global/botpress.config.json'
     errno: -2,
     code: 'ENOENT',
     syscall: 'open',
     path: '/botpress/data/global/botpress.config.json' },
  jse_info: {},
  message:
   'Error reading configuration file "botpress.config.json": ENOENT: no such file or directory, open \'/botpress/data/global/botpress.config.json\'' }
Error reading configuration file "botpress.config.json": ENOENT: no such file or directory, open '/botpress/data/global/botpress.config.json'
---STACK---
VError: Error reading configuration file "botpress.config.json": ENOENT: no such file or directory, open '/botpress/data/global/botpress.config.json'
    at GhostConfigProvider.<anonymous> (/snapshot/build-linux/out/bp/core/config/config-loader.js:0:0)
    at Generator.throw (<anonymous>)
    at rejected (/snapshot/build-linux/out/bp/core/config/config-loader.js:0:0)
    at tryCatcher (/snapshot/build-linux/node_modules/bluebird/js/release/util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (/snapshot/build-linux/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise.module.exports.Promise._settlePromise (/snapshot/build-linux/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise.module.exports.Promise._settlePromise0 (/snapshot/build-linux/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise.module.exports.Promise._settlePromises (/snapshot/build-linux/node_modules/bluebird/js/release/promise.js:690:18)
    at _drainQueueStep (/snapshot/build-linux/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/snapshot/build-linux/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/snapshot/build-linux/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/snapshot/build-linux/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
09:19:28.023 Launcher Unhandled Rejection [VError, Error reading configuration file "botpress.config.json": ENOENT: no such file or directory, open '/botpress/data/global/botpress.config.json']
----- STACK -----
VError: Error reading configuration file "botpress.config.json": ENOENT: no such file or directory, open '/botpress/data/global/botpress.config.json'
    at GhostConfigProvider.<anonymous> (/snapshot/build-linux/out/bp/core/config/config-loader.js:0:0)
    at Generator.throw (<anonymous>)
    at rejected (/snapshot/build-linux/out/bp/core/config/config-loader.js:0:0)
    at tryCatcher (/snapshot/build-linux/node_modules/bluebird/js/release/util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (/snapshot/build-linux/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise.module.exports.Promise._settlePromise (/snapshot/build-linux/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise.module.exports.Promise._settlePromise0 (/snapshot/build-linux/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise.module.exports.Promise._settlePromises (/snapshot/build-linux/node_modules/bluebird/js/release/promise.js:690:18)
    at _drainQueueStep (/snapshot/build-linux/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/snapshot/build-linux/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/snapshot/build-linux/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/snapshot/build-linux/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:

#2

@slayerjain, 11.x aren’t stable yet, so there may be errors like this.
Does the botpress have access rights to create/edit the file under path specified in the error-message?