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

Allow to change profile on main screen and offer to change profile #615

Closed
opened 2024年11月28日 11:38:07 +01:00 by Krafting · 4 comments
Krafting commented 2024年11月28日 11:38:07 +01:00 (Migrated from github.com)
Copy link

Installation

How did you install the eduVPN/Let's Connect! client?

Fedora 41 - using the official repos

Version

What version of the client you are running? Try your package manager or otherwise eduvpn-gui -v or letsconnect-gui -v.

eduVPN GUI version: 4.4.0 with eduvpn-common version: 2.1.0

Double check that you are running the latest version, see the releases page if a new version is available.

Check if your issue is in the known issues list

The known issues list is available here: https://docs.eduvpn.org/client/linux/support.html#known-issues

Not on the Known issue page

OS/Distribution

What operating system/distribution and version you are running?
Fedora 41 (Also happens in Ubuntu 22.04)

Logs

Do you have a problem while adding before connecting?

eduVPN/Let's Connect! will print out information to the console while running. Please try running eduvpn-gui -d or eduvpn-cli -d (or letsconnect-cli -d, letsconnect-gui -d for Let's Connect!) in a console. Note the -d flag here for verbose/debug logging. The log file is also located at ~/.config/eduvpn/log for eduVPN and ~/.config/letsconnect/log for Let's Connect!.

2024年11月28日 11:35:31,513 - MainThread - DEBUG - eduvpn.ui.app - app.py:69 - activate
2024年11月28日 11:35:31,593 - <function ApplicationModelTransitions.get_previous_servers at 0x7fdeec7587c0> - DEBUG - eduvpn.app - app.py:47 - Transition: MAIN, old state: 1
2024年11月28日 11:35:31 - Go - DEBUG - got 304 for discovery, server_list.json not modified
2024年11月28日 11:35:31,822 - MainThread - DEBUG - eduvpn.ui.ui - ui.py:1097 - server list refresh
2024年11月28日 11:35:32,844 - MainThread - DEBUG - eduvpn.ui.ui - ui.py:1181 - on server row pressed
2024年11月28日 11:35:32,919 - MainThread - DEBUG - eduvpn.ui.ui - ui.py:1142 - activated server: <eduvpn.server.Server object at 0x7fdeee0af890>
2024年11月28日 11:35:32,921 - <function ApplicationModelTransitions.getting_config at 0x7fdeec758c20> - DEBUG - eduvpn.app - app.py:62 - Transition: GETTING_CONFIG, old state: 1
2024年11月28日 11:35:33 - Go - DEBUG - i18n: could not load printer with tag: 'en' from map
2024年11月28日 11:35:33 - Go - DEBUG - saving state file
2024年11月28日 11:35:33 - Go - DEBUG - i18n: initializing languages...
2024年11月28日 11:35:33,023 - <function ApplicationModelTransitions.get_previous_servers at 0x7fdeec7587c0> - DEBUG - eduvpn.app - app.py:47 - Transition: MAIN, old state: 4
2024年11月28日 11:35:33,024 - 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.univ-nantes.fr/'. The cause of the error is: failed obtaining HTTP resource: 'https://eduvpn.univ-nantes.fr/vpn-user-portal/api/v3/connect' as it gave an unsuccessful status code: '406'. Body: '{"error":"no common VPN protocol [CLIENT=openvpn+udp,openvpn+tcp,wireguard+udp,wireguard+tcp SERVER=None]"}'.
Traceback (most recent call last):
 File "/usr/lib/python3.13/site-packages/eduvpn/ui/ui.py", line 378, in call_model
 func(*(args))
 ~~~~^^^^^^^^^
 File "/usr/lib/python3.13/site-packages/eduvpn/app.py", line 357, in connect
 config = self.connect_get_config(server, prefer_tcp=prefer_tcp)
 File "/usr/lib/python3.13/site-packages/eduvpn/app.py", line 272, in connect_get_config
 config = self.common.get_config(server.category_id, server.identifier, prefer_tcp)
 File "/usr/lib/python3.13/site-packages/eduvpn_common/main.py", line 257, in get_config
 forwardError(config_err)
 ~~~~~~~~~~~~^^^^^^^^^^^^
 File "/usr/lib/python3.13/site-packages/eduvpn_common/main.py", line 36, in forwardError
 raise WrappedError(d["message"], "en", d["misc"])
