From: John B. <jo...@ma...> - 2009-11-23 04:15:55
|
I've enabled debugging to try to find the spooler-on-linux problem I'm having. Unfortunately, I don't think it's very enlightening: [-driver:nssock-] Debug: Spooler: 0: started fd=7: 1687742 bytes [-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: create nslog:initinterp /usr/local/naviserver/logs/access.log [-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: allocate ns:tcltrace ns_init [-conn:amagnatune:0] Notice: upload.tcl: /upload.tcl: [-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: deallocate ns:tcltrace ns_cleanup Once, I also saw this (but not on repeated runs) which shows the driver debug info is being logged: [-driver:nssock-] Debug(ns:driver): SockRelease: Unable to shutdown socket (9: Bad file descriptor), sock: -1, peer: 64.62.148.4:3361, request: I'm using Vlad's upload.tcl example, to keep things simple. I'm attaching the larger naviserver startup log, in case that helps. When I set ns_param maxupload 2048000000 the debug log implies the spooler is working correctly, it's just that the old-style MIME parser kicks in at the end, using lots of memory: [-driver:nssock-] Debug: Spooler: 0: started fd=7: 1687742 bytes [-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: create nslog:initinterp /usr/local/naviserver/logs/access.log [-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: allocate ns:tcltrace ns_init [-conn:amagnatune:0] Notice: upload.tcl: /upload.tcl: 778212 1687742 [-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: deallocate ns:tcltrace ns_cleanup [-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: allocate ns:tcltrace ns_init [-conn:amagnatune:0] Notice: upload.tcl: /upload.tcl: 1074812 1687742 [-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: deallocate ns:tcltrace ns_cleanup [-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: allocate ns:tcltrace ns_init [-conn:amagnatune:0] Notice: upload.tcl: /upload.tcl: 1383236 1687742 [-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: deallocate ns:tcltrace ns_cleanup [-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: allocate ns:tcltrace ns_init [-conn:amagnatune:0] Notice: upload.tcl: /upload.tcl: 1687316 1687742 [-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: deallocate ns:tcltrace ns_cleanup [-spooler0-] Debug: spooling content to file: readahead=1024, filesize=1687743 [-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: allocate ns:tcltrace ns_init [-conn:amagnatune:1] Debug: ns:interptrace[amagnatune]: create nslog:initinterp /usr/local/naviserver/logs/access.log [-conn:amagnatune:1] Debug: ns:interptrace[amagnatune]: allocate ns:tcltrace ns_init [-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: deallocate ns:tcltrace ns_cleanup [-conn:amagnatune:1] Notice: upload.tcl: /upload.tcl: [-conn:amagnatune:1] Debug: ns:interptrace[amagnatune]: deallocate ns:tcltrace ns_cleanup Other question you guys had: - CVS -- I had previously used the sourceforge CVS from my memory, there wasn't a link I followed. I'm now using the bitbucket source. - nslog - I added "ns_logctl severity Debug(ns:driver) true" to my config file. -john |