wsdt / Wavect__s_b_core

Node.JS Backend written in TypeScript for Wavect.io-Startup.
https://wavect.io
Other
0 stars 0 forks source link

Backend Crash: Challenge Current (sometimes, try to reproduce) #4

Open wsdt opened 5 years ago

wsdt commented 5 years ago

dev@docker-s-1vcpu-1gb-fra1-01:~/BeKind_Playground$ docker service logs playgorund_backend_core -t -f 2019-08-15T12:42:07.994354245Z playgorund_backend_core.1.py1pac3awaqv@docker-s-1vcpu-1gb-fra1-01 | app: Configuration done. 2019-08-15T12:42:08.001829632Z playgorund_backend_core.1.py1pac3awaqv@docker-s-1vcpu-1gb-fra1-01 | App:runServer: Listening on port: 8090 using http2: false 2019-08-15T12:42:08.071610138Z playgorund_backend_core.1.py1pac3awaqv@docker-s-1vcpu-1gb-fra1-01 | Established Database-Connection successfully! 2019-08-15T12:42:08.102026656Z playgorund_backend_core.1.py1pac3awaqv@docker-s-1vcpu-1gb-fra1-01 | 192019-08-15 12:42:08.071 INFO Established Database-Connection successful ly! 2019-08-15T12:42:08.104691900Z playgorund_backend_core.1.py1pac3awaqv@docker-s-1vcpu-1gb-fra1-01 | (node:1) DeprecationWarning: collection.ensureIndex is deprecated. Use cre ateIndexes instead. 2019-08-13T17:06:08.666622374Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | app: Configuration done. 2019-08-13T17:06:08.710858779Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | App:runServer: Listening on port: 8090 using http2: false 2019-08-13T17:06:08.930814862Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | connection error: { MongoNetworkError: failed to connect to server [databa se:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 10.0.0.2:27017] 2019-08-13T17:06:08.930845788Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at Pool.<anonymous> (/app/node_modules/mongodb-core/lib/topologies/ser ver.js:431:11) 2019-08-13T17:06:08.930849968Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at Pool.emit (events.js:193:13) 2019-08-13T17:06:08.930852822Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at connect (/app/node_modules/mongodb-core/lib/connection/pool.js:557: 14) 2019-08-13T17:06:08.930855539Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at makeConnection (/app/node_modules/mongodb-core/lib/connection/conne ct.js:39:11) 2019-08-13T17:06:08.930858221Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at callback (/app/node_modules/mongodb-core/lib/connection/connect.js: 261:5) 2019-08-13T17:06:08.930860755Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at Socket.err (/app/node_modules/mongodb-core/lib/connection/connect.j s:286:7) 2019-08-13T17:06:08.930863284Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at Object.onceWrapper (events.js:281:20) 2019-08-13T17:06:08.930865822Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at Socket.emit (events.js:193:13) 2019-08-13T17:06:08.930868323Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at emitErrorNT (internal/streams/destroy.js:91:8) 2019-08-13T17:06:08.930870856Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at emitErrorAndCloseNT (internal/streams/destroy.js:59:3) 2019-08-13T17:06:08.930873426Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at processTicksAndRejections (internal/process/task_queues.js:81:17) 2019-08-13T17:06:08.930876000Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | name: 'MongoNetworkError', 2019-08-13T17:06:08.930878601Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | errorLabels: [ 'TransientTransactionError' ], 2019-08-13T17:06:08.930881352Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | [Symbol(mongoErrorContextSymbol)]: {} } 2019-08-13T17:06:08.930883938Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | (node:1) UnhandledPromiseRejectionWarning: MongoNetworkError: failed to co nnect to server [database:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 10.0.0.2:27017] 2019-08-13T17:06:08.930886736Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at Pool.<anonymous> (/app/node_modules/mongodb-core/lib/topologies/ser ver.js:431:11) 2019-08-13T17:06:08.930889367Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at Pool.emit (events.js:193:13) 2019-08-13T17:06:08.930891807Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at connect (/app/node_modules/mongodb-core/lib/connection/pool.js:557: 14) 2019-08-13T17:06:08.930894328Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at makeConnection (/app/node_modules/mongodb-core/lib/connection/conne ct.js:39:11) 2019-08-13T17:06:08.930896843Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at callback (/app/node_modules/mongodb-core/lib/connection/connect.js: 261:5) 2019-08-13T17:06:08.930899352Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at Socket.err (/app/node_modules/mongodb-core/lib/connection/connect.j s:286:7) 2019-08-13T17:06:08.930901868Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at Object.onceWrapper (events.js:281:20) 2019-08-13T17:06:08.930904331Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at Socket.emit (events.js:193:13) 2019-08-13T17:06:08.930906781Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at emitErrorNT (internal/streams/destroy.js:91:8) 2019-08-13T17:06:08.930909239Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at emitErrorAndCloseNT (internal/streams/destroy.js:59:3) 2019-08-13T17:06:08.930911736Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | at processTicksAndRejections (internal/process/task_queues.js:81:17) 2019-08-13T17:06:08.930914840Z playgorund_backend_core.1.yvo2zu16obaz@docker-s-1vcpu-1gb-fra1-01 | (node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. Thprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. 2019-08-13T17:07:31.641306355Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | app: Configuration done. 2019-08-13T17:07:31.679641088Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | App:runServer: Listening on port: 8090 using http2: false 2019-08-13T17:07:31.903200422Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | connection error: { MongoNetworkError: failed to connect to server [database:27017] on first connect [MongoNetworkError: getaddrinfo ENOTFOUND database database:27017] 2019-08-13T17:07:31.903230194Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at Pool.<anonymous> (/app/node_modules/mongodb-core/lib/topologies/server.js:431:11) 2019-08-13T17:07:31.903234658Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at Pool.emit (events.js:193:13) 2019-08-13T17:07:31.903237580Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at connect (/app/node_modules/mongodb-core/lib/connection/pool.js:557:14) 2019-08-13T17:07:31.903240646Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at makeConnection (/app/node_modules/mongodb-core/lib/connection/connect.js:39:11) 2019-08-13T17:07:31.903243297Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at callback (/app/node_modules/mongodb-core/lib/connection/connect.js:261:5) 2019-08-13T17:07:31.903246034Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at Socket.err (/app/node_modules/mongodb-core/lib/connection/connect.js:286:7) 2019-08-13T17:07:31.903248643Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at Object.onceWrapper (events.js:281:20) 2019-08-13T17:07:31.903251250Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at Socket.emit (events.js:193:13) 2019-08-13T17:07:31.903253903Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at emitErrorNT (internal/streams/destroy.js:91:8) 2019-08-13T17:07:31.903256488Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at emitErrorAndCloseNT (internal/streams/destroy.js:59:3) 2019-08-13T17:07:31.903259038Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at processTicksAndRejections (internal/process/task_queues.js:81:17) 2019-08-13T17:07:31.903261657Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | name: 'MongoNetworkError', 2019-08-13T17:07:31.903264386Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | errorLabels: [ 'TransientTransactionError' ], 2019-08-13T17:07:31.903266979Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | [Symbol(mongoErrorContextSymbol)]: {} } 2019-08-13T17:07:31.903269564Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | (node:1) UnhandledPromiseRejectionWarning: MongoNetworkError: failed to connect to server [database:27017] on first connect [MongoNetworkError: getaddrinfo ENOTFOUND database database:27017] 2019-08-13T17:07:31.903272489Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at Pool.<anonymous> (/app/node_modules/mongodb-core/lib/topologies/server.js:431:11) 2019-08-13T17:07:31.903275242Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at Pool.emit (events.js:193:13) 2019-08-13T17:07:31.903277738Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at connect (/app/node_modules/mongodb-core/lib/connection/pool.js:557:14) 2019-08-13T17:07:31.903280276Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at makeConnection (/app/node_modules/mongodb-core/lib/connection/connect.js:39:11) 2019-08-13T17:07:31.903282842Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at callback (/app/node_modules/mongodb-core/lib/connection/connect.js:261:5) 2019-08-13T17:07:31.903285367Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at Socket.err (/app/node_modules/mongodb-core/lib/connection/connect.js:286:7) 2019-08-13T17:07:31.903287940Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at Object.onceWrapper (events.js:281:20) 2019-08-13T17:07:31.903290453Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at Socket.emit (events.js:193:13) 2019-08-13T17:07:31.903292950Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at emitErrorNT (internal/streams/destroy.js:91:8) 2019-08-13T17:07:31.903295452Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at emitErrorAndCloseNT (internal/streams/destroy.js:59:3) 2019-08-13T17:07:31.903299029Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | at processTicksAndRejections (internal/process/task_queues.js:81:17) 2019-08-13T17:07:31.903302288Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | (node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) 2019-08-13T17:07:31.903315949Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | (node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. 2019-08-14T09:15:02.376727856Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | ::ffff:10.0.1.19 - - [14/Aug/2019:09:15:02 +0000] "GET / HTTP/1.1" 404 139 "-" "Mozilla/5.0 (compatible; Nimbostratus-Bot/v1.3.2; http://cloudsystemnetworks.com)" 2019-08-14T20:24:46.955607273Z playgorund_backend_core.1.5dkcjkuc0cz6@docker-s-1vcpu-1gb-fra1-01 | ::ffff:10.0.1.19 - - [14/Aug/2019:20:24:46 +0000] "GET /favicon.ico HTTP/1.1" 404 150 "https://api.dev.wavect.io/api/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36"

wsdt commented 5 years ago

Maybe still the same issue? Currently, challenge is not loading and the app as well as browser receives a 502 server error. https://api.dev.wavect.io/api/mobile/v1/challenge/current

@bioharz @sevensevener