Bad port error when trying to deploy nextjs app

julio2049
TRIAL

a year ago

This app has deployed before without issue. Now, when I try to deploy it I get an error though we have not added or changed any port configurations.

The logs say:

next start
Bad port: "6668" is reserved for ircu
Read more: https://nextjs.org/docs/messages/reserved-port

View Deploy

Solved

5 Replies

a year ago

Unfortunate luck given that the port is random on every deployment, a simple redeploy should do the trick!


julio2049
TRIAL

a year ago

Ok. Thanks. I tried it again and got the same error. Maybe the third time is the charm.


a year ago

Same error with the exact same port number?


julio2049
TRIAL

a year ago

Yes. It did work on the third redeploy just now.


Status changed to Solved railway[bot] about 1 year ago


a year ago

Very odd, but glad it's fixed!