Nixpacks build error
kosai106
HOBBYOP

2 years 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. smile emoji

Here's the project ID:

a162dd3b-53f1-4b76-b9d7-2c3777cab23e
Solved

8 Replies

kosai106
HOBBYOP

2 years ago

Removed build log


kosai106
HOBBYOP

2 years ago

Removed build log


2 years 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 over 1 year ago


kosai106
HOBBYOP

2 years 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. man_facepalming emojiWill try the setting you proposed now.


kosai106
HOBBYOP

2 years ago

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

Attachments


kosai106
HOBBYOP

2 years ago

Setting the NIXPACKS_NO_CACHE=1 variable worked. thinking emoji

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


2 years ago

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


kosai106
HOBBYOP

2 years 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.


Loading...