Backend crash loop (~every 20 s) after MyVolumio login on premium plan: TypeError: Cannot read properties of null (reading 'replace') in fetchPluginKeys

Hi,

My first Volumio on a RPi5 w/ Innomaker Amp Pro hat works great and still does, and this pushed me to build a second volumio for a stereo in my shed. My second is using an RPi 4 and IQaudIO DigiAMP+ hat. It works great now, but the ONLY way I could get it to work was to break the activation with my Volumio account. If I do not break the activation then I am forever stuck in a back-end player restart cycle.

I break the loop in SSH with:

sudo systemctl stop volumio
sudo mv /data/configuration/system_controller/my_volumio/config.json /root/my_volumio_config.json.bak4
sudo systemctl start volumio

I can then go back in and use it and it works great. But, I cannot use plugins or anything like that, which kind of stinks b/c I was really hoping to mess with some on this unit.

I work in IT, so I can find my way around, but I am no software engineer, by far, so I was using the help of my claude ai to try to find the issue. Here is a summary I forced Claude to write at electro-magunfinger-point to which I then edited a bit.

Setup

  • Raspberry Pi 4 Model B Rev 1.5, Volumio [version, from Settings > System], kernel 6.12.74-v7l+

  • MyVolumio premium account with a second Volumio device on the same account that works normally. Account is active and current with both units attached and working fine (aside for the second unit’s activation issue).

  • Affected Volumio set to Static IP, DHCP was attempted, so doesn’t seem networking related, can access Internet.

  • I also swapped in two different IQaudIO DigiAMP+ hats, so I believe this issue is unrelated to audio hardware as the DigiAMP+ works now (with my second unit deactivated).

Symptom
The web UI keeps reloading, and the volumio.service restarts every ~20 seconds (restart counter reached 154 at one point). The device stays reachable on the network the whole time.

What the log shows
The crash always follows the same sequence after startup:

info: MyVolumio login type: Token
info: MYVOLUMIO SUCCESSFULLY LOGGED IN
info: MyVolumio Plan changed: premium
info: [MyVolumio PluginManager] Device activated, enabling myvolumio plugins...
FIREBASE WARNING: Exception was thrown by user callback.
TypeError: Cannot read properties of null (reading 'replace')
    at MyVolumioPluginManager.fetchPluginKeys
    at MyVolumioPluginManager.loadMyVolumioPlugins
    at MyVolumioPluginManager.myVolumioDeviceStatusChanged
    ...
    at myVolumio.togglePremiumPlugins
WARNING: FATAL ERROR
volumio.service: Main process exited, code=exited, status=1/FAILURE

Earlier in the same boot: Failed to restart volumio-streaming-daemon.service: Unit volumio-streaming-daemon.service not found. The plugin list for my plan includes bluetooth, multiroom, metavolumio, manifestui, cd_controller, smart_inputs, hi_res_audio, tidal, qobuz, tidalconnect and qobuzconnect.

What I ruled out

  • Network: volumio endpointstest shows every Firebase and Volumio cloud endpoint OK (only cddb.volumio.org failed, which isn’t involved).

  • Static IP, gateway and DNS settings are fine.

  • Unrelated noise in the same log: NAS mount retries, an MPD assert.ok(self.idling) error.

What I observed about the trigger

  • Moving /data/configuration/system_controller/my_volumio/config.json aside stopped the loop, but Volumio recreated the file (the log shows login type: Token on each start), and the loop returned.

Workaround that worked
In the MyVolumio portal I turned “Activate MyVolumio On Devices” off for this one unit (without deleting it from my account). The device stays logged in on the main platform page (at top left area), still showing my name and “Premium,” and the service has run without restarting (NRestarts=0). I just cannot access plugins without logging in, and the very second I do that I fall back into the loop and cannot use my second volumio whatsoever.

Like I said, I work in IT so I’m sure I can grab any logging you need, just let me know what it is and any special cmd syntax to get it appropriately. And thanks in advance!!!

Hey @xJimbos,

As you work in IT, this goes without saying: no log, no help. A summary of a log, AI-written or otherwise, is not a log. Beside - all AI, unless properly train on Volumio ecosystem produces generic advice, I keep asking community to describe the problem, provide information needed, not AI hallucinations.

Please provide:

For reference, the help request template: Tips and guidelines to get faster help

Kind Regards,

Haha! Nice description of what AI really does! :smiley:

I’ll close this and start new.

Oh shoot, and I think I just figure out the issue anyway. My dummy self wasn’t thinking and ran apt upgrade via ssh on the unit weeks ago. Bad idea! It rewrote on /etc/os-release so the system doesn’t know what release it is on. I think when the unit logs in the Volumio account is asking what version is running, but that info is null so the whole process just gives up or something. I’ll wipe and rebuild.