Issues Connecting to Room in OpenVidu Deployment on GCloud

I have successfully deployed the OpenVidu Single Node on a Google Cloud virtual machine. I can confirm that the installation was successful as I am able to access the following services without any issues:

  • OpenVidu Call
  • OpenVidu Dashboard
  • MinIO
  • Grafana

Additionally, I can view all the service logs, indicating that the services are running properly. However, I am encountering errors when trying to connect to a room from both my customized application and the sample React client application provided by OpenVidu.

Everything works correctly in local development environments.

I would appreciate assistance in resolving this issue. Specifically, I need help with:

  • Identifying the cause of the connection errors
  • Any configuration changes or troubleshooting steps that might resolve the issue

Attachments:

  1. Screenshots of errors from the client applications.
  2. Warning logs from the OpenVidu service

Hi @John_Jacob,

To work with the sample application, you’ll need to set up both the client side and the application server properly. Here are the steps to follow:

  1. Client-Side Setup: Follow the instructions in this React tutorial to set up the client side of the application.

  2. Server-Side Setup: If you are using NodeJS, refer to this NodeJS tutorial to set up the application server.

Have you successfully set up both the client and server sides of the application? Do you have any issue in application server?
If you encounter any issues or have specific questions, feel free to ask!

Hi @CSantosM,

I have developed a customized audio/video call app using OpenVidu 3. During the development, I used OpenVidu Local Deployment community services, a LiveKit Client-based React application, and the LiveKit Server SDK with Node.js.

Everything works as expected in the local environment.

Here is a screenshot of my application running in the local environment:

However, when I deployed the OpenVidu single node on a Google Cloud virtual machine and updated my client app with the new LiveKit URL, replacing the LIVEKIT_API_KEY and LIVEKIT_API_SECRET in the application server, I encountered issues connecting to the room. I attached images of the errors and logs from the OpenVidu server in the orginal message.

Hello John. Two questions:

  1. Does your gcloud instance have a dedicated public IP
  2. Did you opened all necessary ports? Can you screenshot your gcloud firewall/ports configuration?

It looks like the deployment is not able to receive candidates from your browser.

Please double check Ports Configuration

1 Like

Let’s continue here: Issue connecting to LIVEKIT_URL - #9 by cruizba

Hi Carlos,

Thank you so much for responding.

We are colleagues. The answers to your two questions are:

  1. The instance does not have a dedicated external IP.
  2. For port rules, I allowed all inbound and outbound traffic using iptables.

I will redeploy after reserving an external IP for the instance and configuring the port rules by creating firewall rules from the VPC network. If the issue persists, I will send you a direct message.

@cruizba

The dedicated IP did the trick, and now it is working. Thank you so much for your help!

1 Like