From e879a4cadfd4920135a02d9ad0c082e25c4aa354 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Mon, 25 Jul 2022 17:38:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=83=E7=89=9B=E5=AE=A3=E4=BC=A0=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/.vscode/launch.json | 5 + api/app/lib/controllers/data/publicity.js | 77 ++ api/app/lib/models/publicity.js | 52 + api/app/lib/routes/data/index.js | 12 + api/config.js | 21 +- api/log/development.log | 1185 +++++++++++++++++++++ api/sequelize-automate.config.js | 2 +- 7 files changed, 1351 insertions(+), 3 deletions(-) create mode 100644 api/app/lib/models/publicity.js diff --git a/api/.vscode/launch.json b/api/.vscode/launch.json index 07402aac..eaa8220c 100644 --- a/api/.vscode/launch.json +++ b/api/.vscode/launch.json @@ -16,6 +16,11 @@ "-p 14000", "-f http://localhost:14000", "-g postgres://postgres:123@10.8.30.32:5432/highways4good", + "--qnak XuDgkao6cL0HidoMAPnA5OB10Mc_Ew08mpIfRJK5", + "--qnsk yewcieZLzKZuDfig0wLZ9if9jKp2P_1jd3CMJPSa", + "--qnbkt dev-highways4good", + // "--qndmn http://resources.anxinyun.cn", + "--qndmn http://rfkimpwbb.hn-bkt.clouddn.com", ] }, { diff --git a/api/app/lib/controllers/data/publicity.js b/api/app/lib/controllers/data/publicity.js index e69de29b..a47c2fc5 100644 --- a/api/app/lib/controllers/data/publicity.js +++ b/api/app/lib/controllers/data/publicity.js @@ -0,0 +1,77 @@ +'use strict'; + +async function publicityGet (ctx) { + try { + const models = ctx.fs.dc.models; + const { enable } = ctx.query; + let findOption = { + where: {}, + order: [['id', 'DESC']] + } + if (enable) { + findOption.where.enable = true + } + + const roadRes = await models.Publicity.findAll(findOption) + + ctx.status = 200; + ctx.body = roadRes + } catch (error) { + ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); + ctx.status = 400; + ctx.body = { + message: typeof error == 'string' ? error : undefined + } + } +} + +async function publicityEdit (ctx) { + try { + const models = ctx.fs.dc.models; + const data = ctx.request.body; + + if (!data.publicityId) { + await models.Publicity.create(data) + } else { + await models.Publicity.update( + data, { + where: { + id: data.publicityId + } + }) + } + + ctx.status = 204 + } catch (error) { + ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); + ctx.status = 400; + ctx.body = { + message: typeof error == 'string' ? error : undefined + } + } +} + +async function publicityDel (ctx) { + try { + const models = ctx.fs.dc.models; + const { publicityId } = ctx.params; + + await models.Publicity.destroy({ + where: { + id: publicityId + } + }) + + ctx.status = 204 + } catch (error) { + ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); + ctx.status = 400; + ctx.body = { + message: typeof error == 'string' ? error : undefined + } + } +} + +module.exports = { + publicityGet, publicityEdit, publicityDel, +}; \ No newline at end of file diff --git a/api/app/lib/models/publicity.js b/api/app/lib/models/publicity.js new file mode 100644 index 00000000..0cd30ded --- /dev/null +++ b/api/app/lib/models/publicity.js @@ -0,0 +1,52 @@ +/* eslint-disable*/ +'use strict'; + +module.exports = dc => { + const DataTypes = dc.ORM; + const sequelize = dc.orm; + const Publicity = sequelize.define("publicity", { + id: { + type: DataTypes.INTEGER, + allowNull: false, + defaultValue: null, + comment: null, + primaryKey: true, + field: "id", + autoIncrement: true, + unique: "publicity_id_uindex" + }, + name: { + type: DataTypes.STRING, + allowNull: false, + defaultValue: null, + comment: null, + primaryKey: false, + field: "name", + autoIncrement: false + }, + video: { + type: DataTypes.ARRAY(DataTypes.INTEGER), + allowNull: true, + defaultValue: null, + comment: null, + primaryKey: false, + field: "video", + autoIncrement: false + }, + enable: { + type: DataTypes.BOOLEAN, + allowNull: false, + defaultValue: true, + comment: null, + primaryKey: false, + field: "enable", + autoIncrement: false + } + }, { + tableName: "publicity", + comment: "", + indexes: [] + }); + dc.models.Publicity = Publicity; + return Publicity; +}; \ No newline at end of file diff --git a/api/app/lib/routes/data/index.js b/api/app/lib/routes/data/index.js index e801466d..c386eeba 100644 --- a/api/app/lib/routes/data/index.js +++ b/api/app/lib/routes/data/index.js @@ -6,6 +6,7 @@ const bridge = require('../../controllers/data/bridge'); const project = require('../../controllers/data/project'); const overspeed = require('../../controllers/data/overspeed'); const bus = require('../../controllers/data/bus'); +const publicity = require('../../controllers/data/publicity'); module.exports = function (app, router, opts) { @@ -131,4 +132,15 @@ module.exports = function (app, router, opts) { app.fs.api.logAttr['DEL/bus/car/:carId'] = { content: '删除公交车辆数据', visible: false }; router.del('/bus/car/:carId', bus.carDel); //bus END + + //publicity + app.fs.api.logAttr['GET/publicity'] = { content: '获取宣传数据', visible: true }; + router.get('/publicity', publicity.publicityGet); + + app.fs.api.logAttr['PUT/publicity'] = { content: '编辑宣传数据', visible: true }; + router.put('/publicity', publicity.publicityEdit); + + app.fs.api.logAttr['DEL/publicity/:publicityId'] = { content: '删除宣传数据', visible: false }; + router.del('/publicity/:publicityId', publicity.publicityDel); + //publicity END }; diff --git a/api/config.js b/api/config.js index f9b5cf1e..48de62b1 100644 --- a/api/config.js +++ b/api/config.js @@ -11,11 +11,22 @@ const dev = process.env.NODE_ENV == 'development'; args.option(['p', 'port'], '启动端口'); args.option(['g', 'pg'], 'postgre服务URL'); args.option(['f', 'fileHost'], '文件中心本地化存储: WebApi 服务器地址(必填), 该服务器提供文件上传Web服务'); +// 七牛云存储参数 +args.option('qnak', 'qiniuAccessKey'); +args.option('qnsk', 'qiniuSecretKey'); +args.option('qnbkt', 'qiniuBucket'); +args.option('qndmn', 'qiniuDomain'); +// const flags = args.parse(process.argv); const FS_UNIAPP_DB = process.env.FS_UNIAPP_DB || flags.pg; -const FS_UNIAPP_FC_LOCAL_SVR_ORIGIN = process.env.FS_UNIAPP_FC_LOCAL_SVR_ORIGIN || flags.fileHost; +const LOCAL_SVR_ORIGIN = process.env.LOCAL_SVR_ORIGIN || flags.fileHost; + +const QINIU_DOMAIN_QNDMN_RESOURCE = process.env.QINIU_DOMAIN_QNDMN_RESOURCE || flags.qndmn; +const QINIU_BUCKET_RESOURCE = process.env.QINIU_BUCKET_RESOURCE || flags.qnbkt; +const QINIU_AK = process.env.QINIU_AK || flags.qnak; +const QINIU_SK = process.env.QINIU_SK || flags.qnsk; if (!FS_UNIAPP_DB) { console.log('缺少启动参数,异常退出'); @@ -31,10 +42,16 @@ const product = { entry: require('@fs/attachment').entry, opts: { local: { - origin: FS_UNIAPP_FC_LOCAL_SVR_ORIGIN || `http://localhost:${flags.port || 8080}`, + origin: LOCAL_SVR_ORIGIN || `http://localhost:${flags.port || 8080}`, rootPath: 'static', childPath: 'upload', }, + qiniu: { + domain: QINIU_DOMAIN_QNDMN_RESOURCE, + bucket: QINIU_BUCKET_RESOURCE, + accessKey: QINIU_AK, + secretKey: QINIU_SK + }, maxSize: 104857600, // 100M } }, { diff --git a/api/log/development.log b/api/log/development.log index 8fac17c9..d2e1a976 100644 --- a/api/log/development.log +++ b/api/log/development.log @@ -7349,3 +7349,1188 @@ 2022-07-25 15:55:41.428 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined 2022-07-25 15:56:27.976 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined 2022-07-25 15:57:02.645 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined +2022-07-25 16:21:42.708 - debug: [FS-LOGGER] Init. +2022-07-25 16:21:42.805 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-25 16:21:42.806 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-25 17:09:56.999 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:175:14\n' + + 'From previous event:\n' + + ' at Pool._testOnBorrow (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:170:7)\n' + + ' at Pool._dispense (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:240:14)\n' + + ' at Pool.acquire (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:455:10)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:292:24\n' + + 'From previous event:\n' + + ' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:557:34\n' + + 'From previous event:\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:457:64\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\retry-as-promised\\index.js:39:21\n' + + ' at retryAsPromised (c:\\_WorkCode\\四好公路\\api\\node_modules\\retry-as-promised\\index.js:29:10)\n' + + ' at Sequelize.query (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:457:28)\n' + + ' at QueryInterface.select (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\query-interface.js:1104:27)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\model.js:1598:34\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at Function.findAll (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\model.js:1595:8)\n' + + ' at Function.findOne (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\model.js:1752:17)\n' + + ' at authorizeToken (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:75:61)\n' + + ' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:125:36)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' + + ' at new Promise ()\n' + + ' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' + + ' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' + + ' at new Promise ()\n' + + ' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' + + ' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at createGenerator (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-convert\\index.js:24:16)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:10:03.004 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:175:14\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:10:05.235 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool.destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:544:10)\n' + + ' at ConnectionManager._determineConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:321:40)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:39\n' + + 'From previous event:\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:10\n' + + 'From previous event:\n' + + ' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:557:34\n' + + 'From previous event:\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:457:64\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\retry-as-promised\\index.js:39:21\n' + + ' at retryAsPromised (c:\\_WorkCode\\四好公路\\api\\node_modules\\retry-as-promised\\index.js:29:10)\n' + + ' at Sequelize.query (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:457:28)\n' + + ' at QueryInterface.select (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\query-interface.js:1104:27)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\model.js:1598:34\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at Function.findAll (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\model.js:1595:8)\n' + + ' at Function.findOne (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\model.js:1752:17)\n' + + ' at authorizeToken (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:75:61)\n' + + ' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:125:36)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' + + ' at new Promise ()\n' + + ' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' + + ' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' + + ' at new Promise ()\n' + + ' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' + + ' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at createGenerator (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-convert\\index.js:24:16)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:10:06.770 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:175:14\n' + + 'From previous event:\n' + + ' at Pool._testOnBorrow (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:170:7)\n' + + ' at Pool._dispense (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:240:14)\n' + + ' at Pool.acquire (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:455:10)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:292:24\n' + + 'From previous event:\n' + + ' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:557:34\n' + + 'From previous event:\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:457:64\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\retry-as-promised\\index.js:39:21\n' + + ' at retryAsPromised (c:\\_WorkCode\\四好公路\\api\\node_modules\\retry-as-promised\\index.js:29:10)\n' + + ' at Sequelize.query (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:457:28)\n' + + ' at QueryInterface.select (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\query-interface.js:1104:27)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\model.js:1598:34\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at Function.findAll (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\model.js:1595:8)\n' + + ' at Function.findOne (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\model.js:1752:17)\n' + + ' at authorizeToken (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:75:61)\n' + + ' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:125:36)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' + + ' at new Promise ()\n' + + ' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' + + ' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' + + ' at new Promise ()\n' + + ' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' + + ' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at createGenerator (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-convert\\index.js:24:16)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:10:11.690 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool._evict (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:380:14)\n' + + ' at Timeout._onTimeout (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:390:14)\n' + + ' at listOnTimeout (internal/timers.js:554:17)\n' + + ' at processTimers (internal/timers.js:497:7)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:10:16.625 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool._evict (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:380:14)\n' + + ' at Timeout._onTimeout (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:390:14)\n' + + ' at listOnTimeout (internal/timers.js:554:17)\n' + + ' at processTimers (internal/timers.js:497:7)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:10:18.165 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool._evict (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:380:14)\n' + + ' at Timeout._onTimeout (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:390:14)\n' + + ' at listOnTimeout (internal/timers.js:554:17)\n' + + ' at processTimers (internal/timers.js:497:7)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:10:29.698 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool.destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:544:10)\n' + + ' at ConnectionManager._determineConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:321:40)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:39\n' + + 'From previous event:\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:10\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' + + ' at Transaction.prepareEnvironment (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\transaction.js:125:60)\n' + + ' at Sequelize.transaction (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:996:43)\n' + + ' at login (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\auth\\index.js:8:45)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\business-rest.js:45:16\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' + + ' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:145:19)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' + + ' at new Promise ()\n' + + ' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' + + ' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:10:43.720 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool.destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:544:10)\n' + + ' at ConnectionManager._determineConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:321:40)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:39\n' + + 'From previous event:\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:10\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' + + ' at Transaction.prepareEnvironment (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\transaction.js:125:60)\n' + + ' at Sequelize.transaction (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:996:43)\n' + + ' at login (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\auth\\index.js:8:45)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\business-rest.js:45:16\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' + + ' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:145:19)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' + + ' at new Promise ()\n' + + ' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' + + ' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:11:19.053 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool._evict (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:380:14)\n' + + ' at Timeout._onTimeout (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:390:14)\n' + + ' at listOnTimeout (internal/timers.js:554:17)\n' + + ' at processTimers (internal/timers.js:497:7)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:11:29.386 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool._evict (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:380:14)\n' + + ' at Timeout._onTimeout (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:390:14)\n' + + ' at listOnTimeout (internal/timers.js:554:17)\n' + + ' at processTimers (internal/timers.js:497:7)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:11:55.692 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool.destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:544:10)\n' + + ' at ConnectionManager._determineConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:321:40)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:39\n' + + 'From previous event:\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:10\n' + + 'From previous event:\n' + + ' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:557:34\n' + + 'From previous event:\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:457:64\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\retry-as-promised\\index.js:39:21\n' + + ' at retryAsPromised (c:\\_WorkCode\\四好公路\\api\\node_modules\\retry-as-promised\\index.js:29:10)\n' + + ' at Sequelize.query (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:457:28)\n' + + ' at QueryInterface.select (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\query-interface.js:1104:27)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\model.js:1598:34\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at Function.findAll (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\model.js:1595:8)\n' + + ' at Function.findOne (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\model.js:1752:17)\n' + + ' at authorizeToken (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:75:61)\n' + + ' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:125:36)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' + + ' at new Promise ()\n' + + ' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' + + ' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' + + ' at new Promise ()\n' + + ' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' + + ' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at createGenerator (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-convert\\index.js:24:16)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:11:58.528 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool._evict (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:380:14)\n' + + ' at Timeout._onTimeout (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:390:14)\n' + + ' at listOnTimeout (internal/timers.js:554:17)\n' + + ' at processTimers (internal/timers.js:497:7)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:12:06.606 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool._evict (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:380:14)\n' + + ' at Timeout._onTimeout (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:390:14)\n' + + ' at listOnTimeout (internal/timers.js:554:17)\n' + + ' at processTimers (internal/timers.js:497:7)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:12:37.763 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool.destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:544:10)\n' + + ' at ConnectionManager._determineConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:321:40)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:39\n' + + 'From previous event:\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:10\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' + + ' at Transaction.prepareEnvironment (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\transaction.js:125:60)\n' + + ' at Sequelize.transaction (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:996:43)\n' + + ' at login (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\auth\\index.js:8:45)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\business-rest.js:45:16\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' + + ' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:145:19)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' + + ' at new Promise ()\n' + + ' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' + + ' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:12:45.690 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool.destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:544:10)\n' + + ' at ConnectionManager._determineConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:321:40)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:39\n' + + 'From previous event:\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:10\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' + + ' at Transaction.prepareEnvironment (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\transaction.js:125:60)\n' + + ' at Sequelize.transaction (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:996:43)\n' + + ' at login (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\auth\\index.js:8:45)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\business-rest.js:45:16\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' + + ' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:145:19)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' + + ' at new Promise ()\n' + + ' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' + + ' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:12:50.485 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool._evict (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:380:14)\n' + + ' at Timeout._onTimeout (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:390:14)\n' + + ' at listOnTimeout (internal/timers.js:554:17)\n' + + ' at processTimers (internal/timers.js:497:7)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:12:58.813 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool.destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:544:10)\n' + + ' at ConnectionManager._determineConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:321:40)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:39\n' + + 'From previous event:\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:10\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' + + ' at Transaction.prepareEnvironment (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\transaction.js:125:60)\n' + + ' at Sequelize.transaction (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:996:43)\n' + + ' at login (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\auth\\index.js:8:45)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\business-rest.js:45:16\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' + + ' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:145:19)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' + + ' at new Promise ()\n' + + ' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' + + ' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:13:02.326 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool._evict (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:380:14)\n' + + ' at Timeout._onTimeout (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:390:14)\n' + + ' at listOnTimeout (internal/timers.js:554:17)\n' + + ' at processTimers (internal/timers.js:497:7)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:13:06.362 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool._evict (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:380:14)\n' + + ' at Timeout._onTimeout (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:390:14)\n' + + ' at listOnTimeout (internal/timers.js:554:17)\n' + + ' at processTimers (internal/timers.js:497:7)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:13:15.631 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool.destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:544:10)\n' + + ' at ConnectionManager._determineConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:321:40)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:39\n' + + 'From previous event:\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:10\n' + + 'From previous event:\n' + + ' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:557:34\n' + + 'From previous event:\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:457:64\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\retry-as-promised\\index.js:39:21\n' + + ' at retryAsPromised (c:\\_WorkCode\\四好公路\\api\\node_modules\\retry-as-promised\\index.js:29:10)\n' + + ' at Sequelize.query (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:457:28)\n' + + ' at QueryInterface.select (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\query-interface.js:1104:27)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\model.js:1598:34\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at Function.findAll (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\model.js:1595:8)\n' + + ' at Function.findOne (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\model.js:1752:17)\n' + + ' at authorizeToken (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:75:61)\n' + + ' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:125:36)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' + + ' at new Promise ()\n' + + ' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' + + ' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' + + ' at new Promise ()\n' + + ' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' + + ' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at createGenerator (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-convert\\index.js:24:16)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} +2022-07-25 17:13:19.876 - error: [FS-ERRHD] +{ + message: 'connect ETIMEDOUT 10.8.30.32:5432', + stack: 'SequelizeConnectionError: connect ETIMEDOUT 10.8.30.32:5432\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' + + ' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' + + ' at Connection.emit (events.js:314:20)\n' + + ' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' + + ' at Socket.emit (events.js:314:20)\n' + + ' at emitErrorNT (internal/streams/destroy.js:92:8)\n' + + ' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' + + ' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' + + 'From previous event:\n' + + ' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' + + 'From previous event:\n' + + ' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' + + ' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' + + ' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' + + ' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' + + ' at Pool._destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:148:10)\n' + + ' at Pool.destroy (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:544:10)\n' + + ' at ConnectionManager._determineConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:321:40)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:39\n' + + 'From previous event:\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:293:10\n' + + ' at processImmediate (internal/timers.js:461:21)\n' + + ' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' + + 'From previous event:\n' + + ' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' + + ' at Transaction.prepareEnvironment (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\transaction.js:125:60)\n' + + ' at Sequelize.transaction (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:996:43)\n' + + ' at login (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\auth\\index.js:8:45)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\business-rest.js:45:16\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' + + ' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:145:19)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' + + ' at new Promise ()\n' + + ' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' + + ' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' + + ' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' + + ' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' + + ' at Generator.next ()\n' + + ' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)', + name: 'SequelizeConnectionError', + parent: { + errno: 'ETIMEDOUT', + code: 'ETIMEDOUT', + syscall: 'connect', + address: '10.8.30.32', + port: 5432 + }, + original: { '$ref': '$["parent"]' }, + __stackCleaned__: true +} diff --git a/api/sequelize-automate.config.js b/api/sequelize-automate.config.js index f1d34d04..c93074d5 100644 --- a/api/sequelize-automate.config.js +++ b/api/sequelize-automate.config.js @@ -27,7 +27,7 @@ module.exports = { typesDir: 'models', // 指定输出 TypeScript 类型定义的文件目录,只有 TypeScript / Midway 等会有类型定义 emptyDir: false, // !!! 谨慎操作 生成 models 之前是否清空 `dir` 以及 `typesDir` tables: null, // 指定生成哪些表的 models,如 ['user', 'user_post'];如果为 null,则忽略改属性 - skipTables: ['report'], // 指定跳过哪些表的 models,如 ['user'];如果为 null,则忽略改属性 + skipTables: ['report', 'publicity'], // 指定跳过哪些表的 models,如 ['user'];如果为 null,则忽略改属性 tsNoCheck: false, // 是否添加 `@ts-nocheck` 注释到 models 文件中 ignorePrefix: [], // 生成的模型名称忽略的前缀,因为 项目中有以下表名是以 t_ 开头的,在实际模型中不需要, 可以添加多个 [ 't_data_', 't_',] ,长度较长的 前缀放前面 attrLength: false, // 在生成模型的字段中 是否生成 如 var(128)这种格式,公司一般使用 String ,则配置为 false