ajenti / ajenti

Ajenti Core and stock plugins
http://ajenti.org/core/
MIT License
7.53k stars 842 forks source link

OpenVPN page shows "[Errno 111] Connection refused" and asks to configure OpenVPN plugin #313

Closed vitalyve closed 3 years ago

vitalyve commented 10 years ago

If I log out from Ajenty and try to log in and open the OpenVPN page AFTER SEVERAL HOURS the page shows "[Errno 111] Connection refused" error message , "Please configure OpenVPN plugin" message and OpenVPN plugin configuration dialog (with already filled in fields). Then it asks to restart Ajenti. After restart OpenVPN page works fine.

Screenshot: http://i.imgur.com/DlVNg6O.png

Ajenti working on Ubuntu Server 12.04.4.

vitalyve commented 10 years ago

Same problem at current version - v1.2.20.10. :-(

vitalyve commented 10 years ago

В новой версии (а может так было и в старой) теперь работает только после перезапуска Ajenti. Разлогинился - залогинился - уже не работает, нужно перестартовать... :-(

vitalyve commented 9 years ago

Похоже, проблема в том, OpenVPN не закрывает открытую сессию, т.к. ждет команды exit или quit, в то время как плагин просто пытается закрыть текущее соединение после каждого обращения или же открыть новое, если окно браузера было закрыто и ты залогинился заново.

Вот тут описание менеджмент интерфейса: https://openvpn.net/index.php/open-source/documentation/miscellaneous/79-management-interface.html

А в нем написано:

COMMAND -- exit, quit

Close the managment session, and resume listening on the management port for connections from other clients. Currently, the OpenVPN daemon can at most support a single management client any one time.

Delagen commented 8 years ago

+1

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days unless you comment. Thank you for your contributions.