lumber
lumber copied to clipboard
test-panel docker-compose app fails to start with a sequelize exception
Expected behavior
My test-panel backend app to start
Actual behavior
The docker image built, but the entrypoint error'd out
Failure Logs
These are the logs when the container fails to start
> [email protected] start /usr/src/app
> node ./server.js
Model creation error: Error: A column called 'id' was added to the attributes of '{{ table_name }}' but not marked with 'primaryKey: true'
/usr/src/app/node_modules/sequelize/lib/associations/mixin.js:18
throw new Error(`${this.name}.hasMany called with something that's not a subclass of Sequelize.Model`);
^
Error: telechargePerformances.hasMany called with something that's not a subclass of Sequelize.Model
at Function.hasMany (/usr/src/app/node_modules/sequelize/lib/associations/mixin.js:18:13)
at Function.TelechargePerformances.associate (/usr/src/app/models/telecharge-performances.js:39:28)
at /usr/src/app/models/index.js:39:19
at Array.forEach (<anonymous>)
at Object.<anonymous> (/usr/src/app/models/index.js:37:17)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/usr/src/app/routes/accounts.js:3:22)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at /usr/src/app/node_modules/require-all/index.js:56:46
at Array.forEach (<anonymous>)
at requireAll (/usr/src/app/node_modules/require-all/index.js:34:9)
at Object.<anonymous> (/usr/src/app/app.js:47:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/usr/src/app/server.js:2:13)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node ./server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-04-08T20_02_32_310Z-debug.log
Context
Nothing all that remarkable about my set up here.
- Lumber Package Version: Not sure, I used the forestadmin/lumbar docker image
- Database Dialect: Postgres
- Database Version: 12.2