10
9
Fork
You've already forked linux-app
14

Deactivation in GUI leads to error on console #469

Closed
opened 2022年03月22日 17:01:06 +01:00 by paulmelis · 5 comments
paulmelis commented 2022年03月22日 17:01:06 +01:00 (Migrated from github.com)
Copy link

Split off from #467.

Installation

From this repo, per readme instructions

Version

45c58ec010

OS/Distribution

Arch Linux

Logs

(venv) melis@juggle 11:18:~/c/python-eduvpn-client$ eduvpn-gui 
2022年03月22日 11:18:41,211 - MainThread - INFO - eduvpn.ui.ui - ui.py:580 - selection empty
2022年03月22日 11:18:41,211 - MainThread - INFO - eduvpn.ui.ui - ui.py:580 - selection empty
2022年03月22日 11:18:41,212 - MainThread - INFO - eduvpn.ui.ui - ui.py:580 - selection empty
2022年03月22日 11:18:41,226 - init-server-db - INFO - eduvpn.remote - remote.py:23 - Requesting https://disco.eduvpn.org/v2/server_list.json
2022年03月22日 11:18:41,368 - init-server-db - INFO - eduvpn.remote - remote.py:37 - Retrieving signature https://disco.eduvpn.org/v2/server_list.json.minisig
2022年03月22日 11:18:41,479 - init-server-db - INFO - eduvpn.remote - remote.py:44 - verifying signature of https://disco.eduvpn.org/v2/server_list.json
2022年03月22日 11:18:41,480 - init-server-db - INFO - eduvpn.remote - remote.py:23 - Requesting https://disco.eduvpn.org/v2/organization_list.json
2022年03月22日 11:18:41,659 - init-server-db - INFO - eduvpn.remote - remote.py:37 - Retrieving signature https://disco.eduvpn.org/v2/organization_list.json.minisig
2022年03月22日 11:18:41,777 - init-server-db - INFO - eduvpn.remote - remote.py:44 - verifying signature of https://disco.eduvpn.org/v2/organization_list.json
2022年03月22日 11:18:42,845 - MainThread - INFO - eduvpn.ui.ui - ui.py:580 - selection empty
2022年03月22日 11:18:42,845 - MainThread - INFO - eduvpn.ui.ui - ui.py:580 - selection empty
2022年03月22日 11:18:42,846 - oauth-refresh - INFO - eduvpn.remote - remote.py:23 - Requesting https://surf.eduvpn.nl/.well-known/vpn-user-portal
2022年03月22日 11:18:43,002 - load-server-info - INFO - eduvpn.remote - remote.py:23 - Requesting https://surf.eduvpn.nl/.well-known/vpn-user-portal
2022年03月22日 11:18:43,129 - configure-connection - INFO - eduvpn.remote - remote.py:23 - Requesting https://surf.eduvpn.nl/.well-known/vpn-user-portal
2022年03月22日 11:18:43,362 - MainThread - INFO - eduvpn.nm - nm.py:265 - writing ovpn configuration to Network Manager
2022年03月22日 11:18:43,362 - MainThread - INFO - eduvpn.nm - nm.py:188 - Writing configuration to /tmp/tmpbfeg_wqz/eduVPN.ovpn
2022年03月22日 11:18:43,558 - MainThread - INFO - eduvpn.nm - nm.py:221 - Updating existing connection with new configuration
2022年03月22日 11:18:43,580 - MainThread - INFO - eduvpn.interface.event - event.py:187 - Finished saving network manager config: <Gio.Task object at 0x7fcbe37ad300 (GTask at 0x55cd21e02100)>
2022年03月22日 11:18:43,583 - MainThread - INFO - eduvpn.nm - nm.py:354 - setting default gateway: False
2022年03月22日 11:18:43,601 - MainThread - INFO - eduvpn.nm - nm.py:286 - activate_connection uuid: c13b19c5-3dbf-485b-b353-8a9be1d55caa connection: <NM.RemoteConnection object at 0x7fcbe37ac740 (NMRemoteConnection at 0x55cd21d011f0)>
2022年03月22日 11:18:43,675 - MainThread - INFO - eduvpn.nm - nm.py:301 - activate_connection_async result: <NM.VpnConnection object at 0x7fcbe045fa40 (NMVpnConnection at 0x55cd21f81370)>
<deactivate in GUI with the 0/1 switch>
2022年03月22日 11:18:53,305 - stop-connection - INFO - eduvpn.remote - remote.py:23 - Requesting https://surf.eduvpn.nl/.well-known/vpn-user-portal
Traceback (most recent call last):
 File "/home/melis/c/python-eduvpn-client/eduvpn/ui/ui.py", line 616, in on_switch_connection_state
 self.app.interface_transition('deactivate_connection')
 File "/home/melis/c/python-eduvpn-client/eduvpn/app.py", line 172, in interface_transition
 self._base_transition(
 File "/home/melis/c/python-eduvpn-client/eduvpn/app.py", line 133, in _base_transition
 state_machine.transition(
 File "/home/melis/c/python-eduvpn-client/eduvpn/state_machine.py", line 174, in transition
 new_state = transition_func(*args, **kwargs)
 File "/home/melis/c/python-eduvpn-client/eduvpn/interface/state.py", line 364, in deactivate_connection
 app.network_transition('disconnect')
 File "/home/melis/c/python-eduvpn-client/eduvpn/app.py", line 148, in network_transition
 self._base_transition(
 File "/home/melis/c/python-eduvpn-client/eduvpn/app.py", line 133, in _base_transition
 state_machine.transition(
 File "/home/melis/c/python-eduvpn-client/eduvpn/state_machine.py", line 176, in transition
 with self.trigger_callbacks(old_state, new_state):
 File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
 next(self.gen)
 File "/home/melis/c/python-eduvpn-client/eduvpn/state_machine.py", line 188, in trigger_callbacks
 self._call_edge_callbacks(ENTER, old_state, new_state)
 File "/home/melis/c/python-eduvpn-client/eduvpn/state_machine.py", line 262, in _call_edge_callbacks
 callback(old_state, new_state)
 File "/home/melis/c/python-eduvpn-client/eduvpn/ui/app.py", line 153, in enter_DisconnectedState
 self.connection_notification.hide()
 File "/home/melis/c/python-eduvpn-client/eduvpn/notify.py", line 32, in hide
 self.notification.close() # type: ignore
gi.repository.GLib.GError: notification-daemon-error-quark: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._notification_2ddaemon_2derror_2dquark.Code100: 0 is not a valid notification ID (100)

I see no messages in the journalctl output when I run the deactivate command, seems to get stuck before doing anything.

What extra information would you need on my setup?

Split off from #467. # Installation From this repo, per readme instructions # Version 45c58ec0108bd2dfc11d082fce38c2239a1c220e # OS/Distribution Arch Linux # Logs ``` (venv) melis@juggle 11:18:~/c/python-eduvpn-client$ eduvpn-gui 2022年03月22日 11:18:41,211 - MainThread - INFO - eduvpn.ui.ui - ui.py:580 - selection empty 2022年03月22日 11:18:41,211 - MainThread - INFO - eduvpn.ui.ui - ui.py:580 - selection empty 2022年03月22日 11:18:41,212 - MainThread - INFO - eduvpn.ui.ui - ui.py:580 - selection empty 2022年03月22日 11:18:41,226 - init-server-db - INFO - eduvpn.remote - remote.py:23 - Requesting https://disco.eduvpn.org/v2/server_list.json 2022年03月22日 11:18:41,368 - init-server-db - INFO - eduvpn.remote - remote.py:37 - Retrieving signature https://disco.eduvpn.org/v2/server_list.json.minisig 2022年03月22日 11:18:41,479 - init-server-db - INFO - eduvpn.remote - remote.py:44 - verifying signature of https://disco.eduvpn.org/v2/server_list.json 2022年03月22日 11:18:41,480 - init-server-db - INFO - eduvpn.remote - remote.py:23 - Requesting https://disco.eduvpn.org/v2/organization_list.json 2022年03月22日 11:18:41,659 - init-server-db - INFO - eduvpn.remote - remote.py:37 - Retrieving signature https://disco.eduvpn.org/v2/organization_list.json.minisig 2022年03月22日 11:18:41,777 - init-server-db - INFO - eduvpn.remote - remote.py:44 - verifying signature of https://disco.eduvpn.org/v2/organization_list.json 2022年03月22日 11:18:42,845 - MainThread - INFO - eduvpn.ui.ui - ui.py:580 - selection empty 2022年03月22日 11:18:42,845 - MainThread - INFO - eduvpn.ui.ui - ui.py:580 - selection empty 2022年03月22日 11:18:42,846 - oauth-refresh - INFO - eduvpn.remote - remote.py:23 - Requesting https://surf.eduvpn.nl/.well-known/vpn-user-portal 2022年03月22日 11:18:43,002 - load-server-info - INFO - eduvpn.remote - remote.py:23 - Requesting https://surf.eduvpn.nl/.well-known/vpn-user-portal 2022年03月22日 11:18:43,129 - configure-connection - INFO - eduvpn.remote - remote.py:23 - Requesting https://surf.eduvpn.nl/.well-known/vpn-user-portal 2022年03月22日 11:18:43,362 - MainThread - INFO - eduvpn.nm - nm.py:265 - writing ovpn configuration to Network Manager 2022年03月22日 11:18:43,362 - MainThread - INFO - eduvpn.nm - nm.py:188 - Writing configuration to /tmp/tmpbfeg_wqz/eduVPN.ovpn 2022年03月22日 11:18:43,558 - MainThread - INFO - eduvpn.nm - nm.py:221 - Updating existing connection with new configuration 2022年03月22日 11:18:43,580 - MainThread - INFO - eduvpn.interface.event - event.py:187 - Finished saving network manager config: <Gio.Task object at 0x7fcbe37ad300 (GTask at 0x55cd21e02100)> 2022年03月22日 11:18:43,583 - MainThread - INFO - eduvpn.nm - nm.py:354 - setting default gateway: False 2022年03月22日 11:18:43,601 - MainThread - INFO - eduvpn.nm - nm.py:286 - activate_connection uuid: c13b19c5-3dbf-485b-b353-8a9be1d55caa connection: <NM.RemoteConnection object at 0x7fcbe37ac740 (NMRemoteConnection at 0x55cd21d011f0)> 2022年03月22日 11:18:43,675 - MainThread - INFO - eduvpn.nm - nm.py:301 - activate_connection_async result: <NM.VpnConnection object at 0x7fcbe045fa40 (NMVpnConnection at 0x55cd21f81370)> <deactivate in GUI with the 0/1 switch> 2022年03月22日 11:18:53,305 - stop-connection - INFO - eduvpn.remote - remote.py:23 - Requesting https://surf.eduvpn.nl/.well-known/vpn-user-portal Traceback (most recent call last): File "/home/melis/c/python-eduvpn-client/eduvpn/ui/ui.py", line 616, in on_switch_connection_state self.app.interface_transition('deactivate_connection') File "/home/melis/c/python-eduvpn-client/eduvpn/app.py", line 172, in interface_transition self._base_transition( File "/home/melis/c/python-eduvpn-client/eduvpn/app.py", line 133, in _base_transition state_machine.transition( File "/home/melis/c/python-eduvpn-client/eduvpn/state_machine.py", line 174, in transition new_state = transition_func(*args, **kwargs) File "/home/melis/c/python-eduvpn-client/eduvpn/interface/state.py", line 364, in deactivate_connection app.network_transition('disconnect') File "/home/melis/c/python-eduvpn-client/eduvpn/app.py", line 148, in network_transition self._base_transition( File "/home/melis/c/python-eduvpn-client/eduvpn/app.py", line 133, in _base_transition state_machine.transition( File "/home/melis/c/python-eduvpn-client/eduvpn/state_machine.py", line 176, in transition with self.trigger_callbacks(old_state, new_state): File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__ next(self.gen) File "/home/melis/c/python-eduvpn-client/eduvpn/state_machine.py", line 188, in trigger_callbacks self._call_edge_callbacks(ENTER, old_state, new_state) File "/home/melis/c/python-eduvpn-client/eduvpn/state_machine.py", line 262, in _call_edge_callbacks callback(old_state, new_state) File "/home/melis/c/python-eduvpn-client/eduvpn/ui/app.py", line 153, in enter_DisconnectedState self.connection_notification.hide() File "/home/melis/c/python-eduvpn-client/eduvpn/notify.py", line 32, in hide self.notification.close() # type: ignore gi.repository.GLib.GError: notification-daemon-error-quark: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._notification_2ddaemon_2derror_2dquark.Code100: 0 is not a valid notification ID (100) ``` I see no messages in the journalctl output when I run the deactivate command, seems to get stuck before doing anything. What extra information would you need on my setup?
paulmelis commented 2022年03月22日 17:45:19 +01:00 (Migrated from github.com)
Copy link

For starters, this is with NetworkManager 1.36.2-1, openvpn 2.5.5-1, networkmanager-openvpn 1.8.18-1

For starters, this is with NetworkManager 1.36.2-1, openvpn 2.5.5-1, networkmanager-openvpn 1.8.18-1
gijzelaerr commented 2022年04月22日 16:00:49 +02:00 (Migrated from github.com)
Copy link

@paulmelis is this still an issue for you with the latest pre-release version in the master branch?

@paulmelis is this still an issue for you with the latest pre-release version in the master branch?
paulmelis commented 2022年04月26日 09:08:48 +02:00 (Migrated from github.com)
Copy link

Nope, seems to be gone with the git head I just tried

Nope, seems to be gone with the git head I just tried
jwijenbergh commented 2022年06月14日 12:58:17 +02:00 (Migrated from github.com)
Copy link

So this can be closed then?

So this can be closed then?
gijzelaerr commented 2022年06月14日 12:59:47 +02:00 (Migrated from github.com)
Copy link

Yes. Thanks, @paulmelis and @jwijenbergh. Please reopen this issue if the problem reoccures.

Yes. Thanks, @paulmelis and @jwijenbergh. Please reopen this issue if the problem reoccures.
Sign in to join this conversation.
No Branch/Tag specified
master
upstream-deb
openvpn-persistent
1.x
4.7.2
4.7.1
4.7.0
4.6.0
4.5.1
4.5.0
4.4.99.0
4.4.0
4.3.1
4.3.0
4.2.99.1
4.2.99.0
4.2.1
4.2.0
4.1.99.0
4.1.3
4.1.2
4.1.1
4.1.0
3.1.1
4.0.1
4.0.0
pr-3.3.1
pr-3.3.0
pr-3.2.0
3.1.0
3.0.0
2.2.1
2.2.0
2.1.0
2.0.0
1.1
1.0.3
1.0.2
1.0.1
1.0rc17
1.0rc16
1.0rc15
1.0rc14
1.0rc13
1.0rc12
1.0rc11
1.0rc10
1.0rc9
1.0rc8
1.0rc7
1.0rc6
1.0rc5
1.0rc4
1.0rc3
1.0rc2
1.0rc1
0.8
0.7.2
0.7.1
0.7
0.6.1
0.6
0.5.1
0.5
0.3
0.2.1
0.2
0.1.1
0.1
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
eduVPN/linux-app#469
Reference in a new issue
eduVPN/linux-app
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?