You are here: Home » Reply

Reply To: Build firefly nightly on WL-500g

#8881

Anonymous

When run as a daemon it doesn’t do any of 1-8. All function when run in the foreground.

What it does do as a daemon is create 4 processes, scan for songs and build a db and it will serve a file to a browser. When I browse to 192.168.1.1/index.html I get the following in the log at -d9:

2007-04-15 21:54:26 (00000803): Thread 0: Entering ws_dispatcher (Connection from 192.168.1.58)
2007-04-15 21:54:26 (00000803): Thread 0: got request
2007-04-15 21:54:26 (00000803): Request: GET /index.html HTTP/1.1
2007-04-15 21:54:26 (00000803): Thread 0: Read: Host: 192.168.1.1:3689
2007-04-15 21:54:26 (00000803): Thread 0: Adding header *Host=192.168.1.1:3689*
2007-04-15 21:54:26 (00000803): Added *Host=192.168.1.1:3689*
2007-04-15 21:54:26 (00000803): Thread 0: Read: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
2007-04-15 21:54:26 (00000803): Thread 0: Adding header *User-Agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3*
2007-04-15 21:54:26 (00000803): Added *User-Agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3*
2007-04-15 21:54:26 (00000803): Thread 0: Read: Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
2007-04-15 21:54:26 (00000803): Thread 0: Adding header *Accept=text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5*
2007-04-15 21:54:26 (00000803): Added *Accept=text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5*
2007-04-15 21:54:26 (00000803): Thread 0: Read: Accept-Language: en-gb,en;q=0.5
2007-04-15 21:54:26 (00000803): Thread 0: Adding header *Accept-Language=en-gb,en;q=0.5*
2007-04-15 21:54:26 (00000803): Added *Accept-Language=en-gb,en;q=0.5*
2007-04-15 21:54:26 (00000803): Thread 0: Read: Accept-Encoding: gzip,deflate
2007-04-15 21:54:26 (00000803): Thread 0: Adding header *Accept-Encoding=gzip,deflate*
2007-04-15 21:54:26 (00000803): Added *Accept-Encoding=gzip,deflate*
2007-04-15 21:54:26 (00000803): Thread 0: Read: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
2007-04-15 21:54:26 (00000803): Thread 0: Adding header *Accept-Charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7*
2007-04-15 21:54:26 (00000803): Added *Accept-Charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7*
2007-04-15 21:54:26 (00000803): Thread 0: Read: Keep-Alive: 300
2007-04-15 21:54:26 (00000803): Thread 0: Adding header *Keep-Alive=300*
2007-04-15 21:54:26 (00000803): Added *Keep-Alive=300*
2007-04-15 21:54:26 (00000803): Thread 0: Read: Connection: keep-alive
2007-04-15 21:54:26 (00000803): Thread 0: Adding header *Connection=keep-alive*
2007-04-15 21:54:26 (00000803): Added *Connection=keep-alive*
2007-04-15 21:54:26 (00000803): Thread 0: Read: Authorization: Basic YWRtaW46SXNhYmVs
2007-04-15 21:54:26 (00000803): Thread 0: Adding header *Authorization=Basic YWRtaW46SXNhYmVs*
2007-04-15 21:54:26 (00000803): Added *Authorization=Basic YWRtaW46SXNhYmVs*
2007-04-15 21:54:26 (00000803): Thread 0: Read: Cache-Control: max-age=0
2007-04-15 21:54:26 (00000803): Thread 0: Adding header *Cache-Control=max-age=0*
2007-04-15 21:54:26 (00000803): Added *Cache-Control=max-age=0*
2007-04-15 21:54:26 (00000803): Thread 0: Read:
2007-04-15 21:54:26 (00000803): Thread 0: Headers parsed!
2007-04-15 21:54:26 (00000803): Checking to see if connection matches close
2007-04-15 21:54:26 (00000803): And it does NOT
2007-04-15 21:54:26 (00000803): Thread 0: Connection type HTTP/1.1
: Connection: persist
2007-04-15 21:54:26 (00000803): Thread 0: Original URI: /index.html
2007-04-15 21:54:26 (00000803): Thread 0: Translated URI: /index.html
2007-04-15 21:54:26 (00000803): Thread 0: Preparing to find handler
2007-04-15 21:54:26 (00000803): Thread 0: Time is 1176670466 seconds after epoch
2007-04-15 21:54:26 (00000803): Thread 0: Setting time header
2007-04-15 21:54:26 (00000803): Added *Date=Sun, 15 Apr 2007 20:54:26 GMT*
2007-04-15 21:54:26 (00000803): Added *Connection=keep-alive*
2007-04-15 21:54:26 (00000803): Added *Server=mt-daapd/svn-1529*
2007-04-15 21:54:26 (00000803): Added *Content-Type=text/html*
2007-04-15 21:54:26 (00000803): Added *Content-Language=en_us*
2007-04-15 21:54:26 (00000803): Thread 0: Using default handler.
2007-04-15 21:54:26 (00000803): Thread 0: Preparing to serve /opt/share/mt-daapd/admin-root/index.html
2007-04-15 21:54:26 (00000803): Length of file is 1781
2007-04-15 21:54:26 (00000803): Added *Content-Length=1781*
2007-04-15 21:54:26 (00000803): Emitting reponse header Content-Length: 1781
2007-04-15 21:54:26 (00000803): Emitting reponse header Content-Language: en_us
2007-04-15 21:54:26 (00000803): Emitting reponse header Content-Type: text/html
2007-04-15 21:54:26 (00000803): Emitting reponse header Server: mt-daapd/svn-1529
2007-04-15 21:54:26 (00000803): Emitting reponse header Connection: keep-alive
2007-04-15 21:54:26 (00000803): Emitting reponse header Date: Sun, 15 Apr 2007 20:54:26 GMT
2007-04-15 21:54:26 (00000803): Exiting ws_defaulthandler: Thread 0: Served successfully
2007-04-15 21:54:26 (00000803): Thread 0: Terminating
2007-04-15 21:54:26 (00000803): Thread 0: Freeing request headers
2007-04-15 21:54:26 (00000803): Thread 0: Freeing response headers
2007-04-15 21:54:26 (00000803): Thread 0: Freeing request vars

and then a bit later:

2007-04-15 21:59:33 (00000803): Thread 0:  could not read: Invalid argument
2007-04-15 21:59:33 (00000803): Thread 0: Terminating
2007-04-15 21:59:33 (00000803): Thread 0: Freeing request headers
2007-04-15 21:59:33 (00000803): Thread 0: Freeing response headers
2007-04-15 21:59:33 (00000803): Thread 0: Freeing request vars
2007-04-15 21:59:33 (00000803): Thread 0: Closing fd
2007-04-15 21:59:33 (00000803): With thread 0 exiting, 0 are still running

The buttons are not greyed and depress when clicked but nothing happens in the browser or log. When I click the stop server button, the processes continue, nothing happens.