5 months ago
I am deploying a ghost server (open source blog). I am using the default template, the only thing which I am configuring is Mailgun username password and cloudinary url. It starts 2 deployable, one is the ghost image and other is mysql. The mysql works perfectly but the ghost image is failing. Here are the build logs
yarn install --frozen-lockfile
25s
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
/app/node_modules/mysql2/lib/connection_config.js:77
this.isServer = options.isServer;
^
TypeError: Cannot read properties of undefined (reading 'isServer')
at new ConnectionConfig (/app/node_modules/mysql2/lib/connection_config.js:77:29)
at Object.exports.createConnection (/app/node_modules/mysql2/index.js:10:35)
at alterAuthenticationMethod (/app/bin/alter-auth-method:17:26)
at Object.<anonymous> (/app/bin/alter-auth-method:14:1)
at Module._compile (node:internal/modules/cjs/loader:1198:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
at Module.load (node:internal/modules/cjs/loader:1076:32)
at Function.Module._load (node:internal/modules/cjs/loader:911:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:22:47
error Command failed with exit code 1.
ERROR: failed to build: failed to solve: process "yarn install --frozen-lockfile" did not complete successfully: exit code: 1
3 Replies
5 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
5 months ago
Howdy hey!TypeError: Cannot read properties of undefined (reading 'isServer') looks like ghost is having some problem with this isServer field.
Are you doing any custom configuration for it? I'm personally unfamiliar with ghost but happy to investigate more if I can get any info
5 months ago
I am not do any custom configuration with it, just the template which is provided by railways