R
Railway4mo ago
Ro

Port 8080 is already in use

trying to launch a really basic express server on railway and after it builds it runs for a short period and then crashes, I keep getting a 'Port 8080 is already in use' error message, however I'm not specifying a port in my express application. As the docs suggest, I created a port variable and let railway inject a port number. I've tried specifying a port as well and run into the same issue. Not sure if i'm doing something really daft or not but tried multiple times and get the same issue. Full log below Server running on port 8080 Port 8080 is already in use container event container died npm WARN config production Use --omit=dev instead.
7 Replies
Percy
Percy4mo ago
Project ID: bf1ac4d2-f351-4d01-ad53-52c11a51dda9
Ro
RoOP4mo ago
bf1ac4d2-f351-4d01-ad53-52c11a51dda9
Brody
Brody4mo ago
port 8080 would be the port railway injects, so its good that its attempting to listen on that. someone opened a thread about this exact same issue the other day and it turned out they where calling app.listen twice, have a look through your code to see if you see yourself doing anything like that too
Ro
RoOP4mo ago
Thanks for the quick response! I’ve checked and definitely only calling app.listen once
Brody
Brody4mo ago
are you able to share your code?
Duchess
Duchess4mo ago
New reply sent from Help Station thread:
Same issue here. Any solutions found?
You're seeing this because this thread has been automatically linked to the Help Station thread.
Brody
Brody4mo ago
please open a new thread and share your code
Want results from more Discord servers?
Add your server