Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem when run hastic in docker container #466

Open
borg1310 opened this issue Apr 15, 2021 · 0 comments
Open

problem when run hastic in docker container #466

borg1310 opened this issue Apr 15, 2021 · 0 comments

Comments

@borg1310
Copy link

hi,

when i start the hastic server and analytics docker (compose) container i got the problem [0].
i have cloned the project with following command:
git clone --recursive https://github.com/hastic/hastic-server.git`

thanks in advance
regards,
juergen

[0]
`ERROR in ./node_modules/mongodb/lib/encrypter.js
Module not found: Error: Can't resolve 'mongodb-client-encryption' in '/var/www/server/node_modules/mongodb/lib'
@ ./node_modules/mongodb/lib/encrypter.js 8:2-46 13:32-68
@ ./node_modules/mongodb/lib/mongo_client.js
@ ./node_modules/mongodb/index.js
@ ./src/services/data_service/db_connector/mongodb_connector.ts
@ ./src/services/data_service/db_connector/factory.ts
@ ./src/services/data_service/index.ts
@ ./src/services/data_service/migrations.ts
@ ./src/index.ts
@ multi babel-polyfill ./src/index.ts

ERROR in /var/www/server/src/routes/analytic_units_router.ts
./src/routes/analytic_units_router.ts
[tsl] ERROR in /var/www/server/src/routes/analytic_units_router.ts(16,50)
TS2345: Argument of type 'string | string[]' is not assignable to parameter of type 'string'.
Type 'string[]' is not assignable to type 'string'.

ERROR in /var/www/server/src/routes/analytic_units_router.ts
./src/routes/analytic_units_router.ts
[tsl] ERROR in /var/www/server/src/routes/analytic_units_router.ts(26,23)
TS2339: Property 'errorMessage' does not exist on type 'unknown'.

ERROR in /var/www/server/src/routes/analytic_units_router.ts
./src/routes/analytic_units_router.ts
[tsl] ERROR in /var/www/server/src/routes/analytic_units_router.ts(36,53)
TS2322: Type 'string | string[]' is not assignable to type 'string'.
Type 'string[]' is not assignable to type 'string'.

ERROR in /var/www/server/src/routes/analytic_units_router.ts
./src/routes/analytic_units_router.ts
[tsl] ERROR in /var/www/server/src/routes/analytic_units_router.ts(125,36)
TS2345: Argument of type 'string | string[]' is not assignable to parameter of type 'string'.
Type 'string[]' is not assignable to type 'string'.

ERROR in /var/www/server/src/routes/data_router.ts
./src/routes/data_router.ts
[tsl] ERROR in /var/www/server/src/routes/data_router.ts(25,3)
TS2322: Type 'number' is not assignable to type 'string | string[]'.

ERROR in /var/www/server/src/routes/data_router.ts
./src/routes/data_router.ts
[tsl] ERROR in /var/www/server/src/routes/data_router.ts(26,3)
TS2322: Type 'number' is not assignable to type 'string | string[]'.

ERROR in /var/www/server/src/routes/data_router.ts
./src/routes/data_router.ts
[tsl] ERROR in /var/www/server/src/routes/data_router.ts(28,6)
TS2367: This condition will always return 'false' since the types 'string | string[]' and 'number' have no overlap.

ERROR in /var/www/server/src/routes/data_router.ts
./src/routes/data_router.ts
[tsl] ERROR in /var/www/server/src/routes/data_router.ts(32,6)
TS2367: This condition will always return 'false' since the types 'string | string[]' and 'number' have no overlap.

ERROR in /var/www/server/src/routes/data_router.ts
./src/routes/data_router.ts
[tsl] ERROR in /var/www/server/src/routes/data_router.ts(40,52)
TS2345: Argument of type 'string | string[]' is not assignable to parameter of type 'string'.
Type 'string[]' is not assignable to type 'string'.

ERROR in /var/www/server/src/routes/data_router.ts
./src/routes/data_router.ts
[tsl] ERROR in /var/www/server/src/routes/data_router.ts(46,66)
TS2345: Argument of type 'string | string[]' is not assignable to parameter of type 'number'.
Type 'string' is not assignable to type 'number'.

ERROR in /var/www/server/src/routes/detections_router.ts
./src/routes/detections_router.ts
[tsl] ERROR in /var/www/server/src/routes/detections_router.ts(13,7)
TS2322: Type 'string | string[]' is not assignable to type 'string'.
Type 'string[]' is not assignable to type 'string'.

ERROR in /var/www/server/src/routes/panel_router.ts
./src/routes/panel_router.ts
[tsl] ERROR in /var/www/server/src/routes/panel_router.ts(13,43)
TS2345: Argument of type 'string | string[]' is not assignable to parameter of type 'string'.
Type 'string[]' is not assignable to type 'string'.

ERROR in /var/www/server/src/routes/segments_router.ts
./src/routes/segments_router.ts
[tsl] ERROR in /var/www/server/src/routes/segments_router.ts(10,7)
TS2322: Type 'string | string[]' is not assignable to type 'string'.
Type 'string[]' is not assignable to type 'string'.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: webpack --config build/webpack.prod.conf.js
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-04-15T04_54_49_526Z-debug.log
ERROR: Service 'server' failed to build: The command '/bin/sh -c npm run build' returned a non-zero code: 2`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant