You are here: Home » Topic » KERN_PROTECTION_FAILURE

KERN_PROTECTION_FAILURE

  • This topic has 2 replies, 2 voices, and was last updated 14 years ago by seth.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #250
    Anonymous
    Guest

    Hi,

    I’ve been running svn-909 since it was put out. But in the hopes of fixing some bugs (ourtunes gets stuck on mt-daap servers and will connect to no other computers after it), I upgraded to 1018.

    This has been been a huge problem for me and all attempts to role back have resulted in failure.
    First off, this is on a macbook pro (Darwin 8.6.1-intel)

    here’s what i did:

    ran ‘sudo make uninstall’ in the mt-daaapd-svn-909 source directory to remove the old install.
    built and installed svn-1018 (./configure –enable-sqlite3 –with-id3tag=/sw, make, sudo make install)

    then edited /etc/mt-daapd/mt-daapd.conf

    the old database directory still existed (no need to recreate it) the daemon was set to run as nobody and other than that nothing but the server name, music location and password were changed (no special characters in any field).

    when running the server it identifies the music (it can read it) and will even run for a couple of seconds (long enough to log in to the http config page) but, if a tab is selected from its website or someone attempts to access the share the thing will instantly crash.

    I deleted the database to make sure it wasn’t an issue with that, and it rescanned all the music files as expected. below is the crashlog and my attempt to run it manually not as a daemon with logging set to 9.

    Begin crashlog


    **********

    Host Name: Fianna
    Date/Time: 2006-05-07 22:51:06.672 -0400
    OS Version: 10.4.6 (Build 8I1119)
    Report Version: 4

    Command: mt-daapd
    Path: ./mt-daapd
    Parent: bash [501]

    Version: ??? (???)

    PID: 6530
    Thread: 8

    Exception: EXC_BAD_ACCESS (0x0001)
    Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

    Thread 0:
    0 libSystem.B.dylib 0x90037e07 mach_wait_until + 7
    1 libSystem.B.dylib 0x90037b59 sleep + 121
    2 mt-daapd 0x000026cb main + 2784 (main.c:467)
    3 mt-daapd 0x000018ea _start + 228 (crt.c:272)
    4 mt-daapd 0x00001805 start + 41

    Thread 1:
    0 libSystem.B.dylib 0x900bc43c sigwait + 12
    1 libSystem.B.dylib 0x90024a27 _pthread_body + 84

    Thread 2:
    0 libSystem.B.dylib 0x9004fe9c accept + 12
    1 mt-daapd 0x000038fa ws_mainthread + 114 (webserver.c:421)
    2 libSystem.B.dylib 0x90024a27 _pthread_body + 84

    Thread 3:
    0 libSystem.B.dylib 0x9001aa1c select + 12
    1 mt-daapd 0x00007eed readtimed + 51 (restart.c:244)
    2 mt-daapd 0x00007f5c readlinetimed + 71 (restart.c:222)
    3 mt-daapd 0x000055bc ws_dispatcher + 1181 (webserver.c:785)
    4 libSystem.B.dylib 0x90024a27 _pthread_body + 84

    Thread 4:
    0 libSystem.B.dylib 0x9001aa1c select + 12
    1 mt-daapd 0x00007eed readtimed + 51 (restart.c:244)
    2 mt-daapd 0x00007f5c readlinetimed + 71 (restart.c:222)
    3 mt-daapd 0x000055bc ws_dispatcher + 1181 (webserver.c:785)
    4 libSystem.B.dylib 0x90024a27 _pthread_body + 84

    Thread 5:
    0 libSystem.B.dylib 0x9001aa1c select + 12
    1 mt-daapd 0x00007eed readtimed + 51 (restart.c:244)
    2 mt-daapd 0x00007f5c readlinetimed + 71 (restart.c:222)
    3 mt-daapd 0x000055bc ws_dispatcher + 1181 (webserver.c:785)
    4 libSystem.B.dylib 0x90024a27 _pthread_body + 84

    Thread 6:
    0 libSystem.B.dylib 0x9001aa1c select + 12
    1 mt-daapd 0x00007eed readtimed + 51 (restart.c:244)
    2 mt-daapd 0x00007f5c readlinetimed + 71 (restart.c:222)
    3 mt-daapd 0x000055bc ws_dispatcher + 1181 (webserver.c:785)
    4 libSystem.B.dylib 0x90024a27 _pthread_body + 84

    Thread 7:
    0 libSystem.B.dylib 0x9001aa1c select + 12
    1 mt-daapd 0x00007eed readtimed + 51 (restart.c:244)
    2 mt-daapd 0x00007f5c readlinetimed + 71 (restart.c:222)
    3 mt-daapd 0x000055bc ws_dispatcher + 1181 (webserver.c:785)
    4 libSystem.B.dylib 0x90024a27 _pthread_body + 84

    Thread 8 Crashed:
    0 mt-daapd 0x0001f74a db_sql_fetch_row + 265 (db-sql.c:186)
    1 mt-daapd 0x0001f801 db_sql_fetch_int + 70 (db-sql.c:211)
    2 mt-daapd 0x0001fa1f db_sql_get_count + 56 (db-sql.c:1847)
    3 mt-daapd 0x0000b6ec db_get_count + 47 (db-generic.c:841)
    4 mt-daapd 0x0000b71c db_get_song_count + 32 (db-generic.c:853)
    5 mt-daapd 0x0000e342 dispatch_dbinfo + 405 (dispatch.c:1496)
    6 mt-daapd 0x0000f2be daap_handler + 3059 (dispatch.c:284)
    7 mt-daapd 0x00005556 ws_dispatcher + 1079 (webserver.c:967)
    8 libSystem.B.dylib 0x90024a27 _pthread_body + 84

    Thread 8 crashed with i386 Thread State:
    eax: 0x00000001 ebx: 0x0001f64f ecx:0x02800038 edx: 0x00000000
    edi: 0x00000001 esi: 0x00505830 ebp:0xb0407248 esp: 0xb0407210
    ss: 0x0000002f efl: 0x00010202 eip:0x0001f74a cs: 0x00000027
    ds: 0x0000002f es: 0x0000002f fs:0x00000000 gs: 0x00000037

    Binary Images Description:
    0x1000 – 0x2dfff mt-daapd /usr/local/sbin/mt-daapd
    0x80000 – 0x8afff libid3tag.0.dylib /sw/lib/libid3tag.0.dylib
    0xab000 – 0xecfff libsqlite3.0.dylib /sw/lib/libsqlite3.0.dylib
    0x8fe00000 – 0x8fe4bfff dyld 44.17 /usr/lib/dyld
    0x90000000 – 0x9016efff libSystem.B.dylib /usr/lib/libSystem.B.dylib
    0x901be000 – 0x901c0fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
    0x90801000 – 0x908c9fff com.apple.CoreFoundation 6.4.5 (368.26) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x90909000 – 0x909fcfff libicucore.A.dylib /usr/lib/libicucore.A.dylib
    0x90a4c000 – 0x90acbfff libobjc.A.dylib /usr/lib/libobjc.A.dylib
    0x90af4000 – 0x90b57fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
    0x90bc6000 – 0x90bcdfff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
    0x90c57000 – 0x90c69fff libauto.dylib /usr/lib/libauto.dylib
    0x9113f000 – 0x9114dfff libz.1.dylib /usr/lib/libz.1.dylib


    end crash log

    start console.log


    May 7 22:41:22 Fianna mt-daapd[6452]: Starting rendezvous daemonn
    May 7 22:41:22 Fianna mt-daapd[6454]: Starting signal handlern
    May 7 22:41:23 Fianna mt-daapd[6454]: Can’t get db version. New database?n
    May 7 22:41:23 Fianna mt-daapd[6454]: Initializing databasen
    May 7 22:41:23 Fianna mt-daapd[6454]: Full reload…n
    May 7 22:41:25 Fianna mt-daapd[6454]: Starting mp3 scann
    May 7 22:44:30 Fianna mt-daapd[6454]: Starting web server from /usr/local/share/mt-daapd/admin-root on port 3689n
    May 7 22:44:30 Fianna mt-daapd[6454]: Registering rendezvous namesn
    May 7 22:44:31 Fianna mt-daapd[6454]: Scanned 5015 songs in 189 secondsn
    May 7 22:44:32 Fianna mt-daapd[6453]: Rendezvous socket closed (daap server crashed?) Aborting.n
    May 7 22:44:32 Fianna mt-daapd[6453]: Fatal error… Abortingn
    May 7 22:44:32 Fianna crashdump[6487]: mt-daapd crashed
    May 7 22:44:32 Fianna crashdump[6487]: crash report written to: /Library/Logs/CrashReporter/mt-daapd.crash.log
    2006-05-07 22:48:25.187 SyncServer[6524] A Sync Server is already running on this computer, exiting process.
    May 7 22:50:10 Fianna crashdump[6529]: mt-daapd crashed
    May 7 22:50:10 Fianna crashdump[6529]: crash report written to: /Library/Logs/CrashReporter/mt-daapd.crash.log
    May 7 22:51:06 Fianna crashdump[6532]: mt-daapd crashed
    May 7 22:51:06 Fianna crashdump[6532]: crash report written to: /Library/Logs/CrashReporter/mt-daapd.crash.log


    end console.log

    start sudo ./mt-daapd -d9 -f


    ip-177-236:/usr/local/sbin seth$ sudo ./mt-daapd -d9 -f
    Password:
    Expanding precomments to 256
    Expanding precomments to 512
    Found 1 tokens in /Users/seth/Music/
    Token 1: /Users/seth/Music/
    Expanding precomments to 1024
    Expanding precomments to 2048
    Expanding precomments to 4096
    Checking existence of /usr/local/share/mt-daapd/admin-root
    Checking existence of /usr/local/share/mt-daapd/admin-root
    Checking existence of /usr/local/var/cache/mt-daapd
    Checking existence of /usr/local/var/cache/mt-daapd
    Checking existence of /usr/local/share/mt-daapd/plugins
    Checking existence of /usr/local/share/mt-daapd/plugins
    Loading new config file.
    Starting with debuglevel 9
    Starting rendezvous daemon
    Starting rendezvous services
    Starting signal handler
    Starting polling thread
    Starting runloop
    Opening database
    Signal handler started
    Waiting for data
    Executing: select value from config where term=’version’
    Results: 0
    Initializing database
    Executing: select count(*) FROM songs
    Executing: select value from config where term=’rescan’
    Executing: vacuum
    Rows: 1
    Starting web server from /usr/local/share/mt-daapd/admin-root on port 3689
    Preparing to listen on port 3689
    Starting server thread
    Registering rendezvous names
    Received a message from daap server
    Registering _daap._tcp.Fianna (3689)
    Received a message from daap server
    Registering _http._tcp.Fianna (3689)
    Current lock level: 0
    Executing: select count(*) FROM songs
    Scanned 5015 songs in 2 seconds
    Registered successfully
    Thread 0: Entering ws_dispatcher (Connection from 132.162.216.164)
    Thread 1: Entering ws_dispatcher (Connection from 132.162.209.122)
    Thread 0: got request
    Request: GET /server-info HTTP/1.1
    Thread 1: got request
    Thread 2: Entering ws_dispatcher (Connection from 132.162.208.57)
    Request: GET /server-info HTTP/1.1
    Thread 0: Read: Client-DAAP-Validation: 8E8B28BB697B7416E16EDE8658FAD630
    Thread 1: Read: Client-DAAP-Validation: 8E8B28BB697B7416E16EDE8658FAD630
    Thread 0: Adding header *Client-DAAP-Validation=8E8B28BB697B7416E16EDE8658FAD630*
    Thread 2: got request
    Thread 1: Adding header *Client-DAAP-Validation=8E8B28BB697B7416E16EDE8658FAD630*
    Thread 3: Entering ws_dispatcher (Connection from 132.162.213.37)
    Request: GET /server-info HTTP/1.1
    Added *Client-DAAP-Validation=8E8B28BB697B7416E16EDE8658FAD630*
    Added *Client-DAAP-Validation=8E8B28BB697B7416E16EDE8658FAD630*
    Thread 2: Read: Client-DAAP-Validation: 8E8B28BB697B7416E16EDE8658FAD630
    Thread 3: got request
    Thread 1: Read: Client-DAAP-Access-Index: 1
    Thread 2: Adding header *Client-DAAP-Validation=8E8B28BB697B7416E16EDE8658FAD630*
    Thread 0: Read: Client-DAAP-Access-Index: 1
    Request: GET /server-info HTTP/1.1
    Thread 1: Adding header *Client-DAAP-Access-Index=1*
    Added *Client-DAAP-Validation=8E8B28BB697B7416E16EDE8658FAD630*
    Thread 0: Adding header *Client-DAAP-Access-Index=1*
    Added *Client-DAAP-Access-Index=1*
    Thread 3: Read: Host: 132.162.218.60:3689
    Thread 2: Read: Client-DAAP-Access-Index: 1
    Added *Client-DAAP-Access-Index=1*
    Thread 3: Adding header *Host=132.162.218.60:3689*
    Thread 1: Read: User-Agent: Java/1.4.2_03
    Thread 2: Adding header *Client-DAAP-Access-Index=1*
    Added *Host=132.162.218.60:3689*
    Thread 0: Read: User-Agent: Java/1.4.2_09
    Thread 1: Adding header *User-Agent=Java/1.4.2_03*
    Added *Client-DAAP-Access-Index=1*
    Thread 3: Read: User-Agent: myTunes Redux 1.0
    Thread 0: Adding header *User-Agent=Java/1.4.2_09*
    Added *User-Agent=Java/1.4.2_03*
    Thread 3: Adding header *User-Agent=myTunes Redux 1.0*
    Thread 2: Read: User-Agent: Java/1.4.2_09
    Added *User-Agent=Java/1.4.2_09*
    Thread 1: Read: Host: 132.162.218.60:3689
    Added *User-Agent=myTunes Redux 1.0*
    Thread 2: Adding header *User-Agent=Java/1.4.2_09*
    Thread 1: Adding header *Host=132.162.218.60:3689*
    Thread 0: Read: Host: 132.162.218.60:3689
    Added *User-Agent=Java/1.4.2_09*
    Thread 3: Read: Client-DAAP-Access-Index: 2
    Added *Host=132.162.218.60:3689*
    Thread 0: Adding header *Host=132.162.218.60:3689*
    Thread 2: Read: Host: 132.162.218.60:3689
    Thread 3: Adding header *Client-DAAP-Access-Index=2*
    Thread 1: Read: Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Added *Host=132.162.218.60:3689*
    Thread 2: Adding header *Host=132.162.218.60:3689*
    Added *Client-DAAP-Access-Index=2*
    Thread 1: Adding header *Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2*
    Added *Host=132.162.218.60:3689*
    Thread 0: Read: Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Added *Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2*
    Thread 3: Read: Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Thread 0: Adding header *Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2*
    Thread 1: Read: Connection: keep-alive
    Thread 3: Adding header *Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2*
    Thread 2: Read: Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Added *Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2*
    Thread 1: Adding header *Connection=keep-alive*
    Added *Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2*
    Thread 2: Adding header *Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2*
    Added *Connection=keep-alive*
    Thread 0: Read: Connection: keep-alive
    Thread 3: Read:
    Added *Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2*
    Thread 1: Read:
    Thread 0: Adding header *Connection=keep-alive*
    Thread 3: Headers parsed!
    Thread 1: Headers parsed!
    Thread 2: Read: Connection: keep-alive
    Added *Connection=keep-alive*
    Checking to see if connection matches close
    Checking to see if connection matches close
    Thread 2: Adding header *Connection=keep-alive*
    Thread 0: Read:
    Nope!
    And it does NOT
    Added *Connection=keep-alive*
    Thread 0: Headers parsed!
    Thread 3: Connection type HTTP/1.1
    : Connection: persist
    Thread 1: Connection type HTTP/1.1
    : Connection: persist
    Thread 2: Read:
    Checking to see if connection matches close
    Thread 3: Original URI: /server-info
    Thread 1: Original URI: /server-info
    Thread 2: Headers parsed!
    And it does NOT
    Thread 3: Translated URI: /server-info
    Thread 1: Translated URI: /server-info
    Checking to see if connection matches close
    Thread 0: Connection type HTTP/1.1
    : Connection: persist
    Thread 3: Preparing to find handler
    And it does NOT
    Thread 0: Original URI: /server-info
    Thread 3: URI Match!
    Thread 2: Connection type HTTP/1.1
    : Connection: persist
    Thread 0: Translated URI: /server-info
    Thread 3: Time is 1147057405 seconds after epoch
    Thread 2: Original URI: /server-info
    Thread 1: Preparing to find handler
    Thread 2: Translated URI: /server-info
    Thread 1: URI Match!
    Thread 1: Time is 1147057405 seconds after epoch
    Thread 0: Preparing to find handler
    Thread 0: URI Match!
    Thread 0: Time is 1147057405 seconds after epoch
    Thread 3: Setting time header
    Added *Date=Mon, 8 May 2006 03:03:25 GMT*
    Thread 3: Using non-default handler
    Added *Accept-Ranges=bytes*
    Added *DAAP-Server=mt-daapd/svn-1018*
    Added *Content-Type=application/x-dmap-tagged*
    Added *Cache-Control=no-cache*
    Added *Expires=-1*
    Thread 1: Setting time header
    Added *Content-Length=136*
    Thread 2: Preparing to find handler
    Thread 0: Setting time header
    Added *Date=Mon, 8 May 2006 03:03:25 GMT*
    Emitting reponse header Content-Length: 136
    Thread 2: URI Match!
    Added *Date=Mon, 8 May 2006 03:03:25 GMT*
    Thread 1: Using non-default handler
    Emitting reponse header Expires: -1
    Thread 2: Time is 1147057405 seconds after epoch
    Thread 0: Using non-default handler
    Added *Accept-Ranges=bytes*
    Emitting reponse header Cache-Control: no-cache
    Thread 2: Setting time header
    Added *Accept-Ranges=bytes*
    Added *DAAP-Server=mt-daapd/svn-1018*
    Emitting reponse header Content-Type: application/x-dmap-tagged
    Added *Date=Mon, 8 May 2006 03:03:25 GMT*
    Added *DAAP-Server=mt-daapd/svn-1018*
    Added *Content-Type=application/x-dmap-tagged*
    Emitting reponse header DAAP-Server: mt-daapd/svn-1018
    Thread 2: Using non-default handler
    Added *Content-Type=application/x-dmap-tagged*
    Added *Cache-Control=no-cache*
    Emitting reponse header Accept-Ranges: bytes
    Added *Accept-Ranges=bytes*
    Added *Cache-Control=no-cache*
    Added *Expires=-1*
    Emitting reponse header Date: Mon, 8 May 2006 03:03:25 GMT
    Added *DAAP-Server=mt-daapd/svn-1018*
    Added *Expires=-1*
    Added *Content-Length=136*
    Entering config_set_status
    Added *Content-Type=application/x-dmap-tagged*
    Added *Content-Length=136*
    Emitting reponse header Content-Length: 136
    Exiting config_set_status
    Added *Cache-Control=no-cache*
    Emitting reponse header Content-Length: 136
    Emitting reponse header Expires: -1
    Thread 3: Terminating
    Added *Expires=-1*
    Emitting reponse header Expires: -1
    Emitting reponse header Cache-Control: no-cache
    Thread 3: Freeing request headers
    Added *Content-Length=136*
    Emitting reponse header Cache-Control: no-cache
    Emitting reponse header Content-Type: application/x-dmap-tagged
    Thread 3: Freeing response headers
    Emitting reponse header Content-Length: 136
    Emitting reponse header Content-Type: application/x-dmap-tagged
    Emitting reponse header DAAP-Server: mt-daapd/svn-1018
    Thread 3: Freeing request vars
    Emitting reponse header Expires: -1
    Emitting reponse header DAAP-Server: mt-daapd/svn-1018
    Emitting reponse header Accept-Ranges: bytes
    Emitting reponse header Cache-Control: no-cache
    Emitting reponse header Accept-Ranges: bytes
    Emitting reponse header Date: Mon, 8 May 2006 03:03:25 GMT
    Emitting reponse header Content-Type: application/x-dmap-tagged
    Emitting reponse header Date: Mon, 8 May 2006 03:03:25 GMT
    Entering config_set_status
    Emitting reponse header DAAP-Server: mt-daapd/svn-1018
    Entering config_set_status
    Exiting config_set_status
    Emitting reponse header Accept-Ranges: bytes
    Exiting config_set_status
    Thread 1: Terminating
    Emitting reponse header Date: Mon, 8 May 2006 03:03:25 GMT
    Thread 0: Terminating
    Thread 1: Freeing request headers
    Entering config_set_status
    Thread 0: Freeing request headers
    Thread 1: Freeing response headers
    Exiting config_set_status
    Thread 0: Freeing response headers
    Thread 1: Freeing request vars
    Thread 2: Terminating
    Thread 0: Freeing request vars
    Thread 2: Freeing request headers
    Thread 2: Freeing response headers
    Thread 2: Freeing request vars
    Thread 4: Entering ws_dispatcher (Connection from 132.162.213.37)
    Thread 4: got request
    Request: GET /login HTTP/1.1
    Thread 4: Read: Host: 132.162.218.60:3689
    Thread 4: Adding header *Host=132.162.218.60:3689*
    Added *Host=132.162.218.60:3689*
    Thread 4: Read: User-Agent: myTunes Redux 1.0
    Thread 4: Adding header *User-Agent=myTunes Redux 1.0*
    Added *User-Agent=myTunes Redux 1.0*
    Thread 4: Read: Client-DAAP-Access-Index: 2
    Thread 4: Adding header *Client-DAAP-Access-Index=2*
    Added *Client-DAAP-Access-Index=2*
    Thread 4: Read: Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Thread 4: Adding header *Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2*
    Added *Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2*
    Thread 4: Read:
    Thread 4: Headers parsed!
    Checking to see if connection matches close
    Nope!
    Thread 4: Connection type HTTP/1.1
    : Connection: persist
    Thread 4: Original URI: /login
    Thread 4: Translated URI: /login
    Thread 4: Preparing to find handler
    Thread 4: URI Match!
    Thread 4: Time is 1147057405 seconds after epoch
    Thread 4: Setting time header
    Added *Date=Mon, 8 May 2006 03:03:25 GMT*
    Thread 4: Using non-default handler
    Added *Accept-Ranges=bytes*
    Added *DAAP-Server=mt-daapd/svn-1018*
    Added *Content-Type=application/x-dmap-tagged*
    Added *Cache-Control=no-cache*
    Added *Expires=-1*
    Added *Content-Length=32*
    Emitting reponse header Content-Length: 32
    Emitting reponse header Expires: -1
    Emitting reponse header Cache-Control: no-cache
    Emitting reponse header Content-Type: application/x-dmap-tagged
    Emitting reponse header DAAP-Server: mt-daapd/svn-1018
    Emitting reponse header Accept-Ranges: bytes
    Emitting reponse header Date: Mon, 8 May 2006 03:03:25 GMT
    Entering config_set_status
    Exiting config_set_status
    Thread 4: Terminating
    Thread 4: Freeing request headers
    Thread 4: Freeing response headers
    Thread 4: Freeing request vars
    Thread 5: Entering ws_dispatcher (Connection from 132.162.213.37)
    Thread 5: got request
    Request: GET /databases?session-id=1 HTTP/1.1
    Thread 5: Read: Host: 132.162.218.60:3689
    Thread 5: Adding header *Host=132.162.218.60:3689*
    Added *Host=132.162.218.60:3689*
    Thread 5: Read: User-Agent: myTunes Redux 1.0
    Thread 5: Adding header *User-Agent=myTunes Redux 1.0*
    Added *User-Agent=myTunes Redux 1.0*
    Thread 5: Read: Client-DAAP-Access-Index: 2
    Thread 5: Adding header *Client-DAAP-Access-Index=2*
    Added *Client-DAAP-Access-Index=2*
    Thread 5: Read: Client-DAAP-Validation: 1B4E4DBEFDF8B7721442CE9D0EB08679
    Thread 5: Adding header *Client-DAAP-Validation=1B4E4DBEFDF8B7721442CE9D0EB08679*
    Added *Client-DAAP-Validation=1B4E4DBEFDF8B7721442CE9D0EB08679*
    Thread 5: Read: Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Thread 5: Adding header *Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2*
    Added *Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2*
    Thread 5: Read:
    Thread 5: Headers parsed!
    Checking to see if connection matches close
    Nope!
    Thread 5: Connection type HTTP/1.1
    : Connection: persist
    Thread 5: parsing GET args
    Thread 5: Entering ws_getgetvars (session-id=1)
    Thread 5: Adding arg session-id = 1
    Added *session-id=1*
    Thread 5: Done parsing GET/POST args!
    Thread 5: Original URI: /databases
    Thread 5: Translated URI: /databases
    Thread 5: Preparing to find handler
    Thread 5: URI Match!
    Thread 5: Time is 1147057405 seconds after epoch
    Thread 5: Setting time header
    Added *Date=Mon, 8 May 2006 03:03:25 GMT*
    Thread 5: Using non-default handler
    Added *Accept-Ranges=bytes*
    Added *DAAP-Server=mt-daapd/svn-1018*
    Added *Content-Type=application/x-dmap-tagged*
    Added *Cache-Control=no-cache*
    Added *Expires=-1*
    Executing: select count(*) FROM songs
    Bus error
    ip-177-236:/usr/local/sbin seth$ Registered successfully
    Received a message from daap server
    Rendezvous socket closed (daap server crashed?) Aborting.
    Aborting


    end output

    any idea what’s going on?
    I have no idea where to do from here….

    Thanks!
    seth

    #4312
    rpedde
    Participant

    Yeah, it’s crashing on some error handling code (figures).

    It’s trying to find the number of items in the database with a “select count (*) from songs” and it’s getting no results.

    Couple things to do — make sure the db_dir is writable by the daemon user. Also, you might try using –enable-sqlite rather than sqlite3. I’m pretty sure that will work, that’s much more exercised code.

    You might also just check that db and see what’s wrong with it. Is the songs table not there?


    [email protected]:~$ sqlite3 /path/to/db
    sqlite> select count(*) from songs;

    See what that gets you.

    My guess is switching to sqlite2.x will make it work. If you want to work through it, try these things. id’ be interested in hearing your results, as I’d like to find the root cause as well.

    — Ron

    oh.. and the crash error should be fixed in next nightly. 🙂

    p.s. If you convert your config file to a new-style config (using the -v option), then you can add a section like this:


    [daap]
    empty_strings = 1

    that I think will fix problems with older version of ourtunes/mytunes/applerecords/whatever.

    — Ron

    #4313
    seth
    Guest

    I can write to the database as nobody, and it is being properly read. the command you said to run in the database properly reports the number of songs (5015) that have been scanned.

    i recompiled using sqlite from fink instead of sqlite3 and it works now, although the web interface fails to report the uptime, number of songs, or the number of songs served.

    thanks for the tip about empty strings…

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Nightlies Feedback’ is closed to new topics and replies.