botpress / v12

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

[BUG] v12.19.0 Language Server won't start #1286

Closed JustusNBB closed 3 years ago

JustusNBB commented 3 years ago

v12.18.2 is okay. But the most recent botpress/server image cannot start a language server, full log:

Running duckling in the background on port 8000
Running: ./bp lang --offline --dim 100 --langDir /botpress/lang --port 3100
Error starting botpress
Error: Cannot find module 'core/logger'
Require stack:
- /snapshot/build-linux/out/bp/lang-server/index.js
- /snapshot/build-linux/out/bp/index.js
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.

at Function.Module._resolveFilename (internal/modules/cjs/loader.js:964:15)
at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1346:46)
at Function.Module._load (internal/modules/cjs/loader.js:840:27)
at Module.require (internal/modules/cjs/loader.js:1024:19)
at Module.require (pkg/prelude/bootstrap.js:1225:31)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/snapshot/build-linux/out/bp/lang-server/index.js)
at Module._compile (pkg/prelude/bootstrap.js:1320:22)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1156:10)
at Module.load (internal/modules/cjs/loader.js:984:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1024:19)
at Module.require (pkg/prelude/bootstrap.js:1225:31)
at require (internal/modules/cjs/helpers.js:72:18)
at /snapshot/build-linux/out/bp/index.js
at tryCatcher (/snapshot/build-linux/node_modules/bluebird/js/release/util.js:16:23) {

code: 'MODULE_NOT_FOUND',
requireStack: [
'/snapshot/build-linux/out/bp/lang-server/index.js',
'/snapshot/build-linux/out/bp/index.js'
],
pkg: true
}

Cannot find module 'core/logger'

Require stack:

- /snapshot/build-linux/out/bp/lang-server/index.js

- /snapshot/build-linux/out/bp/index.js

1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.

---STACK---

Error: Cannot find module 'core/logger'
Require stack:
- /snapshot/build-linux/out/bp/lang-server/index.js
- /snapshot/build-linux/out/bp/index.js

1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.

at Function.Module._resolveFilename (internal/modules/cjs/loader.js:964:15)
at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1346:46)
at Function.Module._load (internal/modules/cjs/loader.js:840:27)
at Module.require (internal/modules/cjs/loader.js:1024:19)
at Module.require (pkg/prelude/bootstrap.js:1225:31)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/snapshot/build-linux/out/bp/lang-server/index.js)
at Module._compile (pkg/prelude/bootstrap.js:1320:22)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1156:10)
at Module.load (internal/modules/cjs/loader.js:984:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1024:19)
at Module.require (pkg/prelude/bootstrap.js:1225:31)
at require (internal/modules/cjs/helpers.js:72:18)
at /snapshot/build-linux/out/bp/index.js
at tryCatcher (/snapshot/build-linux/node_modules/bluebird/js/release/util.js:16:23)

laurentlp commented 3 years ago

@JustusNBB Fixed with botpress/botpress#4704 and will be available with the next patch release.