Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI gives en error when trying to connect to server #4

Open
antonios65 opened this issue Apr 7, 2024 · 4 comments
Open

GUI gives en error when trying to connect to server #4

antonios65 opened this issue Apr 7, 2024 · 4 comments

Comments

@antonios65
Copy link

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

@frozen-eye
Copy link

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

@antonios65
Copy link
Author

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...

@frozen-eye
Copy link

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

@antonios65
Copy link
Author

I'll try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants