Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatpak QGIS permissions issues on installed files #186

Open
qcoles opened this issue Apr 27, 2022 · 2 comments
Open

Flatpak QGIS permissions issues on installed files #186

qcoles opened this issue Apr 27, 2022 · 2 comments

Comments

@qcoles
Copy link

qcoles commented Apr 27, 2022

Hello All,

Has anyone had an issue installing Flatpak QGIS on Rhel 8 where the permissions on many directories show up with question marks in the permissions like the following:

cd /view/NightlyBuild_linux/var/lib/flatpak/runtime/org.kde.Sdk/x86_64/5.15-21.08/61a7c1ac873ecbfbdae4442a28da9d1356d105c2d6f8c9c9a719012cab99fe32/files/lib

ls -al

ls: cannot access 'os-release': Permission denied

total 136

drwxr-xr-x 20 root root4096 Dec 311969 .
drwxr-xr-x 14 root root 263 Apr 25 14:56 ..
drwxr-xr-x2 root root 6 Dec 311969 aarch64-linux-gnu
drwxr-xr-x2 root root 6 Dec 311969 arm-linux-gnueabihf
drwxr-xr-x2 root root17 Dec 311969 debug
drwxr-xr-x4 root root41 Dec 311969 extensions
drwxr-xr-x3 root root38 Dec 311969 gcc
drwxr-xr-x2 root root 6 Dec 311969 i386-linux-gnu
lrwxrwxrwx1 root root39 Apr 25 14:56 ld-linux-aarch64.so.1-> aarch64-linux-gnu/ld-linux-aarch64.so.1
lrwxrwxrwx1 root root39 Apr 25 14:56 ld-linux-armhf.so.3-> arm-linux-gnueabihf/ld-linux-armhf.so.3
lrwxrwxrwx1 root root28 Apr 25 14:56 ld-linux.so.2-> i386-linux-gnu/ld-linux.so.2
drwxr-xr-x 36 root root 12288 Dec 311969 locale
drwxr-xr-x 76 root root4096 Dec 311969 mkspecs
-?????????? ???? os-release_
drwxr-xr-x4 root root37 Dec 311969 perf
drwxr-xr-x5 root root56 Dec 311969 perl5
drwxr-xr-x 40 root root4096 Dec 311969 plugins
drwxr-xr-x 32 root root8192 Dec 311969 python3.9
drwxr-xr-x 23 root root4096 Dec 311969 qml
drwxr-xr-x2 root root 6 Dec 311969 sdk
drwxr-xr-x3 root root20 Dec 311969 systemd
drwxr-xr-x3 root root21 Dec 311969 tcl8.6
lrwxrwxrwx1 root root17 Apr 25 14:56 terminfo-> ../share/terminfo
drwxr-xr-x4 root root39 Dec 311969 udev
drwxr-xr-x 55 root root 69632 Dec 311969 x86_64-linux-gnu

These type files are littered throughout the directory structure above. I think the issue is because of the NIS system where those users don’t exist locally on the server. Does anyone know what the username should be or any other workaround for this type of problem?

My initial problem was the following:

Info: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

_Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

QGIS died on signal -1_

I noticed many of the libQt5 files were owned by ?
-????????? ? ? ? ? ? libQt53DLogic.so.5.15.3
-????????? ? ? ? ? ? libQt53DQuickAnimation.prl
...
-????????? ? ? ? ? ? libQt53DQuickAnimation.so.5.15.3
-????????? ? ? ? ? ? libQt53DQuickExtras.prl
...
-????????? ? ? ? ? ? libQt5Designer.so.5.15.3
-????????? ? ? ? ? ? libQt5DeviceDiscoverySupport.a
-????????? ? ? ? ? ? libQt5DeviceDiscoverySupport.prl
-????????? ? ? ? ? ? libQt5EdidSupport.a
-????????? ? ? ? ? ? libQt5EdidSupport.prl
-????????? ? ? ? ? ? libQt5EglFSDeviceIntegration.prl

Any help would be appreciated.

Thanks in advance

@barthalion
Copy link
Member

Hi,

/view/NightlyBuild_linux/var/lib/flatpak/runtime implies some custom location where Flatpak files are being installed. Is that the case?

I ask, because I assume it's some SELinux issue with labels. You could check that by either grepping for AVC in /var/log/audit/audit.log or simply disabling SELinux with setenforce 0, just to see if it helps.

@qcoles
Copy link
Author

qcoles commented May 30, 2022

Sorry for the late response. I didn't make any configuration changes from an installation path perspective. Actually selinux is not running on this server. Update to this case. After re-installing I can no longer even get to that point where it runs and even creates that directory again. I'm getting the following error since the reinstall:

_X11 connection rejected because of wrong authentication.
Warning: could not connect to display localhost:10.0
Info: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

QGIS died on signal -1_

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants