philippe44 / LMS-ShairTunes2W

Airtunes with LMS (fork of https://github.com/disaster123/shairport2_plugin)
65 stars 3 forks source link

Synology DSM installation #2

Closed opacey closed 6 years ago

opacey commented 8 years ago

Hi. I have a fresh installation of a Synology NAS and haven't been able to get ShairTunes working. Could you suggest how I might go about trouble shooting? NAS: RS812+ OS: DSM 6.0.2 LMS: 7.7.6 PlugIn: "ShairTunes 2 (fork) (v0.35.3)" AirPlay music sources: iPhone 5 (iOS 10.1.1) MacBook (iOS 10.11.6) Squeezeboxes: 4x Squeezebox Receivers attached to the NAS via an ethernet switch.

After NAS installation, the LMS plugin was listed by default in the "3rd party plugins" page so I just ticked the box, applied the settings, confirmed that I wanted to install ShairTunes and restart the server and then tried to find the players from my iPhone. Nothing came up (other than an AppleTV3 I have on the network) so I rebooted the NAS and tried again but still nothing appears. Any thoughts?

lucaberta commented 8 years ago

I have had the same issue, but then I realized that I was looking for both audio and video Airplay-enabled devices, as I too was only seeing the Apple TVs I have.

So I tried with any music or podcast application, and all of a sudden all the Squeezeboxes showed up.

Make sure you use an audio only app to test the plugin!

opacey commented 8 years ago

Thanks very much for the idea lucaberta. I am trying with the built in apple Music and Podcast apps on the phone but they see only the AppleTV still. What app are your broadcasting with? Any other ideas?

lucaberta commented 8 years ago

I am using my podcast app of choice which is Downcast, but any sound-only app would behave the same way. Clearly the issue is not on the iDevice, but rather in the interaction between the plugin and LMS, or the broadcast of the new Airplay service on the local network.

If I were you I would turn on all possible debugging log on the plugin, and also make sue that the paths for the binary are correct.

I don't run my LMS on my NAS, though, so I cannot help you all too much. I have a dedicated small fanless PC board with Vortexbox running also Plex from an SSD board, with all the media shared from a QNAP NAS via Samba.

opacey commented 8 years ago

Thanks - I think you're right. I was hoping that since it is a fresh, uncustomised installation that it would work (was one of the reasons I wiped and reinstalled the NAS). If anyone else out there has Synology experience your thought would be appreciated too. Meanwhile I'll see if I can get the logging going.

philippe44 commented 8 years ago

BTW, on IoS 10, you have to swipe left once you have brought up the widget popup to have access to audio-only AirPlay devices. As lucaberta said, switch on at least "info" log level in the LMS settings, logging, ShairTunes and then look at the server log. I prefer to provide support through the Logitech slimdevices forums

opacey commented 8 years ago

Thank you philippe44 - I'll head over to the slim forums now, with some log data :)

hwdbk commented 6 years ago

On synology DSM, the helper that got used was the wrong one in my case (a DS1518+ which is a x86_64 linux device). After install, the plugin reports / selects the x86-linux (32-bit version). It does seem to start, but does not publish the players on the network (and the log file doesn't say the socket is open for connect). Then, I changed the helper to x64-linux from the popup in the plugin settings, but still no avail. I found that the permissions of that helper were 666, not 555. I changed the permissions manually to drwxr-xr-x 2 admin users 4096 Sep 7 14:18 . drwxr-xr-x 5 admin users 4096 Sep 7 14:18 .. -rw-rw-rw- 1 admin users 1054080 Aug 29 2014 cc32160mt.dll -rw-rw-rw- 1 admin users 1281024 Aug 29 2014 libeay32.dll -rw-rw-rw- 1 admin users 31744 Sep 27 2014 pthreadBC2.dll -rw-rw-rw- 1 admin users 1020536 Aug 20 16:02 shairport_helper-aarch64 -rw-rw-rw- 1 admin users 1038384 Aug 20 16:02 shairport_helper-armv5te -rw-rw-rw- 1 admin users 972248 Aug 20 16:02 shairporthelper-armv6hf -r-xr-xr-x 1 admin users 1305920 Aug 20 16:03 shairporthelper-i386-linux << this one got selected after install -rw-rw-rw- 1 admin users 420892 Aug 20 16:03 shairport_helper-i86pc-solaris -rw-rw-rw- 1 admin users 276968 Aug 20 16:03 shairport_helper-osx -rw-rw-rw- 1 admin users 1115884 Aug 20 16:03 shairport_helper-ppc -rw-rw-rw- 1 admin users 298496 Aug 20 16:03 shairport_helper-win.exe -r-xr-xr-x 1 admin users 1752040 Aug 20 16:03 shairport_helper-x64-linux << but this is the right one, after changing perm to 555 by hand

restarted the LMS and now it works

philippe44 commented 6 years ago

The permission are set automatically when the helper is detected, so it's normal that they are all 444 except the active one. What is wrong is that yout platform was detected an x86 and anot 64 bits. What does LMS report as a Perl version upon startup?

hwdbk commented 6 years ago

LMS starts up with: [18-09-07 16:14:32.2431] main::init (353) Starting Logitech Media Server (v7.7.6, 1452060463, Thu Jan 21 02:17:04 UTC 2016) perl 5.024000 I'm running LMS 7.7.6-116 from the Package Center (std Synology-supplied version, latest version) and the dependent package Perl 5.24.0-0071 (std Synology-supplied version, latest version). The system is an Intel DiskStation (DS1518+), 64-bit architecture: ~# uname -a Linux synology 3.10.105 #23739 SMP Tue Jul 10 00:16:57 CST 2018 x86_64 GNU/Linux synology_avoton_1815+ ~# uname -m x86_64

philippe44 commented 6 years ago

Fixed in version 0.102.2

hwdbk commented 6 years ago

Thanks! This is an amazing module! Use case: before, I used the ShairPort plugin on a piCorePlayer SqueezeLite and always was figeting with stopping one source, waiting, and then starting the other - and sometimes not even understanding what was going on (what source was playing or why I couldn’t hear anything). With this ShairTunes all is now managed by one central authority - LMS - and all my players (in various rooms) seamlessly appear as AirTunes devices as well on all my mobile devices. That, in combination with iPeng (which also doubles up as a SqueezeLite Player), is the ultimate convergence. Cheers.

PS>Did you also fix the problem that by changing the helper to a different one with the Settings sheet, the permissions of that helper weren’t changed from 666 to 555? Cheers

/Henk

On 8 Sep 2018, at 08:45, philippe44 notifications@github.com wrote:

Fixed in version 0.102.2

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/philippe44/ShairTunes2/issues/2#issuecomment-419618108, or mute the thread https://github.com/notifications/unsubscribe-auth/AffcYDrkpYFMRM6pO11_bhXY3vk7krmYks5uY2d5gaJpZM4K1ZXQ.

philippe44 commented 6 years ago

Thanks - Yes, this is what I’ve fixed, the chmod when changing manually helped. I still don’t know why the helper selected on your platform is 32 bits.

I’m glad you find this useful. I forked it initially to get a Windows version of Shairtunes2 and it caused me so much pain that I decided to add multiplayer’s capabilities and other things so that it becomes worth my initial investment :-)

hwdbk commented 6 years ago

Much appreciated! Chees, Henk

On 8 Sep 2018, at 09:32, philippe44 notifications@github.com wrote:

Thanks - Yes, this is what I’ve fixed, the chmod when changing manually helped. I still don’t know why the helper selected on your platform is 32 bits.

I’m glad you find this useful. I forked it initially to get a Windows version of Shairtunes2 and it caused me so much pain that I decided to add multiplayer’s capabilities and other things so that it becomes worth my initial investment :-)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/philippe44/ShairTunes2/issues/2#issuecomment-419620312, or mute the thread https://github.com/notifications/unsubscribe-auth/AffcYGZmHTsGlr3JEthY6qS2FoHNRAEyks5uY3JxgaJpZM4K1ZXQ.