Build failing only on railway.

I'm not sure, why but logs indicate some kind of caching problem.
15 Replies
Ryan The Temp
Ryan The TempOP•3y ago
error log excerpt:
ymous> (/nix/store/cs1w387vf0a29qfc3mdqx6xgqg4awlvf-nodejs-18.9.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:738:24) {
#8 69.66 npm WARN old lockfile code: 'ENOTCACHED'
ymous> (/nix/store/cs1w387vf0a29qfc3mdqx6xgqg4awlvf-nodejs-18.9.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:738:24) {
#8 69.66 npm WARN old lockfile code: 'ENOTCACHED'
project ID: 003118b2-3412-4da3-ad46-8752faf28ae7 I have no issue when running pnpm install locally 🤔
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Ryan The Temp
Ryan The TempOP•3y ago
Its verry large, but ok
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Ryan The Temp
Ryan The TempOP•3y ago
hmm, wouldn't I see the same error if I run locally with a cleared cache? I also tried to deploy using Render, and no issue... 🤔
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Ryan The Temp
Ryan The TempOP•3y ago
ok, i'll try that thx
angelo
angelo•3y ago
Did it work?
Ryan The Temp
Ryan The TempOP•3y ago
sorry, i stepped away. it doesn’t look like that helped. seeing the same error
angelo
angelo•3y ago
@albertridge - sorry for the back and forth, can you explain witch service within the project?
Ryan The Temp
Ryan The TempOP•3y ago
Yes, this is the directus service
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Ryan The Temp
Ryan The TempOP•3y ago
This is a monorpo, the directus service has a package.json of:
{
"name": "directus",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"bootstrap": "npx directus bootstrap",
"directus:generate-schema": "npx directus schema snapshot ./snapshot.yaml",
"directus:apply-schema": "npx directus schema apply --yes ./snapshot.yaml",
"start": "npx directus start",
"clean": "rm -rf node_modules",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "Eugen Istoc",
"license": "ISC",
"dependencies": {
"directus": "9.18.1",
"pg": "^8.8.0"
}
}
{
"name": "directus",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"bootstrap": "npx directus bootstrap",
"directus:generate-schema": "npx directus schema snapshot ./snapshot.yaml",
"directus:apply-schema": "npx directus schema apply --yes ./snapshot.yaml",
"start": "npx directus start",
"clean": "rm -rf node_modules",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "Eugen Istoc",
"license": "ISC",
"dependencies": {
"directus": "9.18.1",
"pg": "^8.8.0"
}
}
The Root package.json is :
{
"name": "app",
"version": "2.0.0",
"main": "index.js",
"license": "MIT",
"private": true,
"engines": {
"node": "18.x",
"pnpm": "7.x"
},
"scripts": {
"clean": "rm -rf node_modules",
"web:build": "pnpm --filter directus build",
"web:start": "pnpm --filter web start"
}
}
{
"name": "app",
"version": "2.0.0",
"main": "index.js",
"license": "MIT",
"private": true,
"engines": {
"node": "18.x",
"pnpm": "7.x"
},
"scripts": {
"clean": "rm -rf node_modules",
"web:build": "pnpm --filter directus build",
"web:start": "pnpm --filter web start"
}
}
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server