R
Railwayβ€’2mo ago
KYUU 🐣

Can't Deploy Service

ERROR: process "/bin/bash -ol pipefail -c yarn install --frozen-lockfile" did not complete successfully: exit code: 1
Solution:
the invalid ELF error happens when the binary of the package doesn't fit the operating system it's running on Usually when you install packages they install the correct type for the operating system but if you're committing node_modules along with your code then it won't have a chance to download the correct version so make sure you're not committing node_modules and delete it if you have been so it's removed from Github...
Jump to solution
19 Replies
Percy
Percyβ€’2mo ago
Project ID: b81fc524-4ecb-482d-9fca-0df60d63e12e
KYUU 🐣
KYUU 🐣OPβ€’2mo ago
b81fc524-4ecb-482d-9fca-0df60d63e12e Hello Team ! anyone can help me a bit ?
Fragly
Fraglyβ€’2mo ago
KYUU 🐣
KYUU 🐣OPβ€’2mo ago
I have issued when deploy the service in railway
KYUU 🐣
KYUU 🐣OPβ€’2mo ago
No description
KYUU 🐣
KYUU 🐣OPβ€’2mo ago
what's this sir ?
Fragly
Fraglyβ€’2mo ago
It's a bookmarklet that'll help you download your build logs so I can see them
KYUU 🐣
KYUU 🐣OPβ€’2mo ago
I don't know how to use it
KYUU 🐣
KYUU 🐣OPβ€’2mo ago
No description
KYUU 🐣
KYUU 🐣OPβ€’2mo ago
Fragly
Fraglyβ€’2mo ago
alternatively, just do ctrl+k or cmd+k and then click Download Build Logs (while having your deployment open)
KYUU 🐣
KYUU 🐣OPβ€’2mo ago
after click ctrl + k
No description
Fragly
Fraglyβ€’2mo ago
damn, that's weird
KYUU 🐣
KYUU 🐣OPβ€’2mo ago
Solved, Thank you :derp:
Fragly
Fraglyβ€’2mo ago
oh dope, what was the issue?
KYUU 🐣
KYUU 🐣OPβ€’2mo ago
error because of yarn.lock after rm it the service is working fine but have new issue
node:internal/modules/cjs/loader:1460

return process.dlopen(module, path.toNamespacedPath(filename));

^



Error: /app/node_modules/canvas/build/Release/canvas.node: invalid ELF header

at Module._extensions..node (node:internal/modules/cjs/loader:1460:18)

at Module.load (node:internal/modules/cjs/loader:1203:32)

at Module._load (node:internal/modules/cjs/loader:1019:12)

at Module.require (node:internal/modules/cjs/loader:1231:19)

at require (node:internal/modules/helpers:177:18)

at Object.<anonymous> (/app/node_modules/canvas/lib/bindings.js:3:18)

at Module._compile (node:internal/modules/cjs/loader:1364:14)

at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)

at Module.load (node:internal/modules/cjs/loader:1203:32)

at Module._load (node:internal/modules/cjs/loader:1019:12) {

code: 'ERR_DLOPEN_FAILED'

}



Node.js v18.20.2
node:internal/modules/cjs/loader:1460

return process.dlopen(module, path.toNamespacedPath(filename));

^



Error: /app/node_modules/canvas/build/Release/canvas.node: invalid ELF header

at Module._extensions..node (node:internal/modules/cjs/loader:1460:18)

at Module.load (node:internal/modules/cjs/loader:1203:32)

at Module._load (node:internal/modules/cjs/loader:1019:12)

at Module.require (node:internal/modules/cjs/loader:1231:19)

at require (node:internal/modules/helpers:177:18)

at Object.<anonymous> (/app/node_modules/canvas/lib/bindings.js:3:18)

at Module._compile (node:internal/modules/cjs/loader:1364:14)

at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)

at Module.load (node:internal/modules/cjs/loader:1203:32)

at Module._load (node:internal/modules/cjs/loader:1019:12) {

code: 'ERR_DLOPEN_FAILED'

}



Node.js v18.20.2
Solution
Fragly
Fraglyβ€’2mo ago
the invalid ELF error happens when the binary of the package doesn't fit the operating system it's running on Usually when you install packages they install the correct type for the operating system but if you're committing node_modules along with your code then it won't have a chance to download the correct version so make sure you're not committing node_modules and delete it if you have been so it's removed from Github
Fragly
Fraglyβ€’2mo ago
sorry for taking so long to respond, i was making some food
KYUU 🐣
KYUU 🐣OPβ€’2mo ago
it's okay sir, i knew it 😹 anyway thank you πŸ™πŸ»
Want results from more Discord servers?
Add your server