2014-05-15 49 views
0

我試圖在同一臺機器上運行OpenERP的兩個實例,但每當我啓動第二個它崩潰。與啓動OpenERP的兩個實例的用戶相同,並且在同一個postgresDB中,但是我使用數據庫中的不同用戶啓動OpenERP的每個實例。這裏是日誌文件我不知道這是怎麼回事:Openerp8啓動錯誤:AttributeError:'布爾'對象沒有屬性'endswith'

Traceback (most recent call last): 
    File "/home/user/lib/python2.7/Werkzeug-0.9.4-py2.7.egg/werkzeug/serving.py", line 177, in run_wsgi 
execute(self.server.app) 
File "/home/user/lib/python2.7/Werkzeug-0.9.4-py2.7.egg/werkzeug/serving.py", line 165, in execute 
application_iter = app(environ, start_response) 
File "/home/user/openerp-8.0-acmlpsc/openerp8/openerp/service/server.py", line 273, in app 
return self.app(e, s) 
File "/home/user/openerp-8.0-acmlpsc/openerp8/openerp/service/wsgi_server.py", line 215, in application 
return application_unproxied(environ, start_response) 
File "/home/user/openerp-8.0-acmlpsc/openerp8/openerp/service/wsgi_server.py", line 201, in application_unproxied 
result = handler(environ, start_response) 
File "/home/user/openerp-8.0-acmlpsc/openerp8/openerp/http.py", line 1097, in __call__ 
return self.dispatch(environ, start_response) 
File "/home/user/openerp-8.0-acmlpsc/openerp8/openerp/http.py", line 1074, in __call__ 
return self.app(environ, start_wrapped) 
File "/home/user/lib/python2.7/Werkzeug-0.9.4-py2.7.egg/werkzeug/wsgi.py", line 579, in __call__ 
return self.app(environ, start_response) 
File "/home/user/openerp-8.0-acmlpsc/openerp8/openerp/http.py", line 1226, in dispatch 
ir_http = request.registry['ir.http'] 
File "/home/user/openerp-8.0-acmlpsc/openerp8/openerp/http.py", line 220, in registry 
return openerp.modules.registry.RegistryManager.get(self.db) if self.db else None 
File "/home/user/openerp-8.0-acmlpsc/openerp8/openerp/modules/registry.py", line 269, in get 
update_module) 
File "/home/user/openerp-8.0-acmlpsc/openerp8/openerp/modules/registry.py", line 299, in new 
openerp.modules.load_modules(registry._db, force_demo, status, update_module) 
File "/home/user/openerp-8.0-acmlpsc/openerp8/openerp/modules/loading.py", line 335, in load_modules 
force, status, report, loaded_modules, update_module) 
File "/home/user/openerp-8.0-acmlpsc/openerp8/openerp/modules/loading.py", line 241, in load_marked_modules 
graph.add_modules(cr, module_list, force) 
File "/home/user/openerp-8.0-acmlpsc/openerp8/openerp/modules/graph.py", line 99, in add_modules 
info = openerp.modules.module.load_information_from_description_file(module) 
File "/home/user/openerp-8.0-acmlpsc/openerp8/openerp/modules/module.py", line 180, in load_information_from_description_file 
terp_file = opj(mod_path, '__openerp__.py') 
File "/usr/local/lib/python2.7/posixpath.py", line 77, in join 
elif path == '' or path.endswith('/'): 
AttributeError: 'bool' object has no attribute 'endswith' 

我希望你能幫助我。

+0

Path是bool類型。路徑是否從配置文件加載? – KiraLT

+0

是的,我從配置文件 – ocespedes

+0

設置路徑不知何故,你的路徑是布爾。檢查你的配置。 – KiraLT

回答

0

這可能是由於港口衝突。嘗試在不同端口上運行實例,例如在8069上運行實例,在8070上運行另一個實例。

嘗試在單獨的Icognito窗口(使用chrome時)或私有瀏覽窗口(使用mozilla時)中打開實例,如果有一個實例覆蓋另一個openerp實例的會話。 如果這不能解決你的問題,那麼我建議你把最新的OpenERP8代碼,儘管它不穩定。

希望這會有所幫助,請將您的意見反饋給我們。

+0

我使用'xmlrpc-port'運行不同的端口,我也在數據庫中使用不同的用戶。 – ocespedes

相關問題