Closed yianzhang14 closed 1 month ago
I merged the patch and pushed to production. On first deployment I got
> node ./production/tools/generate-swagger.js
supervisor server is up, listening to port: 3030
/job_supervisor/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:165
return fail(new QueryFailedError_1.QueryFailedError(query, parameters, err));
^
QueryFailedError: Cannot enqueue Query after invoking quit.
at Query.<anonymous> (/job_supervisor/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:165:37)
at Query.<anonymous> (/job_supervisor/node_modules/mysql/lib/Connection.js:526:10)
at Query._callback (/job_supervisor/node_modules/mysql/lib/Connection.js:488:16)
at Sequence.end (/job_supervisor/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
at /job_supervisor/node_modules/mysql/lib/protocol/Protocol.js:236:14
at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
query: 'ALTER TABLE `gits` CHANGE `deletedAt` `deletedAt` bigint(6) NULL',
parameters: undefined,
driverError: Error: Cannot enqueue Query after invoking quit.
at Protocol._validateEnqueue (/job_supervisor/node_modules/mysql/lib/protocol/Protocol.js:215:16)
at Protocol._enqueue (/job_supervisor/node_modules/mysql/lib/protocol/Protocol.js:138:13)
at PoolConnection.query (/job_supervisor/node_modules/mysql/lib/Connection.js:198:25)
at /job_supervisor/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:154:36
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 'PROTOCOL_ENQUEUE_AFTER_QUIT',
fatal: false
},
code: 'PROTOCOL_ENQUEUE_AFTER_QUIT',
fatal: false
}
Node.js v18.18.0
which also appears to stem from typeorm not initializing (let me know if I'm wrong). However, that container crashed and then the next container worked perfectly.
I think you might just have to run everything twice on a new database if you're trying to reformat it.
I think this happened last time as well with the new version.
Caching currently turned off
With a new update to the CIGI servers that upgraded the docker version to 26.1.4, data source initialization no longer works correctly on server initialization, giving the error:
Currently, as a temporary fix, the typeorm caching mechanism was disabled, but it is unclear why exactly this occurred, as commit
64e3c83fe7224e054b3a6ee491f6d270db175cc5
still functions as intended with the typeorm caching.