eduvpn_common.main.WrappedError: Failed to obtain a VPN configuration for server: 'https://eduvpn.univ-nantes.fr/'. The cause of the error is: failed obtaining HTTP resource: 'https://eduvpn.univ-nantes.fr/vpn-user-portal/api/v3/connect' as it gave an unsuccessful status code: '406'. Body: '{"error":"no common VPN protocol [CLIENT=openvpn+udp,openvpn+tcp,wireguard+udp,wireguard+tcp SERVER=None]"}'.

Do you have a problem during or after connecting?

Problem when connecting:

After selecting a bad profile, I'm stuck in this page:

image

Until I either fix the profile, or delete the configuration in ~/config/eduvpn/state.json

Note that deleting the profile from the server still prevent the Client to connect to anything else.

# Installation How did you install the eduVPN/Let's Connect! client? Fedora 41 - using the official repos # Version What version of the client you are running? Try your package manager or otherwise `eduvpn-gui -v` or `letsconnect-gui -v`. eduVPN GUI version: 4.4.0 with eduvpn-common version: 2.1.0 Double check that you are running the latest version, see [the releases page](https://github.com/eduvpn/python-eduvpn-client/releases) if a new version is available. # Check if your issue is in the known issues list The known issues list is available here: <https://docs.eduvpn.org/client/linux/support.html#known-issues> Not on the Known issue page # OS/Distribution What operating system/distribution and version you are running? Fedora 41 (Also happens in Ubuntu 22.04) # Logs ## Do you have a problem while adding before connecting? eduVPN/Let's Connect! will print out information to the console while running. Please try running `eduvpn-gui -d` or `eduvpn-cli -d` (or `letsconnect-cli -d`, `letsconnect-gui -d` for Let's Connect!) in a console. Note the `-d` flag here for verbose/debug logging. The log file is also located at `~/.config/eduvpn/log` for eduVPN and `~/.config/letsconnect/log` for Let's Connect!. ``` 2024年11月28日 11:35:31,513 - MainThread - DEBUG - eduvpn.ui.app - app.py:69 - activate 2024年11月28日 11:35:31,593 - <function ApplicationModelTransitions.get_previous_servers at 0x7fdeec7587c0> - DEBUG - eduvpn.app - app.py:47 - Transition: MAIN, old state: 1 2024年11月28日 11:35:31 - Go - DEBUG - got 304 for discovery, server_list.json not modified 2024年11月28日 11:35:31,822 - MainThread - DEBUG - eduvpn.ui.ui - ui.py:1097 - server list refresh 2024年11月28日 11:35:32,844 - MainThread - DEBUG - eduvpn.ui.ui - ui.py:1181 - on server row pressed 2024年11月28日 11:35:32,919 - MainThread - DEBUG - eduvpn.ui.ui - ui.py:1142 - activated server: <eduvpn.server.Server object at 0x7fdeee0af890> 2024年11月28日 11:35:32,921 - <function ApplicationModelTransitions.getting_config at 0x7fdeec758c20> - DEBUG - eduvpn.app - app.py:62 - Transition: GETTING_CONFIG, old state: 1 2024年11月28日 11:35:33 - Go - DEBUG - i18n: could not load printer with tag: 'en' from map 2024年11月28日 11:35:33 - Go - DEBUG - saving state file 2024年11月28日 11:35:33 - Go - DEBUG - i18n: initializing languages... 2024年11月28日 11:35:33,023 - <function ApplicationModelTransitions.get_previous_servers at 0x7fdeec7587c0> - DEBUG - eduvpn.app - app.py:47 - Transition: MAIN, old state: 4 2024年11月28日 11:35:33,024 - 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.univ-nantes.fr/'. The cause of the error is: failed obtaining HTTP resource: 'https://eduvpn.univ-nantes.fr/vpn-user-portal/api/v3/connect' as it gave an unsuccessful status code: '406'. Body: '{"error":"no common VPN protocol [CLIENT=openvpn+udp,openvpn+tcp,wireguard+udp,wireguard+tcp SERVER=None]"}'. Traceback (most recent call last): File "/usr/lib/python3.13/site-packages/eduvpn/ui/ui.py", line 378, in call_model func(*(args)) ~~~~^^^^^^^^^ File "/usr/lib/python3.13/site-packages/eduvpn/app.py", line 357, in connect config = self.connect_get_config(server, prefer_tcp=prefer_tcp) File "/usr/lib/python3.13/site-packages/eduvpn/app.py", line 272, in connect_get_config config = self.common.get_config(server.category_id, server.identifier, prefer_tcp) File "/usr/lib/python3.13/site-packages/eduvpn_common/main.py", line 257, in get_config forwardError(config_err) ~~~~~~~~~~~~^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/eduvpn_common/main.py", line 36, in forwardError raise WrappedError(d["message"], "en", d["misc"]) eduvpn_common.main.WrappedError: Failed to obtain a VPN configuration for server: 'https://eduvpn.univ-nantes.fr/'. The cause of the error is: failed obtaining HTTP resource: 'https://eduvpn.univ-nantes.fr/vpn-user-portal/api/v3/connect' as it gave an unsuccessful status code: '406'. Body: '{"error":"no common VPN protocol [CLIENT=openvpn+udp,openvpn+tcp,wireguard+udp,wireguard+tcp SERVER=None]"}'. ``` ## Do you have a problem during or after connecting? Problem when connecting: After selecting a bad profile, I'm stuck in this page: ![image](https://github.com/user-attachments/assets/367a01d8-b0bd-4dc0-8e27-da82b82993a1) Until I either fix the profile, or delete the configuration in `~/config/eduvpn/state.json` Note that deleting the profile from the server still prevent the Client to connect to anything else.
jwijenbergh commented 2024年12月06日 11:01:54 +01:00 (Migrated from github.com)
Copy link

sorry I forgot to reply. Do you mean that ideally it would be good that the client has an option on the main screen to switch profile? Maybe on "right click" on the server entry?

sorry I forgot to reply. Do you mean that ideally it would be good that the client has an option on the main screen to switch profile? Maybe on "right click" on the server entry?
Krafting commented 2024年12月06日 17:37:26 +01:00 (Migrated from github.com)
Copy link

sorry I forgot to reply. Do you mean that ideally it would be good that the client has an option on the main screen to switch profile? Maybe on "right click" on the server entry?

No worries, ideally, if the app fails to load a profile, it should show the profile list again (with a user-friendly error message)

> sorry I forgot to reply. Do you mean that ideally it would be good that the client has an option on the main screen to switch profile? Maybe on "right click" on the server entry? No worries, ideally, if the app fails to load a profile, it should show the profile list again (with a user-friendly error message)
jwijenbergh commented 2024年12月17日 14:02:43 +01:00 (Migrated from github.com)
Copy link

I think maybe it makes sense that if an error happens, the app offers you to change profile. And on right click on the server we should show an option to change the profile

I think maybe it makes sense that if an error happens, the app _offers_ you to change profile. And on right click on the server we should show an option to change the profile
jwijenbergh changed title from (削除) Broken client when a badly configured profile is used (削除ここまで) to Allow to change profile on main screen and offer to change profile 2025年04月24日 10:21:11 +02:00

fix has been committed, will be in a new version this week

fix has been committed, will be in a new version this week
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#615
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?