Jump to content
linuxserver.io

[Support] Linuxserver.io - daapd

111 posts in this topic Last Reply

Recommended Posts

linuxserver_medium.png

 

Application Name: daapd

Application Site: http://ejurgensen.github.io/forked-daapd/

Docker Hub: https://hub.docker.com/r/linuxserver/daapd/

Github: https://github.com/linuxserver/docker-daapd

 

Please post any questions/issues relating to this docker you have in this thread.

 

If you are not using Unraid (and you should be!) then please do not post here, instead head to linuxserver.io to see how to get support

Edited by linuxserver.io

Share this post


Link to post

Thanks for this. Is anybody able to explain the process of getting remote to work? The FAQ: http://ejurgensen.github.io/forked-daapd/#using-remote i have tried, but i believe i need to use the part about "libraries on a network mount": http://ejurgensen.github.io/forked-daapd/#libraries-on-network-mounts but that makes no sense to me.

 

thanks

 

 

http://ejurgensen.github.io/forked-daapd/#using-remote

Share this post


Link to post

Thanks for this. Is anybody able to explain the process of getting remote to work? The FAQ: http://ejurgensen.github.io/forked-daapd/#using-remote i have tried, but i believe i need to use the part about "libraries on a network mount": http://ejurgensen.github.io/forked-daapd/#libraries-on-network-mounts but that makes no sense to me.

 

thanks

 

 

http://ejurgensen.github.io/forked-daapd/#using-remote

 

That's the same link i posted :)

 

I did get a little further though...

 

1) Launch remote app on iDevice

2) Settings -> Add an iTunes Library

3) Make sure this is left open at all times

4) Browse to your docker log location, in my example /mnt/cache/dockerapps/daapd/dbase_and_logs/forked-daapd.log

5) Launch Docker

6) Check log for:

remote: Discovered remote 'iPad' (id F2BB4AC0....) at 192.168.0.251:57629......

7) Create a plain text file with 2 lines. First line being the name that's been discovered. In my case iPad (no quote marks). Second line is the code that is displayed on the iDevice.

8 ) Name the file as iPad.remote (what you call it doesn't matter, but the extension has to be .remote)

9) Save that file to the folder that holds all your music. In my case /mnt/user/music

10) Restart Docker

11) ..... and this is where i'm now stuck. i get error:

 

remote: Read Remote pairing data (name 'iPad', pin '9709') from /music/ipad.remote
[2015-12-12 11:19:16] [  LOG]   remote: Remote 'iPad' not known from mDNS, ignoring

 

Then I found this post: https://github.com/jasonmc/forked-daapd/issues/41

 

Here is how I have been successful.

 

1. Try pairing with a very small library or wait until the daemon scans everything. I have 40,000+ songs and that initial scan takes a while.

 

2. Start the daemon with no .remote and let it finish scanning.

 

3. Start the iPhone remote app, choose add library and then get the code. If you are running avahi-browse you should see it show up.

 

4. Prepare a .remote file in your home directory and move it into the library... I think that the temp file when editing directly in the library may confuse things...

 

Should go ahead and pair.  I have been successful consistently like this.

 

Then delete the .remote file in the library...

 

So i got it working by pointing my /music mapping to a folder that was empty -> copied .remote file into there and it picked it up straight away

 

Share this post


Link to post

Hi i just tried to switch from Sparklyballs daapd to the ls.io dappd but i wont come up sayin it could not bind to Port 3689.

 

These are the Log File entries which keep repeating. Any Idea?

 

