Hello everyone,
I am struggling for a few days now to start up the MagicMirror GUI on my Raspberry Pi 4B. The Electron module is throwing an error that I can’t solve in any way:
magicmirror@mm-pi:~ $ cd MagicMirror/
magicmirror@mm-pi:~/MagicMirror $ npm start
> magicmirror@2.28.0 start
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
[2024-08-07 19:35:04.025] [LOG] Starting MagicMirror: v2.28.0
[2024-08-07 19:35:04.053] [LOG] Loading config ...
[2024-08-07 19:35:04.056] [LOG] config template file not exists, no envsubst
[2024-08-07 19:35:04.060] [LOG] Loading module helpers ...
[2024-08-07 19:35:04.061] [LOG] No helper found for module: alert.
[2024-08-07 19:35:04.071] [LOG] Initializing new module helper ...
[2024-08-07 19:35:04.072] [LOG] Module helper loaded: updatenotification
[2024-08-07 19:35:04.073] [LOG] No helper found for module: clock.
[2024-08-07 19:35:04.196] [LOG] Initializing new module helper ...
[2024-08-07 19:35:04.197] [LOG] Module helper loaded: calendar
[2024-08-07 19:35:04.198] [LOG] No helper found for module: compliments.
[2024-08-07 19:35:04.199] [LOG] No helper found for module: weather.
[2024-08-07 19:35:04.199] [LOG] No helper found for module: weather.
[2024-08-07 19:35:04.312] [LOG] Initializing new module helper ...
[2024-08-07 19:35:04.313] [LOG] Module helper loaded: newsfeed
[2024-08-07 19:35:04.313] [LOG] All module helpers loaded.
[2024-08-07 19:35:04.323] [LOG] Starting server on port 8080 ...
[2024-08-07 19:35:05.162] [LOG] Server started ...
[2024-08-07 19:35:05.169] [LOG] Connecting socket for: updatenotification
[2024-08-07 19:35:05.171] [LOG] Starting module helper: updatenotification
[2024-08-07 19:35:05.172] [LOG] Connecting socket for: calendar
[2024-08-07 19:35:05.173] [LOG] Starting node helper for: calendar
[2024-08-07 19:35:05.177] [LOG] Connecting socket for: newsfeed
[2024-08-07 19:35:05.178] [LOG] Starting node helper for: newsfeed
[2024-08-07 19:35:05.185] [LOG] Sockets connected & modules started ...
[2024-08-07 19:35:05.991] [LOG] Launching application.
[2584:0807/193506.609801:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
[2584:0807/193506.610805:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
[2584:0807/193506.611736:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
[2584:0807/193506.612283:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
[2584:0807/193506.614158:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
[2584:0807/193506.618491:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
[2584:0807/193506.619375:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
[2584:0807/193506.619876:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
[2584:0807/193506.620528:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
[2584:0807/193506.621077:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
[2584:0807/193506.621925:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
[2584:0807/193506.622438:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
[2584:0807/193506.623212:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
[2584:0807/193506.628878:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
[2584:0807/193506.633337:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
[2584:0807/193506.636628:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
[2584:0807/193506.637327:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
[2584:0807/193506.637741:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
[2584:0807/193506.638355:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
[2584:0807/193506.638787:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
[2584:0807/193506.639314:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
[2584:0807/193506.644240:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
[2584:0807/193506.649055:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
[2584:0807/193506.649354:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
[2584:0807/193506.649929:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
[2584:0807/193506.650343:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
[2584:0807/193506.651018:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
[2584:0807/193506.653100:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
[2024-08-07 19:35:06.950] [INFO] System information:
### SYSTEM: manufacturer: ; model: ; raspberry: undefined; virtual: false
### OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.6.44-v8+
### VERSIONS: electron: 31.3.1; used node: 20.15.1; installed node: 22.6.0; npm: 10.8.2; pm2: 5.4.1
### OTHER: timeZone: Europe/Stockholm; ELECTRON_ENABLE_GPU: undefined
I tried so many things, like using different drivers (vc4-kms-v3d
, vc4-fkms-v3d
),
reinstalling Electron within the MagicMirror directory with npm, adding disable-gpu
as ElectronSwitch, setting envvars like ELECTRON_DISABLE_GPU=1, ELECTRON_ENABLE_GPU=0 but none of them had any effect.
The GUI opens on the 8080
port, only the Raspberry’s display is all black right now.
Additional information of my setup:
magicmirror@mm-pi:~ $ uname -a
Linux mm-pi 6.6.44-v8+ #1789 SMP PREEMPT Mon Aug 5 15:22:52 BST 2024 aarch64 GNU/Linux
magicmirror@mm-pi:~ $ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
magicmirror@mm-pi:~ $ npm -v
10.8.2
magicmirror@mm-pi:~ $ node -v
v22.6.0
What am I missing?