Airplay is not working

Max2Play Home Forums Max2Play on Raspberry PI Airplay is not working

Viewing 15 posts - 1 through 15 (of 15 total)
  • 30. April 2018 at 11:48 #35386

    Hi,
    i just wanted to use my SqueezeboxRadio for playing music, streamed from my iPhone via Airplay. Someone told me, that i could use my old RaspberryPI as a media server and the easiest way would be to use Max2Play. That is what i did, i downloaded the RaspPi image from the max2play website, wrote in on the SD card and after booting, made the initial configuration (basically i had chosen the advanced preset option) and then just installed the squeezebox server directly from the web interface.

    Ok, to make this short: the squeezebox server is working but the device is not listed in the list of airplay devices! Do i maybe have to install some plugin or something else?

    edit: found the shairplay plugin in the plugin tab of the squeezebox server interface, installed it and restared. But i got the info that the plugin failed to load, so i thought it could help to install this bugfix listed in the squeezebox server tab of the max2play web interface and installed it. Now the squeezebox server interface is not reachable anymore, the max2play interface is reachable though.
    Via ssh i can see that the squeezebox server is running.

    • This topic was modified 6 years, 6 months ago by oliver.
    3. Mai 2018 at 10:29 #35509

    Hi oliver,

    If you can reach the LMS interface again (try rebooting, check the debug log to see if its still indexing, this might take some), head to the LMS settings‘ Plugins section and make sure „shairtunes2 (fork)“ is active.

    4. Mai 2018 at 18:45 #35520

    I was not able to recover the Squeezebox-Server application so i just wrote the max2play image again on my SD-card and reinstalled everything. Then i did the following:
    – booted the Raspberry Pi 1 B
    – as soon as the max2play web interface was reachable, i made the basic stuff (set my emailadress, seleced the basic mode, expanded the filesystem, upgraded max2play and rebooted)
    – then i went to the squeezebox-server tab of the max2play webinterface and installed the SB-server, there where three options available: LMS 7.9.0, LMS 7.9.1 and Nightly 7.9, this time i installed LMS 7.9.0 (last time i installed 7.9.1 but as this did not work in the end i wanted to try a different version)
    – after the installation of LMS finished i went to the web interface of LMS and made the basic configuration (select music and playlist directory and so on)
    – then i went to the plugin settings of the LMS web interface and selected shairtunes 2 (fork)
    – i got the message that LMS has to be restarted to make the changes work, so i did restart LMS from the max2play web interface
    – then i went back to the LMS web interface plugin settings and found shairtunes2 (fork) unchecked!! but with the message next to it: „could not load plugin“ (actually the message was in german: „plugin konnte nicht geladen werden“)

    so i am back at the same problem again, shairtunes2 is not working.

    What is the problem here and how can i solve it?

    5. Mai 2018 at 15:44 #35522

    btw: here is some debug output related to shairtunes:

    [18-05-04 18:33:55.4384] Slim::bootstrap::tryModuleLoad (286) Warning: Module [Plugins::ShairTunes2W::Plugin] failed to load:
    Can't load '/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/ShairTunes2W/lib/5.24/arm-linux-gnueabihf-thread-multi-64int/auto/Crypt/OpenSSL/RSA/RSA.so' for module Crypt::OpenSSL::RSA: libssl.so.1.0.0: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden at /usr/lib/arm-linux-gnueabihf/perl/5.24/DynaLoader.pm line 187.
    � at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/ShairTunes2W/Plugin.pm line 33.
    Compilation failed in require at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/ShairTunes2W/Plugin.pm line 33.
    BEGIN failed--compilation aborted at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/ShairTunes2W/Plugin.pm line 33.
    Compilation failed in require at (eval 913) line 1.
    BEGIN failed--compilation aborted at (eval 913) line 1.
    
    [18-05-04 18:33:55.4977] Slim::Utils::PluginManager::load (323) Error: Couldn't load Plugins::ShairTunes2W::Plugin
    [18-05-04 18:33:57.3647] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
    [18-05-04 18:33:57.4071] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    [18-05-04 18:34:01.3389] main::checkDataSource (1111) Warning: Schema updated or no media found in the database, initiating scan.
    [18-05-04 18:34:43.3515] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
    [18-05-04 18:34:44.0774] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    7. Mai 2018 at 15:16 #35556

    Hi oliver,

    Thanks for the detailed response.

    If you burned the Stretch version of Max2Play (2.45), please also install the shairtunes2 fix for Stretch in „Install special Plugins for Squeezebox Server“ in the Squeezebox Server menu of Max2Play web interface.

    Also, make sure there are no other plugins named „shairtunes2“ active in the Plugin list.

    7. Mai 2018 at 18:15 #35566

    I did. But again the (original?) shairtunes2 plugin is still unchecked and „failed to load“ in the internal LMS-interface plugin list. I did not found any other shairtunes plugins in that list. This is the current debug log:

    [18-05-07 18:10:05.4486] main::init (388) Starting Logitech Media Server (v7.9.0, 1488878280, Wed Mar  8 14:18:44 UTC 2017) perl 5.024001 - arm-linux-gnueabihf-thread-multi-64int
    [18-05-07 18:10:13.8570] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
    [18-05-07 18:10:13.9218] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    [18-05-07 18:10:16.6118] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
    [18-05-07 18:10:16.6540] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    [18-05-07 18:10:23.6233] Slim::bootstrap::tryModuleLoad (286) Warning: Module [Plugins::ShairTunes2W::Plugin] failed to load:
    Can't load '/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/ShairTunes2W/lib/5.24/arm-linux-gnueabihf-thread-multi-64int/auto/Crypt/OpenSSL/RSA/RSA.so' for module Crypt::OpenSSL::RSA: libssl.so.1.0.0: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden at /usr/lib/arm-linux-gnueabihf/perl/5.24/DynaLoader.pm line 187.
     at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/ShairTunes2W/Plugin.pm line 33.
    Compilation failed in require at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/ShairTunes2W/Plugin.pm line 33.
    BEGIN failed--compilation aborted at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/ShairTunes2W/Plugin.pm line 33.
    Compilation failed in require at (eval 912) line 1.
    BEGIN failed--compilation aborted at (eval 912) line 1.
    
    [18-05-07 18:10:23.6764] Slim::Utils::PluginManager::load (323) Error: Couldn't load Plugins::ShairTunes2W::Plugin
    [18-05-07 18:10:24.7250] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
    [18-05-07 18:10:24.7652] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    [18-05-07 18:10:28.8339] main::checkDataSource (1111) Warning: Schema updated or no media found in the database, initiating scan.
    [18-05-07 18:11:14.7384] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
    [18-05-07 18:11:14.7813] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    
    8. Mai 2018 at 10:43 #35577

    Did you reboot after installing the bugfix? Please try reinstalling the bug fix and rebooting the device before checking shairtunes2 again.

    I just checked the plugin on a new image and the fix worked right away.

    13. Mai 2018 at 22:31 #35659

    i have an update on the topic:
    i was not able to solve the problem, but out of curiosity i ordered one of the new raspberry Pi 3+ models and tried exactly the same i did with the old model and this time it worked!
    Not out of the box of course, because the shairtunes plugin did not work at first, but after installing the bug fix the problem was fixed. Shairtunes is listed as working in the LMS plugin overview and i can stream music from my iPhone to my Squeezebox Radio.
    But there is one problem still: when i stream music, there is a short pause every few seconds…

    14. Mai 2018 at 14:50 #35671

    that is very odd.

    Do you have some periphery connected via USB? Also, what does the health checker say during playback?

    14. Mai 2018 at 22:13 #35687

    The health checker shows:

    Internet: Connected
    CPU Load: 0.32
    SD Card Usage: 17%
    Temp CPU: 54.2
    Power Supply: OK

    no usb device is conected to the pi.

    17. Mai 2018 at 9:22 #35733

    Then it does not seem to be connected to your CPU.

    Do the dropouts also occur when using another playback source than AirPlay?

    Also, if you are connected via WiFi, could you try recreating the issue on ethernet to rule out wireless connectivity as a source of error?

    17. Mai 2018 at 22:33 #35751

    The Raspberry Pi is connected via LAN the Squeezebox Radio is connected via WiFi. Normally i only use Apple Music for streaming/listen to music but i still have my old mp3 archive, so i just copied some mp3s over to the LMS music directory on the RaspberryPi (/home/pi/music) and played them on the Squeezebox. I had no pauses with this!

    At the moment it seems that the pauses occur only when streaming music from my iPhone to the Squeezebox using LMS (Shairtunes)! But it also seems that some songs have less pauses, but i am not sure about that!

    I also stream to my regular Airplay speaker in my living room (which is also connected via WiFi to my network) from the iPhone, but this works without pauses!

    22. Mai 2018 at 14:42 #35804

    Hi oliver,

    It is probably due to your LMS bridging the gap between two wireless connections (your Squeezebox and your phone).

    22. Mai 2018 at 23:54 #35822

    Ok are there any solutions? The only reason i made all the effort was to use my squeezebox as Airplay speaker. It would be kind of disappointing if this would not work in the end.

    24. Mai 2018 at 10:46 #35854

    You can try connecting the Squeezebox via ethernet to make sure that WiFi is indeed the cause of your playback issues.

    If so, you can try various measures for better connectivity. Having the router closer by the Squeezebox, adding a WiFi antenna, etc.

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.

Register here