8
6
Fork
You've already forked windows
1

error with renewing session #273

Closed
opened 2025年07月09日 10:49:00 +02:00 by fkooman · 9 comments

A bug was discovered when using the "Renew" button with the 4.4 client. So far I only tested with OpenVPN, there it occurs, but maybe not with WireGuard, I didn't test yet, will do shortly.

Steps to reproduce:

  1. Add + Connect to vpn.tuxed.net ("FrKo's Test Server")
  2. Use the "OpenVPN (TCP Only) Profile
  3. Wait 30 minutes for the "Renew" button to appear
  4. Click it
  5. Error is shown

The stack trace of the error:

System.Exception: Ein interner Fehler ist aufgetreten. Die Fehlerursache ist: fsm invalid transition attempt from 'Disconnecting' to 'OAuthStarted'.
 bei eduVPN.Engine.RenewSession(Cookie cookie)
 bei eduVPN.ViewModels.Windows.ConnectWizard.<>c__DisplayClass72_0.<RenewAndConnect>b__0()
 bei System.Threading.Tasks.Task`1.InnerInvoke()
 bei System.Threading.Tasks.Task.Execute()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
 bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 bei eduVPN.ViewModels.Windows.ConnectWizard.<RenewAndConnect>d__72.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
 bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Screenshots:

image

image

A bug was discovered when using the "Renew" button with the 4.4 client. So far I only tested with OpenVPN, there it occurs, but maybe not with WireGuard, I didn't test yet, will do shortly. Steps to reproduce: 1. Add + Connect to vpn.tuxed.net ("FrKo's Test Server") 2. Use the "OpenVPN (TCP Only) Profile 3. Wait 30 minutes for the "Renew" button to appear 4. Click it 5. Error is shown The stack trace of the error: ``` System.Exception: Ein interner Fehler ist aufgetreten. Die Fehlerursache ist: fsm invalid transition attempt from 'Disconnecting' to 'OAuthStarted'. bei eduVPN.Engine.RenewSession(Cookie cookie) bei eduVPN.ViewModels.Windows.ConnectWizard.<>c__DisplayClass72_0.<RenewAndConnect>b__0() bei System.Threading.Tasks.Task`1.InnerInvoke() bei System.Threading.Tasks.Task.Execute() --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde --- bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) bei eduVPN.ViewModels.Windows.ConnectWizard.<RenewAndConnect>d__72.MoveNext() --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde --- bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) ``` Screenshots: ![image](/attachments/b75a7d59-21ff-410d-8a6b-45a5556bf580) ![image](/attachments/4ef4ee0c-298f-4872-8cfa-b2a9d3af9e4b)
5.5 MiB
6.2 MiB
Author
Owner
Copy link

Update: it also occurs with WireGuard, I tested with the "Default" Profile of that same server.

Update: it also occurs with WireGuard, I tested with the "Default" Profile of that same server.
rozmansi added this to the 4.5 milestone 2025年07月09日 11:23:40 +02:00
Collaborator
Copy link

Ahh, this eduvpn-common is such a royal PITA when it comes to FSM transition checking. Will fix it.

Ahh, this eduvpn-common is such a royal PITA when it comes to FSM transition checking. Will fix it.

Hi,

One of our students has a similar error.
Here is the screenshot.
Unfortunately I have no further information.
Is there a workaround?
Could this be the same error?

Hi, One of our students has a similar error. Here is the screenshot. Unfortunately I have no further information. Is there a workaround? Could this be the same error?
Author
Owner
Copy link
We've pulled the 4.4 release: https://lists.geant.org/sympa/arc/eduvpn-deploy/2025-07/msg00007.html
Author
Owner
Copy link

I'm unable to reproduce the problem with 4.4.99.1, so looking good!

I'm unable to reproduce the problem with 4.4.99.1, so looking good!
Collaborator
Copy link

@dohl wrote in #273 (comment):

Hi,

One of our students has a similar error. Here is the screenshot. Unfortunately I have no further information. Is there a workaround? Could this be the same error?

No, this is a different error. Missed this. Reusing this issue to remind me to fix it...

@dohl wrote in https://codeberg.org/eduVPN/windows/issues/273#issuecomment-5775026: > Hi, > > One of our students has a similar error. Here is the screenshot. Unfortunately I have no further information. Is there a workaround? Could this be the same error? No, this is a different error. Missed this. Reusing this issue to remind me to fix it...
Author
Owner
Copy link

I've just tested out that test release client 4.4.99.1 and am happy to report that works well for me and I can renew the session successfully.

Got feedback from the initial reporter of this issue.

> I've just tested out that test release client 4.4.99.1 and am happy to report that works well for me and I can renew the session successfully. Got feedback from the initial reporter of this issue.
Collaborator
Copy link

@dohl wrote in #273 (comment):

Hi,

One of our students has a similar error. Here is the screenshot. Unfortunately I have no further information. Is there a workaround? Could this be the same error?

<TLDR>

This issue can happen if:

  1. edu-vpn.uni-erfurt.de provided an incorrect OAuth URL. Somehow unlikely, as this would make all other users suffer the same error.
  2. System.Diagnostics.Process.Start throws:
    • Something blocks opening URLs. An antivirus?
    • User has no default browser to open https:// URLs set. Or, just uninstalled what used to be the default browser and has not set a new one yet.
    • This one is interesting - according to the documentation, this function may throw System.IO.FileNotFoundException if "The PATH environment variable has a string containing quotes." Might explain some other situations we hit in the past when opening URLs from the client just doesn't work.

