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

error when restoring odoo db from sh to vps

Subscribe

Get notified when there's activity on this post

This question has been flagged
vpswebsiteodooodoo.sh
1 Reply
5831 Views
Avatar
Omer Aiman

I am getting the below error:

odoo.sql_db: bad query: SELECT "website".id FROM "website" WHERE (unaccent("website"."domain":main"::text) ilike unaccent('%111.111.111.11%')) ORDER BY  "website"."id"

ERROR: function unaccent_schema.unaccent(unknown, text) does not exist
LINE 2:                 SELECT unaccent_schema.unaccent('unaccent_sc...
                               ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
QUERY:
                SELECT unaccent_schema.unaccent('unaccent_schema.unaccent', $1)

CONTEXT:  SQL function "unaccent" during inlining

2021-01-26 09:27:44,114 41151 INFO eastmagic werkzeug: 37.239.210.123 - - [26/Jan/2021 09:27:44] "GET /web/database/manager HTTP/1.1" 500 - >
2021-01-26 09:27:44,120 41151 ERROR eastmagic werkzeug: Error on request:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 85, in lookup
    r = d[key]
  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 71, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/tools/lru.py", line 34, in __getitem__
    a = self.d[obj]
KeyError: ('website', <function Website._get_current_website_id at 0x7f7d66dae700>, '111.111.111.11:8069', False, True)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 306, in run_wsgi
    execute(self.server.app)
  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 294, in execute
    application_iter = app(environ, start_response)
  File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 440, in app
    return self.app(e, s)
  File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 124, in application
    return application_unproxied(environ, start_response)
  File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 99, in application_unproxied
    result = odoo.http.root(environ, start_response)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1294, in __call__
    return self.dispatch(environ, start_response)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1262, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/lib/python3/dist-packages/werkzeug/middleware/shared_data.py", line 220, in __call__
    return self.app(environ, start_response)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1464, in dispatch
    result = ir_http._dispatch()
  File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_http.py", line 179, in _dispatch
    request.website_routing = env['website'].get_current_website().id
  File "/usr/lib/python3/dist-packages/odoo/addons/website/models/website.py", line 568, in get_current_website
    website_id = self._get_current_website_id(domain_name, country_id, fallback=fallback)
  File "<decorator-gen-148>", line 2, in _get_current_website_id

  File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 90, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/website/models/website.py", line 624, in _get_current_website_id
    found_websites = self.search([('domain', 'ilike', _remove_port(domain_name))]).sorted('country_group_ids')
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 1698, in search
    return res if count else self.browse(res)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 4909, in browse
    if not ids:
  File "/usr/lib/python3/dist-packages/odoo/osv/query.py", line 156, in __bool__
    return bool(self._result)
  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 26, in __get__
    value = self.fget(obj)
  File "/usr/lib/python3/dist-packages/odoo/osv/query.py", line 149, in _result
    self._cr.execute(query_str, params)
  File "<decorator-gen-3>", line 2, in execute

  File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 96, in check
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 291, in execute
    res = self._obj.execute(query, params)
psycopg2.errors.UndefinedFunction: function unaccent_schema.unaccent(unknown, text) does not exist
LINE 2:                 SELECT unaccent_schema.unaccent('unaccent_sc...
                               ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
QUERY:  
                SELECT unaccent_schema.unaccent('unaccent_schema.unaccent', $1)

0
Avatar
Discard
Daniel

I tried the same - having the same error - were you able to resolve it?

Avatar
Ravi Gadhia
Best Answer

Make sure your Postgres has an active 'unaccent' extension (enable it using command CREATE EXTENSION unaccent;) 

OR
change the odoo configuration file with  unaccent =False params (or run odoo with command --unaccent=False)


1
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 website iframe youtube video not showing
website odoo
Avatar
1
Nov 25
3412
Error when i try to buy "Scale-Up! The Business Game" from odoo store
website odoo
Avatar
Avatar
Avatar
Avatar
4
Nov 25
3758
Odoo.sh: transfer repo from org account to personal account Solved
odoo odoo.sh
Avatar
Avatar
1
Jul 23
3631
Hide Variants from the Website
website odoo
Avatar
Avatar
1
Jul 23
3316
sub-modules odoo sh Solved
website odoo odoo.sh entreprise v14
Avatar
Avatar
1
Jan 23
2535
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