Bad port: "6000" is reserved for x11
chemiadel
HOBBYOP

2 years ago

I'm using NextJS version 14 on railway
4 replicas

redeploy fixed the issue. but how can I avoid such things please

thanks in advance

12 Replies

brody
EMPLOYEE

2 years ago

set a fixed port.


brody
EMPLOYEE

2 years ago

n/a


chemiadel
HOBBYOP

2 years ago

any port? how can I know if it's not reserved ?


brody
EMPLOYEE

2 years ago

you would get another error, 3000 is commonly used


chemiadel
HOBBYOP

2 years ago

so I should set port in env file to 3000


brody
EMPLOYEE

2 years ago

in your service variables


chemiadel
HOBBYOP

2 years ago

is there any solved duplicate issue I can follow and read


chemiadel
HOBBYOP

2 years ago

thanks lot


brody
EMPLOYEE

2 years ago

wdym i had just proposed a solution?


chemiadel
HOBBYOP

2 years ago

right now Im not setting any PORT and I'm using NextJS


chemiadel
HOBBYOP

2 years ago

this error sometimes happen and somtimes not


brody
EMPLOYEE

2 years ago

set a fixed port


Loading...