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

Error after installing #12

Open
hypoflex opened this issue Oct 10, 2024 · 1 comment
Open

Error after installing #12

hypoflex opened this issue Oct 10, 2024 · 1 comment

Comments

@hypoflex
Copy link

hypoflex commented Oct 10, 2024

container fails to start and throws bunch of python errors

System: Unraid Version 7.0.0-beta.2 2024-07-12

2024-10-10T11:24:08+0200 [stdout#info] [WEB] OUT: 'WSERV admin+client 127.0.0.1 904'
2024-10-10T11:24:08+0200 [stdout#info] [WEB] OUT: 'WSERV admin 127.0.0.1 905'
2024-10-10T11:24:08+0200 [stdout#info] [WEB] OUT: 'WSERV client 127.0.0.1 906'
2024-10-10T11:24:08+0200 [stdout#info] [WEB] OUT: 'WSERV xmlrpc 127.0.0.1 907'
2024-10-10T11:24:08+0200 [stdout#info] [WEB] OUT: 'WSERV admin+client+xmlrpc 127.0.0.1 908'
2024-10-10T11:24:08+0200 [stdout#info] [WEB] OUT: 'WSERV client+xmlrpc 127.0.0.1 909'
2024-10-10T11:24:08+0200 [stdout#info] [WEB] OUT: '2024-10-10T11:24:08+0200 [twisted.scripts._twistd_unix.UnixAppLogger#info] twistd 22.4.0 (/usr/bin/python3 3.10.12) starting up.'
2024-10-10T11:24:08+0200 [stdout#info] [WEB] OUT: '2024-10-10T11:24:08+0200 [twisted.scripts._twistd_unix.UnixAppLogger#info] reactor class: twisted.internet.epollreactor.EPollReactor.'
2024-10-10T11:24:08+0200 [stdout#info] [WEB] OUT: '2024-10-10T11:24:08+0200 [-] ASWebSite (TLS) starting on 943'
2024-10-10T11:24:08+0200 [stdout#info] [WEB] OUT: '2024-10-10T11:24:08+0200 [-] ASWebSite (TLS) starting on 904'
2024-10-10T11:24:08+0200 [stdout#info] [WEB] OUT: '2024-10-10T11:24:08+0200 [-] ASWebSite (TLS) starting on 905'
2024-10-10T11:24:08+0200 [stdout#info] [WEB] OUT: '2024-10-10T11:24:08+0200 [-] ASWebSite (TLS) starting on 906'
2024-10-10T11:24:08+0200 [stdout#info] [WEB] OUT: '2024-10-10T11:24:08+0200 [-] ASWebSite (TLS) starting on 907'
2024-10-10T11:24:08+0200 [stdout#info] [WEB] OUT: '2024-10-10T11:24:08+0200 [-] ASWebSite (TLS) starting on 908'
2024-10-10T11:24:08+0200 [stdout#info] [WEB] OUT: '2024-10-10T11:24:08+0200 [-] ASWebSite (TLS) starting on 909'
2024-10-10T11:24:08+0200 [stdout#info] [WEB] OUT: '2024-10-10T11:24:08+0200 [-] set uid/gid 1000/1000'
2024-10-10T11:24:08+0200 [stdout#info] [WEB] OUT: '2024-10-10T11:24:08+0200 [stdout#info] Web server running as UID 1000'
2024-10-10T11:24:08+0200 [stdout#info] iptables-save-PP ERR: '# Warning: iptables-legacy tables present, use iptables-legacy-save to see them'
2024-10-10T11:24:08+0200 [stdout#info] iptables-save-PP ERR: '# Warning: iptables-legacy tables present, use iptables-legacy-save to see them'
2024-10-10T11:24:08+0200 [stdout#info] *** MyError.report ***
2024-10-10T11:24:08+0200 [stdout#info] Stack Traceback  File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 857, in _runCallbacks
2024-10-10T11:24:08+0200 [stdout#info]     current.result = callback(  # type: ignore[misc]
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/sagent/ipts.py", line 136, in parse_validate
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/sagent/iptvpn.py", line 176, in parse_validate
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/sagent/vpnconfig.py", line 293, in daemon_dict_port_forward
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/sagent/vpnconfig.py", line 231, in daemon_dict
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/util/portpool.py", line 58, in alloc
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/_baseprocess.py", line 66, in maybeCallProcessEnded
2024-10-10T11:24:08+0200 [stdout#info]     proto.processEnded(Failure(reason))
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/svc/pp.py", line 132, in processEnded
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/svc/svcnotify.py", line 43, in notify_change_state
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 661, in callback
2024-10-10T11:24:08+0200 [stdout#info]     self._startRunCallbacks(result)
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 763, in _startRunCallbacks
2024-10-10T11:24:08+0200 [stdout#info]     self._runCallbacks()
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 857, in _runCallbacks
2024-10-10T11:24:08+0200 [stdout#info]     current.result = callback(  # type: ignore[misc]
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 1750, in gotResult
2024-10-10T11:24:08+0200 [stdout#info]     current_context.run(_inlineCallbacks, r, gen, status)
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 1663, in _inlineCallbacks
2024-10-10T11:24:08+0200 [stdout#info]     status.deferred.callback(getattr(e, "value", None))
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 661, in callback
2024-10-10T11:24:08+0200 [stdout#info]     self._startRunCallbacks(result)
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 763, in _startRunCallbacks
2024-10-10T11:24:08+0200 [stdout#info]     self._runCallbacks()
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 857, in _runCallbacks
2024-10-10T11:24:08+0200 [stdout#info]     current.result = callback(  # type: ignore[misc]
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/util/defer.py", line 11, in cb
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 661, in callback
2024-10-10T11:24:08+0200 [stdout#info]     self._startRunCallbacks(result)
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 763, in _startRunCallbacks
2024-10-10T11:24:08+0200 [stdout#info]     self._runCallbacks()
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 857, in _runCallbacks
2024-10-10T11:24:08+0200 [stdout#info]     current.result = callback(  # type: ignore[misc]
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 1337, in _cbDeferred
2024-10-10T11:24:08+0200 [stdout#info]     self.callback(cast(_DeferredListResultListT, self.resultList))
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 661, in callback
2024-10-10T11:24:08+0200 [stdout#info]     self._startRunCallbacks(result)
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 763, in _startRunCallbacks
2024-10-10T11:24:08+0200 [stdout#info]     self._runCallbacks()
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 857, in _runCallbacks
2024-10-10T11:24:08+0200 [stdout#info]     current.result = callback(  # type: ignore[misc]
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/svc/svc.py", line 686, in _walk
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/sagent/ipts.py", line 187, in start
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/sagent/ipts.py", line 127, in external_resource_eval
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 497, in addCallback
2024-10-10T11:24:08+0200 [stdout#info]     return self.addCallbacks(callback, callbackArgs=args, callbackKeywords=kwargs)
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 477, in addCallbacks
2024-10-10T11:24:08+0200 [stdout#info]     self._runCallbacks()
2024-10-10T11:24:08+0200 [stdout#info]   File "/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.10.egg/twisted/internet/defer.py", line 857, in _runCallbacks
2024-10-10T11:24:08+0200 [stdout#info]     current.result = callback(  # type: ignore[misc]
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/sagent/ipts.py", line 136, in parse_validate
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/sagent/iptvpn.py", line 176, in parse_validate
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/sagent/vpnconfig.py", line 293, in daemon_dict_port_forward
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/sagent/vpnconfig.py", line 231, in daemon_dict
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/util/portpool.py", line 58, in alloc
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/util/error.py", line 110, in __init__
2024-10-10T11:24:08+0200 [stdout#info]   File "build/bdist.linux-x86_64/egg/pyovpn/util/error.py", line 91, in __init__
2024-10-10T11:24:08+0200 [stdout#info] Service deferred error: PortPool: port pool depleted, cannot satisfy request for 'openvpn_74': internet/defer:857,sagent/ipts:136,sagent/iptvpn:176,sagent/vpnconfig:293,sagent/vpnconfig:231,util/portpool:58,internet/_baseprocess:66,svc/pp:132,svc/svcnotify:43,internet/defer:661,internet/defer:763,internet/defer:857,internet/defer:1750,internet/defer:1663,internet/defer:661,internet/defer:763,internet/defer:857,util/defer:11,internet/defer:661,internet/defer:763,internet/defer:857,internet/defer:1337,internet/defer:661,internet/defer:763,internet/defer:857,svc/svc:686,sagent/ipts:187,sagent/ipts:127,internet/defer:497,internet/defer:477,internet/defer:857,sagent/ipts:136,sagent/iptvpn:176,sagent/vpnconfig:293,sagent/vpnconfig:231,util/portpool:58,util/error:110,util/error:91```
@novaflash
Copy link

This happens on a system that has a crazy high amount of processors. You can bypass the issue by issuing these commands;

docker exec -it openvpn-as /bin/bash
sacli --key "vpn.server.daemon.tcp.n_daemons" --value "4" configput
sacli --key "vpn.server.daemon.udp.n_daemons" --value "4" configput
sacli start

That should allow you to get the Access Server online with 4 OpenVPN TCP daemons and 4 OpenVPN UDP daemons.

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