Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +------------------+
- 4 rows in set (0.00 sec)
- mysql> quit
- Bye
- (base) lols-MacBook-Pro:lottery socrates$ mysql -u root -p
- Enter password:
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
- (base) lols-MacBook-Pro:lottery socrates$ sails lift
- info: Starting app...
- info: Initializing hook... (`api/hooks/custom`)
- info: Initializing `apianalytics` hook... (requests to monitored routes will be logged!)
- info: ·• Auto-migrating... (alter)
- info: Hold tight, this could take a moment.
- (node:90510) [DEP0095] DeprecationWarning: timers.enroll() is deprecated. Please use setTimeout instead.
- (node:90510) [DEP0096] DeprecationWarning: timers.unenroll() is deprecated. Please use clearTimeout instead.
- When attempting to perform the `alter` auto-migration strategy on model `play`, Sails encountered an unexpected error when performing the `drop` step. This could have happened for a number of different reasons: be it because your database went offline, because of a db permission issue, because of some database-specific edge case, or (more rarely) it could even be due to some kind of bug in this adapter.
- Error details:
- ```
- { error:
- { Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
- at Handshake.Sequence._packetToError (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/sequences/Sequence.js:52:14)
- at Handshake.ErrorPacket (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/sequences/Handshake.js:130:18)
- at Protocol._parsePacket (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Protocol.js:279:23)
- at Parser.write (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Parser.js:76:12)
- at Protocol.write (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Protocol.js:39:16)
- at Socket.<anonymous> (/Users/socrates/Projects/lottery/node_modules/mysql/lib/Connection.js:103:28)
- at Socket.emit (events.js:182:13)
- at Socket.EventEmitter.emit (domain.js:442:20)
- at addChunk (_stream_readable.js:283:12)
- at readableAddChunk (_stream_readable.js:264:11)
- at Socket.Readable.push (_stream_readable.js:219:10)
- at TCP.onread (net.js:639:20)
- --------------------
- at Protocol._enqueue (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Protocol.js:145:48)
- at Protocol.handshake (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Protocol.js:52:23)
- at PoolConnection.connect (/Users/socrates/Projects/lottery/node_modules/mysql/lib/Connection.js:130:18)
- at Pool.getConnection (/Users/socrates/Projects/lottery/node_modules/mysql/lib/Pool.js:48:16)
- at Object.getConnection (/Users/socrates/Projects/lottery/node_modules/machinepack-mysql/lib/get-connection.js:78:25)
- at wrapper (/Users/socrates/Projects/lottery/node_modules/@sailshq/lodash/lib/index.js:3275:19)
- at Deferred.parley.retry [as _handleExec] (/Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1076:19)
- at Deferred.exec (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:286:10)
- at Deferred.switch (/Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1469:16)
- at spawnConnection (/Users/socrates/Projects/lottery/node_modules/sails-mysql/helpers/private/connection/spawn-connection.js:29:10)
- at Object.spawnOrLeaseConnection (/Users/socrates/Projects/lottery/node_modules/sails-mysql/helpers/private/connection/spawn-or-lease-connection.js:23:3)
- at Object.drop (/Users/socrates/Projects/lottery/node_modules/sails-mysql/helpers/drop.js:71:24)
- at wrapper (/Users/socrates/Projects/lottery/node_modules/@sailshq/lodash/lib/index.js:3275:19)
- at Deferred.parley.retry [as _handleExec] (/Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1076:19)
- at Deferred.exec (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:286:10)
- at Deferred.switch (/Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1469:16)
- at Object.drop (/Users/socrates/Projects/lottery/node_modules/sails-mysql/lib/adapter.js:434:16)
- at findCallback (/Users/socrates/Projects/lottery/node_modules/waterline-utils/lib/auto-migrations/private/run-alter-strategy/index.js:132:17)
- at proceedToFinalAfterExecLC (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:1149:14)
- at proceedToInterceptsAndChecks (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:909:12)
- at proceedToAfterExecSpinlocks (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:841:10)
- at /Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:303:7
- at _afterFetchingRecords (/Users/socrates/Projects/lottery/node_modules/waterline/lib/waterline/methods/find.js:260:20)
- at _afterGettingPopulatedPhysicalRecords (/Users/socrates/Projects/lottery/node_modules/waterline/lib/waterline/utils/query/help-find.js:584:23)
- at /Users/socrates/Projects/lottery/node_modules/waterline/lib/waterline/utils/query/help-find.js:148:18
- at Object.error (/Users/socrates/Projects/lottery/node_modules/sails-mysql/lib/adapter.js:187:18)
- at /Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1505:43
- at proceedToFinalAfterExecLC (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:1149:14)
- code: 'ER_NOT_SUPPORTED_AUTH_MODE',
- errno: 1251,
- sqlMessage:
- 'Client does not support authentication protocol requested by server; consider upgrading MySQL client',
- sqlState: '08004',
- fatal: true },
- meta:
- { host: 'localhost',
- port: 3306,
- schema: true,
- adapter: 'sails-mysql',
- url: 'mysql://root:0243570576@localhost:3306/ussd',
- identity: 'default' } }
- ```
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
- Some development data was recovered (see `.tmp/automigration.play.9187.log`). Any existing `play` records were deleted, but your data from OTHER models (including any relationships tracked in foreign keys and join tables) might still be intact. If you care about recovering any of that data, be sure to back it up now before you continue.
- The best way to proceed from here is to clear out all of your old development data and start fresh; allowing Sails to generate new tables/collections(s) to reflect your app's models. (In other words, to DELETE ALL EXISTING DATA stored in models.)
- To do that, re-lift your app using the `drop` strategy:
- ```
- sails lift --drop
- ```
- After doing that once, you should be able to go about your business as usual.
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
- For more about auto-migrations, visit:
- https://sailsjs.com/docs/concepts/models-and-orm/model-settings#?migrate
- On Tue Dec 25 2018 09:13:07 GMT+0000 (Greenwich Mean Time), Sails attempted to auto-migrate
- using the `alter` strategy, but was unable to transform all of your
- existing development data automatically. This temporary file was created
- for your convenience, as a way of holding on to the unmigrated records that
- were originally stored in the `play` model.
- (Otherwise, this data would have been lost forever.)
- ================================
- Recovered data (`play`):
- ================================
- []
- --
- For help with auto-migrations, visit:
- http://sailsjs.com/docs/concepts/models-and-orm/model-settings#?migrate
- For questions, additional resources, or to talk to a human, visit:
- http://sailsjs.com/support
- When attempting to perform the `alter` auto-migration strategy on model `user`, Sails encountered an unexpected error when performing the `drop` step. This could have happened for a number of different reasons: be it because your database went offline, because of a db permission issue, because of some database-specific edge case, or (more rarely) it could even be due to some kind of bug in this adapter.
- Error details:
- ```
- { error:
- { Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
- at Handshake.Sequence._packetToError (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/sequences/Sequence.js:52:14)
- at Handshake.ErrorPacket (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/sequences/Handshake.js:130:18)
- at Protocol._parsePacket (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Protocol.js:279:23)
- at Parser.write (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Parser.js:76:12)
- at Protocol.write (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Protocol.js:39:16)
- at Socket.<anonymous> (/Users/socrates/Projects/lottery/node_modules/mysql/lib/Connection.js:103:28)
- at Socket.emit (events.js:182:13)
- at Socket.EventEmitter.emit (domain.js:442:20)
- at addChunk (_stream_readable.js:283:12)
- at readableAddChunk (_stream_readable.js:264:11)
- at Socket.Readable.push (_stream_readable.js:219:10)
- at TCP.onread (net.js:639:20)
- --------------------
- at Protocol._enqueue (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Protocol.js:145:48)
- at Protocol.handshake (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Protocol.js:52:23)
- at PoolConnection.connect (/Users/socrates/Projects/lottery/node_modules/mysql/lib/Connection.js:130:18)
- at Pool.getConnection (/Users/socrates/Projects/lottery/node_modules/mysql/lib/Pool.js:48:16)
- at Object.getConnection (/Users/socrates/Projects/lottery/node_modules/machinepack-mysql/lib/get-connection.js:78:25)
- at wrapper (/Users/socrates/Projects/lottery/node_modules/@sailshq/lodash/lib/index.js:3275:19)
- at Deferred.parley.retry [as _handleExec] (/Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1076:19)
- at Deferred.exec (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:286:10)
- at Deferred.switch (/Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1469:16)
- at spawnConnection (/Users/socrates/Projects/lottery/node_modules/sails-mysql/helpers/private/connection/spawn-connection.js:29:10)
- at Object.spawnOrLeaseConnection (/Users/socrates/Projects/lottery/node_modules/sails-mysql/helpers/private/connection/spawn-or-lease-connection.js:23:3)
- at Object.drop (/Users/socrates/Projects/lottery/node_modules/sails-mysql/helpers/drop.js:71:24)
- at wrapper (/Users/socrates/Projects/lottery/node_modules/@sailshq/lodash/lib/index.js:3275:19)
- at Deferred.parley.retry [as _handleExec] (/Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1076:19)
- at Deferred.exec (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:286:10)
- at Deferred.switch (/Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1469:16)
- at Object.drop (/Users/socrates/Projects/lottery/node_modules/sails-mysql/lib/adapter.js:434:16)
- at findCallback (/Users/socrates/Projects/lottery/node_modules/waterline-utils/lib/auto-migrations/private/run-alter-strategy/index.js:132:17)
- at proceedToFinalAfterExecLC (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:1149:14)
- at proceedToInterceptsAndChecks (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:909:12)
- at proceedToAfterExecSpinlocks (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:841:10)
- at /Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:303:7
- at _afterFetchingRecords (/Users/socrates/Projects/lottery/node_modules/waterline/lib/waterline/methods/find.js:260:20)
- at _afterGettingPopulatedPhysicalRecords (/Users/socrates/Projects/lottery/node_modules/waterline/lib/waterline/utils/query/help-find.js:584:23)
- at /Users/socrates/Projects/lottery/node_modules/waterline/lib/waterline/utils/query/help-find.js:148:18
- at Object.error (/Users/socrates/Projects/lottery/node_modules/sails-mysql/lib/adapter.js:187:18)
- at /Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1505:43
- at proceedToFinalAfterExecLC (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:1149:14)
- code: 'ER_NOT_SUPPORTED_AUTH_MODE',
- errno: 1251,
- sqlMessage:
- 'Client does not support authentication protocol requested by server; consider upgrading MySQL client',
- sqlState: '08004',
- fatal: true },
- meta:
- { host: 'localhost',
- port: 3306,
- schema: true,
- adapter: 'sails-mysql',
- url: 'mysql://root:0243570576@localhost:3306/ussd',
- identity: 'default' } }
- ```
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
- Some development data was recovered (see `.tmp/automigration.user.9187.log`). Any existing `user` records were deleted, but your data from OTHER models (including any relationships tracked in foreign keys and join tables) might still be intact. If you care about recovering any of that data, be sure to back it up now before you continue.
- The best way to proceed from here is to clear out all of your old development data and start fresh; allowing Sails to generate new tables/collections(s) to reflect your app's models. (In other words, to DELETE ALL EXISTING DATA stored in models.)
- To do that, re-lift your app using the `drop` strategy:
- ```
- sails lift --drop
- ```
- After doing that once, you should be able to go about your business as usual.
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
- For more about auto-migrations, visit:
- https://sailsjs.com/docs/concepts/models-and-orm/model-settings#?migrate
- On Tue Dec 25 2018 09:13:07 GMT+0000 (Greenwich Mean Time), Sails attempted to auto-migrate
- using the `alter` strategy, but was unable to transform all of your
- existing development data automatically. This temporary file was created
- for your convenience, as a way of holding on to the unmigrated records that
- were originally stored in the `user` model.
- (Otherwise, this data would have been lost forever.)
- ================================
- Recovered data (`user`):
- ================================
- []
- --
- For help with auto-migrations, visit:
- http://sailsjs.com/docs/concepts/models-and-orm/model-settings#?migrate
- For questions, additional resources, or to talk to a human, visit:
- http://sailsjs.com/support
- When attempting to perform the `alter` auto-migration strategy on model `ussd_sessions`, Sails encountered an unexpected error when performing the `drop` step. This could have happened for a number of different reasons: be it because your database went offline, because of a db permission issue, because of some database-specific edge case, or (more rarely) it could even be due to some kind of bug in this adapter.
- Error details:
- ```
- { error:
- { Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
- at Handshake.Sequence._packetToError (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/sequences/Sequence.js:52:14)
- at Handshake.ErrorPacket (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/sequences/Handshake.js:130:18)
- at Protocol._parsePacket (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Protocol.js:279:23)
- at Parser.write (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Parser.js:76:12)
- at Protocol.write (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Protocol.js:39:16)
- at Socket.<anonymous> (/Users/socrates/Projects/lottery/node_modules/mysql/lib/Connection.js:103:28)
- at Socket.emit (events.js:182:13)
- at Socket.EventEmitter.emit (domain.js:442:20)
- at addChunk (_stream_readable.js:283:12)
- at readableAddChunk (_stream_readable.js:264:11)
- at Socket.Readable.push (_stream_readable.js:219:10)
- at TCP.onread (net.js:639:20)
- --------------------
- at Protocol._enqueue (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Protocol.js:145:48)
- at Protocol.handshake (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Protocol.js:52:23)
- at PoolConnection.connect (/Users/socrates/Projects/lottery/node_modules/mysql/lib/Connection.js:130:18)
- at Pool.getConnection (/Users/socrates/Projects/lottery/node_modules/mysql/lib/Pool.js:48:16)
- at Object.getConnection (/Users/socrates/Projects/lottery/node_modules/machinepack-mysql/lib/get-connection.js:78:25)
- at wrapper (/Users/socrates/Projects/lottery/node_modules/@sailshq/lodash/lib/index.js:3275:19)
- at Deferred.parley.retry [as _handleExec] (/Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1076:19)
- at Deferred.exec (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:286:10)
- at Deferred.switch (/Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1469:16)
- at spawnConnection (/Users/socrates/Projects/lottery/node_modules/sails-mysql/helpers/private/connection/spawn-connection.js:29:10)
- at Object.spawnOrLeaseConnection (/Users/socrates/Projects/lottery/node_modules/sails-mysql/helpers/private/connection/spawn-or-lease-connection.js:23:3)
- at Object.drop (/Users/socrates/Projects/lottery/node_modules/sails-mysql/helpers/drop.js:71:24)
- at wrapper (/Users/socrates/Projects/lottery/node_modules/@sailshq/lodash/lib/index.js:3275:19)
- at Deferred.parley.retry [as _handleExec] (/Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1076:19)
- at Deferred.exec (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:286:10)
- at Deferred.switch (/Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1469:16)
- at Object.drop (/Users/socrates/Projects/lottery/node_modules/sails-mysql/lib/adapter.js:434:16)
- at findCallback (/Users/socrates/Projects/lottery/node_modules/waterline-utils/lib/auto-migrations/private/run-alter-strategy/index.js:132:17)
- at proceedToFinalAfterExecLC (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:1149:14)
- at proceedToInterceptsAndChecks (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:909:12)
- at proceedToAfterExecSpinlocks (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:841:10)
- at /Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:303:7
- at _afterFetchingRecords (/Users/socrates/Projects/lottery/node_modules/waterline/lib/waterline/methods/find.js:260:20)
- at _afterGettingPopulatedPhysicalRecords (/Users/socrates/Projects/lottery/node_modules/waterline/lib/waterline/utils/query/help-find.js:584:23)
- at /Users/socrates/Projects/lottery/node_modules/waterline/lib/waterline/utils/query/help-find.js:148:18
- at Object.error (/Users/socrates/Projects/lottery/node_modules/sails-mysql/lib/adapter.js:187:18)
- at /Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1505:43
- at proceedToFinalAfterExecLC (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:1149:14)
- code: 'ER_NOT_SUPPORTED_AUTH_MODE',
- errno: 1251,
- sqlMessage:
- 'Client does not support authentication protocol requested by server; consider upgrading MySQL client',
- sqlState: '08004',
- fatal: true },
- meta:
- { host: 'localhost',
- port: 3306,
- schema: true,
- adapter: 'sails-mysql',
- url: 'mysql://root:0243570576@localhost:3306/ussd',
- identity: 'default' } }
- ```
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
- Some development data was recovered (see `.tmp/automigration.ussd_sessions.9187.log`). Any existing `ussd_sessions` records were deleted, but your data from OTHER models (including any relationships tracked in foreign keys and join tables) might still be intact. If you care about recovering any of that data, be sure to back it up now before you continue.
- The best way to proceed from here is to clear out all of your old development data and start fresh; allowing Sails to generate new tables/collections(s) to reflect your app's models. (In other words, to DELETE ALL EXISTING DATA stored in models.)
- To do that, re-lift your app using the `drop` strategy:
- ```
- sails lift --drop
- ```
- After doing that once, you should be able to go about your business as usual.
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
- For more about auto-migrations, visit:
- https://sailsjs.com/docs/concepts/models-and-orm/model-settings#?migrate
- On Tue Dec 25 2018 09:13:07 GMT+0000 (Greenwich Mean Time), Sails attempted to auto-migrate
- using the `alter` strategy, but was unable to transform all of your
- existing development data automatically. This temporary file was created
- for your convenience, as a way of holding on to the unmigrated records that
- were originally stored in the `ussd_sessions` model.
- (Otherwise, this data would have been lost forever.)
- ================================
- Recovered data (`ussd_sessions`):
- ================================
- []
- --
- For help with auto-migrations, visit:
- http://sailsjs.com/docs/concepts/models-and-orm/model-settings#?migrate
- For questions, additional resources, or to talk to a human, visit:
- http://sailsjs.com/support
- When attempting to perform the `alter` auto-migration strategy on model `archive`, Sails encountered an unexpected error when performing the `drop` step. This could have happened for a number of different reasons: be it because your database went offline, because of a db permission issue, because of some database-specific edge case, or (more rarely) it could even be due to some kind of bug in this adapter.
- Error details:
- ```
- { error:
- { Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
- at Handshake.Sequence._packetToError (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/sequences/Sequence.js:52:14)
- at Handshake.ErrorPacket (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/sequences/Handshake.js:130:18)
- at Protocol._parsePacket (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Protocol.js:279:23)
- at Parser.write (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Parser.js:76:12)
- at Protocol.write (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Protocol.js:39:16)
- at Socket.<anonymous> (/Users/socrates/Projects/lottery/node_modules/mysql/lib/Connection.js:103:28)
- at Socket.emit (events.js:182:13)
- at Socket.EventEmitter.emit (domain.js:442:20)
- at addChunk (_stream_readable.js:283:12)
- at readableAddChunk (_stream_readable.js:264:11)
- at Socket.Readable.push (_stream_readable.js:219:10)
- at TCP.onread (net.js:639:20)
- --------------------
- at Protocol._enqueue (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Protocol.js:145:48)
- at Protocol.handshake (/Users/socrates/Projects/lottery/node_modules/mysql/lib/protocol/Protocol.js:52:23)
- at PoolConnection.connect (/Users/socrates/Projects/lottery/node_modules/mysql/lib/Connection.js:130:18)
- at Pool.getConnection (/Users/socrates/Projects/lottery/node_modules/mysql/lib/Pool.js:48:16)
- at Object.getConnection (/Users/socrates/Projects/lottery/node_modules/machinepack-mysql/lib/get-connection.js:78:25)
- at wrapper (/Users/socrates/Projects/lottery/node_modules/@sailshq/lodash/lib/index.js:3275:19)
- at Deferred.parley.retry [as _handleExec] (/Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1076:19)
- at Deferred.exec (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:286:10)
- at Deferred.switch (/Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1469:16)
- at spawnConnection (/Users/socrates/Projects/lottery/node_modules/sails-mysql/helpers/private/connection/spawn-connection.js:29:10)
- at Object.spawnOrLeaseConnection (/Users/socrates/Projects/lottery/node_modules/sails-mysql/helpers/private/connection/spawn-or-lease-connection.js:23:3)
- at Object.drop (/Users/socrates/Projects/lottery/node_modules/sails-mysql/helpers/drop.js:71:24)
- at wrapper (/Users/socrates/Projects/lottery/node_modules/@sailshq/lodash/lib/index.js:3275:19)
- at Deferred.parley.retry [as _handleExec] (/Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1076:19)
- at Deferred.exec (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:286:10)
- at Deferred.switch (/Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1469:16)
- at Object.drop (/Users/socrates/Projects/lottery/node_modules/sails-mysql/lib/adapter.js:434:16)
- at findCallback (/Users/socrates/Projects/lottery/node_modules/waterline-utils/lib/auto-migrations/private/run-alter-strategy/index.js:132:17)
- at proceedToFinalAfterExecLC (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:1149:14)
- at proceedToInterceptsAndChecks (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:909:12)
- at proceedToAfterExecSpinlocks (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:841:10)
- at /Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:303:7
- at _afterFetchingRecords (/Users/socrates/Projects/lottery/node_modules/waterline/lib/waterline/methods/find.js:260:20)
- at _afterGettingPopulatedPhysicalRecords (/Users/socrates/Projects/lottery/node_modules/waterline/lib/waterline/utils/query/help-find.js:584:23)
- at /Users/socrates/Projects/lottery/node_modules/waterline/lib/waterline/utils/query/help-find.js:148:18
- at Object.error (/Users/socrates/Projects/lottery/node_modules/sails-mysql/lib/adapter.js:187:18)
- at /Users/socrates/Projects/lottery/node_modules/machine/lib/private/help-build-machine.js:1505:43
- at proceedToFinalAfterExecLC (/Users/socrates/Projects/lottery/node_modules/parley/lib/private/Deferred.js:1149:14)
- code: 'ER_NOT_SUPPORTED_AUTH_MODE',
- errno: 1251,
- sqlMessage:
- 'Client does not support authentication protocol requested by server; consider upgrading MySQL client',
- sqlState: '08004',
- fatal: true },
- meta:
- { host: 'localhost',
- port: 3306,
- schema: true,
- adapter: 'sails-mysql',
- url: 'mysql://root:0243570576@localhost:3306/ussd',
- identity: 'default' } }
- ```
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
- Some development data was recovered (see `.tmp/automigration.archive.9187.log`). Any existing `archive` records were deleted, but your data from OTHER models (including any relationships tracked in foreign keys and join tables) might still be intact. If you care about recovering any of that data, be sure to back it up now before you continue.
- The best way to proceed from here is to clear out all of your old development data and start fresh; allowing Sails to generate new tables/collections(s) to reflect your app's models. (In other words, to DELETE ALL EXISTING DATA stored in models.)
- To do that, re-lift your app using the `drop` strategy:
- ```
- sails lift --drop
- ```
- After doing that once, you should be able to go about your business as usual.
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
- For more about auto-migrations, visit:
- https://sailsjs.com/docs/concepts/models-and-orm/model-settings#?migrate
- On Tue Dec 25 2018 09:13:07 GMT+0000 (Greenwich Mean Time), Sails attempted to auto-migrate
- using the `alter` strategy, but was unable to transform all of your
- existing development data automatically. This temporary file was created
- for your convenience, as a way of holding on to the unmigrated records that
- were originally stored in the `archive` model.
- (Otherwise, this data would have been lost forever.)
- ================================
- Recovered data (`archive`):
- ================================
- []
- --
- For help with auto-migrations, visit:
- http://sailsjs.com/docs/concepts/models-and-orm/model-settings#?migrate
- For questions, additional resources, or to talk to a human, visit:
- http://sailsjs.com/support
- error: A hook (`orm`) failed to load!
- error:
- error: Error: Automigrations failed. (See logs above for help, and a summary of what went wrong.)
- at Timeout._onTimeout (/Users/socrates/Projects/lottery/node_modules/waterline-utils/lib/auto-migrations/private/run-alter-strategy/private/inform-re-failed-alter-stratagem.js:213:55)
- at ontimeout (timers.js:424:11)
- at tryOnTimeout (timers.js:288:5)
- at listOnTimeout (timers.js:251:5)
- at Timer.processTimers (timers.js:211:10)
- error: Could not load Sails app.
- error:
- error: Tips:
- error: • First, take a look at the error message above.
- error: • Make sure you've installed dependencies with `npm install`.
- error: • Check that this app was built for a compatible version of Sails.
- error: • Have a question or need help? (http://sailsjs.com/support)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement