Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


500: Internal Server Error when register client in saas

Bipin rathod
on 5/13/16, 10:09 AM 514 views


I have setup odoo-saas by following :


When I try to Sing Up it is showing me :  500: Internal Server Error.

Trace back :

(1) Traceback (most recent call last):

File "/home/bipin/workspace/odoo-saas-tools/saas_server/controllers/main.py", line 25, in wrap

return f(*args, **kw)

File "/home/bipin/workspace/odoo-saas-tools/saas_server/controllers/main.py", line 56, in new_database

saas_portal_user = request.registry['res.users']._auth_oauth_rpc(request.cr, SUPERUSER_ID, saas_oauth_provider.validation_endpoint, access_token)

File "/home/bipin/workspace/9.0/openerp/api.py", line 250, in wrapper

return old_api(self, *args, **kwargs)

File "/home/bipin/workspace/9.0/addons/auth_oauth/res_users.py", line 39, in _auth_oauth_rpc

f = urllib2.urlopen(url)

File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen

return _opener.open(url, data, timeout)

File "/usr/lib/python2.7/urllib2.py", line 404, in open

response = self._open(req, data)

File "/usr/lib/python2.7/urllib2.py", line 422, in _open

'_open', req)

File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain

result = func(*args)

File "/usr/lib/python2.7/urllib2.py", line 1214, in http_open

return self.do_open(httplib.HTTPConnection, req)

File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open

raise URLError(err)

URLError: <urlopen error [Errno -2] Name or service not known>

(2) Traceback (most recent call last):

File "/home/bipin/workspace/9.0/addons/website/models/ir_http.py", line 243, in _handle_exception

response = super(ir_http, self)._handle_exception(exception)

File "/home/bipin/workspace/9.0/openerp/addons/base/ir/ir_http.py", line 157, in _handle_exception

return request._handle_exception(exception)

File "/home/bipin/workspace/9.0/openerp/http.py", line 781, in _handle_exception

return super(HttpRequest, self)._handle_exception(exception)

File "/home/bipin/workspace/9.0/openerp/addons/base/ir/ir_http.py", line 182, in _dispatch

result = request.dispatch()

File "/home/bipin/workspace/9.0/openerp/http.py", line 840, in dispatch

r = self._call_function(**self.params)

File "/home/bipin/workspace/9.0/openerp/http.py", line 316, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/home/bipin/workspace/9.0/openerp/service/model.py", line 118, in wrapper

return f(dbname, *args, **kwargs)

File "/home/bipin/workspace/9.0/openerp/http.py", line 309, in checked_call

result = self.endpoint(*a, **kw)

File "/home/bipin/workspace/9.0/openerp/http.py", line 959, in __call__

return self.method(*args, **kw)

File "/home/bipin/workspace/9.0/openerp/http.py", line 509, in response_wrap

response = f(*args, **kw)

File "/home/bipin/workspace/odoo-saas-tools/saas_portal_sale/controllers/main.py", line 27, in add_new_client

return super(SaasPortalSale, self).add_new_client(**post)

File "/home/bipin/workspace/9.0/openerp/http.py", line 509, in response_wrap

response = f(*args, **kw)

File "/home/bipin/workspace/odoo-saas-tools/saas_portal/controllers/main.py", line 37, in add_new_client

res = plan.create_new_database(dbname=dbname, user_id=user_id, partner_id=partner_id)

File "/home/bipin/workspace/9.0/openerp/api.py", line 248, in wrapper

return new_api(self, *args, **kwargs)

File "/home/bipin/workspace/odoo-saas-tools/saas_portal/models/saas_portal.py", line 204, in create_new_database

return self._create_new_database(**kwargs)

File "/home/bipin/workspace/9.0/openerp/api.py", line 248, in wrapper

return new_api(self, *args, **kwargs)

File "/home/bipin/workspace/odoo-saas-tools/saas_portal_sale/models/saas_portal.py", line 23, in _create_new_database


File "/home/bipin/workspace/9.0/openerp/api.py", line 248, in wrapper

return new_api(self, *args, **kwargs)

File "/home/bipin/workspace/odoo-saas-tools/saas_portal/models/saas_portal.py", line 302, in _create_new_database

raise exceptions.Warning('Error %s' % res.status_code)

UserError: ('Error 500', None)

I don't know why status code 500 ?

Many Thanks For Help & Support


Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 5/14/16, 6:23 AM


For error 1:

f = urllib2.urlopen(url)

--> The -2 error means the server is not ON. Check well, it is more related to Auth. Possible to have a URL created which is not allowed for the UID and hence server does not start, failing into -2.

For error 2:

def  _create_new_database()

--> Update your source first.






You must do developer level debug (prints and --dev) to see which point sends back the exception(Do try..expect in some lines)

All the best.

On 5/14/16, 12:08 AM


       I am also trying to configure this in windows using eclipse editor but i am failed in odoo 9.

       1) I have downloaded all the modules in https://github.com/yelizariev/odoo-saas-tools

       2) Installed all the modules

       When i tried to configure DB template i am getting error like you.

So i am planing to develop this in linux machine. Are you working in linux machine? if you could give me some input that would help me to save time.

Thank you

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 5/13/16, 10:09 AM
Seen: 514 times
Last updated: 5/14/16, 6:23 AM