gjovanov/roomler

NGINX ERROR

Closed this issue · 5 comments

error nginx

I already use two public IP in my VM, but still got this error.

Something is not right with your IP addresses:

how is it possible that u have IP address from 2 diff country mapped to a single VM?

Are you sure they are mapped to your VM?

BTW for simplification, you can remove the nginx2 service... It's only needed if you want to server on 443 both COTURN (UDP) and JANUS (TCP - HTTP/WS). Without nginx2 you can still access COTURN on its standard port 3478.

Yes, I am sure. I using azure to add a multiple IP. And even I just using one Ip still got this. Thank you for your help.

The error bind failed: Cannot assign requested address clearly tells you that it cannot connect to the specified IP address. It might be that your IP is not properly assigned or the port 443 is used by some other process. Try lsof.

Btw starting the whole stack via docker-compose requires you, that everything is configured properly for your host infrastructure (firewall, networking, etc). Setting your host infra is beyond of scope of this project.

Hence, I suggest you try first starting all services, one by one (instead via docker-compose), as described in:

In this order:

  1. janus
  2. coturn
  3. mongo
  4. redis
  5. roomler
  6. nginx

You can use docker logs to see the output of each individual service and identify potential errors.

Hi, I have tried run one by one and still got this error. And then I try another way to run the Nginx outside the docker (without docker) and now its already run but I confused why the port 3000 is connected as API and UI either but the problem is UI cant running because cant connects with the API. would you mind to help me?

In development mode, we separate the UI (port 3000) and API (port 3001) for the convenience sake only... E.g. if we make changes in the API during development, we don't want to wait for the whole UI to rebuild and vice versa... But in production mode, both UI and API are accessible on port (3000) and 3001 is not used.