If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
[22-02-28 06:31:26.8521] Slim::Web::JSONRPC::requestMethod (455) Request failed with error: Bad dispatch!
[22-02-28 07:03:52.6328] Slim::Control::Request::execute (1888) Error: While trying to run function coderef [Plugins::MusicArtistInfo::ArtistInfo::getBiographyCLI]: [Not an ARRAY reference at /config/cache/InstalledPlugins/Plugins/MusicArtistInfo/ArtistInfo.pm line 229.]
I removed the music and artist info plugin and put it back in and did a clear db and rescan.
I like the biography part of LMS, especially in the material interface. I think it's coming from the all music website. Even old dutch artists are found .
Or is maybe an old plugin interfering or can it be my adblocker (pihole) is blocking (it does when i go the website).
Below the LMS i'm using on docker I tried the latest and stable releases;
Code:
Version: 8.2.1 - 1644703015 @ Sun Feb 13 00:57:32 CET 2022
Hostname: 82e2e296dceb
Server IP Address: 172.24.0.2
Operating system: Debian (Docker) - EN - utf8
Platform Architecture: armv7l-linux
Perl Version: 5.32.1 - arm-linux-gnueabihf-thread-multi-64int
Audio::Scan: 1.02
IO::Socket::SSL: 2.069
Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)
Additional Browse Modes 1.0
Customize Device 1.0
Date and Time 1.0
Don't Stop The Music 1.0.0
Drag & drop music files to play 0.1
Full text search 1.0.0
Info Browser 1.0
Last.fm Audioscrobbler 1.0
Material Skin 2.9.1
Music and Artist Information 1.7.3
Music Information Screen 4.4.12
mysqueezebox.com services handler 1.0
Network Test 1.0
Online Music Library Integration 1.0
Playlist Manager 6.1
Presets Editor 1.0
Radio 1.0
Random Mix 1.0
Remote Music Libraries 1.0
Rescan Music Library 1.0
RSS News Ticker 1.0
Save Playlist 1.0
Song Scanner 2.0
Visualizer Screensaver 1.0
What kind of clients are you using?
> [22-02-28 06:31:26.8521] Slim::Web::JSONRPC::requestMethod (455) Request failed with error: Bad dispatch!
This usually means that a client (web UI, Squeezeplay, mobile app etc.)
is sending an invalid request. It has nothing to do with the MAI issue,
has it?
> [22-02-28 07:03:52.6328] Slim::Control::Request::execute (1888) Error: While trying to run function coderef [Plugins::MusicArtistInfo::ArtistInfo::getBiography CLI]: [Not an ARRAY reference at /config/cache/InstalledPlugins/Plugins/MusicArtistInfo/ArtistInfo.pm line 229.]
Is there more context? Can you reproduce this issue? If so: please
enable logging for plugin.musicartistinfo, then reproduce the issue and
send me the _full_ server.log.zip
(https://www.dropbox.com/request/T3RctyzGgNg0oFDubq6a).
> Or is maybe an old plugin interfering or can it be my adblocker (pihole)
> is blocking (it does when i go the website).
Anything's possible. We don't have enough information to say what is
causing the problem. Even piHole might be - though I'm using it
myself... are you using any kind of custom rules in piHole?
Michael
"It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
(LMS: Settings/Information)
>
Anything's possible. We don't have enough information to say what is
causing the problem. Even piHole might be - though I'm using it
myself... are you using any kind of custom rules in piHole?
Thanks. But to single out the problem I started running only one client to find the one that's causing the problem. Your question about what clients i'm using made me realize I forgot to turn off one client/script.
It's a LUA that i got from @bpa in this thread https://forums.slimdevices.com/showt...c-player/page2
When i killed that script (running every 5 seconds), both messages seem to have disappeared. I will try to get in touch with him to ask about this error.
Or do you have an explanation?
When the error happens I also get failed to retrieve in the web interface bio screen.
The lua script is maybe locking the MAI interface?
> When i killed that script (running every 5 seconds), both messages seem
> to have disappeared. I will try to get in touch with him to ask about
> this error.
I tried to reproduce the script's commands, and they IMHO look good. But
I personally believe it's way too convoluted for the task. But I might
be missing something - and that's probably not the point here. I must
assume you modified the script to use your MAC address. Maybe you post
it here to see whether something else accidentally changed?
Michael
"It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
(LMS: Settings/Information)
> When i killed that script (running every 5 seconds), both messages seem
> to have disappeared. I will try to get in touch with him to ask about
> this error.
I tried to reproduce the script's commands, and they IMHO look good. But
I personally believe it's way too convoluted for the task. But I might
be missing something - and that's probably not the point here. I must
assume you modified the script to use your MAC address. Maybe you post
it here to see whether something else accidentally changed?
The script was just a PoC for a request for a oneline request to get playing data and it must runon WINDOWS.
There are plenty of things to be done to make it better (e..g. validate check the MAC address)
As the file is now being used for metadata of a playing stream, I'm guessing there is an "outer loop" somewhere repeatedly calling this "ncat command. The problem could be in the repeatedly calling. Could it be calling too often - not shutting down TCP connections properly (it is an issue with ncat scripts). Windows may also be a factor.
When i killed that script (running every 5 seconds), both messages seem to have disappeared. I will try to get in touch with him to ask about this error.
Why runs every 5 seconds ?
No audio track will change every 5 secs !!
IIRC There were other suggestion made to to make it a proper script and deal with real states (e.g. what to display if player is stopped, when player is paused ?)
> When i killed that script (running every 5 seconds), both messages seem
> to have disappeared. I will try to get in touch with him to ask about
> this error.
I tried to reproduce the script's commands, and they IMHO look good. But
I personally believe it's way too convoluted for the task. But I might
be missing something - and that's probably not the point here. I must
assume you modified the script to use your MAC address. Maybe you post
it here to see whether something else accidentally changed?
I only added the second tip and it was running fine. But because i'm using darkice at the moment I have no use for it, because my ices2 client is very unstable. It even locks my terminal until I kill it (running in the background.
To come back to your question about the clients; I'm using squeezelite-x on windows, chrome on the mac/android and a squeezebox radio. And the precompiled squeezelite connecting to the default output being catched with darkice going to icecast.
I've uploaded the script to your dropbox together with the zipped logfile.
Thanks in advance.
Greetings Henk
NB Sorry. I forgot to add that the errors still appear even without the script running. Only a bit less. You can see it in the log, thats why I decided to upload it.
> Why runs every 5 seconds ?
> No audio track will change every 5 secs !!
It's the evil nature of polling: it's always too fast, or too slow :-).
The OP was given another Linux based solution for metadata - I thought they had gone with that.
I think "ncat" has closing connection down issues and sometimes Windows is not good at frequent TCP setups.
"ncat" provided a simple scripting facility without having to installing Python or write a Powershell script.
I think the ncat Lua scripts are intended to be linear - do one action - couldn't see how to do loops safely in the script as I didn't any "read with timeout" facility.
Why runs every 5 seconds ?
No audio track will change every 5 secs !!
IIRC There were other suggestion made to to make it a proper script and deal with real states (e.g. what to display if player is stopped, when player is paused ?)
That's was because I wanted the timing to be OK when the song changes. You don't want it change the artist album and track 20 seconds into the song or something.
By the way read my remark to Michael I forgot to add that the errors still appears even without the script running.
So I think the script has nothing to do with it.
The OP was given another Linux based solution for metadata - I thought they had gone with that.
I think "ncat" has closing connection down issues and sometimes Windows is not good at frequent TCP setups.
"ncat" provided a simple scripting facility without having to installing Python or write a Powershell script.
I think the ncat Lua scripts are intended to be linear - do one action - couldn't see how to do loops safely in the script as I didn't any "read with timeout" facility.
I'm running everything on the RPI now. There is also an ncat for the PI. That was my aim. The windows VM is no longer in play.
The other metadata script was not working well for me. I don't know why. Different platform? It was presented in combination with ices2. which also did not work for me.
Just to be clear i'm not blaming anyone. I'm very thankful for all the help i already received.
My script to loop looked liked this;
Code:
#!/bin/bash
while [ 1 ]; do ncat 192.168.1.29 9090 --lua-exec cli_status.lua >/dev/null 2>&1 ; sleep 5; done
That's was because I wanted the timing to be OK when the song changes. You don't want it change the artist album and track 20 seconds into the song or something.
Polling is not the best way to do especially short polling - as I said in a post
2. If you want notification on changes you use the CLI command "listen 1" - then unsolicited changes will be sent. The script then has to change into a loop whose action looks at strings received, waits for a "newmetadata" message, then does inquiry.
look at LMS WebGUI /Help/Technical Information/Command Line Interface as there are alternatives such as "subscribe status"
At least change to 10 secs.
By the way read my remark to Michael I forgot to add that the errors still appears even without the script running.
So I think the script has nothing to do with it.
I wouldn't be so sure. I've known Windows to leave TCP connections hanging, so script may close but for a while after closing the connection is half in place and maybe causing the error.
I'm running everything on the RPI now. There is also an ncat for the PI. That was my aim. The windows VM is no longer in play.
The other metadata script was not working well for me. I don't know why. Different platform? It was presented in combination with ices2. which also did not work for me.
Just to be clear i'm not blaming anyone. I'm very thankful for all the help i already received.
My script to loop looked liked this;
Code:
#!/bin/bash
while [ 1 ]; do ncat 192.168.1.29 9090 --lua-exec cli_status.lua >/dev/null 2>&1 ; sleep 5; done
Greetings Henk.
ncat was only suggested becuase you needed to run on Windows.
There are much better solution for a Linux based system.
ncat was only suggested becuase you needed to run on Windows.
There are much better solution for a Linux based system.
Must be
I have a windows background (Was a system engineer in a datacenter for many years) So i started on a VM. Because ices2 on the PI did not seem work stable. I started using darkice and there is no option to insert metadata unless you use some http method which i am not familiar with (yet).
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment