3 months ago
I need to build this, it wasn't built for 12 months but nothing has changed from then,
[stage-0 6/8] RUN --mount=type=cache,id=s/21126a0c-d9c7-4490-b204-5ec4c4dfd985-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 yarn install --frozen-lockfile
"yarn install --frozen-lockfile" did not complete successfully: exit code: 1
View in context
yarn install v1.22.22
[1/5] Validating package.json…
[2/5] Resolving packages…
[3/5] Fetching packages…
warning casper@4.7.5: The engine "ghost" appears to be invalid.
warning ghost@4.47.4: The engine "cli" appears to be invalid.
warning lyra@1.0.0: The engine "ghost" appears to be invalid.
warning lyra@1.0.0: The engine "ghost-api" appears to be invalid.
[4/5] Linking dependencies…
warning "ghost > bookshelf@1.2.0" has incorrect peer dependency "knex@>=0.15.0 <0.22.0".
[5/5] Building fresh packages…
$ bin/alter-auth-method && bash bin/cloudinary.sh && bash bin/themes.sh
There was an error altering the authentication method.
node:events:491
throw er; // Unhandled 'error' event
^
Error: Plugin 'mysqlnativepassword' is not loaded
at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:728:17)
at ClientHandshake.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
at Connection.handlePacket (/app/node_modules/mysql2/lib/connection.js:456:32)
at PacketParser.onPacket (/app/node_modules/mysql2/lib/connection.js:85:12)
at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
at Socket. (/app/node_modules/mysql2/lib/connection.js:92:25)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
Emitted 'error' event on Connection instance at:
at Connection.notifyError (/app/nodemodules/mysql2/lib/connection.js:236:12)
at ClientHandshake. (/app/nodemodules/mysql2/lib/connection.js:125:14) at ClientHandshake.emit (node:events:525:35) at ClientHandshake.execute (/app/nodemodules/mysql2/lib/commands/command.js:39:14)
at Connection.handlePacket (/app/nodemodules/mysql2/lib/connection.js:456:32) [… lines matching original stack trace …] at addChunk (node:internal/streams/readable:315:12) { code: 'ERPLUGINISNOTLOADED', errno: 1524, sqlState: 'HY000', sqlMessage: "Plugin 'mysqlnative_password' is not loaded",
sql: undefined
}
> ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
Hello,
I've added --mysql-native-password=ON
to your MySQL database to enable the native password, and restarted the ghost deploy.
Looks like everything is good to go now!
Best,
Brody
Status changed to Solved brody • 3 months ago