OpenVPN-WebAdmin icon indicating copy to clipboard operation
OpenVPN-WebAdmin copied to clipboard

Session: connection failed

Open ilkm opened this issue 5 years ago • 18 comments

image OS: debian 10.7 PHP: PHP 7.3.19-1~deb10 apach2: Server version: Apache/2.4.38 (Debian) Server built: 2020-08-25T20:08:29

I used to install it successfully on centos7, I installed it on another server Debian 10.5, and the login page shows Session: connection failed

ilkm avatar Jan 16 '21 12:01 ilkm

Mostly the ADOdb library is missing, more rarely the connection to the database. Please check if the folder /ADOdb is present in the folder /srv/ovpn_modules.

Wutze avatar Jan 16 '21 17:01 Wutze

Mostly the ADOdb library is missing, more rarely the connection to the database. Please check if the folder /ADOdb is present in the folder /srv/ovpn_modules.

image

image

ADOdb can be found in the web directory, too unfamiliar with PHP

ilkm avatar Jan 16 '21 18:01 ilkm

Running the Database? (local or remote?) Is the information in $wwwroot/include/config.php correct? Server, IP, password and user name?

I'll have another look at it tomorrow morning. Maybe I have made a mistake. So it might take a little while. Sorry.

Wutze avatar Jan 16 '21 23:01 Wutze

Running the Database? (local or remote?) Is the information in $wwwroot/include/config.php correct? Server, IP, password and user name?

I'll have another look at it tomorrow morning. Maybe I have made a mistake. So it might take a little while. Sorry.

I replaced your other project, it can be used normally, and solved the inconvenience of remote development with my partner

ilkm avatar Jan 17 '21 04:01 ilkm

What other project?

Wutze avatar Jan 17 '21 10:01 Wutze

What other project?

https://github.com/Wutze/OpenVPN-Web

This project

ilkm avatar Jan 17 '21 10:01 ilkm

The project is only a fork (therefore not my project) and should not be used anymore. It contains too many bugs and is anything but secure.

To find the actual error, the file with the installation log would be helpful (/opt/openvpn-admin/loginstall.log). I just did a test installation on Debian and could not replicate the error.

Wutze avatar Jan 17 '21 10:01 Wutze

I guess the database was missing. In particular, the session table. This can only be created if the local MySQL server has a correctly assigned root password. That is the only conceivable error at the moment. I therefore suspect that there was an input error during the installation, as the root password is requested twice.

Wutze avatar Jan 17 '21 11:01 Wutze

The project is only a fork (therefore not my project) and should not be used anymore. It contains too many bugs and is anything but secure.

To find the actual error, the file with the installation log would be helpful (/opt/openvpn-admin/loginstall.log). I just did a test installation on Debian and could not replicate the error.

Okay, thank you for your reminder, I will try to install again later

ilkm avatar Jan 17 '21 11:01 ilkm

I guess the database was missing. In particular, the session table. This can only be created if the local MySQL server has a correctly assigned root password. That is the only conceivable error at the moment. I therefore suspect that there was an input error during the installation, as the root password is requested twice.

I guess the database was missing. In particular, the session table. This can only be created if the local MySQL server has a correctly assigned root password. That is the only conceivable error at the moment. I therefore suspect that there was an input error during the installation, as the root password is requested twice.

I will re-install in a while, if something goes wrong, I will send you the server ip and password, which will help you locate the error

ilkm avatar Jan 17 '21 11:01 ilkm

That's how we can do it too. Thank you.

Wutze avatar Jan 17 '21 11:01 Wutze

Hello, what is your email address? After I reinstalled the cloud server, I still got the Session: connection failed error.

ilkm avatar Jan 17 '21 11:01 ilkm

If found the problem.

Characters containing a "&" are entered incorrectly (as "escaped &") in config.php due to an error during installation. This does not affect config.sh in /etc/openvpn/scripts.

Wutze avatar Jan 17 '21 11:01 Wutze

So when running a shell script, ‘&’ needs to be translated, right? Thank you very much

ilkm avatar Jan 17 '21 12:01 ilkm

Hello guys, I have installed your control panel more than once, and everything worked, but today I needed another installation and I got the same problem as yours, how did you fix it? i tried installing several times and still get this error Session: connection failed

my server config is the same as others Debian 10

IamDontNoob avatar Oct 07 '21 19:10 IamDontNoob

In most cases, a reload with the web browser (F5) will solve the problem.

Wutze avatar Oct 11 '21 09:10 Wutze

One more hint. The script has problems with "&" in the passwords. Just don't use that until the problem is fixed during installation. There are so many other nice characters that are worth using.

Wutze avatar Oct 11 '21 09:10 Wutze

Hello, yes it was because of the characters in the password

IamDontNoob avatar Oct 13 '21 08:10 IamDontNoob