[2016-01-03 19:26:55] [  LOG]     main: Forked Media Server Version 23.3 taking off
[2016-01-03 19:26:55] [  LOG]     main: mDNS init
[2016-01-03 19:26:55] [  LOG]     mdns: Avahi state change: Client running
[2016-01-03 19:26:55] [  LOG]       db: Now vacuuming database, this may take some time...
[2016-01-03 19:26:56] [  LOG]       db: Database OK with 403 active files and 6 active playlists
[2016-01-03 19:26:57] [  LOG]     raop: Couldn't make timing socket: Address family not supported by protocol
[2016-01-03 19:26:57] [  LOG]     raop: Couldn't make control socket: Address family not supported by protocol
[2016-01-03 19:26:57] [FATAL]    httpd: Could not bind :::3689
[2016-01-03 19:26:57] [FATAL]     main: HTTPd thread failed to start
[2016-01-03 19:26:57] [  LOG]     main: Player deinit
[2016-01-03 19:26:57] [  LOG]     scan: Scanned 200 files...
[2016-01-03 19:26:58] [  LOG]     main: Spotify deinit
[2016-01-03 19:26:58] [  LOG]     main: File scanner deinit
[2016-01-03 19:26:58] [  LOG]     main: Cache deinit
[2016-01-03 19:26:58] [  LOG]     main: Worker deinit
[2016-01-03 19:26:58] [  LOG]     main: Database deinit
[2016-01-03 19:26:58] [  LOG]     main: mDNS deinit
[2016-01-03 19:26:58] [  LOG]     main: Exiting.

Share this post


Link to post

Okay solved it by myself.

 

On unRaid you have to set ipv6=no in the forked-daapd.conf because unRaid does not support ipv6.

 

Maybe it would be a good idea to take that setting as default, because it is easier for most to enable it than to have a not working forked-daapd and have to search for that failure.

Share this post


Link to post

On unRaid you have to set ipv6=no in the forked-daapd.conf because unRaid does not support ipv6.

 

only sometime between 18 days ago and today is that the case, they changed something in that period.

 

had it running myself on unraid with the settings out the box so to speak when i made the last update to the image 18 days ago.

 

testing changing it by default to no.

Share this post


Link to post

they've definitely changed something.

 

disabling it and running on my test system which has ipv6 support, it still registers an ipv6 address.

 

Share this post


Link to post

Hi!

 

I created a docker using the following command in CLI (is there a way to create it using the template?):

 

docker create --name=daapd -v /etc/localtime:/etc/localtime:ro -v /mnt/cache/docker/apps/daapd/config -v /mnt/user/iTunes -e PGID=0 -e PUID=0 --net=host lsiodev/daapd

 

 

My log looks like this:

 

-----------------------------------
_ _ _
| |___| (_) ___
| / __| | |/ _ \ 
| \__ \ | | (_) |
|_|___/ |_|\___/
|_|

Brought to you by linuxserver.io
-----------------------------------
GID/UID
-----------------------------------
User uid: 0
User gid: 0
-----------------------------------

We are now refreshing packages from apt repositorys, this *may* take a while
Update: OK 
Jan 27 20:42:38 Tower syslog-ng[60]: syslog-ng starting up; version='3.5.3'
Jan 27 20:42:39 Tower dbus[61]: [system] Successfully activated service 'org.freedesktop.Avahi'
Jan 27 21:17:01 Tower /USR/SBIN/CRON[85]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jan 27 22:17:01 Tower /USR/SBIN/CRON[88]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jan 27 23:17:01 Tower /USR/SBIN/CRON[91]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jan 28 00:17:01 Tower /USR/SBIN/CRON[94]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jan 28 01:17:01 Tower /USR/SBIN/CRON[97]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jan 28 02:17:01 Tower /USR/SBIN/CRON[100]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jan 28 03:17:01 Tower /USR/SBIN/CRON[103]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jan 28 04:17:01 Tower /USR/SBIN/CRON[106]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jan 28 05:17:01 Tower /USR/SBIN/CRON[109]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jan 28 06:17:01 Tower /USR/SBIN/CRON[112]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jan 28 06:25:01 Tower /USR/SBIN/CRON[115]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
Jan 28 07:17:01 Tower /USR/SBIN/CRON[188]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jan 28 08:17:01 Tower /USR/SBIN/CRON[191]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)

 

