The port 50021 is already used by another application.
akaskverma2000
TRIALOP

2 years ago

Error

> backend@0.1.0 start

> strapi start

WebSocket server started on port 50021

Database connection has been established successfully.

[2024-05-25T02:45:36.435Z] debug ⛔️ Server wasn't able to start properly.

[2024-05-25T02:45:36.436Z] error The port 50021 is already used by another application.

5 Replies

2 years ago

You are trying to run your websocket server and http server on the same port but different listeners, you need to start them both on the same listener.


akaskverma2000
TRIALOP

2 years ago

Thanks, it's working now.


akaskverma2000
TRIALOP

2 years ago

Do you know how can we access admin portal of strapi on Production?

I'm getting 404 on https://web-chat-app-production.up.railway.app/admin.


akaskverma2000
TRIALOP

2 years ago

Now, my service is unable to connect to websocket.

WebSocket connection to 'wss://web-chat-app-production.up.railway.app/' failed: 

2 years ago

As previously mentioned, your websocket server and http server need to use the same listener and port, you are likely not doing that and that is what is resulting in the errors.


Loading...