Okay, so I have been doing a bit of testing and trying to work out what is happening and when. Sort of worked out where to check logs and which logs and using a combination of the main terminal, Bitvise and Raspberry Pi Connect to try different things. I think some of the issues, might be related to how I am interacting with it.
I have reinstalled RPiOS and MagicMirror. I have also set up the autostart using pm2. This seems to run and open MM with no errors.
If I was to add a module or change the config file, I would then use
npm run start
to run the MM. I have also started using
npm run start:wayland
helps with some things, but having port issues. I am guessing that this might be due to the autostart and I am not sure how to stop MM running when I am developing it. I had used ctrl_Q, but MM just reruns. Or is that all I need to do?
I am finding that if I turn off the RPi and then turn it on, MM runs with no issues. If I try to run it using the above npm command, I get the following errors:
admin@raspberrypihome:~ $ cd MagicMirror
admin@raspberrypihome:~/MagicMirror $ npm run start:wayland
> magicmirror@2.32.0 start:wayland
> WAYLAND_DISPLAY="${WAYLAND_DISPLAY:=wayland-1}" ./node_modules/.bin/electron js/electron.js --enable-features=UseOzonePlatform --ozone-platform=wayland
[2025-08-01 06:24:34.441] [LOG] Starting MagicMirror: v2.32.0
[2025-08-01 06:24:34.452] [LOG] Loading config ...
[2025-08-01 06:24:34.453] [LOG] config template file not exists, no envsubst
[2025-08-01 06:24:34.654] [INFO] Checking config file /home/admin/MagicMirror/config/config.js ...
[2025-08-01 06:24:34.690] [INFO] Your configuration file doesn't contain syntax errors :)
[2025-08-01 06:24:34.691] [INFO] Checking modules structure configuration ...
[2025-08-01 06:24:34.728] [INFO] Your modules structure configuration doesn't contain errors :)
[2025-08-01 06:24:34.729] [LOG] Loading module helpers ...
[2025-08-01 06:24:34.730] [LOG] No helper found for module: alert.
[2025-08-01 06:24:34.733] [LOG] Initializing new module helper ...
[2025-08-01 06:24:34.733] [LOG] Module helper loaded: updatenotification
[2025-08-01 06:24:34.734] [LOG] No helper found for module: clock.
[2025-08-01 06:24:34.794] [LOG] Initializing new module helper ...
[2025-08-01 06:24:34.794] [LOG] Module helper loaded: calendar
[2025-08-01 06:24:34.795] [LOG] No helper found for module: compliments.
[2025-08-01 06:24:34.795] [LOG] No helper found for module: weather.
[2025-08-01 06:24:34.830] [LOG] Initializing new module helper ...
[2025-08-01 06:24:34.831] [LOG] Module helper loaded: newsfeed
[2025-08-01 06:24:34.831] [LOG] All module helpers loaded.
[2025-08-01 06:24:34.834] [LOG] Starting server on port 8080 ...
[2025-08-01 06:24:35.229] [ERROR] Whoops! There was an uncaught exception...
[2025-08-01 06:24:35.233] [ERROR] Error: listen EADDRINUSE: address already in use ::1:8080
at Server.setupListenHandle [as _listen2] (node:net:1940:16)
at listenInCluster (node:net:1997:12)
at GetAddrInfoReqWrap.callback (node:net:2206:7)
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:134:8) {
code: 'EADDRINUSE',
errno: -98,
syscall: 'listen',
address: '::1',
port: 8080
}
[2025-08-01 06:24:35.234] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[2025-08-01 06:24:35.234] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MagicMirrorOrg/MagicMirror/issues
[2025-08-01 06:24:35.591] [INFO] System information:
### SYSTEM: manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 5 Model B Rev 1.1; virtual: false
### OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.12.34+rpt-rpi-2712
### VERSIONS: electron: 36.7.3; used node: 22.17.1; installed node: 22.17.1; npm: 10.9.2; pm2: 6.0.8
### OTHER: timeZone: Australia/Melbourne; ELECTRON_ENABLE_GPU: undefined
The config file is not changed at all. When I started getting a different port in use issue, I tried to find what else was using it, but I couldn’t find anything else.
I wasn’t too sure if running Raspberry Pi Connect was causing an issue.
I suspect I am just using this incorrectly. Once I resolve it, I can start making proper changes.
Thanks in advance!