1) I don't seem to be able to find where forked-daapd.conf is, so that I could turn off ipv6

2) When I open Apple remote on my phone nothing is appearing in the log

3) I created /mnt/cache/docker/apps/daapd/ folder myself, but it is empty and nothing is appearing there either

4) On my desktop PC, in iTunes, LS.IO Music showed up and I can select it but it says: "LS.IO Music" has no music.

 

What I'm trying to achieve is I would like to store my iTunes library on unRAID and be able to use either iPhone and Remote App or Apple TV to playback music from my library. My desktop has syncthing running which synchronizes iTunes folders between PC and unRAID.

 

I would appreciate any help regarding the setup and configuration.

 

Thanks in advance.

Share this post


Link to post

You find the forked-daapd.conf inside the config folder.

If it is empty the path in the docker config might be wrong or it is a permission problem. For example when you created the folder via terminal as user root and user nobody which runs the docker cant wright to that folder. Also the UID and GID looks messed up in the log. You should start from scratch and add the Container using Community Applications Plugin.

Share this post


Link to post

You find the forked-daapd.conf inside the config folder.

If it is empty the path in the docker config might be wrong or it is a permission problem. For example when you created the folder via terminal as user root and user nobody which runs the docker cant wright to that folder. Also the UID and GID looks messed up in the log. You should start from scratch and add the Container using Community Applications Plugin.

 

Thanks darkside40!

I wanted to install this docker by locating it in linuxserver.io templates, but it is not there and I'm using this repository: https://github.com/linuxserver/docker-templates

I got UID and GID by using  id -u and id -g commands for the root user. I used root credentials to create those folders.

Share this post


Link to post

I wanted to install this docker by locating it in linuxserver.io templates, but it is not there and I'm using this repository: https://github.com/linuxserver/docker-templates

I got UID and GID by using  id -u and id -g commands for the root user. I used root credentials to create those folders.

 

its on their beta template not regular template

https://github.com/linuxserver/beta-templates

Share this post


Link to post

Do yourself a favour and use the Community Applications Plugins: http://lime-technology.com/forum/index.php?topic=40262.0

 

Makes unRaid Docker Life a breeze, instead of messing around with template repos.

 

Thanks a lot! Installed a docker from Community Application Plugins and soon after was able to configure it properly.

 

Could be an offtopic in this thread: is there a playlist capability in daapd docker? Will I be able to use playlists from my original iTunes library or at least see something like "recently added songs"?

Share this post


Link to post

Could be an offtopic in this thread: is there a playlist capability in daapd docker? Will I be able to use playlists from my original iTunes library or at least see something like "recently added songs"?

 

Yes playlists are supported and your original iTunes playlists should work.

I also use mostly SmartPlaylists which are very easy to create.

You could easily create a SmartPlaylist for recently added music with your own definition of "recently added".

See this link.

https://github.com/ejurgensen/forked-daapd/blob/master/README_SMARTPL.md

 

 

Share this post


Link to post

Thanks for this. Is anybody able to explain the process of getting remote to work? The FAQ: http://ejurgensen.github.io/forked-daapd/#using-remote i have tried, but i believe i need to use the part about "libraries on a network mount": http://ejurgensen.github.io/forked-daapd/#libraries-on-network-mounts but that makes no sense to me.

 

thanks

 

i still keep getting "not known from mDNS, ignoring"

 

i tried both your ways. hmmmm

 

http://ejurgensen.github.io/forked-daapd/#using-remote

 

That's the same link i posted :)

 

I did get a little further though...

 

1) Launch remote app on iDevice

2) Settings -> Add an iTunes Library

3) Make sure this is left open at all times

4) Browse to your docker log location, in my example /mnt/cache/dockerapps/daapd/dbase_and_logs/forked-daapd.log

5) Launch Docker

6) Check log for:

