You are here: Home » Topic » mt-daapd suddenly disappears from iTunes / FreeBSD 6.2page 2

mt-daapd suddenly disappears from iTunes / FreeBSD 6.2

FireFly Media Server (formerly mt-daapd) Firefly Media Server Forums Firefly Media Server Setup Issues mt-daapd suddenly disappears from iTunes / FreeBSD 6.2

This topic contains 25 replies, has 4 voices, and was last updated by  rpedde 12 years, 3 months ago.

Viewing 11 posts - 16 through 26 (of 26 total)
  • Author
    Posts
  • #10330

    foging
    Participant

    Edited the /var/cache/mt-daapd and the files withing with chmod a+rx. It looks like this now:

    drwxrwxr-x 2 nobody root 4096 2007-05-17 13:54 mt-daapd

    When I run mt-daapd i get this:

    Initializing database
    Query: vacuum
    Error: unable to open database file
    Aborting
    Rendezvous socket closed (daap server crashed?) Aborting.
    Aborting

    Are the permissions still wrong? The runas user is mt-daapd. If i set it to root it will start but I still can’t see anything in iTunes.

    #10331

    rpedde
    Participant

    @foging wrote:

    Edited the /var/cache/mt-daapd and the files withing with chmod a+rx. It looks like this now:

    drwxrwxr-x 2 nobody root 4096 2007-05-17 13:54 mt-daapd

    When I run mt-daapd i get this:

    Initializing database
    Query: vacuum
    Error: unable to open database file
    Aborting
    Rendezvous socket closed (daap server crashed?) Aborting.
    Aborting

    Are the permissions still wrong? The runas user is mt-daapd. If i set it to root it will start but I still can’t see anything in iTunes.

    The permissions up there are broken up into three sections — owner, group, everyone.

    Right now the permissions are set to owner rwx, group rwx, everyone r-x. In the case, the directory is owned by nobody, with group root. So “nobody” has write access to the folder, anyone in the root group has write access to the folder, and everyone else (including mt-daapd) has read-only access to the folder.

    Hence not being able to write to it.

    Try changing the owner of the folder to mt-daapd. That would work. Or make it world writable, which is probably the wrong thing to do on a multi-user system.

    — Ron

    #10332

    foging
    Participant

    Ok, done. Seems to start just fine using

    :~$ sudo mt-daapd -f
    Starting with debuglevel 2
    Starting rendezvous daemon
    *** WARNING *** The programme ‘mt-daapd’ uses the HOWL compatiblity layer of Avahi.
    *** WARNING *** Please fix your application to use the native API of Avahi!
    *** WARNING *** For more information see
    Starting signal handler
    Signal handler started
    Initializing database
    Starting web server from /usr/share/mt-daapd/admin-root on port 3689
    Registering rendezvous names
    Serving 14543 songs. Startup complete in 2 seconds

    Still no go though 🙁

    Is there any way I can post extracts from my firewall config? I’ve done all the settings using Firestarter in Ubuntu, so I have no clue where to find the conf-files.

    #10333

    rpedde
    Participant

    @foging wrote:

    Is there any way I can post extracts from my firewall config? I’ve done all the settings using Firestarter in Ubuntu, so I have no clue where to find the conf-files.

    Fixes for firestarter are detailed here: http://forums.fireflymediaserver.org/viewtopic.php?t=5505

    #10334

    foging
    Participant

    Wohoo! It works, it works! Now I’m just going to idle it for a days or so and se if it still works.

    Thank you so much for your help and patience!

    #10335

    foging
    Participant

    @foging wrote:

    Wohoo! It works, it works! Now I’m just going to idle it for a days or so and se if it still works.

    Thank you so much for your help and patience!

    Damn! Doesn’t work anymore 🙁 Idled it for about 3 hours and then it suddenly disappeared from iTunes. Followed the Firestarter fix-link you posted. Worked for a while….

    #10336

    rpedde
    Participant

    @foging wrote:

    @foging wrote:

    Wohoo! It works, it works! Now I’m just going to idle it for a days or so and se if it still works.

    Thank you so much for your help and patience!

    Damn! Doesn’t work anymore 🙁 Idled it for about 3 hours and then it suddenly disappeared from iTunes. Followed the Firestarter fix-link you posted. Worked for a while….

    Did the process stop, or did it just disappear from iTunes?

    If it just disappeared, did you remember to additionally allow incoming UDP on port 5353?

    #10337

    foging
    Participant

    Did the process stop, or did it just disappear from iTunes?

    Process still running, disappeared from iTunes.

    If it just disappeared, did you remember to additionally allow incoming UDP on port 5353?

    Yes, at least to my knowing. Is there any way I can post my firewall settings here? I don’t know in which file to look.

    Edit: corrections

    #10338

    rpedde
    Participant

    @foging wrote:

    Did the process stop, or did it just disappear from iTunes?

    Process still running, disappeared from iTunes.

    If it just disappeared, did you remember to additionally allow incoming UDP on port 5353?

    Yes, at least to my knowing. Is there any way I can post my firewall settings here? I don’t know in which file to look.

    Edit: corrections

    Something like iptables -L should do it, although it might be ugly. Also, you might want to privatize any ip addresses you don’t want to make public.

    Or email it to me directly at [email protected]. That would work, too.

    — Ron

    #10339

    foging
    Participant

    [email protected]:~$ sudo iptables -L
    Password:
    Chain INPUT (policy DROP)
    target prot opt source destination
    ACCEPT tcp — 10.0.1.1 anywhere tcp flags:!FIN,SYN,RST,ACK/SYN
    ACCEPT udp — 10.0.1.1 anywhere
    ACCEPT 0 — anywhere anywhere
    ACCEPT icmp — anywhere anywhere limit: avg 10/sec burst 5
    DROP 0 — anywhere 255.255.255.255
    DROP 0 — anywhere 255.255.255.255
    DROP 0 — 255.255.255.255 anywhere
    DROP 0 — anywhere 0.0.0.0
    DROP 0 — anywhere anywhere state INVALID
    LSI 0 -f anywhere anywhere limit: avg 10/min burst 5
    INBOUND 0 — anywhere anywhere
    LOG_FILTER 0 — anywhere anywhere
    LOG 0 — anywhere anywhere LOG level info prefix `Unknown Input’

    Chain FORWARD (policy DROP)
    target prot opt source destination
    ACCEPT icmp — anywhere anywhere limit: avg 10/sec burst 5
    LOG_FILTER 0 — anywhere anywhere
    LOG 0 — anywhere anywhere LOG level info prefix `Unknown Forward’

    Chain OUTPUT (policy DROP)
    target prot opt source destination
    ACCEPT tcp — 10.0.1.6 10.0.1.1 tcp dpt:domain
    ACCEPT udp — 10.0.1.6 10.0.1.1 udp dpt:domain
    ACCEPT 0 — anywhere anywhere
    DROP 0 — 255.255.255.255 anywhere
    DROP 0 — anywhere 0.0.0.0
    DROP 0 — anywhere anywhere state INVALID
    OUTBOUND 0 — anywhere anywhere
    LOG_FILTER 0 — anywhere anywhere
    LOG 0 — anywhere anywhere LOG level info prefix `Unknown Output’

    Chain INBOUND (1 references)
    target prot opt source destination
    ACCEPT tcp — anywhere anywhere state RELATED,ESTABLISHED
    ACCEPT udp — anywhere anywhere state RELATED,ESTABLISHED
    ACCEPT 0 — 224.0.0.251 anywhere
    ACCEPT 0 — 10.0.1.0/24 anywhere
    ACCEPT tcp — 224.0.0.251 anywhere tcp dpt:mdns
    ACCEPT udp — 224.0.0.251 anywhere udp dpt:mdns
    ACCEPT tcp — 10.0.1.0/24 anywhere tcp dpt:sunrpc
    ACCEPT udp — 10.0.1.0/24 anywhere udp dpt:sunrpc
    ACCEPT tcp — 10.0.1.0/24 anywhere tcp dpt:nfs
    ACCEPT udp — 10.0.1.0/24 anywhere udp dpt:nfs
    ACCEPT tcp — anywhere anywhere tcp dpt:ssh
    ACCEPT udp — anywhere anywhere udp dpt:ssh
    ACCEPT tcp — anywhere anywhere tcp dpt:daap
    ACCEPT udp — anywhere anywhere udp dpt:daap
    ACCEPT tcp — anywhere anywhere tcp dpt:1412
    ACCEPT udp — anywhere anywhere udp dpt:1412
    ACCEPT tcp — anywhere anywhere tcp dpt:6881
    ACCEPT udp — anywhere anywhere udp dpt:6881
    ACCEPT tcp — anywhere anywhere tcp dpt:mdns
    ACCEPT udp — anywhere anywhere udp dpt:mdns
    LSI 0 — anywhere anywhere

    Chain LOG_FILTER (5 references)
    target prot opt source destination

    Chain LSI (2 references)
    target prot opt source destination
    LOG_FILTER 0 — anywhere anywhere
    LOG tcp — anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN limit: avg 1/sec burst 5 LOG level info prefix `Inbound ‘
    DROP tcp — anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN
    LOG tcp — anywhere anywhere tcp flags:FIN,SYN,RST,ACK/RST limit: avg 1/sec burst 5 LOG level info prefix `Inbound ‘
    DROP tcp — anywhere anywhere tcp flags:FIN,SYN,RST,ACK/RST
    LOG icmp — anywhere anywhere icmp echo-request limit: avg 1/sec burst 5 LOG level info prefix `Inbound ‘
    DROP icmp — anywhere anywhere icmp echo-request
    LOG 0 — anywhere anywhere limit: avg 5/sec burst 5 LOG level info prefix `Inbound ‘
    DROP 0 — anywhere anywhere

    Chain LSO (0 references)
    target prot opt source destination
    LOG_FILTER 0 — anywhere anywhere
    LOG 0 — anywhere anywhere limit: avg 5/sec burst 5 LOG level info prefix `Outbound ‘
    REJECT 0 — anywhere anywhere reject-with icmp-port-unreachable

    Chain OUTBOUND (1 references)
    target prot opt source destination
    ACCEPT icmp — anywhere anywhere
    ACCEPT tcp — anywhere anywhere state RELATED,ESTABLISHED
    ACCEPT udp — anywhere anywhere state RELATED,ESTABLISHED
    ACCEPT 0 — anywhere anywhere

    Is everything OK with the configuration?

    #10340

    rpedde
    Participant

    @foging wrote:

    Is everything OK with the configuration?

    Ya, that looks right. Might be instructive to look at your logs though, and see if anything is being blocked. You are logging drops, so check your syslog and see if you are dropping anything that looks mdns-ish. To or from 224.0.0.251 on port 5353. That’s what is broken.

    — Ron

Viewing 11 posts - 16 through 26 (of 26 total)

The forum ‘Setup Issues’ is closed to new topics and replies.