如何在Webfaction服务器上设置openerp
-
求助 也在webfaction买了空间,但是有问题
[2009-10-16 10:02:27,203] INFO:server:version - 5.0.6
[2009-10-16 10:02:27,204] INFO:server:addons_path - /home/mihi/lib/python2.5/openerp-server/addons
[2009-10-16 10:02:27,204] INFO:server:database hostname - localhost
[2009-10-16 10:02:27,204] INFO:server:database port - 5432
[2009-10-16 10:02:27,204] INFO:server:database user - mihi_openerp
[2009-10-16 10:02:27,204] INFO:objects:initialising distributed objects services
[2009-10-16 10:02:27,396] INFO:dbpool:Connecting to mihi_openerp
[2009-10-16 10:02:27,403] INFO:init:module base: loading objects
[2009-10-16 10:02:27,403] INFO:init:module base: registering objects
bzr: ERROR: Not a branch: "/home/mihi/lib/python2.5/openerp-server/".
[2009-10-16 10:02:27,624] CRITICAL:init:[01]:
[2009-10-16 10:02:27,624] CRITICAL:init:[02]: Environment Information :
[2009-10-16 10:02:27,624] CRITICAL:init:[03]: System : Linux-2.6.18-164.el5PAE-i686-with-redhat-5.3-Final
[2009-10-16 10:02:27,624] CRITICAL:init:[04]: OS Name : posix
[2009-10-16 10:02:27,624] CRITICAL:init:[05]: LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
[2009-10-16 10:02:27,624] CRITICAL:init:[06]: Distributor ID: CentOS
[2009-10-16 10:02:27,625] CRITICAL:init:[07]: Description: CentOS release 5.3 (Final)
[2009-10-16 10:02:27,625] CRITICAL:init:[08]: Release: 5.3
[2009-10-16 10:02:27,625] CRITICAL:init:[09]: Codename: Final
[2009-10-16 10:02:27,625] CRITICAL:init:[10]: Operating System Release : 2.6.18-164.el5PAE
[2009-10-16 10:02:27,625] CRITICAL:init:[11]: Operating System Version : #1 SMP Thu Sep 3 04:10:44 EDT 2009
[2009-10-16 10:02:27,625] CRITICAL:init:[12]: Operating System Architecture : 32bit
[2009-10-16 10:02:27,625] CRITICAL:init:[13]: Operating System Locale : en_US.UTF8
[2009-10-16 10:02:27,626] CRITICAL:init:[14]: Python Version : 2.5.4
[2009-10-16 10:02:27,626] CRITICAL:init:[15]: OpenERP-Server Version : 5.0.6
[2009-10-16 10:02:27,626] CRITICAL:init:[16]: Last revision No. & ID :
[2009-10-16 10:02:27,626] CRITICAL:init:[17]: Couldn't load module base
bzr: ERROR: Not a branch: "/home/mihi/lib/python2.5/openerp-server/".
[2009-10-16 10:02:27,849] CRITICAL:init:[01]:
[2009-10-16 10:02:27,850] CRITICAL:init:[02]: Environment Information :
[2009-10-16 10:02:27,850] CRITICAL:init:[03]: System : Linux-2.6.18-164.el5PAE-i686-with-redhat-5.3-Final
[2009-10-16 10:02:27,850] CRITICAL:init:[04]: OS Name : posix
[2009-10-16 10:02:27,850] CRITICAL:init:[05]: LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
[2009-10-16 10:02:27,850] CRITICAL:init:[06]: Distributor ID: CentOS
[2009-10-16 10:02:27,850] CRITICAL:init:[07]: Description: CentOS release 5.3 (Final)
[2009-10-16 10:02:27,851] CRITICAL:init:[08]: Release: 5.3
[2009-10-16 10:02:27,851] CRITICAL:init:[09]: Codename: Final
[2009-10-16 10:02:27,851] CRITICAL:init:[10]: Operating System Release : 2.6.18-164.el5PAE
[2009-10-16 10:02:27,851] CRITICAL:init:[11]: Operating System Version : #1 SMP Thu Sep 3 04:10:44 EDT 2009
[2009-10-16 10:02:27,851] CRITICAL:init:[12]: Operating System Architecture : 32bit
[2009-10-16 10:02:27,851] CRITICAL:init:[13]: Operating System Locale : en_US.UTF8
[2009-10-16 10:02:27,851] CRITICAL:init:[14]: Python Version : 2.5.4
[2009-10-16 10:02:27,851] CRITICAL:init:[15]: OpenERP-Server Version : 5.0.6
[2009-10-16 10:02:27,852] CRITICAL:init:[16]: Last revision No. & ID :
[2009-10-16 10:02:27,852] CRITICAL:init:[17]: No module named module
Traceback (most recent call last):
File "./openerp-server.py", line 111, in <module>
pooler.get_db_and_pool(db, update_module=tools.config['init'] or tools.config['update'])
File "/home/mihi/lib/python2.5/openerp-server/pooler.py", line 40, in get_db_and_pool
addons.load_modules(db, force_demo, status, update_module)
File "/home/mihi/lib/python2.5/openerp-server/addons/init.py", line 687, in load_modules
has_updates = load_module_graph(cr, graph, status, perform_checks=(not update_module), report=report)
File "/home/mihi/lib/python2.5/openerp-server/addons/init.py", line 578, in load_module_graph
register_class(package.name)
File "/home/mihi/lib/python2.5/openerp-server/addons/init.py", line 400, in register_class
imp.load_module(m, *fm)
File "/home/mihi/lib/python2.5/openerp-server/addons/base/init.py", line 24, in <module>
import module
ImportError: No module named module
[mihi@web105 openerp-server-5.0.6]$ init:module base: registering objects
-bash: init:module: command not found
[mihi@web105 openerp-server-5.0.6]$ -
不知道你是如何安装的。
会不会没有指定addons的路径。
openerp-server.py --addons-path=ADDONS_PATH -s
-
将上面的使用说明稍微修正了一下。
-
因为以前webfaction的数据库用户没有创建数据库的权限,所以一个数据库用户只能对应一个数据库,也就无法多帐套。
不知道现在webfaction对数据库的创建有改变吗,你可以问一下他们的客服。另外,安装openerp后可以跑多个instance, 不需要为每个instance 重新安装openerp,只要注意端口和配置文件的设置即可。如果你选用的webfaction 是128M的计划,估计同时跑两个instance内存不够