owntone / owntone-server

Linux/FreeBSD DAAP (iTunes) and MPD media server with support for AirPlay 1 and 2 speakers (multiroom), Apple Remote (and compatibles), Chromecast, Spotify and internet radio.
https://owntone.github.io/owntone-server
GNU General Public License v2.0
2.01k stars 232 forks source link

iTunes 12.5.4 on OSX fails to load forked-daapd library #333

Open pgiblock opened 7 years ago

pgiblock commented 7 years ago

I am running the current master branch on Ubuntu Server. I have two Macs with 12.3 and 12.4 versions of iTunes and they run fine. The third and fourth Mac are upgraded to iTunes 12.5.4. Unfortunately, those two machines fail to load the remote library. That is, the titlebar portion of the UI shows Loading library from "FOO"... but nothing happens and it eventually times out after about a minute.

Interestingly, no log entries are emitted for the affected machines. The working machines show request queries in the log. The affected machines show the Library as an option, but seem to refuse to load at all. Perhaps something wrong with the DNS-SD data?

I'll try to do some wiresharking and provide more information

ejurgensen commented 7 years ago

I just tried with 12.5.4 (Windows) and it worked, so at least it is not some general problem with 12.5.4. I think iTunes changed the way it loads the library to load one playlist at the time, which means that if you have a lot it could perhaps be slow, or even time out? It would be great if you could Wireshark (tcp port 3689).

ludwig-gramberg commented 7 years ago

just compiled forked-daapd 24.2 on debian 8, can't get itunes 12.5.5.5 to see the library

in the firewall i opened tcp 6600 and 3689 tcp which forked-daapd is listening on

on osx i installed a mdns discovery tool which shows what avahi/forked-daapd are publishing, i tried to compare it to what itunes itself publishes when sharing is activated and there are some differences but i'm not able to say if they're crucial

is there any way how to debug this?

ejurgensen commented 7 years ago

It seems the problem you have is a bit different from the original issue, since you don't even see forked-daapd in iTunes. That means port 6600 and 3689 probably don't even come into play.

As mentioned above, it is difficult for me to help as I do not use osx, and it is working in Windows.

It is true that the forked-daapd's announcement is quite different from iTunes. It is not possible to simply duplicate the current iTunes announcement, probably because there is some crypto stuff in it, and I would not expect to be able to reverse engineer that.

One thing you could try is disabling ipv6 mode in forked-daapd's config. It is a long shot, but who knows.

carlosrojomd commented 7 years ago

Hi... I'm having the same issue... running OSX Sierra 10.12.5 and iTunes 12.6.1.25, file server is unRAID 6.3.5 and SMB shares.

So, first I added the actual path where my music is... but it's too heavy but still DAAP did not show up under shared libraries/itunes server.. Any one in here had any luck making DAAP work in OSX?

Here's the log I get from DAAP:

daap.txt

carlosrojomd commented 7 years ago

anyone?

davidjb commented 7 years ago

I had a similar problem with iTunes 12.6.125 on macOS 10.12.5 and disabling IPv6 was the solution. Previously, the library was listed in iTunes but silently failed to load on selection, even with debug logging configured for forked-daapd.

rainerstandke commented 5 years ago

Same phenomenon with Mac OS 10.14.1 today, and turning off ipv6 has the library show up in iTunes without further ado. Also, pairing the forked-daapd server with Remote on iOS via the web interface works again - it had failed before.

hacketiwack commented 7 months ago

Is this problem still current? I've just tested with an old version of macOS (Mojave 14.4) and I can load the library.

There is however another issue with some audiobooks being displayed multiple times.