vesku79
Hi, I just upgraded from 2.6.1 to 2.7.3 and /admin login is not working anymore. Error I get is "SESSION ERROR: SESSION: Your session has expired, please reauthenticate (9007)".
Downloaded yesterday.
dpkg -l openvpn-as
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===========================================-==========================-==========================-===========================================================================================
ii openvpn-as 2.7.3-05bc07c0-Ubuntu16 amd64 openvpn-as
/var/log/openvpnas.log
...
2019-03-27T11:12:57+0200 [twisted.python.log#info] "-" - - [27/Mar/2019:09:12:56 +0000] "POST /RPC2 HTTP/1.0" 200 1329 "-" "Twisted/XMLRPClib"
2019-03-27T11:12:57+0200 [stdout#info] [WEB] OUT: '2019-03-27T11:12:57+0200 [UDSProxyQueryProtocol,client] Logout of portal <twisted.cred.portal.Portal object at 0x7f47433ad210>'
2019-03-27T11:12:57+0200 [stdout#info] [WEB] OUT: '2019-03-27T11:12:57+0200 [twisted.python.log#info] "10.151.x.x" - - [27/Mar/2019:09:12:56 +0000] "POST /admin/__login__ HTTP/1.1" 302 59 "https://<dns-removed>/admin/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36"'
2019-03-27T11:12:57+0200 [stdout#info] [WEB] OUT: '2019-03-27T11:12:57+0200 [twisted.python.log#info] "10.151.x.x" - - [27/Mar/2019:09:12:56 +0000] "GET /admin HTTP/1.1" 302 - "https://<dns-removed>/admin/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36"'
2019-03-27T11:12:57+0200 [stdout#info] 'host.name': xml/authrpc:243,sagent/saccess:57,db/clusterdb:124,db/clusterdb:475 (exceptions.KeyError)
2019-03-27T11:12:57+0200 [twisted.python.log#info] "-" - - [27/Mar/2019:09:12:56 +0000] "POST /RPC2 HTTP/1.0" 200 290 "-" "Twisted/XMLRPClib"
2019-03-27T11:12:57+0200 [stdout#info] [WEB] OUT: "2019-03-27T11:12:57+0200 [stdout#info] SESSION ERROR: exceptions.KeyError: 'host.name' (9000)"
2019-03-27T11:12:57+0200 [stdout#info] [WEB] OUT: '2019-03-27T11:12:57+0200 [stdout#info] ERROR in renderHTTP (astatus.py)'
2019-03-27T11:12:57+0200 [stdout#info] [WEB] OUT: '2019-03-27T11:12:57+0200 [stdout#info] ClusterGetMyNodeName: <Fault 9000: "exceptions.KeyError: \'host.name\'">'
2019-03-27T11:12:57+0200 [stdout#info] [WEB] OUT: '2019-03-27T11:12:57+0200 [stdout#info] ClusterGetMyNodeName: <Fault 9000: "exceptions.KeyError: \'host.name\'">'
2019-03-27T11:12:57+0200 [twisted.python.log#info] "-" - - [27/Mar/2019:09:12:56 +0000] "POST /RPC2 HTTP/1.0" 200 197 "-" "Twisted/XMLRPClib"
2019-03-27T11:12:57+0200 [stdout#info] [WEB] OUT: "2019-03-27T11:12:57+0200 [stdout#info] SESSION ERROR: GuardSession instance has no attribute 'node': flat/twist:24,flat/ten:83,flat/flatstan:103,flat/ten:70,flat/ten:61,flat/flatstan:264,flat/ten:70,flat/ten:61,flat/flatstan:247,flat/flatstan:236,verge/verge:175 (exceptions.AttributeError)"
2019-03-27T11:12:57+0200 [stdout#info] [WEB] OUT: '2019-03-27T11:12:57+0200 [UDSProxyQueryProtocol,client] expired session 3307...'
2019-03-27T11:12:57+0200 [stdout#info] [WEB] OUT: '2019-03-27T11:12:57+0200 [UDSProxyQueryProtocol,client] Logout of portal <twisted.cred.portal.Portal object at 0x7f47433ad210>'
2019-03-27T11:12:57+0200 [stdout#info] [WEB] OUT: "2019-03-27T11:12:57+0200 [stdout#info] SESSION ERROR: ('Could not adapt', <pyovpn.web.weberr.SessionError object at 0x7f474262cd10>, <InterfaceClass nevow.inevow.ISession>): internet/defer:653,admin/autils:986,admin/autils:579 (exceptions.TypeError)"
2019-03-27T11:12:57+0200 [stdout#info] [WEB] OUT: '2019-03-27T11:12:57+0200 [stdout#info] ERROR in renderHTTP (astatus.py)'
2019-03-27T11:12:57+0200 [stdout#info] [WEB] OUT: "2019-03-27T11:12:57+0200 [stdout#info] <bound method AdminServerStatus.chain_load_internal_profile of <pyovpn.admin.astatus.AdminServerStatus object at 0x7f4742671210>>: ('Could not adapt', <pyovpn.web.weberr.SessionError object at 0x7f474262cd10>, <InterfaceClass nevow.inevow.ISession>)"
2019-03-27T11:12:57+0200 [stdout#info] [WEB] OUT: "2019-03-27T11:12:57+0200 [stdout#info] <bound method AdminServerStatus.chain_load_internal_profile of <pyovpn.admin.astatus.AdminServerStatus object at 0x7f4742671210>>: ('Could not adapt', <pyovpn.web.weberr.SessionError object at 0x7f474262cd10>, <InterfaceClass nevow.inevow.ISession>)"
2019-03-27T11:12:57+0200 [twisted.python.log#info] "-" - - [27/Mar/2019:09:12:56 +0000] "POST /RPC2 HTTP/1.0" 200 114 "-" "Twisted/XMLRPClib"
2019-03-27T11:12:57+0200 [twisted.python.log#info] "-" - - [27/Mar/2019:09:12:56 +0000] "POST /RPC2 HTTP/1.0" 200 314 "-" "Twisted/XMLRPClib"
2019-03-27T11:12:57+0200 [stdout#info] [WEB] OUT: '2019-03-27T11:12:57+0200 [stdout#info] SESSION ERROR: SESSION: Your session has expired, please reauthenticate (9007)'
2019-03-27T11:12:57+0200 [stdout#info] [WEB] OUT: '2019-03-27T11:12:57+0200 [twisted.python.log#info] "10.151.x.x" - - [27/Mar/2019:09:12:56 +0000] "GET /admin/status_overview HTTP/1.1" 500 963 "https://<dns-removed>/admin/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36"'
The Johan
Can you also please check and make sure 100% that you have downloaded and installed the exact correct version for your operating system? As in, that you installed the Ubuntu16 x64 installer for your Ubuntu16 x64 operating system, and not, for example, Ubuntu18 x64 version for your Ubuntu 16x64 operating system?
vesku79
Yes, have tried rebooting and using correct deb package (16.04 xenial x64). We are still using xenial due to bugs in 18.04 when using with Active Directory (unrelated to openvpn-as). I will try 2.7.3 with a different environment where we have 18.04. Thanks for responses. I will submit a ticket if needed.