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

Errors when connection with name eduVPN already exists #649

Closed
opened 2025年06月16日 13:21:25 +02:00 by maromcik · 4 comments

Installation

By following this guide https://docs.eduvpn.org/client/linux/installation.html

Version

4.5.1

Check if your issue is in the known issues list

It is not

OS/Distribution

Fedora 42, Ubuntu 24

Description

More and more users here at Masaryk University are complaining about connection issues on Linux (and also Windows machines, I will create an issue in the Win app repo).

Apparently, the application often hangs, for multiple reasons. I will try to explain some scenarios that led to these problems.

I think most (if not all) of these problems come down to users having more than one connection in Network Manager under the name "eduVPN" or a single orphaned one with the same name.

1. Multiple accounts

A user works on a machine from multiple accounts, leaving eduVPN active in one of the profiles when attempting to activate eduVPN from the other profile, the application hangs.

I managed to replicate the issue. I was forced to close the app.

Repeating the process results in the same outcome. I did not manage to establish connection.

Logs

2025年06月16日 12:41:00,559 - MainThread - ERROR - eduvpn.nm - nm.py:739 - nm-manager-error-quark: Private connection already active on the device: uid 1001 has no permission to perform this operation (1)
2025年06月16日 12:42:14,456 - call-model - WARNING - eduvpn.nm - nm.py:780 - no connection to deactivate of uuid <module 'uuid' from '/usr/lib64/python3.13/uuid.py'>
2025年06月16日 12:42:29,596 - MainThread - ERROR - eduvpn.nm - nm.py:739 - nm-manager-error-quark: Private connection already active on the device: uid 1001 has no permission to perform this operation (1)
2025年06月16日 12:42:34,979 - call-model - WARNING - eduvpn.nm - nm.py:780 - no connection to deactivate of uuid <module 'uuid' from '/usr/lib64/python3.13/uuid.py'>

2.

We are not sure what steps led to this issue. The colleague that was having the issue no longer works here. However, he had to resort to using a configuration Wireguard file from the portal.

Logs

