R
Railway•11mo ago
0xaryan

build failing for service

projectId : c1e362ab-eed2-49b9-9f6d-da0f8b163b80 service name: backend serviceId : 9d55a3fb-a425-4b46-8084-b8406f0d8921 The code was getting built fine before; recently, I pushed a change to a branch and it was unable to build it. I am unable to understand the error. the cause I think is
npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/Irys-xyz/avsc.git
npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/Irys-xyz/avsc.git
not sure why it's throwing because github.com/Irys-xyz/avsc.git is public.
Solution:
even though your successful build and your failed build both use the same nixpacks version, I think it would still be worth it to try an older version of nixpacks, so add this as a railway.toml file to your project
[build]
nixpacksVersion = "1.15.0"
[build]
nixpacksVersion = "1.15.0"
...
Jump to solution
33 Replies
Percy
Percy•11mo ago
Project ID: c1e362ab-eed2-49b9-9f6d-da0f8b163b80,9d55a3fb-a425-4b46-8084-b8406f0d8921
0xaryan
0xaryan•11mo ago
Hey @Brody sorry for the ping, can you please help here
Brody
Brody•11mo ago
1. why ping me 2. #🛂|readme #5
0xaryan
0xaryan•11mo ago
1. I thought you are in railways team 2. Ah, missed it.
Brody
Brody•11mo ago
if i was that would be an even worse ping for you to do
0xaryan
0xaryan•11mo ago
yesser, actually I wanted to push some features to prod but build was failing again and again, so got a bit hasty.
Brody
Brody•11mo ago
well I have no clue what this git ssh thing even is but send your build logs https://bookmarklets.up.railway.app/log-downloader/
0xaryan
0xaryan•11mo ago
here's the complete build logs
0xaryan
0xaryan•11mo ago
i learned about bookmarklets today, thanks !
Brody
Brody•11mo ago
1. you said this same app has built successfully before, please send build logs for a deployment that built successfully 2. why don't you have a yarn or npm lock file? 3. have you set any build or start commands in the service settings?
0xaryan
0xaryan•11mo ago
1. Here are the logs for successful deployment
Brody
Brody•11mo ago
that setup table is very different
0xaryan
0xaryan•11mo ago
2. I earlier had a yarn.lock files and build was failing then also, so I removed it to test it out. Here are the logs for it.
0xaryan
0xaryan•11mo ago
3. the command is yarn build only
Brody
Brody•11mo ago
that's a completely different error, definitely put your lock file back do you have a build script in your package.json?
Want results from more Discord servers?
Add your server