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

Session: connection failed #24

Open
ilkm opened this issue Jan 16, 2021 · 18 comments
Open

Session: connection failed #24

ilkm opened this issue Jan 16, 2021 · 18 comments
Assignees
Labels
bug Something isn't working fixed in next release

Comments

@ilkm
Copy link

ilkm commented Jan 16, 2021

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

@Wutze
Copy link
Owner

Wutze commented Jan 16, 2021

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.

@ilkm
Copy link
Author

ilkm commented Jan 16, 2021

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

@Wutze
Copy link
Owner

Wutze commented Jan 16, 2021

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.

@ilkm ilkm closed this as completed Jan 17, 2021
@ilkm
Copy link
Author

ilkm commented Jan 17, 2021

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

@Wutze
Copy link
Owner

Wutze commented Jan 17, 2021

What other project?

@ilkm
Copy link
Author

ilkm commented Jan 17, 2021

What other project?

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

This project

@Wutze
Copy link
Owner

Wutze commented Jan 17, 2021

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
Copy link
Owner

Wutze commented Jan 17, 2021

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.

@ilkm
Copy link
Author

ilkm commented Jan 17, 2021

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
Copy link
Author

ilkm commented Jan 17, 2021

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

@Wutze
Copy link
Owner

Wutze commented Jan 17, 2021

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

@ilkm
Copy link
Author

ilkm commented Jan 17, 2021

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

@Wutze
Copy link
Owner

Wutze commented Jan 17, 2021

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 Wutze reopened this Jan 17, 2021
@Wutze Wutze added bug Something isn't working waiting labels Jan 17, 2021
@ilkm
Copy link
Author

ilkm commented Jan 17, 2021

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

Repository owner deleted a comment from micro-carter Jan 17, 2021
@Wutze Wutze self-assigned this Feb 2, 2021
@IamDontNoob
Copy link

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

@Wutze
Copy link
Owner

Wutze commented Oct 11, 2021

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

@Wutze
Copy link
Owner

Wutze commented Oct 11, 2021

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.

@IamDontNoob
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in next release
Projects
None yet
Development

No branches or pull requests

3 participants