Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

SUSE Linux Enterprise 12 SP3安装Odoo11后无法访问localhost:8069



  • postgresql/python都安装好了;
    在PG上创建了数据库odoo,并分配用户名odoo及设置密码成功;通过psql可以正常访问;创建了postgres的系统用户名。

    通过源代码安装odoo11,创建了odoo的系统用户名等;
    设置配置文件/etc/odoo/odoo.conf;配置文件如下:
    [options]
    admin_passwd = adminpasswd
    addons_path = /opt/odoo/addons
    db_host = localhost
    db_port = 5432
    db_user = odoo
    db_password = (密码)
    logfile = /var/log/odoo/odoo.log
    logrotate = True

    通过odoo-bin -c /etc/odoo/odoo.conf可以正常启动odoo11,并且没有报错。
    但是在浏览器访问http://localhost:8069就出错了,提示
    500 Internal Server Error

    查看/var/log/odoo/odoo.log日志,提示:
    2018-05-04 10:33:50,357 7272 INFO odoo odoo.service.server: Initiating shutdown
    2018-05-04 10:33:50,357 7272 INFO odoo odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown.
    2018-05-04 10:33:51,917 7412 INFO ? odoo: Odoo version 11.0
    2018-05-04 10:33:51,918 7412 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf
    2018-05-04 10:33:51,918 7412 INFO ? odoo: addons paths: ['/home/odoo/.local/share/Odoo/addons/11.0', '/opt/odoo/addons', '/opt/odoo/odoo/addons']
    2018-05-04 10:33:51,918 7412 INFO ? odoo: database: odoo@127.0.0.1:5432
    2018-05-04 10:33:51,935 7412 INFO ? odoo.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069
    2018-05-04 10:33:51,949 7412 INFO odoo odoo.modules.loading: loading 1 modules...
    2018-05-04 10:33:52,335 7412 INFO odoo odoo.addons.base.ir.ir_actions_report: You need Wkhtmltopdf to print a pdf version of the reports.
    2018-05-04 10:33:52,584 7412 INFO odoo odoo.modules.loading: 1 modules loaded in 0.63s, 0 queries
    2018-05-04 10:33:52,795 7412 INFO odoo odoo.modules.loading: Modules loaded.
    2018-05-04 10:33:52,797 7412 ERROR odoo odoo.addons.base.res.res_lang: No language is active.
    2018-05-04 10:34:52,830 7412 WARNING ? odoo.addons.base.ir.ir_cron: Skipping database odoo because of modules to install/upgrade/remove.
    2018-05-04 10:34:53,866 7412 WARNING ? odoo.addons.base.ir.ir_cron: Skipping database odoo because of modules to install/upgrade/remove.
    2018-05-04 10:35:38,829 7412 INFO ? odoo.addons.sms.wizard.send_sms: The phonenumbers Python module is not available. Phone number validation will be skipped. Try pip3 install phonenumbers to install it.
    2018-05-04 10:35:39,105 7412 INFO ? odoo.http: HTTP Configuring static files
    2018-05-04 10:35:39,107 7412 INFO odoo odoo.addons.base.ir.ir_http: Generating routing map
    2018-05-04 10:35:39,137 7412 INFO odoo werkzeug: 127.0.0.1 - - [04/May/2018 10:35:39] "GET / HTTP/1.1" 303 -
    2018-05-04 10:35:39,154 7412 INFO odoo werkzeug: 127.0.0.1 - - [04/May/2018 10:35:39] "GET /web HTTP/1.1" 303 -
    2018-05-04 10:35:39,345 7412 INFO odoo werkzeug: 127.0.0.1 - - [04/May/2018 10:35:39] "GET /web/login HTTP/1.1" 500 -
    2018-05-04 10:35:39,363 7412 ERROR odoo werkzeug: Error on request:
    Traceback (most recent call last):
    File "/usr/lib/python3.4/site-packages/werkzeug/serving.py", line 205, in run_wsgi
    execute(self.server.app)
    File "/usr/lib/python3.4/site-packages/werkzeug/serving.py", line 193, in execute
    application_iter = app(environ, start_response)
    File "/opt/odoo/odoo/service/server.py", line 252, in app
    return self.app(e, s)
    File "/opt/odoo/odoo/service/wsgi_server.py", line 166, in application
    return application_unproxied(environ, start_response)
    File "/opt/odoo/odoo/service/wsgi_server.py", line 154, in application_unproxied
    result = handler(environ, start_response)
    File "/opt/odoo/odoo/http.py", line 1316, in call
    return self.dispatch(environ, start_response)
    File "/opt/odoo/odoo/http.py", line 1290, in call
    return self.app(environ, start_wrapped)
    File "/usr/lib/python3.4/site-packages/werkzeug/wsgi.py", line 599, in call
    return self.app(environ, start_response)
    File "/opt/odoo/odoo/http.py", line 1480, in dispatch
    result = ir_http._dispatch()
    File "/opt/odoo/odoo/addons/base/ir/ir_http.py", line 212, in _dispatch
    return cls._handle_exception(e)
    File "/opt/odoo/odoo/addons/base/ir/ir_http.py", line 182, in _handle_exception
    return request._handle_exception(exception)
    File "/opt/odoo/odoo/http.py", line 770, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
    File "/opt/odoo/odoo/http.py", line 310, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
    File "/opt/odoo/odoo/tools/pycompat.py", line 87, in reraise
    raise value
    File "/opt/odoo/odoo/addons/base/ir/ir_http.py", line 208, in _dispatch
    result = request.dispatch()
    File "/opt/odoo/odoo/http.py", line 829, in dispatch
    r = self._call_function(**self.params)
    File "/opt/odoo/odoo/http.py", line 342, in _call_function
    return checked_call(self.db, *args, **kwargs)
    File "/opt/odoo/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
    File "/opt/odoo/odoo/http.py", line 338, in checked_call
    result.flatten()
    File "/opt/odoo/odoo/http.py", line 1267, in flatten
    self.response.append(self.render())
    File "/opt/odoo/odoo/http.py", line 1260, in render
    return env["ir.ui.view"].render_template(self.template, self.qcontext)
    File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1189, in render_template
    return self.browse(self.get_view_id(template)).render(values, engine)
    File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1096, in get_view_id
    return self.env['ir.model.data'].xmlid_to_res_id(template, raise_if_not_found=True)
    File "/opt/odoo/odoo/addons/base/ir/ir_model.py", line 1332, in xmlid_to_res_id
    return self.xmlid_to_res_model_res_id(xmlid, raise_if_not_found)[1]
    File "/opt/odoo/odoo/addons/base/ir/ir_model.py", line 1323, in xmlid_to_res_model_res_id
    return self.xmlid_lookup(xmlid)[1:3]
    File "", line 2, in xmlid_lookup

    File "/opt/odoo/odoo/tools/cache.py", line 89, in lookup
    value = d[key] = self.method(*args, **kwargs)
    File "/opt/odoo/odoo/addons/base/ir/ir_model.py", line 1312, in xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % xmlid)
    ValueError: External ID not found in the system: web.login
    2018-05-04 10:35:47,538 7412 INFO odoo werkzeug: 127.0.0.1 - - [04/May/2018 10:35:47] "GET / HTTP/1.1" 303 -
    2018-05-04 10:35:47,559 7412 INFO odoo werkzeug: 127.0.0.1 - - [04/May/2018 10:35:47] "GET /web HTTP/1.1" 303 -
    2018-05-04 10:35:47,582 7412 INFO odoo werkzeug: 127.0.0.1 - - [04/May/2018 10:35:47] "GET /web/login HTTP/1.1" 500 -
    2018-05-04 10:35:47,595 7412 ERROR odoo werkzeug: Error on request:
    Traceback (most recent call last):
    File "/usr/lib/python3.4/site-packages/werkzeug/serving.py", line 205, in run_wsgi
    execute(self.server.app)
    File "/usr/lib/python3.4/site-packages/werkzeug/serving.py", line 193, in execute
    application_iter = app(environ, start_response)
    File "/opt/odoo/odoo/service/server.py", line 252, in app
    return self.app(e, s)
    File "/opt/odoo/odoo/service/wsgi_server.py", line 166, in application
    return application_unproxied(environ, start_response)
    File "/opt/odoo/odoo/service/wsgi_server.py", line 154, in application_unproxied
    result = handler(environ, start_response)
    File "/opt/odoo/odoo/http.py", line 1316, in call
    return self.dispatch(environ, start_response)
    File "/opt/odoo/odoo/http.py", line 1290, in call
    return self.app(environ, start_wrapped)
    File "/usr/lib/python3.4/site-packages/werkzeug/wsgi.py", line 599, in call
    return self.app(environ, start_response)
    File "/opt/odoo/odoo/http.py", line 1480, in dispatch
    result = ir_http._dispatch()
    File "/opt/odoo/odoo/addons/base/ir/ir_http.py", line 212, in _dispatch
    return cls._handle_exception(e)
    File "/opt/odoo/odoo/addons/base/ir/ir_http.py", line 182, in _handle_exception
    return request._handle_exception(exception)
    File "/opt/odoo/odoo/http.py", line 770, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
    File "/opt/odoo/odoo/http.py", line 310, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
    File "/opt/odoo/odoo/tools/pycompat.py", line 87, in reraise
    raise value
    File "/opt/odoo/odoo/addons/base/ir/ir_http.py", line 208, in _dispatch
    result = request.dispatch()
    File "/opt/odoo/odoo/http.py", line 829, in dispatch
    r = self._call_function(**self.params)
    File "/opt/odoo/odoo/http.py", line 342, in _call_function
    return checked_call(self.db, *args, **kwargs)
    File "/opt/odoo/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
    File "/opt/odoo/odoo/http.py", line 338, in checked_call
    result.flatten()
    File "/opt/odoo/odoo/http.py", line 1267, in flatten
    self.response.append(self.render())
    File "/opt/odoo/odoo/http.py", line 1260, in render
    return env["ir.ui.view"].render_template(self.template, self.qcontext)
    File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1189, in render_template
    return self.browse(self.get_view_id(template)).render(values, engine)
    File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1096, in get_view_id
    return self.env['ir.model.data'].xmlid_to_res_id(template, raise_if_not_found=True)
    File "/opt/odoo/odoo/addons/base/ir/ir_model.py", line 1332, in xmlid_to_res_id
    return self.xmlid_to_res_model_res_id(xmlid, raise_if_not_found)[1]
    File "/opt/odoo/odoo/addons/base/ir/ir_model.py", line 1323, in xmlid_to_res_model_res_id
    return self.xmlid_lookup(xmlid)[1:3]
    File "", line 2, in xmlid_lookup

    File "/opt/odoo/odoo/tools/cache.py", line 89, in lookup
    value = d[key] = self.method(*args, **kwargs)
    File "/opt/odoo/odoo/addons/base/ir/ir_model.py", line 1312, in xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % xmlid)
    ValueError: External ID not found in the system: web.login

    网上没有找到合适的方法解决,也不知道怎么解决了。
    请不吝指教。。。。。

    谢谢!