it-projects-llc / odoo-saas-tools

Odoo SaaS Tools — tools for SaaS Businesses. Sale and manage Odoo databases.
https://saas.it-projects.info
GNU Lesser General Public License v3.0
566 stars 579 forks source link

Create template DB button error: False werkzeug #73

Closed novaq closed 8 years ago

novaq commented 8 years ago

Hi!

We have the following setup: domain.com and sub.domain.com proxied by nginx to the same Odoo instance but each running their own database.

Configuration file:

[options]
admin_passwd = <PASS>
db_host = False
db_port = False
db_user = odoo
db_password = False
addons_path = /usr/lib/python2.7/dist-packages/openerp/addons
logfile = /var/log/odoo/odoo-server.log
addons_path=/opt/odoo/odoo-server/addons,/opt/odoo/custom/addons
dbfilter = %h
smtp_server = False

Nginx configuration:

server {
    listen 80;
    server_name sub.domain.com;
    location / {
        proxy_pass http://sub.domain.com:8069;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

After I press the red "Create template DB" button in the 6th step - "Create Plan" I get "Warning: Status Code - 500 Reason - INTERNAL SERVER ERROR". Error also appears without Nginx proxy.

Log excerpt:

2015-11-26 12:07:22,493 28769 INFO test_14 werkzeug: 10.0.1.2 - - [26/Nov/2015 12:07:22] "GET /saas_server/new_database?access_token=YT5DobJ3rVobuN3a2bHDI9B2hdCVMZ&expires_in=3600&token_type=Bearer&state=%7B%22lang%22%3A+%22en_US%22%2C+%22tz%22%3A+%22Europe%2FBerlin%22%2C+%22d%22%3A+%22test_14%22%2C+%22demo%22%3A+0%2C+%22is_template_db%22%3A+1%2C+%22addons%22%3A+%5B%5D%7D&redirect_uri=http%3A%2F%2Fsub.domain.com%3A80%2Fsaas_server%2Fnew_database&response_type=token&client_id=24695098-9436-11e5-81eb-00155dfe7603&scope=userinfo+force_login+trial+skiptheuse HTTP/1.0" 200 -
2015-11-26 12:07:22,506 28769 INFO domain.com requests.packages.urllib3.connectionpool: Starting new HTTP connection (1): sub.domain.com
2015-11-26 12:07:22,513 28769 INFO sub.domain.com openerp.addons.saas_server.controllers.main: sync_server post: {'access_token': u'PviQZ2TWQ0MgoP6NelSbOq0GlxcO0h', 'expires_in': u'3600', 'token_type': u'Bearer', 'state': u'{"d": "sub.domain.com", "client_id": "5f49c05e-8ed6-11e5-8003-00155dfe7603"}', 'redirect_uri': u'http://sub.domain.com:80/web', 'response_type': u'token', 'client_id': u'5f49c05e-8ed6-11e5-8003-00155dfe7603', 'scope': u'userinfo force_login trial skiptheuse'}
2015-11-26 12:07:22,531 28769 INFO domain.com werkzeug: 10.0.1.2 - - [26/Nov/2015 12:07:22] "GET /oauth2/tokeninfo?access_token=PviQZ2TWQ0MgoP6NelSbOq0GlxcO0h HTTP/1.0" 200 -
2015-11-26 12:07:22,542 28769 INFO t1.domain.com openerp.modules.loading: loading 1 modules...
2015-11-26 12:07:22,550 28769 INFO t1.domain.com openerp.modules.loading: 1 modules loaded in 0.01s, 0 queries
2015-11-26 12:07:22,560 28769 INFO t1.domain.com openerp.modules.loading: loading 24 modules...
2015-11-26 12:07:22,567 28769 INFO t1.domain.com openerp.modules.loading: 24 modules loaded in 0.01s, 0 queries
2015-11-26 12:07:22,839 28769 INFO t1.domain.com openerp.modules.loading: Modules loaded.
2015-11-26 12:07:22,852 28769 INFO False werkzeug: 10.0.1.2 - - [26/Nov/2015 12:07:22] "GET /saas_server/sync_server?access_token=PviQZ2TWQ0MgoP6NelSbOq0GlxcO0h&expires_in=3600&token_type=Bearer&state=%7B%22d%22%3A+%22sub.domain.com%22%2C+%22client_id%22%3A+%225f49c05e-8ed6-11e5-8003-00155dfe7603%22%7D&redirect_uri=http%3A%2F%2Fsub.domain.com%3A80%2Fweb&response_type=token&client_id=5f49c05e-8ed6-11e5-8003-00155dfe7603&scope=userinfo+force_login+trial+skiptheuse HTTP/1.0" 500 -
2015-11-26 12:07:22,853 28769 ERROR domain.com openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
  File "/opt/odoo/odoo-server/openerp/http.py", line 537, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo-server/openerp/http.py", line 574, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/odoo-server/openerp/http.py", line 310, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/http.py", line 307, in checked_call
    return self.endpoint(*a, **kw)
  File "/opt/odoo/odoo-server/openerp/http.py", line 803, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo-server/openerp/http.py", line 403, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 948, in call_button
    action = self._call_kw(model, method, args, {})
  File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 936, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/api.py", line 372, in old_api
    result = method(recs, *args, **kwargs)
  File "/opt/odoo/custom/addons/saas_portal/models/saas_portal.py", line 288, in create_template
    return self.action_sync_server()
  File "/opt/odoo/odoo-server/openerp/api.py", line 248, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/api.py", line 416, in new_api
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/opt/odoo/custom/addons/saas_portal/models/saas_portal.py", line 292, in action_sync_server
    self.server_id.action_sync_server()
  File "/opt/odoo/odoo-server/openerp/api.py", line 248, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/api.py", line 416, in new_api
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/opt/odoo/custom/addons/saas_portal/models/saas_portal.py", line 109, in action_sync_server
    raise Warning(msg)
Warning: Status Code - 500
Reason - INTERNAL SERVER ERROR
URL - http://sub.domain.com:80/saas_server/sync_server?access_token=PviQZ2TWQ0MgoP6NelSbOq0GlxcO0h&expires_in=3600&token_type=Bearer&state=%7B%22d%22%3A+%22sub.domain.com%22%2C+%22client_id%22%3A+%225f49c05e-8ed6-11e5-8003-00155dfe7603%22%7D&redirect_uri=http%3A%2F%2Fsub.domain.com%3A80%2Fweb&response_type=token&client_id=5f49c05e-8ed6-11e5-8003-00155dfe7603&scope=userinfo+force_login+trial+skiptheuse

2015-11-26 12:07:22,855 28769 INFO domain.com werkzeug: 10.0.1.2 - - [26/Nov/2015 12:07:22] "POST /web/dataset/call_button HTTP/1.0" 200 -
2015-11-26 12:07:22,864 28769 ERROR False werkzeug: Error on request:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/service/server.py", line 290, in app
    return self.app(e, s)
  File "/opt/odoo/odoo-server/openerp/service/wsgi_server.py", line 216, in application
    return application_unproxied(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/service/wsgi_server.py", line 202, in application_unproxied
    result = handler(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/http.py", line 1290, in __call__
    return self.dispatch(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/http.py", line 1264, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in __call__
    return self.app(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/http.py", line 1264, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in __call__
    return self.app(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/http.py", line 1264, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in __call__
    return self.app(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/http.py", line 1437, in dispatch
    result = ir_http._dispatch()
  File "/opt/odoo/odoo-server/addons/website/models/ir_http.py", line 148, in _dispatch
    resp = super(ir_http, self)._dispatch()
  File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_http.py", line 175, in _dispatch
    return self._handle_exception(e)
  File "/opt/odoo/odoo-server/addons/website/models/ir_http.py", line 196, in _handle_exception
    return super(ir_http, self)._handle_exception(exception)
  File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_http.py", line 145, in _handle_exception
    return request._handle_exception(exception)
  File "/opt/odoo/odoo-server/openerp/http.py", line 666, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_http.py", line 171, in _dispatch
    result = request.dispatch()
  File "/opt/odoo/odoo-server/openerp/http.py", line 684, in dispatch
    r = self._call_function(**self.params)
  File "/opt/odoo/odoo-server/openerp/http.py", line 310, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/http.py", line 307, in checked_call
    return self.endpoint(*a, **kw)
  File "/opt/odoo/odoo-server/openerp/http.py", line 803, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo-server/openerp/http.py", line 403, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/custom/addons/saas_server/controllers/main.py", line 233, in stats
    request.env['saas_server.client'].update_all()
  File "/opt/odoo/odoo-server/openerp/api.py", line 248, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/custom/addons/saas_server/models/saas_server.py", line 188, in update_all
    self.sudo().search([]).update()
  File "/opt/odoo/odoo-server/openerp/api.py", line 248, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/api.py", line 416, in new_api
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/opt/odoo/custom/addons/saas_server/models/saas_server.py", line 193, in update
    registry = self.registry()[0]
  File "/opt/odoo/odoo-server/openerp/api.py", line 248, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/api.py", line 416, in new_api
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/opt/odoo/custom/addons/saas_server/models/saas_server.py", line 58, in registry
    return m.get(self.name, **kwargs)
  File "/opt/odoo/odoo-server/openerp/modules/registry.py", line 339, in get
    update_module)
  File "/opt/odoo/odoo-server/openerp/modules/registry.py", line 356, in new
    registry = Registry(db_name)
  File "/opt/odoo/odoo-server/openerp/modules/registry.py", line 60, in __init__
    self._db = openerp.sql_db.db_connect(db_name)
  File "/opt/odoo/odoo-server/openerp/sql_db.py", line 623, in db_connect
    db, uri = dsn(to)
  File "/opt/odoo/odoo-server/openerp/sql_db.py", line 597, in dsn
    if db_or_uri.startswith(('postgresql://', 'postgres://')):
AttributeError: 'bool' object has no attribute 'startswith'
saltonmassally commented 8 years ago

@novaq db_name is not being passed to openerp.sql_db.db_connect() which might mean the template name is not set... when you debug what is the value for self.name at "/opt/odoo/custom/addons/saas_server/models/saas_server.py", line 58

saltonmassally commented 8 years ago

@yelizariev looking at https://github.com/yelizariev/odoo-saas-tools/blob/9.0/saas_server/models/saas_server.py#L27 it appears that we have 'saas_server.client' without a name which doesn't make much sense as this will be the name of the db... shouldn't we make it required and fail earlier if not supplied?

novaq commented 8 years ago

@tarzan0820 self.name appears in multiple places. Annotated with ==== m.get/new (lines 56 and 58):

2015-12-04 11:09:53,308 1799 INFO domain.com requests.packages.urllib3.connectionpool: Starting new HTTP connection (1): sub.domain.com
2015-12-04 11:09:53,323 1799 INFO sub.domain.com openerp.modules.loading: loading 1 modules...
2015-12-04 11:09:53,330 1799 INFO sub.domain.com openerp.modules.loading: 1 modules loaded in 0.01s, 0 queries
2015-12-04 11:09:53,341 1799 INFO sub.domain.com openerp.modules.loading: loading 28 modules...
2015-12-04 11:09:53,353 1799 INFO sub.domain.com openerp.modules.loading: 28 modules loaded in 0.01s, 0 queries
2015-12-04 11:09:53,651 1799 INFO sub.domain.com openerp.modules.loading: Modules loaded.
2015-12-04 11:09:53,651 1799 INFO sub.domain.com openerp.addons.base.ir.ir_http: Generating routing map
2015-12-04 11:09:53,756 1799 INFO sub.domain.com openerp.addons.saas_server.controllers.main: new_database post: {'access_token': u'Y4hEnaQrSEqge4nGe5f8aotmLMr7Rc', 'expires_in': u'3600', 'token_type': u'Bearer', 'state': u'{"lang": "en_US", "tz": "Europe/Ljubljana", "d": "test_06", "demo": 0, "is_template_db": 1, "addons": []}', 'redirect_uri': u'http://sub.domain.com:80/saas_server/new_database', 'response_type': u'token', 'client_id': u'88d8230a-9a77-11e5-b1a6-00155dfe7603', 'scope': u'userinfo force_login trial skiptheuse'}
2015-12-04 11:09:53,783 1799 INFO sub.domain.com openerp.service.db: Create database `test_06`.
2015-12-04 11:09:57,246 1799 INFO test_06 openerp.modules.loading: loading 1 modules...
2015-12-04 11:09:57,434 1799 INFO test_06 openerp.modules.module: module base: creating or updating database tables
2015-12-04 11:09:58,852 1799 INFO test_06 openerp.models: Computing parent left and right for table ir_ui_menu...
2015-12-04 11:10:04,994 1799 INFO test_06 openerp.models: Computing parent left and right for table res_partner_category...
2015-12-04 11:10:08,359 1799 INFO test_06 openerp.models: storing computed values of fields.function 'web_icon_data'
2015-12-04 11:10:08,359 1799 INFO test_06 openerp.models: storing computed values of fields.function 'needaction_enabled'
2015-12-04 11:10:08,359 1799 INFO test_06 openerp.models: storing computed values of fields.function 'web_icon_hover_data'
2015-12-04 11:10:08,360 1799 INFO test_06 openerp.models: storing computed values of fields.function 'report_file'
2015-12-04 11:10:08,360 1799 INFO test_06 openerp.models: storing computed values of fields.function 'crud_model_name'
2015-12-04 11:10:08,360 1799 INFO test_06 openerp.models: storing computed values of fields.function 'wkf_model_name'
2015-12-04 11:10:08,360 1799 INFO test_06 openerp.models: storing computed values of fields.function 'global'
2015-12-04 11:10:08,361 1799 INFO test_06 openerp.models: storing computed values of fields.function 'menus_by_module'
2015-12-04 11:10:08,523 1799 INFO test_06 openerp.models: storing computed values of fields.function 'reports_by_module'
2015-12-04 11:10:08,576 1799 INFO test_06 openerp.models: storing computed values of fields.function 'views_by_module'
2015-12-04 11:10:08,631 1799 INFO test_06 openerp.models: storing computed values of fields.function 'image_small'
2015-12-04 11:10:08,632 1799 INFO test_06 openerp.models: storing computed values of fields.function 'display_name'
2015-12-04 11:10:08,634 1799 INFO test_06 openerp.models: storing computed values of fields.function 'image_medium'
2015-12-04 11:10:08,634 1799 INFO test_06 openerp.models: storing computed values of fields.function 'commercial_partner_id'
2015-12-04 11:10:08,635 1799 INFO test_06 openerp.models: storing computed values of fields.function 'logo_web'
2015-12-04 11:10:08,636 1799 INFO test_06 openerp.models: storing computed values of fields.function 'email'
2015-12-04 11:10:08,636 1799 INFO test_06 openerp.models: storing computed values of fields.function 'phone'
2015-12-04 11:10:08,652 1799 INFO test_06 openerp.modules.loading: loading base/base_data.xml
2015-12-04 11:10:08,794 1799 INFO test_06 openerp.modules.loading: loading base/res/res_currency_data.xml
2015-12-04 11:10:09,482 1799 INFO test_06 openerp.modules.loading: loading base/res/res_country_data.xml
2015-12-04 11:10:10,124 1799 INFO test_06 openerp.modules.loading: loading base/security/base_security.xml
2015-12-04 11:10:10,205 1799 INFO test_06 openerp.modules.loading: loading base/base_menu.xml
2015-12-04 11:10:10,322 1799 INFO test_06 openerp.modules.loading: loading base/res/res_config.xml
2015-12-04 11:10:10,338 1799 INFO test_06 openerp.modules.loading: loading base/res/res.country.state.csv
2015-12-04 11:10:10,473 1799 INFO test_06 openerp.modules.loading: loading base/ir/ir_actions.xml
2015-12-04 11:10:10,742 1799 INFO test_06 openerp.modules.loading: loading base/ir/ir_config_parameter_view.xml
2015-12-04 11:10:10,783 1799 INFO test_06 openerp.modules.loading: loading base/ir/ir_cron_view.xml
2015-12-04 11:10:10,834 1799 INFO test_06 openerp.modules.loading: loading base/ir/ir_filters.xml
2015-12-04 11:10:10,885 1799 INFO test_06 openerp.modules.loading: loading base/ir/ir_mail_server_view.xml
2015-12-04 11:10:10,930 1799 INFO test_06 openerp.modules.loading: loading base/ir/ir_model_view.xml
2015-12-04 11:10:11,213 1799 INFO test_06 openerp.modules.loading: loading base/ir/ir_attachment_view.xml
2015-12-04 11:10:11,264 1799 INFO test_06 openerp.modules.loading: loading base/ir/ir_rule_view.xml
2015-12-04 11:10:11,321 1799 INFO test_06 openerp.modules.loading: loading base/ir/ir_sequence_view.xml
2015-12-04 11:10:11,426 1799 INFO test_06 openerp.modules.loading: loading base/ir/ir_translation_view.xml
2015-12-04 11:10:11,482 1799 INFO test_06 openerp.modules.loading: loading base/ir/ir_ui_menu_view.xml
2015-12-04 11:10:11,532 1799 INFO test_06 openerp.modules.loading: loading base/ir/ir_ui_view_view.xml
2015-12-04 11:10:11,633 1799 INFO test_06 openerp.modules.loading: loading base/ir/ir_values_view.xml
2015-12-04 11:10:11,731 1799 INFO test_06 openerp.modules.loading: loading base/ir/osv_memory_autovacuum.xml
2015-12-04 11:10:11,739 1799 INFO test_06 openerp.modules.loading: loading base/ir/ir_model_report.xml
2015-12-04 11:10:11,755 1799 INFO test_06 openerp.modules.loading: loading base/ir/ir_logging_view.xml
2015-12-04 11:10:11,811 1799 INFO test_06 openerp.modules.loading: loading base/ir/ir_qweb.xml
2015-12-04 11:10:11,822 1799 INFO test_06 openerp.modules.loading: loading base/workflow/workflow_view.xml
2015-12-04 11:10:12,120 1799 INFO test_06 openerp.modules.loading: loading base/module/module_view.xml
2015-12-04 11:10:12,274 1799 INFO test_06 openerp.modules.loading: loading base/module/module_data.xml
2015-12-04 11:10:12,399 1799 INFO test_06 openerp.modules.loading: loading base/module/module_report.xml
2015-12-04 11:10:12,408 1799 INFO test_06 openerp.modules.loading: loading base/module/wizard/base_module_update_view.xml
2015-12-04 11:10:12,434 1799 INFO test_06 openerp.modules.loading: loading base/module/wizard/base_language_install_view.xml
2015-12-04 11:10:12,458 1799 INFO test_06 openerp.modules.loading: loading base/module/wizard/base_import_language_view.xml
2015-12-04 11:10:12,482 1799 INFO test_06 openerp.modules.loading: loading base/module/wizard/base_module_upgrade_view.xml
2015-12-04 11:10:12,519 1799 INFO test_06 openerp.modules.loading: loading base/module/wizard/base_module_configuration_view.xml
2015-12-04 11:10:12,528 1799 INFO test_06 openerp.modules.loading: loading base/module/wizard/base_export_language_view.xml
2015-12-04 11:10:12,553 1799 INFO test_06 openerp.modules.loading: loading base/module/wizard/base_update_translations_view.xml
2015-12-04 11:10:12,580 1799 INFO test_06 openerp.modules.loading: loading base/module/wizard/base_module_immediate_install.xml
2015-12-04 11:10:12,592 1799 INFO test_06 openerp.modules.loading: loading base/res/res_company_view.xml
2015-12-04 11:10:12,716 1799 INFO test_06 openerp.modules.loading: loading base/res/res_request_view.xml
2015-12-04 11:10:12,755 1799 INFO test_06 openerp.modules.loading: loading base/res/res_lang_view.xml
2015-12-04 11:10:12,798 1799 INFO test_06 openerp.modules.loading: loading base/res/res_partner_report.xml
2015-12-04 11:10:12,808 1799 INFO test_06 openerp.modules.loading: loading base/res/res_partner_view.xml
2015-12-04 11:10:13,034 1799 INFO test_06 openerp.modules.loading: loading base/res/res_bank_view.xml
2015-12-04 11:10:13,144 1799 INFO test_06 openerp.modules.loading: loading base/res/res_country_view.xml
2015-12-04 11:10:13,251 1799 INFO test_06 openerp.modules.loading: loading base/res/res_currency_view.xml
2015-12-04 11:10:13,294 1799 INFO test_06 openerp.modules.loading: loading base/res/res_users_view.xml
2015-12-04 11:10:13,507 1799 INFO test_06 openerp.modules.loading: loading base/res/res_partner_data.xml
2015-12-04 11:10:13,537 1799 INFO test_06 openerp.modules.loading: loading base/res/ir_property_view.xml
2015-12-04 11:10:13,581 1799 INFO test_06 openerp.modules.loading: loading base/res/res_security.xml
2015-12-04 11:10:13,641 1799 INFO test_06 openerp.modules.loading: loading base/security/ir.model.access.csv
2015-12-04 11:10:14,978 1799 INFO test_06 openerp.modules.loading: 1 modules loaded in 17.73s, 0 queries
2015-12-04 11:10:15,150 1799 INFO test_06 openerp.modules.loading: updating modules list
2015-12-04 11:10:16,113 1799 INFO test_06 openerp.modules.loading: loading 14 modules...
2015-12-04 11:10:16,281 1799 INFO test_06 openerp.modules.module: module auth_crypt: creating or updating database tables
2015-12-04 11:10:16,350 1799 INFO test_06 openerp.addons.auth_crypt.auth_crypt: Hashing passwords, may be slow for databases with many users...
2015-12-04 11:10:16,815 1799 INFO test_06 openerp.modules.module: module web: creating or updating database tables
2015-12-04 11:10:16,817 1799 INFO test_06 openerp.modules.loading: loading web/views/webclient_templates.xml
2015-12-04 11:10:17,145 1799 INFO test_06 openerp.modules.module: module base_import: creating or updating database tables
2015-12-04 11:10:18,214 1799 INFO test_06 openerp.modules.loading: loading base_import/security/ir.model.access.csv
2015-12-04 11:10:18,280 1799 INFO test_06 openerp.modules.loading: loading base_import/views/base_import.xml
2015-12-04 11:10:18,493 1799 INFO test_06 openerp.modules.module: module bus: creating or updating database tables
2015-12-04 11:10:18,576 1799 INFO test_06 openerp.modules.loading: loading bus/views/bus.xml
2015-12-04 11:10:18,597 1799 INFO test_06 openerp.modules.loading: loading bus/security/ir.model.access.csv
2015-12-04 11:10:18,812 1799 INFO test_06 openerp.modules.module: module report: creating or updating database tables
2015-12-04 11:10:19,177 1799 INFO test_06 openerp.modules.loading: loading report/views/layouts.xml
2015-12-04 11:10:19,233 1799 INFO test_06 openerp.modules.loading: loading report/views/views.xml
2015-12-04 11:10:19,317 1799 INFO test_06 openerp.modules.loading: loading report/data/report_paperformat.xml
2015-12-04 11:10:19,326 1799 INFO test_06 openerp.modules.loading: loading report/security/ir.model.access.csv
2015-12-04 11:10:19,341 1799 INFO test_06 openerp.modules.loading: loading report/views/report.xml
2015-12-04 11:10:19,622 1799 INFO test_06 openerp.modules.module: module web_calendar: creating or updating database tables
2015-12-04 11:10:19,624 1799 INFO test_06 openerp.modules.loading: loading web_calendar/views/web_calendar.xml
2015-12-04 11:10:19,850 1799 INFO test_06 openerp.modules.module: module web_diagram: creating or updating database tables
2015-12-04 11:10:19,853 1799 INFO test_06 openerp.modules.loading: loading web_diagram/views/web_diagram.xml
2015-12-04 11:10:20,091 1799 INFO test_06 openerp.modules.module: module web_gantt: creating or updating database tables
2015-12-04 11:10:20,094 1799 INFO test_06 openerp.modules.loading: loading web_gantt/views/web_gantt.xml
2015-12-04 11:10:20,325 1799 INFO test_06 openerp.modules.module: module web_graph: creating or updating database tables
2015-12-04 11:10:20,328 1799 INFO test_06 openerp.modules.loading: loading web_graph/views/web_graph.xml
2015-12-04 11:10:20,564 1799 INFO test_06 openerp.modules.module: module web_kanban: creating or updating database tables
2015-12-04 11:10:20,567 1799 INFO test_06 openerp.modules.loading: loading web_kanban/views/web_kanban.xml
2015-12-04 11:10:20,806 1799 INFO test_06 openerp.modules.module: module web_view_editor: creating or updating database tables
2015-12-04 11:10:20,810 1799 INFO test_06 openerp.modules.loading: loading web_view_editor/views/web_view_editor.xml
2015-12-04 11:10:21,054 1799 INFO test_06 openerp.modules.module: module web_kanban_gauge: creating or updating database tables
2015-12-04 11:10:21,059 1799 INFO test_06 openerp.modules.loading: loading web_kanban_gauge/views/web_kanban_gauge.xml
2015-12-04 11:10:21,301 1799 INFO test_06 openerp.modules.module: module web_tests: creating or updating database tables
2015-12-04 11:10:21,306 1799 INFO test_06 openerp.modules.loading: loading web_tests/views/web_tests.xml
2015-12-04 11:10:21,372 1799 INFO test_06 openerp.modules.loading: 14 modules loaded in 5.26s, 0 queries
2015-12-04 11:10:21,651 1799 INFO test_06 openerp.modules.loading: Modules loaded.
2015-12-04 11:10:21,652 1799 INFO test_06 openerp.models: Computing parent left and right for table ir_ui_menu...
2015-12-04 11:10:21,994 1799 INFO sub.domain.com openerp.addons.saas_server.models.saas_server: ==== m.get:
2015-12-04 11:10:21,995 1799 INFO sub.domain.com openerp.addons.saas_server.models.saas_server: test_06
2015-12-04 11:10:22,126 1799 INFO test_06 openerp.addons.saas_server.models.saas_server: ==== m.new:
2015-12-04 11:10:22,126 1799 INFO test_06 openerp.addons.saas_server.models.saas_server: test_06
2015-12-04 11:10:22,134 1799 INFO test_06 openerp.modules.loading: loading 1 modules...
2015-12-04 11:10:22,211 1799 INFO test_06 openerp.modules.loading: 1 modules loaded in 0.08s, 0 queries
2015-12-04 11:10:22,387 1799 INFO test_06 openerp.modules.loading: updating modules list
2015-12-04 11:10:23,225 1799 INFO test_06 openerp.modules.loading: loading 14 modules...
2015-12-04 11:10:23,233 1799 INFO test_06 openerp.modules.loading: 14 modules loaded in 0.01s, 0 queries
2015-12-04 11:10:23,238 1799 INFO test_06 openerp.modules.loading: loading 24 modules...
2015-12-04 11:10:23,427 1799 INFO test_06 openerp.modules.module: module saas_utils: creating or updating database tables
2015-12-04 11:10:23,748 1799 INFO test_06 openerp.modules.module: module base_setup: creating or updating database tables
2015-12-04 11:10:24,021 1799 INFO test_06 openerp.modules.loading: loading base_setup/security/ir.model.access.csv
2015-12-04 11:10:24,022 1799 INFO test_06 openerp.modules.loading: loading base_setup/base_setup_views.xml
2015-12-04 11:10:24,054 1799 INFO test_06 openerp.modules.loading: loading base_setup/res_config_view.xml
2015-12-04 11:10:24,093 1799 INFO test_06 openerp.modules.loading: loading base_setup/res_partner_view.xml
2015-12-04 11:10:24,111 1799 INFO test_06 openerp.modules.loading: loading base_setup/views/base_setup.xml
2015-12-04 11:10:24,412 1799 INFO test_06 openerp.modules.module: module mail: creating or updating database tables
2015-12-04 11:10:25,891 1799 INFO test_06 openerp.addons.mail.mail_alias: Mail alias created for res.users admin (id 1)
2015-12-04 11:10:25,896 1799 INFO test_06 openerp.addons.mail.mail_alias: Mail alias created for res.users public (id 3)
2015-12-04 11:10:25,896 1799 INFO test_06 openerp.addons.auth_crypt.auth_crypt: Hashing passwords, may be slow for databases with many users...
2015-12-04 11:10:26,659 1799 INFO test_06 openerp.models: storing computed values of fields.function 'image_small'
2015-12-04 11:10:26,660 1799 INFO test_06 openerp.models: storing computed values of fields.function 'image_medium'
2015-12-04 11:10:26,661 1799 INFO test_06 openerp.modules.loading: loading mail/wizard/invite_view.xml
2015-12-04 11:10:26,672 1799 INFO test_06 openerp.modules.loading: loading mail/wizard/mail_compose_message_view.xml
2015-12-04 11:10:26,694 1799 INFO test_06 openerp.modules.loading: loading mail/mail_message_subtype.xml
2015-12-04 11:10:26,727 1799 INFO test_06 openerp.modules.loading: loading mail/res_config_view.xml
2015-12-04 11:10:26,744 1799 INFO test_06 openerp.modules.loading: loading mail/mail_message_view.xml
2015-12-04 11:10:26,797 1799 INFO test_06 openerp.modules.loading: loading mail/mail_mail_view.xml
2015-12-04 11:10:26,842 1799 INFO test_06 openerp.modules.loading: loading mail/mail_followers_view.xml
2015-12-04 11:10:26,894 1799 INFO test_06 openerp.modules.loading: loading mail/mail_thread_view.xml
2015-12-04 11:10:26,978 1799 INFO test_06 openerp.modules.loading: loading mail/mail_group_view.xml
2015-12-04 11:10:27,049 1799 INFO test_06 openerp.modules.loading: loading mail/res_partner_view.xml
2015-12-04 11:10:27,078 1799 INFO test_06 openerp.modules.loading: loading mail/data/mail_data.xml
2015-12-04 11:10:27,118 1799 INFO test_06 openerp.modules.loading: loading mail/data/mail_group_data.xml
2015-12-04 11:10:27,184 1799 INFO test_06 openerp.modules.loading: loading mail/security/mail_security.xml
2015-12-04 11:10:27,210 1799 INFO test_06 openerp.modules.loading: loading mail/security/ir.model.access.csv
2015-12-04 11:10:27,293 1799 INFO test_06 openerp.modules.loading: loading mail/mail_alias_view.xml
2015-12-04 11:10:27,331 1799 INFO test_06 openerp.modules.loading: loading mail/res_users_view.xml
2015-12-04 11:10:27,415 1799 INFO test_06 openerp.modules.loading: loading mail/views/mail.xml
2015-12-04 11:10:27,868 1799 INFO test_06 openerp.modules.module: module email_template: creating or updating database tables
2015-12-04 11:10:28,676 1799 INFO test_06 openerp.models: storing computed values of fields.function 'model'
2015-12-04 11:10:28,676 1799 INFO test_06 openerp.models: storing computed values of fields.function 'model'
2015-12-04 11:10:28,678 1799 INFO test_06 openerp.modules.loading: loading email_template/wizard/email_template_preview_view.xml
2015-12-04 11:10:28,694 1799 INFO test_06 openerp.modules.loading: loading email_template/email_template_view.xml
2015-12-04 11:10:28,737 1799 INFO test_06 openerp.modules.loading: loading email_template/res_partner_view.xml
2015-12-04 11:10:28,870 1799 INFO test_06 openerp.modules.loading: loading email_template/ir_actions_view.xml
2015-12-04 11:10:28,910 1799 INFO test_06 openerp.modules.loading: loading email_template/wizard/mail_compose_message_view.xml
2015-12-04 11:10:28,927 1799 INFO test_06 openerp.modules.loading: loading email_template/security/ir.model.access.csv
2015-12-04 11:10:29,284 1799 INFO test_06 openerp.modules.module: module fetchmail: creating or updating database tables
2015-12-04 11:10:29,637 1799 INFO test_06 openerp.modules.loading: loading fetchmail/fetchmail_data.xml
2015-12-04 11:10:29,646 1799 INFO test_06 openerp.modules.loading: loading fetchmail/fetchmail_view.xml
2015-12-04 11:10:29,727 1799 INFO test_06 openerp.modules.loading: loading fetchmail/security/ir.model.access.csv
2015-12-04 11:10:29,734 1799 INFO test_06 openerp.modules.loading: loading fetchmail/fetchmail_installer_view.xml
2015-12-04 11:10:30,027 1799 INFO test_06 openerp.modules.module: module share: creating or updating database tables
2015-12-04 11:10:30,134 1799 INFO test_06 openerp.addons.auth_crypt.auth_crypt: Hashing passwords, may be slow for databases with many users...
2015-12-04 11:10:30,486 1799 INFO test_06 openerp.models: storing computed values of fields.function 'share'
2015-12-04 11:10:30,494 1799 INFO test_06 openerp.modules.loading: loading share/security/share_security.xml
2015-12-04 11:10:30,609 1799 INFO test_06 openerp.modules.loading: loading share/security/ir.model.access.csv
2015-12-04 11:10:30,617 1799 INFO test_06 openerp.modules.loading: loading share/res_users_view.xml
2015-12-04 11:10:30,679 1799 INFO test_06 openerp.modules.loading: loading share/wizard/share_wizard_view.xml
2015-12-04 11:10:30,715 1799 INFO test_06 openerp.modules.loading: loading share/share_data.xml
2015-12-04 11:10:30,734 1799 INFO test_06 openerp.modules.loading: loading share/views/share.xml
2015-12-04 11:10:31,105 1799 INFO test_06 openerp.modules.module: module auth_signup: creating or updating database tables
2015-12-04 11:10:31,245 1799 INFO test_06 openerp.addons.auth_crypt.auth_crypt: Hashing passwords, may be slow for databases with many users...
2015-12-04 11:10:31,291 1799 INFO test_06 openerp.modules.loading: loading auth_signup/auth_signup_data.xml
2015-12-04 11:10:31,422 1799 INFO test_06 openerp.modules.loading: loading auth_signup/res_config.xml
2015-12-04 11:10:31,440 1799 INFO test_06 openerp.modules.loading: loading auth_signup/res_users_view.xml
2015-12-04 11:10:31,471 1799 INFO test_06 openerp.modules.loading: loading auth_signup/views/auth_signup_login.xml
2015-12-04 11:10:31,820 1799 INFO test_06 openerp.modules.module: module auth_oauth: creating or updating database tables
2015-12-04 11:10:32,093 1799 INFO test_06 openerp.addons.auth_crypt.auth_crypt: Hashing passwords, may be slow for databases with many users...
2015-12-04 11:10:32,204 1799 INFO test_06 openerp.modules.loading: loading auth_oauth/res_users.xml
2015-12-04 11:10:32,236 1799 INFO test_06 openerp.modules.loading: loading auth_oauth/auth_oauth_data.xml
2015-12-04 11:10:32,246 1799 INFO test_06 openerp.modules.loading: loading auth_oauth/auth_oauth_data.yml
2015-12-04 11:10:32,249 1799 INFO test_06 openerp.modules.loading: loading auth_oauth/auth_oauth_view.xml
2015-12-04 11:10:32,281 1799 INFO test_06 openerp.modules.loading: loading auth_oauth/security/ir.model.access.csv
2015-12-04 11:10:32,289 1799 INFO test_06 openerp.modules.loading: loading auth_oauth/res_config.xml
2015-12-04 11:10:32,309 1799 INFO test_06 openerp.modules.loading: loading auth_oauth/views/auth_oauth_login.xml
2015-12-04 11:10:32,685 1799 INFO test_06 openerp.modules.module: module auth_oauth_check_client_id: creating or updating database tables
2015-12-04 11:10:32,771 1799 INFO test_06 openerp.addons.auth_crypt.auth_crypt: Hashing passwords, may be slow for databases with many users...
2015-12-04 11:10:33,042 1799 INFO test_06 openerp.modules.module: module saas_client: creating or updating database tables
2015-12-04 11:10:33,148 1799 INFO test_06 openerp.addons.auth_crypt.auth_crypt: Hashing passwords, may be slow for databases with many users...
2015-12-04 11:10:33,162 1799 INFO test_06 openerp.modules.loading: loading saas_client/views/saas_client.xml
2015-12-04 11:10:33,195 1799 INFO test_06 openerp.modules.loading: loading saas_client/security/rules.xml
2015-12-04 11:10:33,196 1799 INFO test_06 openerp.modules.loading: loading saas_client/security/groups.xml
2015-12-04 11:10:33,278 1799 INFO test_06 openerp.modules.loading: loading saas_client/data/ir_cron.xml
2015-12-04 11:10:33,282 1799 INFO test_06 openerp.modules.loading: loading saas_client/data/auth_oauth_data.xml
2015-12-04 11:10:33,327 1799 INFO test_06 openerp.modules.loading: 24 modules loaded in 10.09s, 0 queries
2015-12-04 11:10:33,685 1799 INFO test_06 openerp.modules.loading: Modules loaded.
2015-12-04 11:10:33,686 1799 INFO test_06 openerp.models: Computing parent left and right for table ir_ui_menu...
2015-12-04 11:10:33,712 1799 INFO test_06 openerp.addons.saas_server.models.saas_server: ==== m.get:
2015-12-04 11:10:33,713 1799 INFO test_06 openerp.addons.saas_server.models.saas_server: test_06
2015-12-04 11:10:34,274 1799 INFO test_06 openerp.addons.mail.mail_mail: Mail with ID 1 and Message-Id u'<1449227433.942416906356812.278124688442036-openerp-5-res.users@domain>' successfully sent
2015-12-04 11:10:34,306 1799 INFO test_06 werkzeug: 192.168.254.127 - - [04/Dec/2015 11:10:34] "GET /saas_server/new_database?access_token=Y4hEnaQrSEqge4nGe5f8aotmLMr7Rc&expires_in=3600&token_type=Bearer&state=%7B%22lang%22%3A+%22en_US%22%2C+%22tz%22%3A+%22Europe%2FLjubljana%22%2C+%22d%22%3A+%22test_06%22%2C+%22demo%22%3A+0%2C+%22is_template_db%22%3A+1%2C+%22addons%22%3A+%5B%5D%7D&redirect_uri=http%3A%2F%2Fsub.domain.com%3A80%2Fsaas_server%2Fnew_database&response_type=token&client_id=88d8230a-9a77-11e5-b1a6-00155dfe7603&scope=userinfo+force_login+trial+skiptheuse HTTP/1.0" 200 -
2015-12-04 11:10:34,319 1799 INFO domain.com requests.packages.urllib3.connectionpool: Starting new HTTP connection (1): sub.domain.com
2015-12-04 11:10:34,326 1799 INFO sub.domain.com openerp.addons.saas_server.controllers.main: sync_server post: {'access_token': u'ABDolmk8gmSSmVs4RD1Vi26MDjcjYM', 'expires_in': u'3600', 'token_type': u'Bearer', 'state': u'{"d": "sub.domain.com", "client_id": "5f49c05e-8ed6-11e5-8003-00155dfe7603"}', 'redirect_uri': u'http://sub.domain.com:80/web', 'response_type': u'token', 'client_id': u'5f49c05e-8ed6-11e5-8003-00155dfe7603', 'scope': u'userinfo force_login trial skiptheuse'}
2015-12-04 11:10:34,340 1799 INFO domain.com werkzeug: 192.168.254.127 - - [04/Dec/2015 11:10:34] "GET /oauth2/tokeninfo?access_token=ABDolmk8gmSSmVs4RD1Vi26MDjcjYM HTTP/1.0" 200 -
2015-12-04 11:10:34,341 1799 INFO sub.domain.com openerp.addons.saas_server.models.saas_server: ==== m.get:
2015-12-04 11:10:34,343 1799 INFO sub.domain.com openerp.addons.saas_server.models.saas_server: t1.domain.com
2015-12-04 11:10:34,348 1799 INFO t1.domain.com openerp.modules.loading: loading 1 modules...
2015-12-04 11:10:34,355 1799 INFO t1.domain.com openerp.modules.loading: 1 modules loaded in 0.01s, 0 queries
2015-12-04 11:10:34,365 1799 INFO t1.domain.com openerp.modules.loading: loading 24 modules...
2015-12-04 11:10:34,372 1799 INFO t1.domain.com openerp.modules.loading: 24 modules loaded in 0.01s, 0 queries
2015-12-04 11:10:34,636 1799 INFO t1.domain.com openerp.modules.loading: Modules loaded.
2015-12-04 11:10:34,643 1799 INFO sub.domain.com openerp.addons.saas_server.models.saas_server: ==== m.get:
2015-12-04 11:10:34,644 1799 INFO sub.domain.com openerp.addons.saas_server.models.saas_server: False
2015-12-04 11:10:34,648 1799 INFO False werkzeug: 192.168.254.127 - - [04/Dec/2015 11:10:34] "GET /saas_server/sync_server?access_token=ABDolmk8gmSSmVs4RD1Vi26MDjcjYM&expires_in=3600&token_type=Bearer&state=%7B%22d%22%3A+%22sub.domain.com%22%2C+%22client_id%22%3A+%225f49c05e-8ed6-11e5-8003-00155dfe7603%22%7D&redirect_uri=http%3A%2F%2Fsub.domain.com%3A80%2Fweb&response_type=token&client_id=5f49c05e-8ed6-11e5-8003-00155dfe7603&scope=userinfo+force_login+trial+skiptheuse HTTP/1.0" 500 -
2015-12-04 11:10:34,649 1799 ERROR domain.com openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
  File "/opt/odoo/odoo-server/openerp/http.py", line 537, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo-server/openerp/http.py", line 574, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/odoo-server/openerp/http.py", line 310, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/http.py", line 307, in checked_call
    return self.endpoint(*a, **kw)
  File "/opt/odoo/odoo-server/openerp/http.py", line 803, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo-server/openerp/http.py", line 403, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 948, in call_button
    action = self._call_kw(model, method, args, {})
  File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 936, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/api.py", line 372, in old_api
    result = method(recs, *args, **kwargs)
  File "/opt/odoo/custom/addons/saas_portal/models/saas_portal.py", line 288, in create_template
    return self.action_sync_server()
  File "/opt/odoo/odoo-server/openerp/api.py", line 248, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/api.py", line 416, in new_api
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/opt/odoo/custom/addons/saas_portal/models/saas_portal.py", line 292, in action_sync_server
    self.server_id.action_sync_server()
  File "/opt/odoo/odoo-server/openerp/api.py", line 248, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/api.py", line 416, in new_api
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/opt/odoo/custom/addons/saas_portal/models/saas_portal.py", line 109, in action_sync_server
    raise Warning(msg)
Warning: Status Code - 500
Reason - INTERNAL SERVER ERROR
URL - http://sub.domain.com:80/saas_server/sync_server?access_token=ABDolmk8gmSSmVs4RD1Vi26MDjcjYM&expires_in=3600&token_type=Bearer&state=%7B%22d%22%3A+%22sub.domain.com%22%2C+%22client_id%22%3A+%225f49c05e-8ed6-11e5-8003-00155dfe7603%22%7D&redirect_uri=http%3A%2F%2Fsub.domain.com%3A80%2Fweb&response_type=token&client_id=5f49c05e-8ed6-11e5-8003-00155dfe7603&scope=userinfo+force_login+trial+skiptheuse

2015-12-04 11:10:34,651 1799 INFO domain.com werkzeug: 192.168.254.127 - - [04/Dec/2015 11:10:34] "POST /web/dataset/call_button HTTP/1.0" 200 -
2015-12-04 11:10:34,660 1799 ERROR False werkzeug: Error on request:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/service/server.py", line 290, in app
    return self.app(e, s)
  File "/opt/odoo/odoo-server/openerp/service/wsgi_server.py", line 216, in application
    return application_unproxied(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/service/wsgi_server.py", line 202, in application_unproxied
    result = handler(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/http.py", line 1290, in __call__
    return self.dispatch(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/http.py", line 1264, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in __call__
    return self.app(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/http.py", line 1264, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in __call__
    return self.app(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/http.py", line 1264, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in __call__
    return self.app(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/http.py", line 1436, in dispatch
    result = ir_http._dispatch()
  File "/opt/odoo/odoo-server/addons/website/models/ir_http.py", line 148, in _dispatch
    resp = super(ir_http, self)._dispatch()
  File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_http.py", line 175, in _dispatch
    return self._handle_exception(e)
  File "/opt/odoo/odoo-server/addons/website/models/ir_http.py", line 196, in _handle_exception
    return super(ir_http, self)._handle_exception(exception)
  File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_http.py", line 145, in _handle_exception
    return request._handle_exception(exception)
  File "/opt/odoo/odoo-server/openerp/http.py", line 666, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_http.py", line 171, in _dispatch
    result = request.dispatch()
  File "/opt/odoo/odoo-server/openerp/http.py", line 684, in dispatch
    r = self._call_function(**self.params)
  File "/opt/odoo/odoo-server/openerp/http.py", line 310, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/http.py", line 307, in checked_call
    return self.endpoint(*a, **kw)
  File "/opt/odoo/odoo-server/openerp/http.py", line 803, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo-server/openerp/http.py", line 403, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/custom/addons/saas_server/controllers/main.py", line 233, in stats
    request.env['saas_server.client'].update_all()
  File "/opt/odoo/odoo-server/openerp/api.py", line 248, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/custom/addons/saas_server/models/saas_server.py", line 192, in update_all
    self.sudo().search([]).update()
  File "/opt/odoo/odoo-server/openerp/api.py", line 248, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/api.py", line 416, in new_api
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/opt/odoo/custom/addons/saas_server/models/saas_server.py", line 197, in update
    registry = self.registry()[0]
  File "/opt/odoo/odoo-server/openerp/api.py", line 248, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/api.py", line 416, in new_api
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/opt/odoo/custom/addons/saas_server/models/saas_server.py", line 62, in registry
    return m.get(self.name, **kwargs)
  File "/opt/odoo/odoo-server/openerp/modules/registry.py", line 339, in get
    update_module)
  File "/opt/odoo/odoo-server/openerp/modules/registry.py", line 356, in new
    registry = Registry(db_name)
  File "/opt/odoo/odoo-server/openerp/modules/registry.py", line 60, in __init__
    self._db = openerp.sql_db.db_connect(db_name)
  File "/opt/odoo/odoo-server/openerp/sql_db.py", line 623, in db_connect
    db, uri = dsn(to)
  File "/opt/odoo/odoo-server/openerp/sql_db.py", line 597, in dsn
    if db_or_uri.startswith(('postgresql://', 'postgres://')):
AttributeError: 'bool' object has no attribute 'startswith'
yelizariev commented 8 years ago

@tarzan0820 I think we can make it required