Dear All,

I seem to have a persistent, reproducible problem: I plan to stick 
openerp-server and openerp-web into a jail. While openerp-server plays ball 
nicely, openerp-web causes trouble.

I am running:
FreeBSD 8.0, with current system and port upgrades;

Inside a jail, I have:
python 2.6.5, installed via the FreeBSD packaging system;
py-setuptools 0.6c11, installed via the FreeBSD packaging system;
openerp-server 5.11, directly installed via easy_install (as I have learnt the 
hard way a long time back that openERP ist best installed that way  8);
openerp-web 5.11, directly installed via easy_install, too.

After automatic or manual (running /usr/local/bin/openerp-web directly) I get:
ENGINE Bus STARTING
[10/Jun/2010:10:48:28] ENGINE Started monitor thread 
'_TimeoutMonitor'.
[10/Jun/2010:10:48:28] ENGINE Started monitor thread 
'Autoreloader'.
[10/Jun/2010:10:48:33] ENGINE Error in 'start' listener 
<bound method Server.start of <cherrypy>>
Traceback &#40;most recent call last&#41;&#58;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/wspbus.py",
 line 147, in publish
&nbsp; &nbsp; output.append&#40;listener&#40;*args, **kwargs&#41;&#41;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpserver.py",
 line 90, in start
&nbsp; &nbsp; ServerAdapter.start&#40;self&#41;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/servers.py",
 line 60, in start
&nbsp; &nbsp; self.wait&#40;&#41;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/servers.py",
 line 101, in wait
&nbsp; &nbsp; wait_for_occupied_port&#40;host, port&#41;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/servers.py",
 line 266, in wait_for_occupied_port
&nbsp; &nbsp; raise IOError&#40;"Port %r not bound on %r" % &#40;port, 
host&#41;&#41;
IOError&#58; Port 8080 not bound on '0.0.0.0'

&#91;10/Jun/2010&#58;10&#58;48&#58;33&#93; ENGINE Shutting down due to error in 
start listener&#58;
Traceback &#40;most recent call last&#41;&#58;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/wspbus.py",
 line 184, in start
&nbsp; &nbsp; self.publish&#40;'start'&#41;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/wspbus.py",
 line 147, in publish
&nbsp; &nbsp; output.append&#40;listener&#40;*args, **kwargs&#41;&#41;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpserver.py",
 line 90, in start
&nbsp; &nbsp; ServerAdapter.start&#40;self&#41;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/servers.py",
 line 60, in start
&nbsp; &nbsp; self.wait&#40;&#41;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/servers.py",
 line 101, in wait
&nbsp; &nbsp; wait_for_occupied_port&#40;host, port&#41;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/servers.py",
 line 266, in wait_for_occupied_port
&nbsp; &nbsp; raise IOError&#40;"Port %r not bound on %r" % &#40;port, 
host&#41;&#41;
IOError&#58; Port 8080 not bound on '0.0.0.0'

&#91;10/Jun/2010&#58;10&#58;48&#58;33&#93; ENGINE Bus STOPPING
&#91;10/Jun/2010&#58;10&#58;48&#58;33&#93; ENGINE HTTP Server 
cherrypy._cpwsgi_server.CPWSGIServer&#40;&#40;'0.0.0.0', 8080&#41;&#41; already 
shut down
&#91;10/Jun/2010&#58;10&#58;48&#58;33&#93; ENGINE Stopped thread 'Autoreloader'.
&#91;10/Jun/2010&#58;10&#58;48&#58;33&#93; ENGINE Stopped thread 
'_TimeoutMonitor'.
&#91;10/Jun/2010&#58;10&#58;48&#58;33&#93; ENGINE Bus STOPPED
&#91;10/Jun/2010&#58;10&#58;48&#58;33&#93; ENGINE Bus EXITING
&#91;10/Jun/2010&#58;10&#58;48&#58;33&#93; ENGINE Bus EXITED
Traceback &#40;most recent call last&#41;&#58;
&nbsp; File "./openerp-web", line 8, in <module>
&nbsp; &nbsp; load_entry_point&#40;'openerp-web==5.0.11', 'console_scripts', 
'openerp-web'&#41;&#40;&#41;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/openerp_web-5.0.11-py2.6.egg/openerp/commands.py",
 line 129, in start
&nbsp; &nbsp; cherrypy.engine.start&#40;&#41;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/wspbus.py",
 line 184, in start
&nbsp; &nbsp; self.publish&#40;'start'&#41;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/wspbus.py",
 line 147, in publish
&nbsp; &nbsp; output.append&#40;listener&#40;*args, **kwargs&#41;&#41;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpserver.py",
 line 90, in start
&nbsp; &nbsp; ServerAdapter.start&#40;self&#41;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/servers.py",
 line 60, in start
&nbsp; &nbsp; self.wait&#40;&#41;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/servers.py",
 line 101, in wait
&nbsp; &nbsp; wait_for_occupied_port&#40;host, port&#41;
&nbsp; File 
"/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/servers.py",
 line 266, in wait_for_occupied_port
&nbsp; &nbsp; raise IOError&#40;"Port %r not bound on %r" % &#40;port, 
host&#41;&#41;
IOError&#58; Port 8080 not bound on '0.0.0.0'
&#91;10/Jun/2010&#58;10&#58;50&#58;00&#93; ENGINE Started monitor thread 
'Monitor'.
If I install the whole lot not inside a jail, but right on the root serving my 
jails, everything is fine.
This situation is reproducible with Python 2.6 and Python 2.5, as well as when 
I install openerp-server and openerp-web via the FreeBSD packages.
So, it is a jail issue, all right. 

Next, I have checked my jail parameters:
security.jail.param.cpuset.id&#58; 0
security.jail.param.host.hostid&#58; 0
security.jail.param.host.hostuuid&#58; 64
security.jail.param.host.domainname&#58; 256
security.jail.param.host.hostname&#58; 256
security.jail.param.children.max&#58; 0
security.jail.param.children.cur&#58; 0
security.jail.param.enforce_statfs&#58; 0
security.jail.param.securelevel&#58; 0
security.jail.param.path&#58; 1024
security.jail.param.name&#58; 256
security.jail.param.parent&#58; 0
security.jail.param.jid&#58; 0
security.jail.enforce_statfs&#58; 2
security.jail.mount_allowed&#58; 0
security.jail.chflags_allowed&#58; 0
security.jail.allow_raw_sockets&#58; 0
security.jail.sysvipc_allowed&#58; 1
security.jail.socket_unixiproute_only&#58; 1
security.jail.set_hostname_allowed&#58; 1
security.jail.jail_max_af_ips&#58; 255
security.jail.jailed&#58; 0
I disabled the security.jail.allow_raw_sockets, security.jail.mount_allowed and 
security.jail.chflags_allowed, followed by restarting the jail afterwards, to 
no avail. 
I hate the idea of running openerp-web without jail, so your help would be 
highly appreciated.
Anybody out there who got openerp-web running inside a FreeBSD jail? (Yes, it 
does work well from within linux-vservers, but I have moved beyond that... for 
good or for bad!)
Thanks a lot for your kind help!!!

BEst regards from Kigali -

Chris




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=57267#57267

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to