From: SourceForge.net <no...@so...> - 2005-07-08 12:01:37
|
Bugs item #1231853, was opened at 2005-07-03 11:14 Message generated for change (Comment added) made by sdeasey You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=719006&aid=1231853&group_id=130646 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: Current Status: Open Resolution: None Priority: 5 Submitted By: Bernd Eidenschink (eide) >Assigned to: Stephen Deasey (sdeasey) Summary: Incomplete config file leading server to unusable state Initial Comment: I'm not 100% sure if this behaviour should be classified as Bug, lets see. I found that at a bare minimum the server needs something like this to start: --------------------------------------------------- set servername "server1" set serverdesc "My first server" set homedir [file dirname [ns_info config]] ns_section "ns/servers" ns_param $servername $serverdesc ns_section "ns/parameters" ns_param home $homedir --------------------------------------------------- when starting the server with: ./nsd -u nsadmin -g www -f -t ../smallest-config.tcl it says (timestamps and threadinfo deleted): [-main-] Notice: nsmain: NaviServer/4.99.0 starting [-main-] Notice: nsmain: security info: uid=1003, euid=1003, gid=8, egid=8 [-main-] Notice: nsmain: max files: FD_SETSIZE = 1024, rl_cur = 1024, rl_max = 1024 [-main-] Notice: conf: [ns/server/server1]enabletclpages = 0 [-main-] Notice: nsmain: NaviServer/4.99.0 running [-main-] Notice: nsmain: security info: uid=1003, euid=1003, gid=8, egid=8 and waits. It's visible in the process list (ps shows 2 threads), but not binding to a port ('lsof -i' shows no nsd). When stopping the Server with Ctrl-C: [-main-] Notice: nsmain: NaviServer/4.99.0 stopping [-main-] Notice: driver: triggering shutdown [-main-] Fatal: driver: trigger send() failed: Socket operation on non-socket If it is not considered to be a bug there should at least be some log notice like: "Hint: You may have to specify... " or "Incomplete Configuration...." or not start at all. ---------------------------------------------------------------------- >Comment By: Stephen Deasey (sdeasey) Date: 2005-07-08 06:01 Message: Logged In: YES user_id=87254 That's what I was wondering, does anyone have a use for this? 4 it is then, the server will log a warning if no drivers are configured. I'll add this. ---------------------------------------------------------------------- Comment By: Zoran Vasiljevic (vasiljevic) Date: 2005-07-07 01:07 Message: Logged In: YES user_id=95086 The option of 4 is actually OK. I can cook up an application with Tcl using NS as MT-app server having no visible network connections. I would not stop the server if no drivers are loaded, but a warning log seems OK. ---------------------------------------------------------------------- Comment By: Bernd Eidenschink (eide) Date: 2005-07-06 04:23 Message: Logged In: YES user_id=197910 Hm, I tend to Option (3); But just because I can't imagine a use case for (4), is there? Or is it then just a tclsh gone wild? ---------------------------------------------------------------------- Comment By: Stephen Deasey (sdeasey) Date: 2005-07-06 03:45 Message: Logged In: YES user_id=87254 If the only configured driver fails to bind an error is logged but the server starts successfully. I'm not sure how useful a naviserver with no listening drivers is..? But you're right, not specifying any drivers should not leave the server in limbo -- it should either start or it should fail. So here's some options: 1) not specifying any drivers is a fatal error 2) not specifying any drivers is ok (log warning?) 3) no listening drivers for any reason is a fatal error 4) no listening drivers is ok (log warning?) I think maybe option 4, with a warning. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=719006&aid=1231853&group_id=130646 |