Cannot connect to set up

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #592
    KeithO
    Guest

    I’m trying to set up a Firefly media server. my system is already a working LAMP server with Ubuntu Breezy up to date. I went through the steps i found here however when I go to http://localhost:3689, I get an “unable to make connection” error. I looked in my active services and do not see the daemon listed on there.

    Any ideas?

    #6435
    rpedde
    Participant

    @KeithO wrote:

    I’m trying to set up a Firefly media server. my system is already a working LAMP server with Ubuntu Breezy up to date. I went through the steps i found here however when I go to http://localhost:3689, I get an “unable to make connection” error. I looked in my active services and do not see the daemon listed on there.

    Any ideas?

    You can run


    /usr/sbin/mt-daapd -d9 -f -y -c /etc/mt-daapd.conf

    and it will churn out a bunch of stuff, including why it didn’t start. That will probably give you a place to start.

    — Ron

    #6436
    KeithO
    Guest

    Read web_root: /usr/share/mt-daapd/admin-root
    Read port: 3689
    Read admin_pw: mt-daapd
    Read db_dir: /var/cache/mt-daapd
    Read mp3_dir: /storage/Music
    Read servername: My Music
    Read runas: nobody
    Read playlist: /etc/mt-daapd.playlist
    Read extensions: .mp3,.m4a,.m4p
    Read rescan_interval: 3600
    Checking existence of /storage/Music
    Checking existence of /var/cache/mt-daapd
    Starting rendezvous daemon
    Could not open songs database (/var/cache/mt-daapd/songs.gdb): Permission deniedAborting

    i tried chmod’ing the file and the folder and get a ‘no such file or folder’ error.

    #6437
    rpedde
    Participant

    @KeithO wrote:

    Could not open songs database (/var/cache/mt-daapd/songs.gdb):

    rm -rf /var/cache/mt-daapd
    mkdir -p /var/cache/mt-daapd
    chmod 777 /var/cache/mt-daapd

    that should do it. You can use less permissions permissions, but you’ll have to see what user the daemon is running as and set the permissions accordingly.

    — Ron

    #6438
    KeithO
    Guest

    same thing happens. restarted the daemon too.

    Read web_root: /usr/share/mt-daapd/admin-root
    Read port: 3689
    Read admin_pw: mt-daapd
    Read db_dir: /var/cache/mt-daapd
    Read mp3_dir: /storage/Music
    Read servername: My Music
    Read runas: nobody
    Read playlist: /etc/mt-daapd.playlist
    Read extensions: .mp3,.m4a,.m4p
    Read rescan_interval: 3600
    Checking existence of /storage/Music
    Checking existence of /var/cache/mt-daapd
    Starting rendezvous daemon
    Could not open songs database (/var/cache/mt-daapd/songs.gdb): Permission denied
    Aborting

    [/code]

    #6439
    rpedde
    Participant

    @KeithO wrote:

    same thing happens. restarted the daemon too.

    what if you:


    strace /usr/sbin/mt-daapd -d9 -f -y -c /etc/mt-daapd.conf

    — Ron

    #6440
    KeithO
    Guest

    wow. never seen this command before. here’s the output.

    execve("/usr/sbin/mt-daapd", ["/usr/sbin/mt-daapd", "-d9", "-f", "-y", "-c", "/etc/mt-daapd.conf"], [/* 30 vars */]) = 0
    uname({sys="Linux", node="keith-desktop", ...}) = 0
    brk(0) = 0x808d000
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f09000
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f08000
    access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f07000
    open("/etc/ld.so.cache", O_RDONLY) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=62030, ...}) = 0
    old_mmap(NULL, 62030, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ef7000
    close(3) = 0
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/lib/tls/i686/cmov/libpthread.so.0", O_RDONLY) = 3
    read(3, "177ELF111331`H00"..., 512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size=86580, ...}) = 0
    old_mmap(NULL, 71064, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ee5000
    old_mmap(0xb7ef4000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0xb7ef4000
    old_mmap(0xb7ef5000, 5528, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ef5000
    close(3) = 0
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libgdbm.so.3", O_RDONLY) = 3
    read(3, "177ELF1113312021"..., 512) = 512fstat64(3, {st_mode=S_IFREG|0644, st_size=19332, ...}) = 0
    old_mmap(NULL, 22412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7edf000
    old_mmap(0xb7ee4000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0xb7ee4000
    close(3) = 0
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libid3tag.so.0", O_RDONLY) = 3
    read(3, "177ELF111331340;"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0644, st_size=58684, ...}) = 0
    old_mmap(NULL, 61644, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ecf000
    old_mmap(0xb7edd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0xb7edd000
    close(3) = 0
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libz.so.1", O_RDONLY) = 3
    read(3, "177ELF111331`2600"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0644, st_size=77368, ...}) = 0
    old_mmap(NULL, 80324, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ebb000
    old_mmap(0xb7ece000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12000) = 0xb7ece000
    close(3) = 0
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
    read(3, "177ELF111331220O1"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=1232784, ...}) = 0
    old_mmap(NULL, 1238972, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d8c000
    old_mmap(0xb7eb1000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x125000) = 0xb7eb1000
    old_mmap(0xb7eb8000, 10172, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7eb8000
    close(3) = 0
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d8b000
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d8a000
    set_thread_area({entry_number:-1 -> 6, base_addr:0xb7d8a6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
    munmap(0xb7ef7000, 62030) = 0
    set_tid_address(0xb7d8a708) = 5637
    rt_sigaction(SIGRTMIN, {0xb7ee93b0, [], SA_SIGINFO}, NULL, 8) = 0
    rt_sigaction(SIGRT_1, {0xb7ee9430, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
    rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
    getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
    _sysctl({{CTL_KERN, KERN_VERSION, 0, 208e9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 2, 0xbfe1d2cc, 42, (nil), 0}) = 0
    getuid32() = 1000
    time(NULL) = 1158618499
    brk(0) = 0x808d000
    brk(0x80ae000) = 0x80ae000
    open("/etc/mt-daapd.conf", O_RDONLY) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=6556, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f06000
    read(3, "# $Id: mt-daapd.conf,v 1.15 2004"..., 4096) = 4096
    write(2, "Read web_root: /usr/share/mt-daa"..., 46Read web_root: /usr/share/mt-daapd/admin-root
    ) = 46
    write(2, "Read port: 3689n", 16Read port: 3689
    ) = 16
    write(2, "Read admin_pw: mt-daapdn", 24Read admin_pw: mt-daapd
    ) = 24
    write(2, "Read db_dir: /var/cache/mt-daapd"..., 33Read db_dir: /var/cache/mt-daapd
    ) = 33
    write(2, "Read mp3_dir: /storage/Musicn", 29Read mp3_dir: /storage/Music
    ) = 29
    write(2, "Read servername: My Musicn", 26Read servername: My Music
    ) = 26
    write(2, "Read runas: nobodyn", 19Read runas: nobody
    ) = 19
    write(2, "Read playlist: /etc/mt-daapd.pla"..., 38Read playlist: /etc/mt-daapd.playlist
    ) = 38
    write(2, "Read extensions: .mp3,.m4a,.m4pn", 32Read extensions: .mp3,.m4a,.m4p
    ) = 32
    read(3, "# Setting a rescan_interval lowe"..., 4096) = 2460
    write(2, "Read rescan_interval: 3600n", 27Read rescan_interval: 3600
    ) = 27
    read(3, "", 4096) = 0
    close(3) = 0
    munmap(0xb7f06000, 4096) = 0
    lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    lstat64("/usr/share", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
    lstat64("/usr/share/mt-daapd", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    lstat64("/usr/share/mt-daapd/admin-root", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    lstat64("/storage", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
    lstat64("/storage/Music", {st_mode=S_IFDIR|0777, st_size=36864, ...}) = 0
    lstat64("/var", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
    lstat64("/var/cache", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    lstat64("/var/cache/mt-daapd", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
    open("/usr/share/mt-daapd/admin-root/index.html", O_RDONLY) = 3
    close(3) = 0
    write(2, "Checking existence of /storage/M"..., 37Checking existence of /storage/Music
    ) = 37
    stat64("/storage/Music", {st_mode=S_IFDIR|0777, st_size=36864, ...}) = 0
    write(2, "Checking existence of /var/cache"..., 42Checking existence of /var/cache/mt-daapd
    ) = 42
    stat64("/var/cache/mt-daapd", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
    write(2, "Starting rendezvous daemonn", 27Starting rendezvous daemon
    ) = 27
    pipe([3, 4]) = 0
    pipe([5, 6]) = 0
    clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d8a708) = 5638
    close(3) = 0
    close(6) = 0
    futex(0x807a9c8, FUTEX_WAKE, 2147483647) = 0
    open("/var/cache/mt-daapd/songs.gdb", O_RDWR|O_CREAT, 0600) = -1 EACCES (Permission denied)
    write(2, "Could not open songs database (/"..., 81Could not open songs database (/var/cache/mt-daapd/songs.gdb): Permission denied
    ) = 81
    write(2, "Abortingn", 9Aborting
    ) = 9
    exit_group(1) = ?

    i appreciate you helping me with this.

    #6441
    rpedde
    Participant

    @KeithO wrote:

    open(“/var/cache/mt-daapd/songs.gdb”, O_RDWR|O_CREAT, 0600) = -1 EACCES (Permission denied)
    write(2, “Could not open songs database (/”…, 81Could not open songs database (/var/cache/mt-daapd/songs.gdb): Permission denied
    ) = 81
    [/code]

    i appreciate you helping me with this.

    Hrm. That really does show access denied when trying to create that. You ran this as root, right?

    Did that file already exist there? Can you touch a file in that directory? How strange.

    Might be worth trying to rebuild the package from scratch. Do you have development tools on that machine?

    #6442
    KeithO
    Guest

    ok, i went in through terminal to the file and changed the permissions on it. i had been previously trying to change the permissions on the folder. i was able to log in to the web interface now.

    thank you, i really do appreciate your help.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Setup Issues’ is closed to new topics and replies.