remote: Discovered remote 'iPad' (id F2BB4AC0....) at 192.168.0.251:57629......

7) Create a plain text file with 2 lines. First line being the name that's been discovered. In my case iPad (no quote marks). Second line is the code that is displayed on the iDevice.

8 ) Name the file as iPad.remote (what you call it doesn't matter, but the extension has to be .remote)

9) Save that file to the folder that holds all your music. In my case /mnt/user/music

10) Restart Docker

11) ..... and this is where i'm now stuck. i get error:

 

remote: Read Remote pairing data (name 'iPad', pin '9709') from /music/ipad.remote
[2015-12-12 11:19:16] [  LOG]   remote: Remote 'iPad' not known from mDNS, ignoring

 

Then I found this post: https://github.com/jasonmc/forked-daapd/issues/41

 

Here is how I have been successful.

 

1. Try pairing with a very small library or wait until the daemon scans everything. I have 40,000+ songs and that initial scan takes a while.

 

2. Start the daemon with no .remote and let it finish scanning.

 

3. Start the iPhone remote app, choose add library and then get the code. If you are running avahi-browse you should see it show up.

 

4. Prepare a .remote file in your home directory and move it into the library... I think that the temp file when editing directly in the library may confuse things...

 

Should go ahead and pair.  I have been successful consistently like this.

 

Then delete the .remote file in the library...

 

So i got it working by pointing my /music mapping to a folder that was empty -> copied .remote file into there and it picked it up straight away

Share this post


Link to post

Hi, I have read this thread but I still cannot get paired properly.

 

I created a 2  line text file called iPad.Remote. The first line is the name of the iPad, and the second line is the 4 digit pin given by the app.

 

My music directory is currently empty.

 

I followed this procedure:

 

Here is how I have been successful.

 

1. Try pairing with a very small library or wait until the daemon scans everything. I have 40,000+ songs and that initial scan takes a while.

 

2. Start the daemon with no .remote and let it finish scanning.

 

3. Start the iPhone remote app, choose add library and then get the code. If you are running avahi-browse you should see it show up.

 

4. Prepare a .remote file in your home directory and move it into the library... I think that the temp file when editing directly in the library may confuse things...

 

 

Then delete the .remote file in the library...

 

 

However, I am still getting this error in the logs:

 

Remote 'iPad' not known from mDNS, ignoring

 

not sure I what I am doing wrong.

 

If I do manage to get it paired, do I have to create an actual iTunes library in there from the iTunes app on my PC? or Do I just have a bunch of directories organized with my music? I guess album art won't work with this etc?

Share this post


Link to post

Question about enabling the LastFM scrobbler;

When I follow the instructions and put the file with my user name / password in my library folder I get the below. It seems to log in and get a session key but it is not working correctly.

 

Any ideas?

 

Forked Media Server Version 23.4

 

[2016-02-01 10:58:52] [  LOG]  lastfm: Empty lastfm credentials file /music/setup.lastfm

[2016-02-01 10:58:52] [  LOG]  lastfm: Empty lastfm credentials file /music/._setup.lastfm

[2016-02-01 10:58:52] [  LOG]  lastfm: Invalid lastfm credentials file /music/._setup.lastfm: username name too long or missing password

[2016-02-01 10:58:52] [  LOG]  lastfm: Invalid lastfm credentials file /music/._setup.lastfm: username name too long or missing password

[2016-02-01 10:58:52] [  LOG]  lastfm: Empty lastfm credentials file /music/._setup.lastfm

[2016-02-01 10:58:52] [  LOG]  lastfm: Invalid lastfm credentials file /music/._setup.lastfm: username name too long or missing password

[2016-02-01 10:58:52] [  LOG]  lastfm: lastfm credentials file OK, logging in with username XXXXXXX

[2016-02-01 10:58:54] [  LOG]  lastfm: Got session key from LastFM: XXXXXXXXXXXXXXXXXXXXXXX

