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

Odoo 13 EE installation error : "website_rewrite" doesn't exist

Subscribe

Get notified when there's activity on this post

This question has been flagged
internalerrorEnterprise13.0
5 Replies
8836 Views
Avatar
Shiqi He

When I just finished installing Odoo 13 EE and try to open the page, it returned me an "Internal Server Error", so I checked the log and got the following error code:

2019-10-09 01:40:19,577 6344 ERROR db_maizhi odoo.sql_db: bad query: SELECT "website_rewrite".id FROM "website_rewrite" WHERE ((("website_rewrite"."active" = true) AND ("website_rewrite"."redirect_type" in ('308','404'))) AND ("website_rewrite"."website_id" IS NULL OR ("website_rewrite"."website_id" = 1))) ORDER BY "website_rewrite"."id"
ERROR:  relation "website_rewrite" doesn't exist
LINE 1: SELECT "website_rewrite".id FROM "website_rewrite" WHERE (((...
^

2019-10-09 01:40:19,582 6344 INFO db_maizhi werkzeug: 127.0.0.1 - - [09/Oct/2019 01:40:19] "GET / HTTP/1.1" 500 - 28 0.323 15.908
2019-10-09 01:40:19,599 6344 ERROR db_maizhi werkzeug: Error on request:
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 13.0e\python\lib\site-packages\werkzeug\serving.py", line 270, in run_wsgi
execute(self.server.app)
File "C:\Program Files (x86)\Odoo 13.0e\python\lib\site-packages\werkzeug\serving.py", line 258, in execute
application_iter = app(environ, start_response)
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\service\server.py", line 414, in app
return self.app(e, s)
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\service\wsgi_server.py", line 142, in application
return application_unproxied(environ, start_response)
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\service\wsgi_server.py", line 117, in application_unproxied
result = odoo.http.root(environ, start_response)
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\http.py", line 1281, in __call__
return self.dispatch(environ, start_response)
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\http.py", line 1251, in __call__
return self.app(environ, start_wrapped)
File "C:\Program Files (x86)\Odoo 13.0e\python\lib\site-packages\werkzeug\wsgi.py", line 766, in __call__
return self.app(environ, start_response)
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\http.py", line 1450, in dispatch
result = ir_http._dispatch()
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\website_sale\models\ir_http.py", line 15, in _dispatch
return super(IrHttp, cls)._dispatch()
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\website\models\ir_http.py", line 168, in _dispatch
response = super(Http, cls)._dispatch()
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\auth_signup\models\ir_http.py", line 19, in _dispatch
return super(Http, cls)._dispatch()
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\web_editor\models\ir_http.py", line 22, in _dispatch
return super(IrHttp, cls)._dispatch()
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\utm\models\ir_http.py", line 26, in _dispatch
response = super(IrHttp, cls)._dispatch()
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\http_routing\models\ir_http.py", line 424, in _dispatch
rule, arguments = cls._match(request.httprequest.path)
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\website\models\ir_http.py", line 84, in _match
return super(Http, cls)._match(path_info, key=key)
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_http.py", line 91, in _match
return cls.routing_map().bind_to_environ(request.httprequest.environ).match(path_info=path_info, return_rule=True)
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\website\models\ir_http.py", line 66, in routing_map
return super(Http, cls).routing_map(key=key)
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_http.py", line 267, in routing_map
for url, endpoint, routing in cls._generate_routing_rules(mods, converters=cls._get_converters()):
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\website\models\ir_http.py", line 92, in _generate_routing_rules
rewrites = dict([(x.url_from, x) for x in request.env['website.rewrite'].sudo().search(domain)])
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\models.py", line 1556, in search
res = self._search(args, offset=offset, limit=limit, order=order, count=count)
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\models.py", line 4285, in _search
self._cr.execute(query_str, where_clause_params)
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\sql_db.py", line 163, in wrapper
return f(self, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\sql_db.py", line 240, in execute
res = self._obj.execute(query, params)
psycopg2.ProgrammingError:  relation "website_rewrite" doesn't exist 

I also installed Odoo 12 EE on my computer on another port 8068, does it matter?   Or there is any safe and convinent way to upgrade 12 to 13?

So is there anyone who met this problem yet? Have any suggestions? Thanks.

Following is my environment:

OS: Windows Server 2019 Datacenter 1809

0
Avatar
Discard
Avatar
joseventura515@gmail.com
Best Answer

Hi, please help me I have the same error I have checked the database and it does not exist so what i should do ?

0
Avatar
Discard
Avatar
shalin wilson
Best Answer

just had the same issue while installing odoo13CE. It got solved while i connected the DB when running
-d databasename

0
Avatar
Discard
Avatar
Mario Loderer
Best Answer

Have you fixed this? Have the same error actual here. 

0
Avatar
Discard
Avatar
Knuckles
Best Answer

make database with -d as odoo 13

0
Avatar
Discard
Avatar
Hilar Andikkadavath
Best Answer

Please raise a ticket from your odoo account. You will get the further support from odoo team

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
[Odoo 13 EE] How to upload a video file to eLearning study material Solved
video Enterprise 13.0
Avatar
Avatar
Avatar
Avatar
Avatar
7
Dec 21
13257
How can access GitHub Odoo Enterprise
Enterprise
Avatar
Avatar
1
Nov 25
13683
[odoo 13]Discuss template
13.0
Avatar
0
Oct 24
2038
Attachment Button Missing Solved
13.0
Avatar
Avatar
Avatar
2
Sep 23
3198
How to set 2 Websites for 2 Companies in one DB with different external domains linked? Solved
13.0
Avatar
Avatar
Avatar
3
Aug 25
8091
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