Mikuu / Micoo

A simple screenshots compare solution for visual regression test
https://arxman.com/micoo
MIT License
191 stars 14 forks source link

多次上传大量图片时mogodb提示断联,对比引擎容器同时挂掉 #44

Closed icesword0760 closed 2 years ago

icesword0760 commented 3 years ago

micoo-engine | FBI --> info: ... copy baseline files to build path, done. micoo-engine | micoo-engine | projectId=PID040b1c76c51c4473bcbf0112b4f262c0 | build=BID993132b2b351418ab072e5d9d0954d3c | generating build artifacts ............................................. completed micoo-engine | micoo-engine | projectId=PID040b1c76c51c4473bcbf0112b4f262c0 | build=BID993132b2b351418ab072e5d9d0954d3c | generating case in DB .............................................................. micoo-mongodb | {"t":{"$date":"2021-10-11T06:43:48.474+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn24","msg":"Connection ended","attr":{"remote":"172.18.0.4:60284","connectionId":24,"connectionCount":9}} micoo-mongodb | {"t":{"$date":"2021-10-11T06:43:48.475+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn25","msg":"Connection ended","attr":{"remote":"172.18.0.4:60286","connectionId":25,"connectionCount":8}} micoo-engine | (node:29) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [NativeConnection]. Use emitter.setMaxListeners() to increase limit micoo-engine | (Use node --trace-warnings ... to show where the warning was created) micoo-engine | (node:29) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 disconnected listeners added to [NativeConnection]. Use emitter.setMaxListeners() to increase limit micoo-engine | MongooseServerSelectionError: connection timed out micoo-engine | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/mongoose/lib/connection.js:846:32) micoo-engine | at /usr/src/app/node_modules/mongoose/lib/index.js:351:10 micoo-engine | at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 micoo-engine | at new Promise () micoo-engine | at promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) micoo-engine | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/index.js:1149:10) micoo-engine | at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20) micoo-engine | at NativeConnection.connect (/usr/src/app/utils/database-utils.js:7:21) micoo-engine | at NativeConnection.emit (node:events:381:22) micoo-engine | at NativeConnection.set (/usr/src/app/node_modules/mongoose/lib/connection.js:126:12) micoo-engine | at MongoClient. (/usr/src/app/node_modules/mongoose/lib/connection.js:916:27) micoo-engine | at MongoClient.emit (node:events:369:20) micoo-engine | at NativeTopology. (/usr/src/app/node_modules/mongodb/lib/operations/connect.js:678:19) micoo-engine | at NativeTopology.emit (node:events:369:20) micoo-engine | at NativeTopology.serverUpdateHandler (/usr/src/app/node_modules/mongodb/lib/core/sdam/topology.js:550:12) micoo-engine | at Server.emit (node:events:369:20) { micoo-engine | reason: TopologyDescription { micoo-engine | type: 'Single', micoo-engine | setName: null, micoo-engine | maxSetVersion: null, micoo-engine | maxElectionId: null, micoo-engine | servers: Map(1) { 'micoo-mongodb:27017' => [ServerDescription] }, micoo-engine | stale: false, micoo-engine | compatible: true, micoo-engine | compatibilityError: null, micoo-engine | logicalSessionTimeoutMinutes: null, micoo-engine | heartbeatFrequencyMS: 10000, micoo-engine | localThresholdMS: 15, micoo-engine | commonWireVersion: null micoo-engine | } micoo-engine | } micoo-engine | MongooseServerSelectionError: connection timed out micoo-engine | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/mongoose/lib/connection.js:846:32) micoo-engine | at /usr/src/app/node_modules/mongoose/lib/index.js:351:10 micoo-engine | at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 micoo-engine | at new Promise () micoo-engine | at promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) micoo-engine | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/index.js:1149:10) micoo-engine | at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20) micoo-engine | at NativeConnection.connect (/usr/src/app/utils/database-utils.js:7:21) micoo-engine | at NativeConnection.emit (node:events:381:22) micoo-engine | at NativeConnection.set (/usr/src/app/node_modules/mongoose/lib/connection.js:126:12) micoo-engine | at MongoClient. (/usr/src/app/node_modules/mongoose/lib/connection.js:916:27) micoo-engine | at MongoClient.emit (node:events:369:20) micoo-engine | at NativeTopology. (/usr/src/app/node_modules/mongodb/lib/operations/connect.js:678:19) micoo-engine | at NativeTopology.emit (node:events:369:20) micoo-engine | at NativeTopology.serverUpdateHandler (/usr/src/app/node_modules/mongodb/lib/core/sdam/topology.js:550:12) micoo-engine | at Server.emit (node:events:369:20) { micoo-engine | reason: TopologyDescription { micoo-engine | type: 'Single', micoo-engine | setName: null, micoo-engine | maxSetVersion: null, micoo-engine | maxElectionId: null, micoo-engine | servers: Map(1) { 'micoo-mongodb:27017' => [ServerDescription] }, micoo-engine | stale: false, micoo-engine | compatible: true, micoo-engine | compatibilityError: null, micoo-engine | logicalSessionTimeoutMinutes: null, micoo-engine | heartbeatFrequencyMS: 10000, micoo-engine | localThresholdMS: 15, micoo-engine | commonWireVersion: null micoo-engine | } micoo-engine | } micoo-engine | MongooseServerSelectionError: connection timed out micoo-engine | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/mongoose/lib/connection.js:846:32) micoo-engine | at /usr/src/app/node_modules/mongoose/lib/index.js:351:10 micoo-engine | at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 micoo-engine | at new Promise () micoo-engine | at promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) micoo-engine | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/index.js:1149:10) micoo-engine | at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20) micoo-engine | at NativeConnection.connect (/usr/src/app/utils/database-utils.js:7:21) micoo-engine | at NativeConnection.emit (node:events:381:22) micoo-engine | at NativeConnection.set (/usr/src/app/node_modules/mongoose/lib/connection.js:126:12) micoo-engine | at MongoClient. (/usr/src/app/node_modules/mongoose/lib/connection.js:916:27) micoo-engine | at MongoClient.emit (node:events:369:20) micoo-engine | at NativeTopology. (/usr/src/app/node_modules/mongodb/lib/operations/connect.js:678:19) micoo-engine | at NativeTopology.emit (node:events:369:20) micoo-engine | at NativeTopology.serverUpdateHandler (/usr/src/app/node_modules/mongodb/lib/core/sdam/topology.js:550:12) micoo-engine | at Server.emit (node:events:369:20) { micoo-engine | reason: TopologyDescription { micoo-engine | type: 'Single', micoo-engine | setName: null, micoo-engine | maxSetVersion: null, micoo-engine | maxElectionId: null, micoo-engine | servers: Map(1) { 'micoo-mongodb:27017' => [ServerDescription] }, micoo-engine | stale: false, micoo-engine | compatible: true, micoo-engine | compatibilityError: null, micoo-engine | logicalSessionTimeoutMinutes: null, micoo-engine | heartbeatFrequencyMS: 10000, micoo-engine | localThresholdMS: 15, micoo-engine | commonWireVersion: null micoo-engine | } micoo-engine | } micoo-engine | MongooseServerSelectionError: connection timed out micoo-engine | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/mongoose/lib/connection.js:846:32) micoo-engine | at /usr/src/app/node_modules/mongoose/lib/index.js:351:10 micoo-engine | at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 micoo-engine | at new Promise () micoo-engine | at promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) micoo-engine | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/index.js:1149:10) micoo-engine | at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20) micoo-engine | at NativeConnection.connect (/usr/src/app/utils/database-utils.js:7:21) micoo-engine | at NativeConnection.emit (node:events:381:22) micoo-engine | at NativeConnection.set (/usr/src/app/node_modules/mongoose/lib/connection.js:126:12) micoo-engine | at MongoClient. (/usr/src/app/node_modules/mongoose/lib/connection.js:916:27) micoo-engine | at MongoClient.emit (node:events:369:20) micoo-engine | at NativeTopology. (/usr/src/app/node_modules/mongodb/lib/operations/connect.js:678:19) micoo-engine | at NativeTopology.emit (node:events:369:20) micoo-engine | at NativeTopology.serverUpdateHandler (/usr/src/app/node_modules/mongodb/lib/core/sdam/topology.js:550:12) micoo-engine | at Server.emit (node:events:369:20) { micoo-engine | reason: TopologyDescription { micoo-engine | type: 'Single', micoo-engine | setName: null, micoo-engine | maxSetVersion: null, micoo-engine | maxElectionId: null, micoo-engine | servers: Map(1) { 'micoo-mongodb:27017' => [ServerDescription] }, micoo-engine | stale: false, micoo-engine | compatible: true, micoo-engine | compatibilityError: null, micoo-engine | logicalSessionTimeoutMinutes: null, micoo-engine | heartbeatFrequencyMS: 10000, micoo-engine | localThresholdMS: 15, micoo-engine | commonWireVersion: null micoo-engine | } micoo-engine | } micoo-engine | MongooseServerSelectionError: connection timed out micoo-engine | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/mongoose/lib/connection.js:846:32) micoo-engine | at /usr/src/app/node_modules/mongoose/lib/index.js:351:10 micoo-engine | at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 micoo-engine | at new Promise () micoo-engine | at promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) micoo-engine | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/index.js:1149:10) micoo-engine | at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20) micoo-engine | at NativeConnection.connect (/usr/src/app/utils/database-utils.js:7:21) micoo-engine | at NativeConnection.emit (node:events:381:22) micoo-engine | at NativeConnection.set (/usr/src/app/node_modules/mongoose/lib/connection.js:126:12) micoo-engine | at MongoClient. (/usr/src/app/node_modules/mongoose/lib/connection.js:916:27) micoo-engine | at MongoClient.emit (node:events:369:20) micoo-engine | at NativeTopology. (/usr/src/app/node_modules/mongodb/lib/operations/connect.js:678:19) micoo-engine | at NativeTopology.emit (node:events:369:20) micoo-engine | at NativeTopology.serverUpdateHandler (/usr/src/app/node_modules/mongodb/lib/core/sdam/topology.js:550:12) micoo-engine | at Server.emit (node:events:369:20) { micoo-engine | reason: TopologyDescription { micoo-engine | type: 'Single', micoo-engine | setName: null, micoo-engine | maxSetVersion: null, micoo-engine | maxElectionId: null, micoo-engine | servers: Map(1) { 'micoo-mongodb:27017' => [ServerDescription] }, micoo-engine | stale: false, micoo-engine | compatible: true, micoo-engine | compatibilityError: null, micoo-engine | logicalSessionTimeoutMinutes: null, micoo-engine | heartbeatFrequencyMS: 10000, micoo-engine | localThresholdMS: 15, micoo-engine | commonWireVersion: null micoo-engine | } micoo-engine | } micoo-engine | MongooseServerSelectionError: connection timed out micoo-engine | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/mongoose/lib/connection.js:846:32) micoo-engine | at /usr/src/app/node_modules/mongoose/lib/index.js:351:10 micoo-engine | at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 micoo-engine | at new Promise () micoo-engine | at promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) micoo-engine | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/index.js:1149:10) micoo-engine | at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20) micoo-engine | at NativeConnection.connect (/usr/src/app/utils/database-utils.js:7:21) micoo-engine | at NativeConnection.emit (node:events:381:22) micoo-engine | at NativeConnection.set (/usr/src/app/node_modules/mongoose/lib/connection.js:126:12) micoo-engine | at MongoClient. (/usr/src/app/node_modules/mongoose/lib/connection.js:916:27) micoo-engine | at MongoClient.emit (node:events:369:20) micoo-engine | at NativeTopology. (/usr/src/app/node_modules/mongodb/lib/operations/connect.js:678:19) micoo-engine | at NativeTopology.emit (node:events:369:20) micoo-engine | at NativeTopology.serverUpdateHandler (/usr/src/app/node_modules/mongodb/lib/core/sdam/topology.js:550:12) micoo-engine | at Server.emit (node:events:369:20) { micoo-engine | reason: TopologyDescription { micoo-engine | type: 'Single', micoo-engine | setName: null, micoo-engine | maxSetVersion: null, micoo-engine | maxElectionId: null, micoo-engine | servers: Map(1) { 'micoo-mongodb:27017' => [ServerDescription] }, micoo-engine | stale: false, micoo-engine | compatible: true, micoo-engine | compatibilityError: null, micoo-engine | logicalSessionTimeoutMinutes: null, micoo-engine | heartbeatFrequencyMS: 10000, micoo-engine | localThresholdMS: 15, micoo-engine | commonWireVersion: null micoo-engine | } micoo-engine | } micoo-engine | MongooseServerSelectionError: connection timed out micoo-engine | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/mongoose/lib/connection.js:846:32) micoo-engine | at /usr/src/app/node_modules/mongoose/lib/index.js:351:10 micoo-engine | at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 micoo-engine | at new Promise () micoo-engine | at promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) micoo-engine | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/index.js:1149:10) micoo-engine | at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20) micoo-engine | at NativeConnection.connect (/usr/src/app/utils/database-utils.js:7:21) micoo-engine | at NativeConnection.emit (node:events:381:22) micoo-engine | at NativeConnection.set (/usr/src/app/node_modules/mongoose/lib/connection.js:126:12) micoo-engine | at MongoClient. (/usr/src/app/node_modules/mongoose/lib/connection.js:916:27) micoo-engine | at MongoClient.emit (node:events:369:20) micoo-engine | at NativeTopology. (/usr/src/app/node_modules/mongodb/lib/operations/connect.js:678:19) micoo-engine | at NativeTopology.emit (node:events:369:20) micoo-engine | at NativeTopology.serverUpdateHandler (/usr/src/app/node_modules/mongodb/lib/core/sdam/topology.js:550:12) micoo-engine | at Server.emit (node:events:369:20) { micoo-engine | reason: TopologyDescription { micoo-engine | type: 'Single', micoo-engine | setName: null, micoo-engine | maxSetVersion: null, micoo-engine | maxElectionId: null, micoo-engine | servers: Map(1) { 'micoo-mongodb:27017' => [ServerDescription] }, micoo-engine | stale: false, micoo-engine | compatible: true, micoo-engine | compatibilityError: null, micoo-engine | logicalSessionTimeoutMinutes: null, micoo-engine | heartbeatFrequencyMS: 10000, micoo-engine | localThresholdMS: 15, micoo-engine | commonWireVersion: null micoo-engine | } micoo-engine | } micoo-engine | MongooseServerSelectionError: connection timed out micoo-engine | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/mongoose/lib/connection.js:846:32) micoo-engine | at /usr/src/app/node_modules/mongoose/lib/index.js:351:10 micoo-engine | at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 micoo-engine | at new Promise () micoo-engine | at promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) micoo-engine | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/index.js:1149:10) micoo-engine | at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20) micoo-engine | at NativeConnection.connect (/usr/src/app/utils/database-utils.js:7:21) micoo-engine | at NativeConnection.emit (node:events:381:22) micoo-engine | at NativeConnection.set (/usr/src/app/node_modules/mongoose/lib/connection.js:126:12) micoo-engine | at MongoClient. (/usr/src/app/node_modules/mongoose/lib/connection.js:916:27) micoo-engine | at MongoClient.emit (node:events:369:20) micoo-engine | at NativeTopology. (/usr/src/app/node_modules/mongodb/lib/operations/connect.js:678:19) micoo-engine | at NativeTopology.emit (node:events:369:20) micoo-engine | at NativeTopology.serverUpdateHandler (/usr/src/app/node_modules/mongodb/lib/core/sdam/topology.js:550:12) micoo-engine | at Server.emit (node:events:369:20) { micoo-engine | reason: TopologyDescription { micoo-engine | type: 'Single', micoo-engine | setName: null, micoo-engine | maxSetVersion: null, micoo-engine | maxElectionId: null, micoo-engine | servers: Map(1) { 'micoo-mongodb:27017' => [ServerDescription] }, micoo-engine | stale: false, micoo-engine | compatible: true, micoo-engine | compatibilityError: null, micoo-engine | logicalSessionTimeoutMinutes: null, micoo-engine | heartbeatFrequencyMS: 10000, micoo-engine | localThresholdMS: 15, micoo-engine | commonWireVersion: null micoo-engine | } micoo-engine | } micoo-engine | MongooseServerSelectionError: connection timed out micoo-engine | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/mongoose/lib/connection.js:846:32) micoo-engine | at /usr/src/app/node_modules/mongoose/lib/index.js:351:10 micoo-engine | at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 micoo-engine | at new Promise () micoo-engine | at promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) micoo-engine | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/index.js:1149:10) micoo-engine | at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20) micoo-engine | at NativeConnection.connect (/usr/src/app/utils/database-utils.js:7:21) micoo-engine | at NativeConnection.emit (node:events:381:22) micoo-engine | at NativeConnection.set (/usr/src/app/node_modules/mongoose/lib/connection.js:126:12) micoo-engine | at MongoClient. (/usr/src/app/node_modules/mongoose/lib/connection.js:916:27) micoo-engine | at MongoClient.emit (node:events:369:20) micoo-engine | at NativeTopology. (/usr/src/app/node_modules/mongodb/lib/operations/connect.js:678:19) micoo-engine | at NativeTopology.emit (node:events:369:20) micoo-engine | at NativeTopology.serverUpdateHandler (/usr/src/app/node_modules/mongodb/lib/core/sdam/topology.js:550:12) micoo-engine | at Server.emit (node:events:369:20) { micoo-engine | reason: TopologyDescription { micoo-engine | type: 'Single', micoo-engine | setName: null, micoo-engine | maxSetVersion: null, micoo-engine | maxElectionId: null, micoo-engine | servers: Map(1) { 'micoo-mongodb:27017' => [ServerDescription] }, micoo-engine | stale: false, micoo-engine | compatible: true, micoo-engine | compatibilityError: null, micoo-engine | logicalSessionTimeoutMinutes: null, micoo-engine | heartbeatFrequencyMS: 10000, micoo-engine | localThresholdMS: 15, micoo-engine | commonWireVersion: null micoo-engine | } micoo-engine | } micoo-engine | MongooseServerSelectionError: connection timed out micoo-engine | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/mongoose/lib/connection.js:846:32) micoo-engine | at /usr/src/app/node_modules/mongoose/lib/index.js:351:10 micoo-engine | at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 micoo-engine | at new Promise () micoo-engine | at promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) micoo-engine | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/index.js:1149:10) micoo-engine | at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20) micoo-engine | at NativeConnection.connect (/usr/src/app/utils/database-utils.js:7:21) micoo-engine | at NativeConnection.emit (node:events:381:22) micoo-engine | at NativeConnection.set (/usr/src/app/node_modules/mongoose/lib/connection.js:126:12) micoo-engine | at MongoClient. (/usr/src/app/node_modules/mongoose/lib/connection.js:916:27) micoo-engine | at MongoClient.emit (node:events:369:20) micoo-engine | at NativeTopology. (/usr/src/app/node_modules/mongodb/lib/operations/connect.js:678:19) micoo-engine | at NativeTopology.emit (node:events:369:20) micoo-engine | at NativeTopology.serverUpdateHandler (/usr/src/app/node_modules/mongodb/lib/core/sdam/topology.js:550:12) micoo-engine | at Server.emit (node:events:369:20) { micoo-engine | reason: TopologyDescription { micoo-engine | type: 'Single', micoo-engine | setName: null, micoo-engine | maxSetVersion: null, micoo-engine | maxElectionId: null, micoo-engine | servers: Map(1) { 'micoo-mongodb:27017' => [ServerDescription] }, micoo-engine | stale: false, micoo-engine | compatible: true, micoo-engine | compatibilityError: null, micoo-engine | logicalSessionTimeoutMinutes: null, micoo-engine | heartbeatFrequencyMS: 10000, micoo-engine | localThresholdMS: 15, micoo-engine | commonWireVersion: null micoo-engine | } micoo-engine | } micoo-engine | MongooseServerSelectionError: connection timed out micoo-engine | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/mongoose/lib/connection.js:846:32) micoo-engine | at /usr/src/app/node_modules/mongoose/lib/index.js:351:10 micoo-engine | at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 micoo-engine | at new Promise () micoo-engine | at promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) micoo-engine | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/index.js:1149:10) micoo-engine | at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20) micoo-engine | at NativeConnection.connect (/usr/src/app/utils/database-utils.js:7:21) micoo-engine | at NativeConnection.emit (node:events:381:22) micoo-engine | at NativeConnection.set (/usr/src/app/node_modules/mongoose/lib/connection.js:126:12) micoo-engine | at MongoClient. (/usr/src/app/node_modules/mongoose/lib/connection.js:916:27) micoo-engine | at MongoClient.emit (node:events:369:20) micoo-engine | at NativeTopology. (/usr/src/app/node_modules/mongodb/lib/operations/connect.js:678:19) micoo-engine | at NativeTopology.emit (node:events:369:20) micoo-engine | at NativeTopology.serverUpdateHandler (/usr/src/app/node_modules/mongodb/lib/core/sdam/topology.js:550:12) micoo-engine | at Server.emit (node:events:369:20) { micoo-engine | reason: TopologyDescription { micoo-engine | type: 'Single', micoo-engine | setName: null, micoo-engine | maxSetVersion: null, micoo-engine | maxElectionId: null, micoo-engine | servers: Map(1) { 'micoo-mongodb:27017' => [ServerDescription] }, micoo-engine | stale: false, micoo-engine | compatible: true, micoo-engine | compatibilityError: null, micoo-engine | logicalSessionTimeoutMinutes: null, micoo-engine | heartbeatFrequencyMS: 10000, micoo-engine | localThresholdMS: 15, micoo-engine | commonWireVersion: null micoo-engine | } micoo-engine | } micoo-engine | MongooseServerSelectionError: connection timed out micoo-engine | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/mongoose/lib/connection.js:846:32) micoo-engine | at /usr/src/app/node_modules/mongoose/lib/index.js:351:10 micoo-engine | at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 micoo-engine | at new Promise () micoo-engine | at promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) micoo-engine | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/index.js:1149:10) micoo-engine | at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20) micoo-engine | at NativeConnection.connect (/usr/src/app/utils/database-utils.js:7:21) micoo-engine | at NativeConnection.emit (node:events:381:22) micoo-engine | at NativeConnection.set (/usr/src/app/node_modules/mongoose/lib/connection.js:126:12) micoo-engine | at MongoClient. (/usr/src/app/node_modules/mongoose/lib/connection.js:916:27) micoo-engine | at MongoClient.emit (node:events:369:20) micoo-engine | at NativeTopology. (/usr/src/app/node_modules/mongodb/lib/operations/connect.js:678:19) micoo-engine | at NativeTopology.emit (node:events:369:20) micoo-engine | at NativeTopology.serverUpdateHandler (/usr/src/app/node_modules/mongodb/lib/core/sdam/topology.js:550:12) micoo-engine | at Server.emit (node:events:369:20) { micoo-engine | reason: TopologyDescription { micoo-engine | type: 'Single', micoo-engine | setName: null, micoo-engine | maxSetVersion: null, micoo-engine | maxElectionId: null, micoo-engine | servers: Map(1) { 'micoo-mongodb:27017' => [ServerDescription] }, micoo-engine | stale: false, micoo-engine | compatible: true, micoo-engine | compatibilityError: null, micoo-engine | logicalSessionTimeoutMinutes: null, micoo-engine | heartbeatFrequencyMS: 10000, micoo-engine | localThresholdMS: 15, micoo-engine | commonWireVersion: null micoo-engine | } micoo-engine | } micoo-engine | MongooseServerSelectionError: connection timed out micoo-engine | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/mongoose/lib/connection.js:846:32) micoo-engine | at /usr/src/app/node_modules/mongoose/lib/index.js:351:10 micoo-engine | at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 micoo-engine | at new Promise () micoo-engine | at promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) micoo-engine | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/index.js:1149:10) micoo-engine | at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20) micoo-engine | at NativeConnection.connect (/usr/src/app/utils/database-utils.js:7:21) micoo-engine | at NativeConnection.emit (node:events:381:22) micoo-engine | at NativeConnection.set (/usr/src/app/node_modules/mongoose/lib/connection.js:126:12) micoo-engine | at MongoClient. (/usr/src/app/node_modules/mongoose/lib/connection.js:916:27) micoo-engine | at MongoClient.emit (node:events:369:20) micoo-engine | at NativeTopology. (/usr/src/app/node_modules/mongodb/lib/operations/connect.js:678:19) micoo-engine | at NativeTopology.emit (node:events:369:20) micoo-engine | at NativeTopology.serverUpdateHandler (/usr/src/app/node_modules/mongodb/lib/core/sdam/topology.js:550:12) micoo-engine | at Server.emit (node:events:369:20) { micoo-engine | reason: TopologyDescription { micoo-engine | type: 'Single', micoo-engine | setName: null, micoo-engine | maxSetVersion: null, micoo-engine | maxElectionId: null, micoo-engine | servers: Map(1) { 'micoo-mongodb:27017' => [ServerDescription] }, micoo-engine | stale: false, micoo-engine | compatible: true, micoo-engine | compatibilityError: null, micoo-engine | logicalSessionTimeoutMinutes: null, micoo-engine | heartbeatFrequencyMS: 10000, micoo-engine | localThresholdMS: 15, micoo-engine | commonWireVersion: null micoo-engine | } micoo-engine | } micoo-engine | MongooseServerSelectionError: connection timed out micoo-engine | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/mongoose/lib/connection.js:846:32) micoo-engine | at /usr/src/app/node_modules/mongoose/lib/index.js:351:10 micoo-engine | at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 micoo-engine | at new Promise () micoo-engine | at promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) micoo-engine | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/index.js:1149:10) micoo-engine | at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20) micoo-engine | at NativeConnection.connect (/usr/src/app/utils/database-utils.js:7:21) micoo-engine | at NativeConnection.emit (node:events:381:22) micoo-engine | at NativeConnection.set (/usr/src/app/node_modules/mongoose/lib/connection.js:126:12) micoo-engine | at MongoClient. (/usr/src/app/node_modules/mongoose/lib/connection.js:916:27) micoo-engine | at MongoClient.emit (node:events:369:20) micoo-engine | at NativeTopology. (/usr/src/app/node_modules/mongodb/lib/operations/connect.js:678:19) micoo-engine | at NativeTopology.emit (node:events:369:20) micoo-engine | at NativeTopology.serverUpdateHandler (/usr/src/app/node_modules/mongodb/lib/core/sdam/topology.js:550:12) micoo-engine | at Server.emit (node:events:369:20) { micoo-engine | reason: TopologyDescription { micoo-engine | type: 'Single', micoo-engine | setName: null, micoo-engine | maxSetVersion: null, micoo-engine | maxElectionId: null, micoo-engine | servers: Map(1) { 'micoo-mongodb:27017' => [ServerDescription] }, micoo-engine | stale: false, micoo-engine | compatible: true, micoo-engine | compatibilityError: null, micoo-engine | logicalSessionTimeoutMinutes: null, micoo-engine | heartbeatFrequencyMS: 10000, micoo-engine | localThresholdMS: 15, micoo-engine | commonWireVersion: null micoo-engine | } micoo-engine | } micoo-engine | MongooseServerSelectionError: connection timed out micoo-engine | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/mongoose/lib/connection.js:846:32) micoo-engine | at /usr/src/app/node_modules/mongoose/lib/index.js:351:10 micoo-engine | at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 micoo-engine | at new Promise () micoo-engine | at promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) micoo-engine | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/index.js:1149:10) micoo-engine | at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20) micoo-engine | at NativeConnection.connect (/usr/src/app/utils/database-utils.js:7:21) micoo-engine | at NativeConnection.emit (node:events:381:22) micoo-engine | at NativeConnection.set (/usr/src/app/node_modules/mongoose/lib/connection.js:126:12) micoo-engine | at MongoClient. (/usr/src/app/node_modules/mongoose/lib/connection.js:916:27) micoo-engine | at MongoClient.emit (node:events:369:20) micoo-engine | at NativeTopology. (/usr/src/app/node_modules/mongodb/lib/operations/connect.js:678:19) micoo-engine | at NativeTopology.emit (node:events:369:20) micoo-engine | at NativeTopology.serverUpdateHandler (/usr/src/app/node_modules/mongodb/lib/core/sdam/topology.js:550:12) micoo-engine | at Server.emit (node:events:369:20) { micoo-engine | reason: TopologyDescription { micoo-engine | type: 'Single', micoo-engine | setName: null, micoo-engine | maxSetVersion: null, micoo-engine | maxElectionId: null, micoo-engine | servers: Map(1) { 'micoo-mongodb:27017' => [ServerDescription] }, micoo-engine | stale: false, micoo-engine | compatible: true, micoo-engine | compatibilityError: null, micoo-engine | logicalSessionTimeoutMinutes: null, micoo-engine | heartbeatFrequencyMS: 10000, micoo-engine | localThresholdMS: 15, micoo-engine | commonWireVersion: null micoo-engine | } micoo-engine | } micoo-engine | MongooseServerSelectionError: connection timed out micoo-engine | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/mongoose/lib/connection.js:846:32) micoo-engine | at /usr/src/app/node_modules/mongoose/lib/index.js:351:10 micoo-engine | at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 micoo-engine | at new Promise () micoo-engine | at promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) micoo-engine | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/index.js:1149:10) micoo-engine | at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20) micoo-engine | at NativeConnection.connect (/usr/src/app/utils/database-utils.js:7:21) micoo-engine | at NativeConnection.emit (node:events:381:22) micoo-engine | at NativeConnection.set (/usr/src/app/node_modules/mongoose/lib/connection.js:126:12) micoo-engine | at MongoClient. (/usr/src/app/node_modules/mongoose/lib/connection.js:916:27) micoo-engine | at MongoClient.emit (node:events:369:20) micoo-engine | at NativeTopology. (/usr/src/app/node_modules/mongodb/lib/operations/connect.js:678:19) micoo-engine | at NativeTopology.emit (node:events:369:20) micoo-engine | at NativeTopology.serverUpdateHandler (/usr/src/app/node_modules/mongodb/lib/core/sdam/topology.js:550:12) micoo-engine | at Server.emit (node:events:369:20) { micoo-engine | reason: TopologyDescription { micoo-engine | type: 'Single', micoo-engine | setName: null, micoo-engine | maxSetVersion: null, micoo-engine | maxElectionId: null, micoo-engine | servers: Map(1) { 'micoo-mongodb:27017' => [ServerDescription] }, micoo-engine | stale: false, micoo-engine | compatible: true, micoo-engine | compatibilityError: null, micoo-engine | logicalSessionTimeoutMinutes: null, micoo-engine | heartbeatFrequencyMS: 10000, micoo-engine | localThresholdMS: 15, micoo-engine | commonWireVersion: null micoo-engine | } micoo-engine | } micoo-engine | node:internal/process/promises:245 micoo-engine | triggerUncaughtException(err, true / fromPromise /); micoo-engine | ^ micoo-engine | micoo-engine | MongooseServerSelectionError: connection timed out micoo-engine | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/mongoose/lib/connection.js:846:32) micoo-engine | at /usr/src/app/node_modules/mongoose/lib/index.js:351:10 micoo-engine | at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 micoo-engine | at new Promise () micoo-engine | at promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) micoo-engine | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/mongoose/lib/index.js:1149:10) micoo-engine | at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20) micoo-engine | at NativeConnection.connect (/usr/src/app/utils/database-utils.js:7:21) micoo-engine | at NativeConnection.emit (node:events:381:22) micoo-engine | at NativeConnection.set (/usr/src/app/node_modules/mongoose/lib/connection.js:126:12) micoo-engine | at MongoClient. (/usr/src/app/node_modules/mongoose/lib/connection.js:916:27) micoo-engine | at MongoClient.emit (node:events:369:20) micoo-engine | at NativeTopology. (/usr/src/app/node_modules/mongodb/lib/operations/connect.js:678:19) micoo-engine | at NativeTopology.emit (node:events:369:20) micoo-engine | at NativeTopology.serverUpdateHandler (/usr/src/app/node_modules/mongodb/lib/core/sdam/topology.js:550:12) micoo-engine | at Server.emit (node:events:369:20) { micoo-engine | reason: TopologyDescription { micoo-engine | type: 'Single', micoo-engine | setName: null, micoo-engine | maxSetVersion: null, micoo-engine | maxElectionId: null, micoo-engine | servers: Map(1) { micoo-engine | 'micoo-mongodb:27017' => ServerDescription { micoo-engine | address: 'micoo-mongodb:27017', micoo-engine | error: MongoNetworkTimeoutError: connection timed out micoo-engine | at connectionFailureError (/usr/src/app/node_modules/mongodb/lib/core/connection/connect.js:345:14) micoo-engine | at Socket. (/usr/src/app/node_modules/mongodb/lib/core/connection/connect.js:313:16) micoo-engine | at Object.onceWrapper (node:events:475:28) micoo-engine | at Socket.emit (node:events:369:20) micoo-engine | at Socket._onTimeout (node:net:481:8) micoo-engine | at listOnTimeout (node:internal/timers:557:17) micoo-engine | at processTimers (node:internal/timers:500:7), micoo-engine | roundTripTime: -1, micoo-engine | lastUpdateTime: 14047239, micoo-engine | lastWriteDate: null, micoo-engine | opTime: null, micoo-engine | type: 'Unknown', micoo-engine | topologyVersion: undefined, micoo-engine | minWireVersion: 0, micoo-engine | maxWireVersion: 0, micoo-engine | hosts: [], micoo-engine | passives: [], micoo-engine | arbiters: [], micoo-engine | tags: [] micoo-engine | } micoo-engine | }, micoo-engine | stale: false, micoo-engine | compatible: true, micoo-engine | compatibilityError: null, micoo-engine | logicalSessionTimeoutMinutes: null, micoo-engine | heartbeatFrequencyMS: 10000, micoo-engine | localThresholdMS: 15, micoo-engine | commonWireVersion: null micoo-engine | } micoo-engine | } micoo-mongodb | {"t":{"$date":"2021-10-11T06:43:51.022+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn23","msg":"Connection ended","attr":{"remote":"172.18.0.4:59384","connectionId":23,"connectionCount":7}} micoo-mongodb | {"t":{"$date":"2021-10-11T06:43:51.022+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn18","msg":"Connection ended","attr":{"remote":"172.18.0.4:59374","connectionId":18,"connectionCount":6}} micoo-mongodb | {"t":{"$date":"2021-10-11T06:43:51.022+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn21","msg":"Connection ended","attr":{"remote":"172.18.0.4:59380","connectionId":21,"connectionCount":5}} micoo-mongodb | {"t":{"$date":"2021-10-11T06:43:51.022+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn22","msg":"Connection ended","attr":{"remote":"172.18.0.4:59382","connectionId":22,"connectionCount":4}} micoo-engine | error Command failed with exit code 1. micoo-engine | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. micoo-engine exited with code 1 micoo-mongodb | {"t":{"$date":"2021-10-11T06:44:08.109+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"WTCheckpointThread","msg":"WiredTiger message","attr":{"message":"[1633934648:109411][1:0x7f6ce2deb700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 273, snapshot max: 273 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 16500"}} micoo-mongodb | {"t":{"$date":"2021-10-11T06:45:08.114+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"WTCheckpointThread","msg":"WiredTiger message","attr":{"message":"[1633934708:114804][1:0x7f6ce2deb700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 277, snapshot max: 277 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 16500"}}

Mikuu commented 3 years ago

谢谢反馈,请提供一下,大概使用了多少张图片在上传多少次时出现的问题呢,还有就是图片的size大概是多少,比如1920x1080或者多少M的图片。

icesword0760 commented 3 years ago

你好! 每次大约200-300张左右;单张1080p;全部图片体积在35MB-50MB每次;以上参数连续上传2次很大概率复现; 我这边初步分析可能是mogodb断连导致的,从日志来看,每次上传是成功的,对比也是成功的,但是生成case到db的时候,没有complete;往前再看的话,发现mogodb有日志提示失去和客户端的响应,连接断开(Error sending response to client. Ending connection from remote); 但很奇怪,少量图片似乎不会导致该问题。 目前我的解决方式是,每次上传前重启全部docker容器,暂时没有出现该问题了。

Mikuu commented 3 years ago

你好! 每次大约200-300张左右;单张1080p;全部图片体积在35MB-50MB每次;以上参数连续上传2次很大概率复现; 我这边初步分析可能是mogodb断连导致的,从日志来看,每次上传是成功的,对比也是成功的,但是生成case到db的时候,没有complete;往前再看的话,发现mogodb有日志提示失去和客户端的响应,连接断开(Error sending response to client. Ending connection from remote); 但很奇怪,少量图片似乎不会导致该问题。 目前我的解决方式是,每次上传前重启全部docker容器,暂时没有出现该问题了。

好的,我找时间跟进一下

Mikuu commented 2 years ago

这个问题已经修复了,请使用最新的、或者v0.1.7(含)之后版本的engine镜像。 我本地测试的,1080P的图片,上传1000张对比是可以的了(只不过对比1000张会比较耗时就是了@_@)。

新的实现在对比大量图片时,对同一个project,如果前一次的build对比还没有全部完成,又再上传新的build,会丢失前一次的结果,仅保留和对比最新一次的图片。