vlaci / openconnect-sso

Wrapper script for OpenConnect supporting Azure AD (SAMLv2) authentication to Cisco SSL-VPNs
GNU General Public License v3.0
298 stars 129 forks source link

Browser window not loading with NVidia on wayland #90

Open cdt3pm opened 2 years ago

cdt3pm commented 2 years ago

I'm getting the following log messages when trying to load openconnect-sso on wayland with an nvidia GPU. It works fine in X.

[12086:12111:0622/092342.646458:ERROR:gl_context_egl.cc(214)] eglCreateContext failed with error EGL_BAD_CONTEXT
[12086:12111:0622/092342.646489:ERROR:gpu_channel_manager.cc(692)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[12086:12111:0622/092342.646497:ERROR:shared_image_stub.cc(418)] SharedImageStub: unable to create context
[12086:12111:0622/092342.646506:ERROR:gpu_channel.cc(441)] GpuChannel: Failed to create SharedImageStub
benjamin-kirkbride commented 2 years ago

Where are you seeing those logs @cdt3pm ?

terminatorbs commented 1 year ago

just for info if anyone else is looking for help here, I have the same error BUT it's fixed by starting it with this:

QT_QPA_PLATFORM=xcb

so my command looks like: QT_QPA_PLATFORM=xcb openconnect-sso --server yourserver.url --user your.user

found the fix somewhere else so sorry i can't give more info, but on sway + nvidia this is what made it work for me.

manuth commented 1 year ago

I'm facing this issue as well. When trying to run openconnect-sso the program is getting stuck with this log:

Using selector: EpollSelector
Loading KWallet
Loading SecretService
Loading Windows
Loading chainer
Loading libsecret
Loading macOS
[info     ] Authenticating to VPN endpoint [openconnect_sso.app] address=* name=
Starting new HTTPS connection (1): *:443
*:443 "GET / HTTP/1.1" 302 0
Starting new HTTPS connection (1): **censored**:443
**censored**:443 "GET / HTTP/1.1" 200 None
[debug    ] Auth target url                [openconnect_sso.authenticator] url=**censored**
[debug    ] Sending auth init request      [openconnect_sso.authenticator] content=**censored**
Starting new HTTPS connection (1): **censored**:443
**censored**:443 "POST / HTTP/1.1" 200 None
[debug    ] Auth init response received    [openconnect_sso.authenticator] content=**censored**
[info     ] Response received              [openconnect_sso.authenticator] id=main message=Please complete the authentication process in the AnyConnect Login window. title=Login
[debug    ] Waiting for message from browser process [openconnect_sso.browser.browser] 
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

From that point on forward nothing happend - the process is sleeping.

What's quite disturbing is that I'm sure that the browser opened when running openconnect-sso at least once but I never got it to work ever again.

Is there something I can do like providing logs or something similar?

stoetti commented 1 year ago

@manuth I am facing the same problem, did you find any solution?

manuth commented 1 year ago

I moved to using integrated OpenConnect plugins for KDE Plasma and Gnome respectively. These both provide custom SSO support