Nixpacks build error

kosai106HOBBY

a year ago

As the title implies, I'm getting the following error when trying to move one of my websites over from Vercel to Railway.

- UndefinedVar: Usage of undefined variable '$NIXPACKS_PATH' (line 18)
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 18)

There are currently 3 other topics open on the forum about this, but no solution since nobody provided build logs, so here I am.

Here's the project ID:

Solved

8 Replies

kosai106HOBBY

a year ago

Removed build log


kosai106HOBBY

a year ago

Removed build log


a year ago

I'm not sure of the relevance of the three posts you linked as they do not have anything to do with your issue besides 2 log lines for an unimportant warning.

For future reference please do not send your logs as a message, attach the .log file to a message.

As for the issue, try setting a NIXPACKS_NO_CACHE=1 variable.


Status changed to Solved railway[bot] 11 months ago


kosai106HOBBY

a year ago

I'm not sure of the relevance of the three posts you linked as they do not have anything to do with your issue besides 2 log lines for an unimportant warning.

They're the only issues I found which contained this particular error, so I thought it was safe to assume they were relevant.

For future reference please do not send your logs as a message, attach the .log file to a message.

Maybe I was blind, but I honestly didn't see the button for that until now. Will try the setting you proposed now.


kosai106HOBBY

a year ago

Removed previous comments with the build logs in favour of a file upload.

Attachments


kosai106HOBBY

a year ago

Setting the NIXPACKS_NO_CACHE=1 variable worked.

How come this isn't on by default if it is needed for even simple sites to build?


a year ago

It's not needed for simple sites to build, there was an issue with cache so disabling that inadvertently fixed it.


kosai106HOBBY

a year ago

How could there be an issue with the cache even on the very first build? This is the part I'm struggling to understand I guess.


Nixpacks build error - Railway Help Station