Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible incompatibility with sails-postgresql #85

Open
siderlan opened this issue Jun 8, 2018 · 3 comments
Open

Possible incompatibility with sails-postgresql #85

siderlan opened this issue Jun 8, 2018 · 3 comments

Comments

@siderlan
Copy link

siderlan commented Jun 8, 2018

Hi,

I'm using sails 1.0.2 and sails-postgresql 1.0.1. So when it tries to reload the server an exception has been thrown in module parley/lib/private/Deferred.js:313 with the following stack trace:

Error: Callback was already called.
at /my-project/node_modules/async/dist/async.js:844:36
at /my-project/sails-hook-orm/lib/initialize.js:457:27
at /my-project/node_modules/sails-hook-orm/lib/build-ontology-and-run-auto-migrations.js:133:25
at afterMigrate (/my-project/node_modules/waterline-utils/lib/auto-migrations/private/run-alter-strategy/index.js:209:14)
at /my-project/node_modules/async/dist/async.js:952:25
at iteratorCallback (/my-project/node_modules/async/dist/async.js:995:17)
at /my-project/node_modules/async/dist/async.js:847:20
at findCallback (/my-project/node_modules/waterline-utils/lib/auto-migrations/private/run-alter-strategy/index.js:116:18)
at proceedToFinalAfterExecLC (/my-project/node_modules/parley/lib/private/Deferred.js:1179:16)
at proceedToInterceptsAndChecks (/my-project/node_modules/parley/lib/private/Deferred.js:909:12)
at proceedToAfterExecSpinlocks (/my-project/node_modules/parley/lib/private/Deferred.js:841:10)
at /my-project/node_modules/parley/lib/private/Deferred.js:303:7
at Deferred._.extend._WLModel [as _handleExec] (/my-project/node_modules/waterline/lib/waterline/methods/find.js:214:20)
at Deferred.exec (/my-project/node_modules/parley/lib/private/Deferred.js:286:10)
at simultaneouslyMigrateEachModel (/my-project/node_modules/waterline-utils/lib/auto-migrations/private/run-alter-strategy/index.js:95:6)
at /my-project/node_modules/async/dist/async.js:3047:20
at eachOfArrayLike (/my-project/node_modules/async/dist/async.js:1002:13)
at eachOf (/my-project/node_modules/async/dist/async.js:1052:9)
at Object.eachLimit (/my-project/node_modules/async/dist/async.js:3111:7)
at runAlterStrategy (/my-project/node_modules/waterline-utils/lib/auto-migrations/private/run-alter-strategy/index.js:40:9)
at Object.runAutoMigrations [as autoMigrations] (/my-project/node_modules/waterline-utils/lib/auto-migrations/index.js:45:19)
at _afterInitializingWaterline (/my-project/node_modules/sails-hook-orm/lib/build-ontology-and-run-auto-migrations.js:132:20)
at /my-project/node_modules/waterline/lib/waterline.js:722:14
at /my-project/node_modules/async/dist/async.js:952:25
at iteratorCallback (/my-project/node_modules/async/dist/async.js:997:17)
at /my-project/node_modules/async/dist/async.js:847:20
at Immediate.done (/my-project/node_modules/sails-postgresql/lib/adapter.js:71:16)
at runCallback (timers.js:763:18)

@tikijian
Copy link

+1

@prcs
Copy link

prcs commented Aug 22, 2018

MySQL too

@elesdoar
Copy link

This is partial solution, but for fix it, disable archiveModelIdentity model setting.

https://sailsjs.com/documentation/reference/configuration/sails-config-models

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants