FHEM Forum

FHEM - Anwendungen => Multimedia => Thema gestartet von: shamal2008 am 28 Januar 2020, 18:52:03

Titel: Spotify nach Umzug auf Buster - Fehlermeldung
Beitrag von: shamal2008 am 28 Januar 2020, 18:52:03
Hallo zusammen,

habe mein FHEM auf Buster und Raspi4 übersiedelt, und nun weigert sich das Spotify Modul.

Beim Start von FHEM bekomme ich folgende Meldung:

2020.01.28 18:40:36 1: reload: Error:Modul 37_Spotify deactivated:
Too many arguments for Cpanel::JSON::XS::encode_json at ./FHEM/37_Spotify.pm line 368, near "0)"
Not enough arguments for main::Spotify_apiRequest at ./FHEM/37_Spotify.pm line 368, near "0)"
Too many arguments for Cpanel::JSON::XS::encode_json at ./FHEM/37_Spotify.pm line 376, near "0)"
Not enough arguments for main::Spotify_apiRequest at ./FHEM/37_Spotify.pm line 376, near "0)"


Am "alten" Server funktioniert das Modul einwandfrei.

Ich hab zwar was im Forum gefunden, betrifft allerdings Docker (da habe noch kein Know-how). Habt ihr eine Idee, was zu tun ist?

Danke,
shamal
Titel: Antw:Spotify nach Umzug auf Buster - Fehlermeldung
Beitrag von: Wernieman am 28 Januar 2020, 19:36:27
Wie hast Du Buster eingerichtet .. Neuinstallation oder Upgrade?
Titel: Antw:Spotify nach Umzug auf Buster - Fehlermeldung
Beitrag von: shamal2008 am 29 Januar 2020, 18:24:23
Hallo Werniemann,

Buster wurde auf einem jungfräulichen Raspi4 installiert. FHEM mittels Backup und restore transferiert.

Raspotify läuft auf dem Buster.

die Meldungen nach dem Start waren wie folgt:


2020.01.28 18:15:59 1: reload: Error:Modul 37_Spotify deactivated:
Too many arguments for Cpanel::JSON::XS::encode_json at ./FHEM/37_Spotify.pm line 368, near "0)"
Not enough arguments for main::Spotify_apiRequest at ./FHEM/37_Spotify.pm line 368, near "0)"
Too many arguments for Cpanel::JSON::XS::encode_json at ./FHEM/37_Spotify.pm line 376, near "0)"
Not enough arguments for main::Spotify_apiRequest at ./FHEM/37_Spotify.pm line 376, near "0)"

2020.01.28 18:15:59 0: Too many arguments for Cpanel::JSON::XS::encode_json at ./FHEM/37_Spotify.pm line 368, near "0)"
Not enough arguments for main::Spotify_apiRequest at ./FHEM/37_Spotify.pm line 368, near "0)"
Too many arguments for Cpanel::JSON::XS::encode_json at ./FHEM/37_Spotify.pm line 376, near "0)"
Not enough arguments for main::Spotify_apiRequest at ./FHEM/37_Spotify.pm line 376, near "0)"

2020.01.28 18:15:59 1: Including ./log/fhem.save
2020.01.28 18:16:00 1: configfile: Cannot load module Spotify
Please define Spotify 5c8578b5-f33f-6c8f-b36d-eeb2a8e0f388c6e5 first
./log/fhem.save: Please define Spotify first


Schlussendlich hat FHEM offensichtlich nach mehreren Reboots das Device gelöscht. Es ist auf jeden Fall nicht mehr auffindbar. Auf dem Production-Server existiert es noch, obwohl ich da festgestellt habe, dass seit dem Update (am 23.1) scheinbar Fehler im Log auftauchen:

Log-Production Server:
2020.01.23 17:26:14 1: PERL WARNING: Use of uninitialized value in subroutine entry at ./FHEM/37_Spotify.pm line 250.

Danke für deine Hilfe,
shamal
Titel: Antw:Spotify nach Umzug auf Buster - Fehlermeldung
Beitrag von: Wernieman am 29 Januar 2020, 18:36:43
Ist es jetzt gelöst oder nicht?
Titel: Antw:Spotify nach Umzug auf Buster - Fehlermeldung
Beitrag von: Flanders am 06 Januar 2023, 07:43:30
Guten Morgen,

ich habe nun auch dieses Problem!
Bin auf Ubuntu 20.04.5 LTS

Wie konnte es gelöst werden?

Beim Reload von Spotify bekomme ich folgende Fehlermeldung:

Too many arguments for Cpanel::JSON::XS::encode_json at ./FHEM/37_Spotify.pm line 368, near "0)"
Not enough arguments for main::Spotify_apiRequest at ./FHEM/37_Spotify.pm line 368, near "0)"
Too many arguments for Cpanel::JSON::XS::encode_json at ./FHEM/37_Spotify.pm line 376, near "0)"
Not enough arguments for main::Spotify_apiRequest at ./FHEM/37_Spotify.pm line 376, near "0)"
Titel: Antw:Spotify nach Umzug auf Buster - Fehlermeldung
Beitrag von: Flanders am 06 Januar 2023, 12:20:19
GGf liegt es an der Config, kann es aber nicht erkennen.

Habe eine uraltversion eingespielt, lief.
Dann dort die aktuelle Config rein, gleicher Fehler?!

Greets