Error starting Plexamp on RaspberryPi

Dear all,
today I thought it was time to update my headless installations of Plexamp on Raspberry Pi but had the bad surprise that the service doesn’t start anymore.
The result of the manual launch of the process is:

pi@plexamp2:~ $ /usr/bin/node /home/pi/plexamp/js/index.js
node:internal/modules/cjs/loader:1282
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: Module did not self-register: '/home/pi/plexamp/treble/linux-arm64/treble.node'.
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1282:18)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.81564 (/home/pi/plexamp/js/index.js:2:352739)
    at r (/home/pi/plexamp/js/index.js:2:3349196)
    at Object.2120 (/home/pi/plexamp/js/index.js:2:347356)
    at r (/home/pi/plexamp/js/index.js:2:3349196)
    at Object.81546 (/home/pi/plexamp/js/index.js:2:334557) {
  code: 'ERR_DLOPEN_FAILED'
}

which is the same log that I find in /var/log/daemon.log

Node version is v16.20.2

Is there anything I can do to fix this?

Thank you
Gaetano

1 Like

Upgrade to NodeJS 20.
Manually: Install Headless Plexamp for your Raspberry Pi to create a Plex endpoint | How To Hi-Fi

Via script (might need fresh deployment depending on how you installed initially): GitHub - odinb/bash-plexamp-installer: PlexAmp-installer for Raspberry Pi with ARM64 HW. Headless music-player controlled from any other Plexamp client.

1 Like

Thank you!
I used parts of the procedure you describe to fix

Have a nice day
Gaetano

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.