[Bug 730259] Re: tomcat6-instance-create does not behave properly on setting a value less than 1024 for the control port

Abhinav Upadhyay 730259 at bugs.launchpad.net
Sun Mar 6 22:38:49 UTC 2011


Changed the bug report. It should at least give a warning before
starting the server, that without root privileges it won't be able to
serve pages. (Running server as root is not such a good idea, but in
case someone wants to ).

** Description changed:

  Binary package hint: tomcat6
  
  On specifying any value less than 1024 for the -c option of tomcat6-instance-create, the server instance does not work as expected. It gets configured and gets started, but pages won't load in the browser.
  For example, on running
  $tomcat6-instance-create -c 1001 -p 8001 ~/my_tomcat
  
- It configures the instance properly, with the specified port values also appearing in ~/my_tomcat/conf/server.xml . The server also starts successfully. But, I cannot access  http://localhost:8001/
- On opening it, in the browser, the browser simply says "Page not found" .
+ It configures the instance properly, the server also starts successfully. But, I cannot access  http://localhost:8001/
+ The reason being that ports less than 1024 can be used by only those processes which are run as root. 
  
- There is no problem in shutting down the server. This behaviour is
- occuring for any values less than 1024 for the control port.
+ But in my opinion, in such a case (where -c has value less than 1024),
+ the server should refuse to start or at least give a warning that it
+ should be run as root. Otherwise, user may be clueless, as why the pages
+ are not loading.
  
- And, on specifying a value greater than 1024 for -c , it does not cause
- any such problems.
  
  I have following configuration:
  Ubuntu 10.10
  tomcat6-user 6.0.28-2ubuntu1.1
  tomcat6 6.0.28-2ubuntu1.1
  Architecture: x86

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.
https://bugs.launchpad.net/bugs/730259

Title:
  tomcat6-instance-create does not behave properly on setting a value
  less than 1024 for the control port



More information about the Ubuntu-server-bugs mailing list