botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
79 stars 90 forks source link

Add a bot deployment guide for AWS / Azure / etc #29

Closed slvnperron closed 6 years ago

Jamie452 commented 7 years ago

+1 I'm having trouble getting botpress to run with Node 6.9.2 on a Ubuntu 16.04 box from digital ocean.

slvnperron commented 7 years ago

Jamie, can you tell me a bit more about the problems you are facing on the Digital Ocean box?

Sylvain Perron Software Engineer slvn.perron@gmail.com sylvain.perron@protorisk.com T | +1 418 440 7586

2017-01-14 23:50 GMT-05:00 Jamie Street notifications@github.com:

+1 I'm having trouble getting botpress to run with Node 6.9.2 on a Ubuntu 16.04 box from digital ocean.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/botpress/v12/issues/29, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQStOOq6ePvyE0u6e54HLtcuPng2gZrks5rSaWMgaJpZM4LTcpQ .

Jamie452 commented 7 years ago

Hey @slvnperron,

I managed to fix it but the issue I was having was after running botpress start:

root@****:~/****t# botpress start
Knex: run
$ npm install sqlite3 --save
Error: Cannot find module '/root/****/node_modules/sqlite3/lib/binding/node-v48-linux-x64/node_sqlite3.node'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/****/node_modules/sqlite3/lib/sqlite3.js:4:15)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Client_SQLite3._driver (/root/****/node_modules/knex/lib/dialects/sqlite3/index.js:75:12)
    at Client_SQLite3.initializeDriver (/root/****/node_modules/knex/lib/client.js:211:26)
    at Client_SQLite3.Client (/root/****/node_modules/knex/lib/client.js:105:10)
    at new Client_SQLite3 (/root/****/node_modules/knex/lib/dialects/sqlite3/index.js:58:20)
    at Knex (/root/****/node_modules/knex/lib/index.js:60:34)
    at Object.getDb [as get] (/root/****/node_modules/botpress/src/database.js:29:12)
    at Object.init (/root/****/node_modules/botpress-analytics/bin/webpack:/src/index.js:59:11)
    at /root/****/node_modules/botpress/src/modules.js:62:31
    at Array.forEach (native)
    at Object.loadModules [as _load] (/root/****/node_modules/botpress/src/modules.js:51:23)

After installing sqlite3 manually with npm install sqlite3 --save it worked fine :)

slvnperron commented 7 years ago

Thanks, happy to hear that you could sort it out!

Sylvain Perron Software Engineer slvn.perron@gmail.com sylvain.perron@protorisk.com T | +1 418 440 7586

2017-01-14 23:58 GMT-05:00 Jamie Street notifications@github.com:

Hey @slvnperron https://github.com/slvnperron,

I managed to fix it but the issue I was having was after running botpress start:

root@:~/t# botpress start Knex: run $ npm install sqlite3 --save Error: Cannot find module '/root//node_modules/sqlite3/lib/binding/node-v48-linux-x64/node_sqlite3.node' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/root//node_modules/sqlite3/lib/sqlite3.js:4:15) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Client_SQLite3._driver (/root//node_modules/knex/lib/dialects/sqlite3/index.js:75:12) at Client_SQLite3.initializeDriver (/root//node_modules/knex/lib/client.js:211:26) at Client_SQLite3.Client (/root//node_modules/knex/lib/client.js:105:10) at new Client_SQLite3 (/root//node_modules/knex/lib/dialects/sqlite3/index.js:58:20) at Knex (/root//node_modules/knex/lib/index.js:60:34) at Object.getDb [as get] (/root//node_modules/botpress/src/database.js:29:12) at Object.init (/root//node_modules/botpress-analytics/bin/webpack:/src/index.js:59:11) at /root//node_modules/botpress/src/modules.js:62:31 at Array.forEach (native) at Object.loadModules [as _load] (/root/****/node_modules/botpress/src/modules.js:51:23)

After installing sqlite3 manually with npm install sqlite3 --save it worked fine :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/botpress/v12/issues/29, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQStO-36KEMIs1oDGfvDYuPN7_VRgDpks5rSadZgaJpZM4LTcpQ .

epaminond commented 6 years ago

@slvnperron , we already have deployment guides. Is this about improving them in some way?