open_vmonitor icon indicating copy to clipboard operation
open_vmonitor copied to clipboard

GUI gives en error when trying to connect to server

Open antonios65 opened this issue 1 year ago • 4 comments

I installed and launched app.js If I give the command "netstat -na | grep 6640" I see the server listening and with the command ovs-vsctl show I see the manager is opened with ptcp:6640 but when I connect to the GUI I get an error with a popup (see image) with "Can not connect to server". Any hint? Note that I gave the default admin/admin password and if I give different username/passwords I get an authentication error. I tried also to connect (just to test) via telnet with "telnet localhost 6640" and the connection is opened (of course when I type connection is closed). I am using Ubuntu LTS 22.04

error

antonios65 avatar Apr 07 '24 18:04 antonios65

Hi @antonios65 I've just tried and it works. Cold you please try to use http://127.0.0.1:3000 in the browser's URL?

image

frozen-eye avatar Apr 09 '24 11:04 frozen-eye

I used all combinations localhost:3000 127.0.0.1:3000 and the Ip assigned to the NIC. The problem is not related with this, because, as I specified in my issue, the webserver is responding. The problem is related with the connection to the switch. Facts: Webserver is correctly answering on port 3000 OVSDB is configured to accept the manager on ptcp:6640 The command netstat -na let me see the port is LISTENING on 0.0.0.0 (so accepts connections coming from everywhere)

Besides, the fact that when I change username or password, the webserver gives an authentication error and when I use the correct username and password the problem arises on the DB states that the problem is not the web server...

antonios65 avatar Apr 09 '24 15:04 antonios65

I've used this docker-compose.yml just to test the web interface..

$:~/src/open_vmonitor (master)$ cat docker-compose.yml 
ovs:
 image: jhershbe/centos7-ovs:2.5.1
 ports:
   - "6640:6640"
 command: "/usr/bin/supervisord -n"
 privileged: true
$ docker-compose up

If to stop the ovsdb, webUI gives "Can not connect to server" always as a reaction on HTTP-500 error. In case of unavailability to connect to server, it will return "403 Forbidden" and alert with the message "authentication error". By the way if to specify simple password also (I assume that's some specifics of browser :) )

Suggest to check to connection or disable firewall

frozen-eye avatar Apr 09 '24 16:04 frozen-eye

I'll try

antonios65 avatar Apr 09 '24 16:04 antonios65