[2016-02-01 10:58:55] [  LOG]  lastfm: Invalid lastfm credentials file /music/._setup.lastfm: username name too long or missing password

Share this post


Link to post

Hi, I have read this thread but I still cannot get paired properly.

 

I created a 2  line text file called iPad.Remote. The first line is the name of the iPad, and the second line is the 4 digit pin given by the app.

 

My music directory is currently empty.

 

I followed this procedure:

 

Here is how I have been successful.

 

1. Try pairing with a very small library or wait until the daemon scans everything. I have 40,000+ songs and that initial scan takes a while.

 

2. Start the daemon with no .remote and let it finish scanning.

 

3. Start the iPhone remote app, choose add library and then get the code. If you are running avahi-browse you should see it show up.

 

4. Prepare a .remote file in your home directory and move it into the library... I think that the temp file when editing directly in the library may confuse things...

 

 

Then delete the .remote file in the library...

 

 

However, I am still getting this error in the logs:

 

Remote 'iPad' not known from mDNS, ignoring

 

not sure I what I am doing wrong.

 

If I do manage to get it paired, do I have to create an actual iTunes library in there from the iTunes app on my PC? or Do I just have a bunch of directories organized with my music? I guess album art won't work with this etc?

 

I had the exact problem as you described for the first time. Then I changed my iphone's name from A iphone to B_iphone, and I could see from the daapd log that it found the new name.

 

I edited the iphone.remote outside with the new name and new paircode, and copied to my music library folder the 2nd time. It got paired instantly, and the unraid_music_library is displayed on my iphone.

 

[2016-02-21 15:27:33] [  LOG]   remote: Read Remote pairing data (name 'A iPhone', pin '3256') from /music/iphone.remote
[2016-02-21 15:27:33] [  LOG]   remote: Remote 'A iPhone' not known from mDNS, ignoring
[2016-02-21 15:30:20] [  LOG]   remote: Discovered remote 'B_iPhone' (id xxxx) at 192.168.1.xxx:63498, paircode C2B0247F23E5xxxx
[2016-02-21 15:32:57] [  LOG]   remote: Read Remote pairing data (name 'B_iPhone', pin '7974') from /music/iphone.remote

Share this post


Link to post

I've set it up using Community Applications plugin.

It is running and listens on port 3689, but it does not seem to announce itself, so I can't see it in iTunes. Unlike Firefly server.

What do I do to fix that?

Share this post


Link to post

The following error is coming up in my syslog approximately ~30sec or so: 

 

May  1 11:18:39 AJs_Unraid kernel: filescanner[22763]: segfault at 0 ip 00002af7a59f2c34 sp 00002af7b2d97610 error 4 in libavformat.so.54.20.4[2af7a598f000+10e000]

 

Daapd at that point restarts...  Correspondingly, stopping the daapd docker eliminates these entries into syslog & "restarting" entries in the daapd logfile.

 

Did a quick google search and came across this...  Perhaps it's related?

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697646[/code]

Share this post


Link to post

Hello, I new to this docker when setting up the Container Path: /music in the config. where should I point for the music my music dir. on the unraid or C:\Users\John\Music\iTunes\iTunes Media

thanks

lou

Share this post


Link to post

Hello, I new to this docker when setting up the Container Path: /music in the config. where should I point for the music my music dir. on the unraid or C:\Users\John\Music\iTunes\iTunes Media

thanks

lou

You can't do the latter unless you use Unassigned Devices to mount that windows share

 

Share this post


Link to post

Hello, I new to this docker when setting up the Container Path: /music in the config. where should I point for the music my music dir. on the unraid or C:\Users\John\Music\iTunes\iTunes Media

thanks

lou

You can't do the latter unless you use Unassigned Devices to mount that windows share

 

Ok thanks, I try to search for a little more detail on how to configure this docker with not much success is there another rout to set it up such as create a folder on the unraid?

Thanks again

Lou

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.