GlobalProtect-openconnect
GlobalProtect-openconnect copied to clipboard
Failed to read lock file
Describe the bug GUI doesn't start
Expected behavior GUI start
Logs
[2025-01-27T15:14:58Z INFO gpapi::process::gui_helper_launcher] Launching gpgui-helper
[2025-01-27T15:14:58Z INFO gpgui_helper::cli] gpgui-helper started: 2.4.3 (2025-01-20)
[2025-01-27T15:14:59Z INFO gpgui_helper::updater] Update GUI, version: 2.4.3
[2025-01-27T15:14:59Z INFO gpgui_helper::updater] Downloading file: https://github.com/yuezk/GlobalProtect-openconnect/releases/download/v2.4.3/gpgui_x86_64.bin.tar.xz
[2025-01-27T15:15:00Z INFO gpgui_helper::downloader] Content length: 3258860
[2025-01-27T15:15:02Z INFO gpgui_helper::downloader] Downloaded to: "/tmp/.tmp2kIzv6"
[2025-01-27T15:15:02Z INFO gpgui_helper::updater] Checksum success
[2025-01-27T15:15:02Z WARN gpgui_helper::updater] Install error: Failed to read lock file: Permission denied (os error 13)
Environment:
- OS: TUXEDO OS 2 (based on Ubuntu 22.04)
- Desktop Environment: KDE
- Is remote SSH? No
Hi @siddolo can you see the lock file at /var/run/gpservice.lock and see its permission?
Alternatively, you can install it from the deb package: https://github.com/yuezk/GlobalProtect-openconnect#install-from-deb-package
In my case, I discovered that this issue was related to a non-default umask setting for my user account...
$ umask
0027
This resulted in the following permissions for the /var/run/gpservice.lock file...
-rw-r----- 1 root root 12 Apr 1 11:30 gpservice.lock
Because the lock file was not world-readable, it resulted in the error recorded above and also the following error when launching the gpclient application...
GP service is not running
As a workaround, I installed incron and created the following incrontab rule as root to set the required permissions...
/var/run/ IN_CREATE,recursive=false /usr/bin/chmod o+r /var/run/gpservice.lock