2024年12月02日 08:03:20,372 - MainThread - ERROR - eduvpn.nm - nm.py:783 - delete_connection_async exception: nm-settings-error-quark: Error checking authorization: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying (0)
2025年01月06日 09:21:13,817 - MainThread - ERROR - eduvpn.nm - nm.py:783 - delete_connection_async exception: nm-settings-error-quark: Error checking authorization: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying (0)
2025年01月24日 07:47:26,749 - MainThread - ERROR - eduvpn.nm - nm.py:820 - nm-device-error-quark: This device is not active (4)
2025年01月24日 07:47:26,761 - MainThread - ERROR - eduvpn.nm - nm.py:783 - delete_connection_async exception: nm-settings-error-quark: Error checking authorization: GDBus.Error:org.freedesktop.systemd1.TransactionIsDestructive: Transaction for polkit.service/start is destructive (proc-sys-fs-binfmt_misc.automount has 'stop' job queued, but 'start' is included in transaction). (0)
2025年02月04日 09:25:38,099 - MainThread - ERROR - eduvpn.nm - nm.py:820 - nm-device-error-quark: This device is not active (4)
2025年02月04日 09:25:38,136 - MainThread - ERROR - eduvpn.nm - nm.py:783 - delete_connection_async exception: nm-settings-error-quark: Error checking authorization: GDBus.Error:org.freedesktop.systemd1.TransactionIsDestructive: Transaction for polkit.service/start is destructive (systemd-reboot.service has 'start' job queued, but 'stop' is included in transaction). (0)
2025年02月04日 10:09:54,628 - MainThread - ERROR - eduvpn.nm - nm.py:783 - delete_connection_async exception: nm-settings-error-quark: Error checking authorization: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying (0)
2025年02月11日 06:51:16,020 - MainThread - ERROR - eduvpn.nm - nm.py:820 - nm-device-error-quark: Device is not active (4)
2025年02月11日 06:51:16,066 - MainThread - ERROR - eduvpn.nm - nm.py:783 - delete_connection_async exception: nm-settings-error-quark: Error checking authorization: GDBus.Error:org.freedesktop.systemd1.TransactionIsDestructive: Transaction for polkit.service/start is destructive (systemd-fsck@dev-disk-by\x2duuid-3918\x2dF710.service has 'stop' job queued, but 'start' is included in transaction). (0)
2025年02月20日 07:39:59,494 - MainThread - ERROR - eduvpn.nm - nm.py:820 - nm-device-error-quark: This device is not active (4)
2025年02月20日 07:39:59,586 - MainThread - ERROR - eduvpn.nm - nm.py:783 - delete_connection_async exception: nm-settings-error-quark: Error checking authorization: GDBus.Error:org.freedesktop.systemd1.TransactionIsDestructive: Transaction for polkit.service/start is destructive (systemd-update-utmp.service has 'stop' job queued, but 'start' is included in transaction). (0)
2025年02月21日 09:41:36,156 - MainThread - ERROR - eduvpn.nm - nm.py:783 - delete_connection_async exception: nm-settings-error-quark: Error checking authorization: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying (0)
2025年02月26日 10:16:46,812 - MainThread - ERROR - eduvpn.nm - nm.py:917 - add connection error: g-io-error-quark: Operation was cancelled (19)
2025年02月26日 10:16:46,813 - call-model - WARNING - eduvpn.nm - nm.py:706 - no connection to deactivate of uuid <module 'uuid' from '/usr/lib/python3.12/uuid.py'>
2025年02月26日 10:19:51,481 - MainThread - ERROR - eduvpn.nm - nm.py:917 - add connection error: g-dbus-error-quark: Message recipient disconnected from message bus without replying (4)
2025年02月26日 10:19:57,944 - call-model - WARNING - eduvpn.nm - nm.py:706 - no connection to deactivate of uuid <module 'uuid' from '/usr/lib/python3.12/uuid.py'>
2025年02月26日 10:28:09,977 - MainThread - ERROR - eduvpn.nm - nm.py:917 - add connection error: g-dbus-error-quark: Message recipient disconnected from message bus without replying (4)
2025年02月26日 10:28:16,997 - call-model - WARNING - eduvpn.nm - nm.py:706 - no connection to deactivate of uuid <module 'uuid' from '/usr/lib/python3.12/uuid.py'>
2025年02月26日 10:29:30,115 - MainThread - ERROR - eduvpn.nm - nm.py:917 - add connection error: g-dbus-error-quark: Message recipient disconnected from message bus without replying (4)
2025年02月26日 10:29:42,919 - call-model - WARNING - eduvpn.nm - nm.py:706 - no connection to deactivate of uuid <module 'uuid' from '/usr/lib/python3.12/uuid.py'>

3. Deleting contents of the .config/eduvpn/ folder

Many users try to resolve issues by deleting the .config/eduvpn folder. This action results in logs below.

Logs

2025年06月16日 11:07:39,160 - call-model - ERROR - /usr/lib/python3.13/site-packages/eduvpn/utils.py - utils.py:143 - exception occurred: Failed to obtain a VPN configuration for server: 'https://eduvpn.muni.cz/'. The cause of the error is: Timeout reached contacting URL: 'https://eduvpn.muni.cz/vpn-user-portal/api/v3/connect'.
2025年06月16日 11:07:39,175 - MainThread - ERROR - /usr/lib/python3.13/site-packages/eduvpn/utils.py - utils.py:28 - Unhandled exception
Traceback (most recent call last):
 File "/usr/lib/python3.13/site-packages/eduvpn/utils.py", line 97, in inner
 func(self, other_state, data)
 ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3.13/site-packages/eduvpn/ui/ui.py", line 809, in enter_MainState
 secure = self.app.model.server_db.secure_internet
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3.13/site-packages/eduvpn/server.py", line 278, in secure_internet
 for server in self.configured:
 ^^^^^^^^^^^^^^^
 File "/usr/lib/python3.13/site-packages/eduvpn/server.py", line 293, in configured
 return parse_servers(self.wrapper.get_servers())
 ~~~~~~~~~~~~~~~~~~~~~~~~^^
 File "/usr/lib/python3.13/site-packages/eduvpn_common/main.py", line 236, in get_servers
 forwardError(servers_err)
 ~~~~~~~~~~~~^^^^^^^^^^^^^
 File "/usr/lib/python3.13/site-packages/eduvpn_common/main.py", line 58, in forwardError
 raise WrappedError(d["message"], "en", d["misc"])
