Thank for the response Ralf! My previous post with the Unicode error was running a different configuration on Fedora, and that has been since rebuilt to Deb 6. I'm not seeing that one anymore, but have narrowed down this current issue.
I've found that once I disconnect from the terminal where I ran "mw- serve -d -p 80" from it somehow becomes unable to finish and print the document. I've found that if I run mw-serve from a screen session & disconnect it continues to work fine, but if I disconnect after starting it in daemon mode, the process still exists: root 16816 0.0 0.1 12452 6448 ? S 13:51 0:00 /usr/ bin/python /usr/local/bin/mw-serve -d -p 80 root 16868 0.0 0.0 0 0 ? Z 13:54 0:00 \_ [mw-serve] <defunct> but somehow gets in the state where it doesn't complete the job and doesn't log anything in /var/cache/mw-serve/ Getting the following response on the browser: "The POST request to http://localhost/mw-serve/ failed (Empty reply from server)." I re-ran this with strace again, and noticed one difference between the two states mentioned above.... When its in a good state I get a lot of these types messages (not the timeout part) select(4, [3], [], [], {0, 500000}) = 0 (Timeout) select(4, [3], [], [], {0, 500000}) = 0 (Timeout) select(4, [3], [], [], {0, 500000}) = 1 (in [3], left {0, 218541}) accept(3, {sa_family=AF_INET, sin_port=htons(34003), sin_addr=inet_addr("70.85.100.83")}, [16]) = 4 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID| SIGCHLD, child_tidptr=0xb74bd728) = 16795 close(4) = 0 select(4, [3], [], [], {0, 500000}) = ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- select(4, [3], [], [], {0, 400238}) = 1 (in [3], left {0, 122065}) accept(3, {sa_family=AF_INET, sin_port=htons(34004), sin_addr=inet_addr("70.85.100.83")}, [16]) = 4 waitpid(16795, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 16795 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID| SIGCHLD, child_tidptr=0xb74bd728) = 16799 close(4) = 0 select(4, [3], [], [], {0, 500000}) = ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- select(4, [3], [], [], {0, 411323}) = 0 (Timeout) select(4, [3], [], [], {0, 500000}) = 0 (Timeout) select(4, [3], [], [], {0, 500000}) = 0 (Timeout) select(4, [3], [], [], {0, 500000}) = 1 (in [3], left {0, 324606}) accept(3, {sa_family=AF_INET, sin_port=htons(34005), sin_addr=inet_addr("70.85.100.83")}, [16]) = 4 waitpid(16799, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 16799 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID| SIGCHLD, child_tidptr=0xb74bd728) = 16802 close(4) = 0 select(4, [3], [], [], {0, 500000}) = ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- select(4, [3], [], [], {0, 412491}) = 0 (Timeout) select(4, [3], [], [], {0, 500000}) = 1 (in [3], left {0, 164978}) accept(3, {sa_family=AF_INET, sin_port=htons(34006), sin_addr=inet_addr("70.85.100.83")}, [16]) = 4 waitpid(16802, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 16802 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID| SIGCHLD, child_tidptr=0xb74bd728) = 16805 close(4) = 0 select(4, [3], [], [], {0, 500000}) = ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- select(4, [3], [], [], {0, 412367}) = 0 (Timeout) select(4, [3], [], [], {0, 500000}) = 1 (in [3], left {0, 163146}) accept(3, {sa_family=AF_INET, sin_port=htons(34007), sin_addr=inet_addr("70.85.100.83")}, [16]) = 4 waitpid(16805, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 16805 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID| SIGCHLD, child_tidptr=0xb74bd728) = 16806 close(4) = 0 select(4, [3], [], [], {0, 500000}) = ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- select(4, [3], [], [], {0, 412637}) = 0 (Timeout) select(4, [3], [], [], {0, 500000}) = 1 (in [3], left {0, 102237}) accept(3, {sa_family=AF_INET, sin_port=htons(34009), sin_addr=inet_addr("70.85.100.83")}, [16]) = 4 waitpid(16806, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 16806 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID| SIGCHLD, child_tidptr=0xb74bd728) = 16807 close(4) = 0 select(4, [3], [], [], {0, 500000}) = ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- but the strace in the bad state only shows: select(4, [3], [], [], {0, 500000}) = 0 (Timeout) select(4, [3], [], [], {0, 500000}) = 0 (Timeout) select(4, [3], [], [], {0, 500000}) = 0 (Timeout) select(4, [3], [], [], {0, 500000}) = 1 (in [3], left {0, 257303}) accept(3, {sa_family=AF_INET, sin_port=htons(34442), sin_addr=inet_addr("70.85.100.83")}, [16]) = 4 waitpid(16868, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], WNOHANG) = 16868 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID| SIGCHLD, child_tidptr=0xb7487728) = 16874 close(4) = 0 select(4, [3], [], [], {0, 500000}) = ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- select(4, [3], [], [], {0, 450375}) = 0 (Timeout) select(4, [3], [], [], {0, 500000}) = 0 (Timeout) select(4, [3], [], [], {0, 500000}) = 0 (Timeout) select(4, [3], [], [], {0, 500000}) = 0 (Timeout) select(4, [3], [], [], {0, 500000}) = 0 (Timeout) Any thoughts? thanks, -jim On Oct 10, 2:40 am, Ralf Schmitt <[email protected]> wrote: > jimj <[email protected]> writes: > > Hello, > > > I noticed after a couple hours the mw-serve daemon locks up and fails > > to process documents, but working fine before this state. This has > > been built on Debian 6 w/ Python 2.6.6... I'm getting this strace > > output attached to the process and seeing this continually: > > > [...] > > > Once an inbound request comes in strace shows: > > > select(4, [3], [], [], {0, 500000}) = 1 (in [3], left {0, 81708}) > > accept(3, {sa_family=AF_INET, sin_port=htons(37438), > > sin_addr=inet_addr("70.85.100.83")}, [16]) = 4 > > waitpid(2276, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], WNOHANG) = 2276 > > clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID| > > SIGCHLD, child_tidptr=0xb74e9728) = 2297 > > close(4) = 0 > > select(4, [3], [], [], {0, 500000}) = ? ERESTARTNOHAND (To be > > restarted) > > --- SIGCHLD (Child exited) @ 0 (0) --- > > > Anybody have any ideas? > > this looks pretty normal to me. mw-serve waits for an incoming > connection, accepts it, forks itself and the parent then closes the > socket (the child process is handling it). > > Do you have any log output? Could this be related to the other issue you > reported ("UnicodeDecodeError: 'ascii' codec can't decode byte")? > > -- > Cheers > Ralf -- You received this message because you are subscribed to the Google Groups "mwlib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/mwlib?hl=en.
