Skip to Content
Menu
This question has been flagged
2 Replies
5192 Views

Hello,

I have setup odoo-saas by following :

https://github.com/yelizariev/odoo-saas-tools

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

async=async)

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

Avatar
Discard
Best Answer

Bipin,

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.

https://github.com/yelizariev/odoo-saas-tools/blob/9.0/saas_portal/models/saas_portal.py

Debug:

server._request_server

Check

https://github.com/yelizariev/odoo-saas-tools/blob/9.0/saas_server/controllers/main.py#L31

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.


Avatar
Discard
Best Answer

Hi,

       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

Avatar
Discard
Related Posts Replies Views Activity
2
Aug 23
19974
0
Jul 20
1679
2
Mar 19
4692
0
Jan 18
2753
5
Jul 17
16854