eduvpn_common.main.WrappedError: An internal error occurred. The cause of the error is: No state available, did you register the client?.
2025年06月16日 11:07:57,750 - call-model - ERROR - /usr/lib/python3.13/site-packages/eduvpn/utils.py - utils.py:143 - exception occurred: Failed to obtain a VPN configuration for server: 'https://eduvpn.muni.cz/'. The cause of the error is: Timeout reached contacting URL: 'https://eduvpn.muni.cz/.well-known/vpn-user-portal'.
2025年06月16日 11:08:50,000 - call-model - ERROR - /usr/lib/python3.13/site-packages/eduvpn/utils.py - utils.py:143 - exception occurred: Failed to obtain a VPN configuration for server: 'https://eduvpn.muni.cz/'. The cause of the error is: Timeout reached contacting URL: 'https://eduvpn.muni.cz/vpn-user-portal/api/v3/info'.
2025年06月16日 11:09:20,750 - call-model - ERROR - /usr/lib/python3.13/site-packages/eduvpn/utils.py - utils.py:143 - exception occurred: Failed to obtain a VPN configuration for server: 'https://eduvpn.muni.cz/'. The cause of the error is: Timeout reached contacting URL: 'https://eduvpn.muni.cz/vpn-user-portal/api/v3/info'.
2025年06月16日 12:29:48,221 - MainThread - WARNING - eduvpn.nm - nm.py:912 - Cannot disconnect, no WireGuard device

In all of these cases, deleting NM connections with nmcli con delete eduVPN resolved the issue, however users are running into similar problems repeatedly, which means new orphaned or duplicate connections are somehow created by the app.

Could you please provide us assistance with these issues?

I know the issues are not very coherent or well-reproducible. I will be happy to provide more information if there is something specific you need to know.

Thanks

