aaPanel: qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found
-
Dear Qt Community, I am running a Laravel script with .vue files, so I need to compile to see any change on my site. I'm running a clean installation of aaPanel on Ubuntu 23.10 btw
When I run 'npm run build' or 'vite build' via the command line, I'm getting the following error.
Got keys from plugin meta data ("xcb") QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ... loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so" qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. 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, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
I've tried pretty much everything I could find via a Google search. Does anyone know how to fix this, so I'm finally able to compile?
The full log coming back by using export QT_DEBUG_PLUGINS=1 is as follows:
for 'npm build run' https://pastecode.io/s/w9zd4cf5
for 'vite build' https://pastecode.io/s/n44r0zd5Thank you
-
Hi and welcome to devnet,
Any chances your desktop environment runs on Wayland ?
-
@SGaist Hi there :)
First of all, my apologies, I'm not very technical. I'm running a server via digitalocean.com (Ubuntu 23.10) which I connect to via PuTTY (command line). My PC runs on Windows 11
-
@SGaist Hi there :)
First of all, my apologies, I'm not very technical. I'm running a server via digitalocean.com (Ubuntu 23.10) which I connect to via PuTTY (command line). My PC runs on Windows 11
@Strawberrymilke If it's really a server it most probably have no GUI (no X11, no Wayland). Did you check that? If X11 is running on that server you will need to forward it when using ssh, see https://goteleport.com/blog/x11-forwarding/ for example.
-
@Strawberrymilke If it's really a server it most probably have no GUI (no X11, no Wayland). Did you check that? If X11 is running on that server you will need to forward it when using ssh, see https://goteleport.com/blog/x11-forwarding/ for example.
@jsulm It seems that I do indeed have X11 installed, I shall look at that link and report back, thank you for your reply :)
-
@Strawberrymilke If it's really a server it most probably have no GUI (no X11, no Wayland). Did you check that? If X11 is running on that server you will need to forward it when using ssh, see https://goteleport.com/blog/x11-forwarding/ for example.
@jsulm Aii, that link you provided me (thank you) is quite technical.. I made sure X11 is installed on the server, but all I want is to basically compile my .vue files via the command line (terminal), so changes made to css/html show up on my site =/ Since the 'npm run build' command gave the following error about Qt, I came here.. but I think this is going way further than what I actually need
-
Dear Qt Community, I am running a Laravel script with .vue files, so I need to compile to see any change on my site. I'm running a clean installation of aaPanel on Ubuntu 23.10 btw
When I run 'npm run build' or 'vite build' via the command line, I'm getting the following error.
Got keys from plugin meta data ("xcb") QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ... loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so" qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. 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, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
I've tried pretty much everything I could find via a Google search. Does anyone know how to fix this, so I'm finally able to compile?
The full log coming back by using export QT_DEBUG_PLUGINS=1 is as follows:
for 'npm build run' https://pastecode.io/s/w9zd4cf5
for 'vite build' https://pastecode.io/s/n44r0zd5Thank you
@jsulm @SGaist Hi again :) I really tried my best to understand and fix this problem, but still with little luck. So basically, I made sure that X11 is installed on my Ubuntu 23.10 server that I connect to via SSH and that it is set up correctly with the sshd_config file containing:
X11Forwarding yes X11DisplayOffset 10
Still, when I run 'npm run build' or 'vite build' I get the same error about:
qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found
Please help!
-
qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found
Run
ldd /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so
Do you have missing dependencies?