Deployment Issue
I’m trying to deploy a Node.js server, but the build is failing. What could be the probable reasons?
27 Replies
Hey @Saanvi can you check your build log?
click on
Open pipeline detail
then build log
iircHey can you grab us your org id?
Yep Sure
yvbhaZ67TimlmRCKDrcOQg
@Michal can you look into this please? thanks
i can't see the whole build log
Your code (build section) requires Python installed, which you do not have. Try this
zerops.yml
try this @Saanvi
thanks
Also, if it requires make, which I don't think we have installed by default, you can run:
ok i ll try this and let you know
thanks !
@Michal , Looks like some npm version issue
how can we change the version ?
what about the rest of the log? I think that first part is just a notice to let you know, but the actual error is below
I think thats because you didn't use my latest version: https://discord.com/channels/735781031147208777/1334177315894198414/1334184322487554099
it's complaining that there is no
make
, which we indeed do not have by default in our containers.I did use this one
Yes, not it went further, it ran a make command which is complaining about something, I don't work with node, so I am not 100% sure, especially the error log is just not clear on what the actual error is anymore.
But you should be able to set debug options to stop on command fail (see screenshot) and then enter the build container like this: https://discord.com/channels/735781031147208777/1296760913881206866/1332800481017466941
Afterwards you can try to run the commands, debug what is happening etc. and once done you can use
zsc debug --help
to call correct command to end the debugging. Just a note, pipeline is paused at most for 60 minutes, but that should be plenty time to figure it out.
Maybe nermal has an idea what is going on?Hmmmmm @Saanvi it would be cool if you could provide me with the package.json
i want to test it on my own
just need to know all the dependencies
this reminds me of the time when i was trying to implement llama with a discord bot :SCaraara:
Don't know why its requiring Python or make
there are no other deps?
Nope!
Hmmm questionable
okay
i'll check
thanks
Solution
@Saanvi try this
for some reason it relies on gcc and g++ too 🤔
Worked
Thnks
Build worked, but it seems like you forgot to deploy
utils
directory (look at the runtime log).