hastic-zzz / hastic-grafana-app

Hastic data management server for labeling patterns and anomalies in Grafana
https://hastic.io
GNU General Public License v3.0
179 stars 18 forks source link

problem when run hastic in docker container #466

Open borg1310 opened 3 years ago

borg1310 commented 3 years ago

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 --recursivehttps://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! hastic-server@0.5.1 build: webpack --config build/webpack.prod.conf.js npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the hastic-server@0.5.1 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`