Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

500: Internal Server Error when register client in saas

Subscribe

Get notified when there's activity on this post

This question has been flagged
saas
2 Replies
5870 Views
Avatar
Bipin rathod

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

0
Avatar
Discard
Avatar
Serpent Consulting Services Pvt. Ltd.
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.


0
Avatar
Discard
Avatar
George Vincent
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

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Is the Xml-RPC API available on OpenERP Online?
saas
Avatar
Avatar
Avatar
2
Aug 23
22715
Can we run Odoo open source as a SaaS commercially with new Front-End design and change odoo brand with our brand?
saas
Avatar
0
Jul 20
3707
Licensing Questions
saas
Avatar
Avatar
2
Mar 19
8659
Odoo saas setup issue
saas
Avatar
0
Jan 18
4861
Odoo As A SaaS Solved
saas
Avatar
Avatar
Avatar
5
Jul 17
19706
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now