Homebruidge works for a few minutes and then stops working after restarting it.
### Current Situation

Hello everyone, I’ll try to explain as best as I can since I’m not an expert on the subject. I had Homebridge installed on a Raspberry Pi, and I formatted everything to install Docker and Homebridge there. It worked; I was able to restore my backup that I made before wiping everything. However, now when I restart the WiFi or the Raspberry Pi, I can access the Homebridge UI for a few seconds, and the devices work, but after one or two minutes, I lose access to Homebridge, and the accessories stop responding. I tried uninstalling some plugins to see if that was the issue, but I don’t have enough time to remove them before it stops working. All the logs are accessed via SSH from the terminal on a Mac.

### Logs

```markdown
docker ps
CONTAINER ID   IMAGE                          COMMAND   CREATED       STATUS       PORTS     NAMES
cfbffb1153a9   homebridge/homebridge:latest   "/init"   5 hours ago   Up 2 hours             julian-homebridge-1

% sudo hb-service rebuild
ℹ Rebuilding for Node.js v23.6.0...
npm error code 1
npm error path /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch
npm error command failed
npm error command sh -c node scripts/check-prebuild.js || prebuild-install --verbose || node scripts/install.js
npm error CXX(target) Release/obj.target/pty/src/unix/pty.o
npm error Prebuild binary missing for platform.
npm error prebuild-install info begin Prebuild-install version 7.1.2
npm error prebuild-install info looking for local prebuild @ prebuilds/node-pty-prebuilt-multiarch-v0.11.14-node-v131-darwin-arm64.tar.gz
npm error prebuild-install info looking for cached prebuild @ /Users/user/.npm/_prebuilds/6f19b1-node-pty-prebuilt-multiarch-v0.11.14-node-v131-darwin-arm64.tar.gz
npm error prebuild-install http request GET https://github.com/homebridge/node-pty-prebuilt-multiarch/releases/download/v0.11.14/node-pty-prebuilt-multiarch-v0.11.14-node-v131-darwin-arm64.tar.gz
npm error prebuild-install http 404 https://github.com/homebridge/node-pty-prebuilt-multiarch/releases/download/v0.11.14/node-pty-prebuilt-multiarch-v0.11.14-node-v131-darwin-arm64.tar.gz
npm error prebuild-install warn install No prebuilt binaries found (target=23.6.0 runtime=node arch=arm64 libc= platform=darwin)
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@11.0.0
npm error gyp info using node@23.6.0 | darwin | arm64
npm error gyp info find Python using Python version 3.9.6 found at "/Library/Developer/CommandLineTools/usr/bin/python3"
npm error gyp info spawn /Library/Developer/CommandLineTools/usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/user/Library/Caches/node-gyp/23.6.0/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/Users/user/Library/Caches/node-gyp/23.6.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/Users/user/Library/Caches/node-gyp/23.6.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error In file included from ../src/unix/pty.cc:20:
npm error In file included from ../../../nan/nan.h:62:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.6.0/include/node/node.h:73:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.6.0/include/node/v8.h:23:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.6.0/include/node/cppgc/common.h:8:
npm error /Users/user/Library/Caches/node-gyp/23.6.0/include/node/v8config.h:13:2: error: "C++20 or later required."
npm error    13 | #error "C++20 or later required."
npm error       |  ^
npm error ../src/unix/pty.cc:536:28: warning: missing field 'filter' initializer [-Wmissing-field-initializers]
npm error   536 |   struct kevent change = {0};
npm error       |                            ^
npm error ../src/unix/pty.cc:556:29: warning: missing field 'filter' initializer [-Wmissing-field-initializers]
npm error   556 |     struct kevent event = {0};
npm error       |                             ^
npm error 2 warnings and 1 error generated.
npm error make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1
npm error gyp ERR! build error 
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:216:23)
npm error gyp ERR! System Darwin 24.2.0
npm error gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch
npm error gyp ERR! node -v v23.6.0
npm error gyp ERR! node-gyp -v v11.0.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /Users/user/.npm/_logs/2025-01-08T23_00_52_498Z-debug-0.log
Error: Command failed: npm rebuild --unsafe-perm
✖ ERROR: Failed Operation


~ $ sudo systemctl restart homebridge
Failed to restart homebridge.service: Unit homebridge.service not found.


npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
npm warn deprecated npmlog@4.1.2: This package is no longer supported.
npm warn deprecated are-we-there-yet@1.1.7: This package is no longer supported.
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
npm warn deprecated gauge@2.7.4: This package is no longer supported.
npm warn deprecated fstream@1.0.12: This package is no longer supported.


 homebridge -V
-bash: homebridge: command not found
```


### Configuration

```json
I can't access.
```


### Environment

- OS: Mac OS 
- Software:
- Node:v23.6.0
- npm:10.9.2

### Process Supervisor

Docker (Mention image name in `Additional Context`)

### Additional Context

_No response_