# Installation By following this guide https://docs.eduvpn.org/client/linux/installation.html # Version 4.5.1 # Check if your issue is in the known issues list It is not # OS/Distribution Fedora 42, Ubuntu 24 # Description More and more users here at Masaryk University are complaining about connection issues on Linux (and also Windows machines, I will create an issue in the Win app repo). Apparently, the application often hangs, for multiple reasons. I will try to explain some scenarios that led to these problems. I think most (if not all) of these problems come down to users having more than one connection in Network Manager under the name "eduVPN" or a single orphaned one with the same name. ## 1. Multiple accounts A user works on a machine from multiple accounts, leaving eduVPN active in one of the profiles when attempting to activate eduVPN from the other profile, the application hangs. I managed to replicate the issue. I was forced to close the app. Repeating the process results in the same outcome. I did not manage to establish connection. ### Logs ``` 2025年06月16日 12:41:00,559 - MainThread - ERROR - eduvpn.nm - nm.py:739 - nm-manager-error-quark: Private connection already active on the device: uid 1001 has no permission to perform this operation (1) 2025年06月16日 12:42:14,456 - call-model - WARNING - eduvpn.nm - nm.py:780 - no connection to deactivate of uuid <module 'uuid' from '/usr/lib64/python3.13/uuid.py'> 2025年06月16日 12:42:29,596 - MainThread - ERROR - eduvpn.nm - nm.py:739 - nm-manager-error-quark: Private connection already active on the device: uid 1001 has no permission to perform this operation (1) 2025年06月16日 12:42:34,979 - call-model - WARNING - eduvpn.nm - nm.py:780 - no connection to deactivate of uuid <module 'uuid' from '/usr/lib64/python3.13/uuid.py'> ``` ## 2. We are not sure what steps led to this issue. The colleague that was having the issue no longer works here. However, he had to resort to using a configuration Wireguard file from the portal. ### Logs ``` 2024年12月02日 08:03:20,372 - MainThread - ERROR - eduvpn.nm - nm.py:783 - delete_connection_async exception: nm-settings-error-quark: Error checking authorization: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying (0) 2025年01月06日 09:21:13,817 - MainThread - ERROR - eduvpn.nm - nm.py:783 - delete_connection_async exception: nm-settings-error-quark: Error checking authorization: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying (0) 2025年01月24日 07:47:26,749 - MainThread - ERROR - eduvpn.nm - nm.py:820 - nm-device-error-quark: This device is not active (4) 2025年01月24日 07:47:26,761 - MainThread - ERROR - eduvpn.nm - nm.py:783 - delete_connection_async exception: nm-settings-error-quark: Error checking authorization: GDBus.Error:org.freedesktop.systemd1.TransactionIsDestructive: Transaction for polkit.service/start is destructive (proc-sys-fs-binfmt_misc.automount has 'stop' job queued, but 'start' is included in transaction). (0) 2025年02月04日 09:25:38,099 - MainThread - ERROR - eduvpn.nm - nm.py:820 - nm-device-error-quark: This device is not active (4) 2025年02月04日 09:25:38,136 - MainThread - ERROR - eduvpn.nm - nm.py:783 - delete_connection_async exception: nm-settings-error-quark: Error checking authorization: GDBus.Error:org.freedesktop.systemd1.TransactionIsDestructive: Transaction for polkit.service/start is destructive (systemd-reboot.service has 'start' job queued, but 'stop' is included in transaction). (0) 2025年02月04日 10:09:54,628 - MainThread - ERROR - eduvpn.nm - nm.py:783 - delete_connection_async exception: nm-settings-error-quark: Error checking authorization: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying (0) 2025年02月11日 06:51:16,020 - MainThread - ERROR - eduvpn.nm - nm.py:820 - nm-device-error-quark: Device is not active (4) 2025年02月11日 06:51:16,066 - MainThread - ERROR - eduvpn.nm - nm.py:783 - delete_connection_async exception: nm-settings-error-quark: Error checking authorization: GDBus.Error:org.freedesktop.systemd1.TransactionIsDestructive: Transaction for polkit.service/start is destructive (systemd-fsck@dev-disk-by\x2duuid-3918\x2dF710.service has 'stop' job queued, but 'start' is included in transaction). (0) 2025年02月20日 07:39:59,494 - MainThread - ERROR - eduvpn.nm - nm.py:820 - nm-device-error-quark: This device is not active (4) 2025年02月20日 07:39:59,586 - MainThread - ERROR - eduvpn.nm - nm.py:783 - delete_connection_async exception: nm-settings-error-quark: Error checking authorization: GDBus.Error:org.freedesktop.systemd1.TransactionIsDestructive: Transaction for polkit.service/start is destructive (systemd-update-utmp.service has 'stop' job queued, but 'start' is included in transaction). (0) 2025年02月21日 09:41:36,156 - MainThread - ERROR - eduvpn.nm - nm.py:783 - delete_connection_async exception: nm-settings-error-quark: Error checking authorization: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying (0) 2025年02月26日 10:16:46,812 - MainThread - ERROR - eduvpn.nm - nm.py:917 - add connection error: g-io-error-quark: Operation was cancelled (19) 2025年02月26日 10:16:46,813 - call-model - WARNING - eduvpn.nm - nm.py:706 - no connection to deactivate of uuid <module 'uuid' from '/usr/lib/python3.12/uuid.py'> 2025年02月26日 10:19:51,481 - MainThread - ERROR - eduvpn.nm - nm.py:917 - add connection error: g-dbus-error-quark: Message recipient disconnected from message bus without replying (4) 2025年02月26日 10:19:57,944 - call-model - WARNING - eduvpn.nm - nm.py:706 - no connection to deactivate of uuid <module 'uuid' from '/usr/lib/python3.12/uuid.py'> 2025年02月26日 10:28:09,977 - MainThread - ERROR - eduvpn.nm - nm.py:917 - add connection error: g-dbus-error-quark: Message recipient disconnected from message bus without replying (4) 2025年02月26日 10:28:16,997 - call-model - WARNING - eduvpn.nm - nm.py:706 - no connection to deactivate of uuid <module 'uuid' from '/usr/lib/python3.12/uuid.py'> 2025年02月26日 10:29:30,115 - MainThread - ERROR - eduvpn.nm - nm.py:917 - add connection error: g-dbus-error-quark: Message recipient disconnected from message bus without replying (4) 2025年02月26日 10:29:42,919 - call-model - WARNING - eduvpn.nm - nm.py:706 - no connection to deactivate of uuid <module 'uuid' from '/usr/lib/python3.12/uuid.py'> ``` ## 3. Deleting contents of the `.config/eduvpn/` folder Many users try to resolve issues by deleting the `.config/eduvpn` folder. This action results in logs below. ### Logs ``` 2025年06月16日 11:07:39,160 - call-model - ERROR - /usr/lib/python3.13/site-packages/eduvpn/utils.py - utils.py:143 - exception occurred: Failed to obtain a VPN configuration for server: 'https://eduvpn.muni.cz/'. The cause of the error is: Timeout reached contacting URL: 'https://eduvpn.muni.cz/vpn-user-portal/api/v3/connect'. 2025年06月16日 11:07:39,175 - MainThread - ERROR - /usr/lib/python3.13/site-packages/eduvpn/utils.py - utils.py:28 - Unhandled exception Traceback (most recent call last): File "/usr/lib/python3.13/site-packages/eduvpn/utils.py", line 97, in inner func(self, other_state, data) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/eduvpn/ui/ui.py", line 809, in enter_MainState secure = self.app.model.server_db.secure_internet ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/eduvpn/server.py", line 278, in secure_internet for server in self.configured: ^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/eduvpn/server.py", line 293, in configured return parse_servers(self.wrapper.get_servers()) ~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib/python3.13/site-packages/eduvpn_common/main.py", line 236, in get_servers forwardError(servers_err) ~~~~~~~~~~~~^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/eduvpn_common/main.py", line 58, in forwardError raise WrappedError(d["message"], "en", d["misc"]) eduvpn_common.main.WrappedError: An internal error occurred. The cause of the error is: No state available, did you register the client?. 2025年06月16日 11:07:57,750 - call-model - ERROR - /usr/lib/python3.13/site-packages/eduvpn/utils.py - utils.py:143 - exception occurred: Failed to obtain a VPN configuration for server: 'https://eduvpn.muni.cz/'. The cause of the error is: Timeout reached contacting URL: 'https://eduvpn.muni.cz/.well-known/vpn-user-portal'. 2025年06月16日 11:08:50,000 - call-model - ERROR - /usr/lib/python3.13/site-packages/eduvpn/utils.py - utils.py:143 - exception occurred: Failed to obtain a VPN configuration for server: 'https://eduvpn.muni.cz/'. The cause of the error is: Timeout reached contacting URL: 'https://eduvpn.muni.cz/vpn-user-portal/api/v3/info'. 2025年06月16日 11:09:20,750 - call-model - ERROR - /usr/lib/python3.13/site-packages/eduvpn/utils.py - utils.py:143 - exception occurred: Failed to obtain a VPN configuration for server: 'https://eduvpn.muni.cz/'. The cause of the error is: Timeout reached contacting URL: 'https://eduvpn.muni.cz/vpn-user-portal/api/v3/info'. 2025年06月16日 12:29:48,221 - MainThread - WARNING - eduvpn.nm - nm.py:912 - Cannot disconnect, no WireGuard device ``` In all of these cases, deleting NM connections with `nmcli con delete eduVPN` resolved the issue, however users are running into similar problems repeatedly, which means new orphaned or duplicate connections are somehow created by the app. Could you please provide us assistance with these issues? I know the issues are not very coherent or well-reproducible. I will be happy to provide more information if there is something specific you need to know. Thanks
maromcik changed title from (削除) Errors when with name eduVPN already exists (削除ここまで) to Errors when connection with name eduVPN already exists 2025年06月16日 13:31:10 +02:00

Just replying to let you know that I am debugging this. Thanks for the issue

Just replying to let you know that I am debugging this. Thanks for the issue

On ubuntu 24.04:

  • Create user "test", activate eduVPN wireguard profile
  • Create user "test2", switch to test2 whilst eduVPN is active
  • NM crashes 🫨 and restarts, some assertion failed error
On ubuntu 24.04: - Create user "test", activate eduVPN wireguard profile - Create user "test2", switch to test2 whilst eduVPN is active - NM crashes 🫨 and restarts, some assertion failed error

on fedora, this indeed gives the permission denied error

on fedora, this indeed gives the permission denied error

I don't think there's anything actionable here

I don't think there's anything actionable here
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
2 participants
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#649
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?