Nevertheless, throwing when OAuth page should be presented to the user, is caught not to disturb Go-CGo-.NET interop. But the eduvpn-common is notified the FSM transition failed, ultimately resulting in the client to display the error message user is seeing: the FSM transition failed.

image

</TLDR>

I have updated the client code to ignore browser launch issues, since the client has a solution for broken computers with this issue.

Will notify here when I make a new release (estimated by the end of this week), so your student may try again.

After updating the client, clicking on the university server will likely fail to open university's OAuth website for this student, but the client will stop on a page looking like this:
image
(Instructions included 😎)

@dohl wrote in https://codeberg.org/eduVPN/windows/issues/273#issuecomment-5775026: > Hi, > > One of our students has a similar error. Here is the screenshot. Unfortunately I have no further information. Is there a workaround? Could this be the same error? `<TLDR>` This issue can happen if: 1. `edu-vpn.uni-erfurt.de` provided an incorrect OAuth URL. Somehow unlikely, as this would make all other users suffer the same error. 2. `System.Diagnostics.Process.Start` throws: - Something blocks opening URLs. An antivirus? - User has no default browser to open `https://` URLs set. Or, just uninstalled what used to be the default browser and has not set a new one yet. - This one is interesting - according to the documentation, this function may throw `System.IO.FileNotFoundException` if _"The PATH environment variable has a string containing quotes."_ Might explain some other situations we hit in the past when opening URLs from the client just doesn't work. Nevertheless, throwing when OAuth page should be presented to the user, is caught not to disturb Go-CGo-.NET interop. But the eduvpn-common is notified the FSM transition failed, ultimately resulting in the client to display the error message user is seeing: the FSM transition failed. ![image](/attachments/bfabcf10-e2b8-46b0-8790-e1aedea0854a) `</TLDR>` I have updated the client code to ignore browser launch issues, since the client has a solution for broken computers with this issue. Will notify here when I make a new release (estimated by the end of this week), so your student may try again. After updating the client, clicking on the university server will likely fail to open university's OAuth website for this student, but the client will stop on a page looking like this: ![image](/attachments/3dde2c01-0699-4750-b101-6492664c0b3f) (Instructions included 😎)
Collaborator
Copy link

@rozmansi wrote in #273 (comment):

Will notify here when I make a new release (estimated by the end of this week), so your student may try again

Was testing the buildsystem and a perfectly fine release came out. So this was sooner than announced:
https://codeberg.org/eduVPN/windows/releases/tag/4.4.99.2

@rozmansi wrote in https://codeberg.org/eduVPN/windows/issues/273#issuecomment-6134323: > Will notify here when I make a new release (estimated by the end of this week), so your student may try again Was testing the buildsystem and a perfectly fine release came out. So this was sooner than announced: https://codeberg.org/eduVPN/windows/releases/tag/4.4.99.2
Sign in to join this conversation.
No Branch/Tag specified
master
study/no-token-import
ver/3.x
govVPN
ver/3.3.0.x
ver/2.x
ver/1.x
4.6
4.5.99.8
4.5.99.7
4.5.99.6
4.5.99.5
4.5.99.4
4.5.99.3
4.5.99.2
4.5.99.1
4.5.99.0
4.5
4.4.99.4
4.4.99.3
4.4.99.2
4.4.99.1
4.4.99.0
4.4
4.3.99.1
4.3.99.0
4.3.2
4.3.1
4.3
4.2.8
4.2.7
4.2.6
4.2.5
4.2.4
4.2.3
4.2.2
4.2.1
4.2
4.1.7
4.1.6
4.1.5
4.1.4
4.1.3
4.1.2
4.1.1
4.1
4.0
3.255.23
3.255.22
3.255.21
3.255.20
3.255.19
3.7
3.6.2
3.6.1
3.255.18
3.255.17
3.255.16
3.255.15
3.6
3.255.14
3.5
3.255.13
3.4.3
3.255.12
3.255.11
3.255.10
3.255.9
3.255.8
3.255.7
3.255.6
3.255.5
3.255.4
3.255.3
3.255.2
3.4.2
3.4.1
3.255.1
3.255
3.4
3.3.8
3.3.7
3.3.6
3.3.5
3.3.4
3.3.0.1
3.3.3
3.3.2
3.3.1
3.3
3.2.2
3.2.1
3.2
3.1.8
3.1.7
3.1.6
3.1.5
3.1.4
3.1.3
3.1.2
3.1.1
3.1
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0
2.255.6
2.255.5
2.255.4
2.255.3
2.255.2
2.255.1
2.1.4
2.255.0
2.1.3
2.1.2
2.1.1
2.1
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0
1.255.11
1.255.10
1.255.9
1.0.39
1.255.8
1.255.7
1.255.6
1.255.5
1.0.38
1.255.4
1.0.37
1.255.3
1.255.2
1.255.1
1.255.0
1.0.36
1.0.34
1.0.35
1.0.33
1.0.32
1.0.31
1.0.30
1.0.29
1.0.28
1.0.27
1.0.26
1.0.25
1.0.24
1.0.23
1.0.22
1.0.21
1.0.20
1.0.19
1.0.18
1.0.17
1.0.16
audit/2017-12
1.0.15
1.0.14
1.0.13
1.0.12
1.0.11
1.0-alpha8
1.0-alpha6
1.0-alpha5
1.0-alpha4a
1.0-alpha3
1.0-alpha2a
1.0-alpha1
1.0-alpha
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 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/windows#273
Reference in a new issue
eduVPN/windows
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?