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 (most recent call last): File "/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/wspbus.py", line 147, in publish output.append(listener(*args, **kwargs)) File "/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpserver.py", line 90, in start ServerAdapter.start(self) File "/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/servers.py", line 60, in start self.wait() File "/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/servers.py", line 101, in wait wait_for_occupied_port(host, port) 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 raise IOError("Port %r not bound on %r" % (port, host)) IOError: Port 8080 not bound on '0.0.0.0' [10/Jun/2010:10:48:33] ENGINE Shutting down due to error in start listener: Traceback (most recent call last): File "/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/wspbus.py", line 184, in start self.publish('start') File "/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/wspbus.py", line 147, in publish output.append(listener(*args, **kwargs)) File "/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpserver.py", line 90, in start ServerAdapter.start(self) File "/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/servers.py", line 60, in start self.wait() File "/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/servers.py", line 101, in wait wait_for_occupied_port(host, port) 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 raise IOError("Port %r not bound on %r" % (port, host)) IOError: Port 8080 not bound on '0.0.0.0' [10/Jun/2010:10:48:33] ENGINE Bus STOPPING [10/Jun/2010:10:48:33] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8080)) already shut down [10/Jun/2010:10:48:33] ENGINE Stopped thread 'Autoreloader'. [10/Jun/2010:10:48:33] ENGINE Stopped thread '_TimeoutMonitor'. [10/Jun/2010:10:48:33] ENGINE Bus STOPPED [10/Jun/2010:10:48:33] ENGINE Bus EXITING [10/Jun/2010:10:48:33] ENGINE Bus EXITED Traceback (most recent call last): File "./openerp-web", line 8, in <module> load_entry_point('openerp-web==5.0.11', 'console_scripts', 'openerp-web')() File "/usr/local/lib/python2.6/site-packages/openerp_web-5.0.11-py2.6.egg/openerp/commands.py", line 129, in start cherrypy.engine.start() File "/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/wspbus.py", line 184, in start self.publish('start') File "/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/wspbus.py", line 147, in publish output.append(listener(*args, **kwargs)) File "/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpserver.py", line 90, in start ServerAdapter.start(self) File "/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/servers.py", line 60, in start self.wait() File "/usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/process/servers.py", line 101, in wait wait_for_occupied_port(host, port) 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 raise IOError("Port %r not bound on %r" % (port, host)) IOError: Port 8080 not bound on '0.0.0.0' [10/Jun/2010:10:50:00] 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: 0 security.jail.param.host.hostid: 0 security.jail.param.host.hostuuid: 64 security.jail.param.host.domainname: 256 security.jail.param.host.hostname: 256 security.jail.param.children.max: 0 security.jail.param.children.cur: 0 security.jail.param.enforce_statfs: 0 security.jail.param.securelevel: 0 security.jail.param.path: 1024 security.jail.param.name: 256 security.jail.param.parent: 0 security.jail.param.jid: 0 security.jail.enforce_statfs: 2 security.jail.mount_allowed: 0 security.jail.chflags_allowed: 0 security.jail.allow_raw_sockets: 0 security.jail.sysvipc_allowed: 1 security.jail.socket_unixiproute_only: 1 security.jail.set_hostname_allowed: 1 security.jail.jail_max_af_ips: 255 security.jail.jailed: 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
