Failing to Build from Source macOS


#1

Hi there,

I have been trying to install Botpress on my mac and failing to do so. Here is the error:

botpress-v11_5_0-darwin-x64 admin$ ./bp
21:59:16.798 Launcher ========================================
                                  Botpress Server            
                                   Version 11.5.0             
                      ========================================
21:59:17.423 Launcher Extracting module "analytics.tgz" ...
21:59:20.491 Launcher Extracting module "basic-skills.tgz" ...
21:59:22.040 Launcher Extracting module "builtin.tgz" ...
21:59:22.249 Launcher Extracting module "channel-web.tgz" ...
21:59:29.275 Launcher Extracting module "nlu.tgz" ...
21:59:33.302 Launcher Extracting module "qna.tgz" ...
21:59:35.482 Launcher Using 6 modules
                      ⦿ MODULES_ROOT/analytics
                      ⦿ MODULES_ROOT/basic-skills
                      ⦿ MODULES_ROOT/builtin
                      ⦿ MODULES_ROOT/channel-web
                      ⦿ MODULES_ROOT/nlu
                      ⦿ MODULES_ROOT/qna
21:59:35.536 Launcher Error starting Botpress [VError, Error initializing Database. Please check your configuration: undefined is not a function]
STACK TRACE
VError: Error initializing Database. Please check your configuration: undefined is not a function
    at genError (/snapshot/build-mac/out/bp/errors.js:0:0)
    at ret.catch.err (/snapshot/build-mac/out/bp/errors.js:0:0)
    at tryCatcher (/Users/admin/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/Users/admin/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/Users/admin/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (/Users/admin/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/Users/admin/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/Users/admin/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/admin/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
    at process.topLevelDomainCallback (domain.js:121:23)

The code that I ran:

$ ./bp

Can someone help with this issue?


#2

This says db configuration is wrong. Try providing DATABASE_URL env variable with connection details.

I’d also recommend you to check botpress.config.json and make sure whether it looks as described in botpress.config.schema.json.

Or you could try to reinitialize the whole installation.