You are here: Home » Reply

Reply To: Entering ws_returnerror (401: Unauthorized) on F7 with 1659

#12477

rpedde
Participant

@hambleto wrote:

Just built and installed 1659 on Fedora 7. It starts up fine. However when I try and connect with iTunes 7.4.2 I get a Thread 0: Entering ws_returnerror (401: Unauthorized) error. I made sure all the plugins are current. Redid config file and ever deleted the entire database. Still get the same error.

When I run debug level 9 I get the following when I try and connect:


2007-09-11 08:03:59 (b7f4fb90): Got listen socket 11
2007-09-11 08:03:59 (b6b4db90): Thread 32:
2007-09-11 08:03:59 (b6b4db90): Request: GET daap://10.1.51.70:3689/server-info HTTP/1.1
2007-09-11 08:03:59 (b6b4db90): Thread 32: Read: Accept: */*
2007-09-11 08:03:59 (b6b4db90): Thread 32: Adding header *Accept=*/**
2007-09-11 08:03:59 (b6b4db90): Added *Accept=*/**
2007-09-11 08:03:59 (b6b4db90): Thread 32: Read: User-Agent: iTunes/7.4.1 (Macintosh; N; Intel)
2007-09-11 08:03:59 (b6b4db90): Thread 32: Adding header *User-Agent=iTunes/7.4.1 (Macintosh; N; Intel)*
2007-09-11 08:03:59 (b6b4db90): Added *User-Agent=iTunes/7.4.1 (Macintosh; N; Intel)*
2007-09-11 08:03:59 (b6b4db90): Thread 32: Read: Client-DAAP-Version: 3.5
2007-09-11 08:03:59 (b6b4db90): Thread 32: Adding header *Client-DAAP-Version=3.5*
2007-09-11 08:03:59 (b6b4db90): Added *Client-DAAP-Version=3.5*
2007-09-11 08:03:59 (b6b4db90): Thread 32: Read: Client-DAAP-Access-Index: 2
2007-09-11 08:03:59 (b6b4db90): Thread 32: Adding header *Client-DAAP-Access-Index=2*
2007-09-11 08:03:59 (b6b4db90): Added *Client-DAAP-Access-Index=2*
2007-09-11 08:03:59 (b6b4db90): Thread 32: Read: Accept-Encoding: gzip
2007-09-11 08:03:59 (b6b4db90): Thread 32: Adding header *Accept-Encoding=gzip*
2007-09-11 08:03:59 (b6b4db90): Added *Accept-Encoding=gzip*
2007-09-11 08:03:59 (b6b4db90): Thread 32: Read:
2007-09-11 08:03:59 (b6b4db90): Thread 32: Headers parsed!
2007-09-11 08:03:59 (b6b4db90): Checking to see if connection matches close
2007-09-11 08:03:59 (b6b4db90): Nope!
2007-09-11 08:03:59 (b6b4db90): Thread 32: Connection type HTTP/1.1
: Connection: persist
2007-09-11 08:03:59 (b6b4db90): Thread 32: Original URI: daap://10.1.51.70:3689/server-info
2007-09-11 08:03:59 (b6b4db90): Thread 32: Translated URI: /server-info
2007-09-11 08:03:59 (b6b4db90): Thread 32: Preparing to find handler
2007-09-11 08:03:59 (b6b4db90): Checking /server-info against handler for /
2007-09-11 08:03:59 (b6b4db90): Thread 32: URI Match!
2007-09-11 08:03:59 (b6b4db90): Thread 32: Time is 1189512239 seconds after epoch
2007-09-11 08:03:59 (b6b4db90): Thread 32: Setting time header
2007-09-11 08:03:59 (b6b4db90): Added *Date=Tue, 11 Sep 2007 12:03:59 GMT*
2007-09-11 08:03:59 (b6b4db90): Added *Connection=keep-alive*
2007-09-11 08:03:59 (b6b4db90): Added *Server=mt-daapd/svn-1659*
2007-09-11 08:03:59 (b6b4db90): Added *Content-Type=text/html*
2007-09-11 08:03:59 (b6b4db90): Added *Content-Language=en_us*
2007-09-11 08:03:59 (b6b4db90): Thread 32: Using non-default handler
2007-09-11 08:03:59 (b6b4db90): in main_auth
2007-09-11 08:03:59 (b6b4db90): Checking url /server-info
2007-09-11 08:03:59 (b6b4db90): Dispatching auth for /server-info to plugin
2007-09-11 08:03:59 (b6b4db90): Checking url /server-info
2007-09-11 08:03:59 (b6b4db90): Dispatching /server-info to daap/svn-1659
2007-09-11 08:03:59 (b6b4db90): in main_handler
2007-09-11 08:03:59 (b6b4db90): Checking url /server-info
2007-09-11 08:03:59 (b6b4db90): Dispatching /server-info to plugin
2007-09-11 08:03:59 (b6b4db90): Checking url /server-info
2007-09-11 08:03:59 (b6b4db90): Dispatching /server-info to daap/svn-1659
2007-09-11 08:03:59 (b6b4db90): Getting uri...
2007-09-11 08:03:59 (b6b4db90): Mallocing privinfo...
2007-09-11 08:03:59 (b6b4db90): Added *Accept-Ranges=bytes*
2007-09-11 08:03:59 (b6b4db90): Added *DAAP-Server=firefly/svn-1659*
2007-09-11 08:03:59 (b6b4db90): Updating Content-Type from text/html to application/x-dmap-tagged
2007-09-11 08:03:59 (b6b4db90): Added *Cache-Control=no-cache*
2007-09-11 08:03:59 (b6b4db90): Added *Expires=-1*
2007-09-11 08:03:59 (b6b4db90): Tokenizing url
2007-09-11 08:03:59 (b6b4db90): Found 17 elements
2007-09-11 08:03:59 (b6b4db90): Checking reponse 0
2007-09-11 08:03:59 (b6b4db90): Found it! Index: 0
2007-09-11 08:03:59 (b6b4db90): Added *Content-Length=135*
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): Emitting reponse header Content-Length: 135
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): Emitting reponse header Expires: -1
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): Emitting reponse header Cache-Control: no-cache
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): Emitting reponse header DAAP-Server: firefly/svn-1659
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): Emitting reponse header Accept-Ranges: bytes
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): Emitting reponse header Content-Language: en_us
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): Emitting reponse header Content-Type: application/x-dmap-tagged
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): Emitting reponse header Server: mt-daapd/svn-1659
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): Emitting reponse header Connection: keep-alive
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): Emitting reponse header Date: Tue, 11 Sep 2007 12:03:59 GMT
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): Thread 32: Terminating
2007-09-11 08:03:59 (b6b4db90): Thread 32: Freeing request headers
2007-09-11 08:03:59 (b6b4db90): Thread 32: Freeing response headers
2007-09-11 08:03:59 (b6b4db90): Thread 32: Freeing request vars
2007-09-11 08:03:59 (b6b4db90): Thread 32:
2007-09-11 08:03:59 (b6b4db90): Request: GET /content-codes HTTP/1.1
2007-09-11 08:03:59 (b6b4db90): Thread 32: Read: Host: 10.1.51.70
2007-09-11 08:03:59 (b6b4db90): Thread 32: Adding header *Host=10.1.51.70*
2007-09-11 08:03:59 (b6b4db90): Added *Host=10.1.51.70*
2007-09-11 08:03:59 (b6b4db90): Thread 32: Read: Client-DAAP-Version: 3.5
2007-09-11 08:03:59 (b6b4db90): Thread 32: Adding header *Client-DAAP-Version=3.5*
2007-09-11 08:03:59 (b6b4db90): Added *Client-DAAP-Version=3.5*
2007-09-11 08:03:59 (b6b4db90): Thread 32: Read: User-Agent: iTunes/7.4.1 (Macintosh; N; Intel)
2007-09-11 08:03:59 (b6b4db90): Thread 32: Adding header *User-Agent=iTunes/7.4.1 (Macintosh; N; Intel)*
2007-09-11 08:03:59 (b6b4db90): Added *User-Agent=iTunes/7.4.1 (Macintosh; N; Intel)*
2007-09-11 08:03:59 (b6b4db90): Thread 32: Read: Accept-Language: en-us, en;q=0.50
2007-09-11 08:03:59 (b6b4db90): Thread 32: Adding header *Accept-Language=en-us, en;q=0.50*
2007-09-11 08:03:59 (b6b4db90): Added *Accept-Language=en-us, en;q=0.50*
2007-09-11 08:03:59 (b6b4db90): Thread 32: Read: Accept-Encoding: gzip
2007-09-11 08:03:59 (b6b4db90): Thread 32: Adding header *Accept-Encoding=gzip*
2007-09-11 08:03:59 (b6b4db90): Added *Accept-Encoding=gzip*
2007-09-11 08:03:59 (b6b4db90): Thread 32: Read:
2007-09-11 08:03:59 (b6b4db90): Thread 32: Headers parsed!
2007-09-11 08:03:59 (b6b4db90): Checking to see if connection matches close
2007-09-11 08:03:59 (b6b4db90): Nope!
2007-09-11 08:03:59 (b6b4db90): Thread 32: Connection type HTTP/1.1
: Connection: persist
2007-09-11 08:03:59 (b6b4db90): Thread 32: Original URI: /content-codes
2007-09-11 08:03:59 (b6b4db90): Thread 32: Translated URI: /content-codes
2007-09-11 08:03:59 (b6b4db90): Thread 32: Preparing to find handler
2007-09-11 08:03:59 (b6b4db90): Checking /content-codes against handler for /
2007-09-11 08:03:59 (b6b4db90): Thread 32: URI Match!
2007-09-11 08:03:59 (b6b4db90): Thread 32: Time is 1189512239 seconds after epoch
2007-09-11 08:03:59 (b6b4db90): Thread 32: Setting time header
2007-09-11 08:03:59 (b6b4db90): Added *Date=Tue, 11 Sep 2007 12:03:59 GMT*
2007-09-11 08:03:59 (b6b4db90): Added *Connection=keep-alive*
2007-09-11 08:03:59 (b6b4db90): Added *Server=mt-daapd/svn-1659*
2007-09-11 08:03:59 (b6b4db90): Added *Content-Type=text/html*
2007-09-11 08:03:59 (b6b4db90): Added *Content-Language=en_us*
2007-09-11 08:03:59 (b6b4db90): Thread 32: Using non-default handler
2007-09-11 08:03:59 (b6b4db90): in main_auth
2007-09-11 08:03:59 (b6b4db90): Checking url /content-codes
2007-09-11 08:03:59 (b6b4db90): Dispatching auth for /content-codes to plugin
2007-09-11 08:03:59 (b6b4db90): Checking url /content-codes
2007-09-11 08:03:59 (b6b4db90): Dispatching /content-codes to daap/svn-1659
2007-09-11 08:03:59 (b6b4db90): Checking if pw required for /content-codes as user
2007-09-11 08:03:59 (b6b4db90): Yep: verichron
2007-09-11 08:03:59 (b6b4db90): Added *WWW-Authenticate=Basic realm="webserver"*
2007-09-11 08:03:59 (b6b4db90): Thread 32: Entering ws_returnerror (401: Unauthorized)
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): Updating Connection from keep-alive to keep-alive
2007-09-11 08:03:59 (b6b4db90): Added *Content-Length=2*
2007-09-11 08:03:59 (b6b4db90): Emitting reponse header Content-Length: 2
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): Emitting reponse header WWW-Authenticate: Basic realm="webserver"
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): Emitting reponse header Content-Language: en_us
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): Emitting reponse header Content-Type: text/html
2007-09-11 08:03:59 (b6b4db90): writing to socket 11
2007-09-11 08:03:59 (b6b4db90): Emitting reponse header Server: mt-daapd/svn-1659

Any suggestions?

can you email me your config file at [email protected]?