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

[V14] Error when trying to restore a database backup from odoo.sh locally

Subscribe

Get notified when there's activity on this post

This question has been flagged
backupunaccentodoo.shv14
2 Replies
13769 Views
Avatar
Francois Lange

When I use the restore function of the database manager from a backup I did on odoo.sh I get the following error:

2021-02-26 12:43:17,172 82281 INFO prod_2602 odoo.addons.base.models.ir_http: Generating routing map for key None 

2021-02-26 12:44:58,000 82281 ERROR prod_2602 odoo.sql_db: bad query: SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL  AND (unaccent("ir_attachment"."url"::text) like unaccent('/web/content/%-%/web.assets_common.css'))) AND (NOT ((unaccent("ir_attachment"."url"::text) like unaccent('/web/content/%-f80683a/%%%'))))) ORDER BY  "ir_attachment"."id" DESC 

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-02-26 12:44:58,469 82281 ERROR prod_2602 odoo.sql_db: bad query: SELECT "ir_ui_view".id FROM "ir_ui_view" WHERE (("ir_ui_view"."active" = true) AND ("ir_ui_view"."key" = 'web.frontend_layout')) ORDER BY  "ir_ui_view"."priority" ,"ir_ui_view"."name" ,"ir_ui_view"."id"   LIMIT 1

ERROR: current transaction is aborted, commands ignored until end of transaction block

Has anyone an idea on what could be causing it? I saw that there is a settings unaccent=False in my config file but setting it to true doesn't solve anything.


I'm on mac os catalina, the database is postgresql 11, I use python 3.6

0
Avatar
Discard
Hussnain Sajid

Do you find the issue?

Francois Lange
Author

Not yet unfortunatelly

Albin Gilles

I've got the same issue :'(

Ray Carnes (ray)

If you haven't already, please open a Support ticket with us at https://www.odoo.com/help

Francois Lange
Author

Thanks Ray I just did it. I wanted to ask here first because I'm not sure that it is covered by your support as it might be a local issue.

Avatar
Martín LLanos
Best Answer

1. Modify your odoo.conf

unaccent = True

2. Execute on console

sudo -u postgres psql -c "CREATE EXTENSION unaccent;"

sudo -u postgres psql -c "ALTER ROLE odoo SUPERUSER;"

"odoo" or user database.

:P

5
Avatar
Discard
Francois Lange
Author

Apparently adding the superuser privilege was enough, thank you. Ideally I would like to find out what the problem is exactly so I could solve it without giving such large privilege to my postgre user., but this will do for now

fudo

I've follow your solution from the beginning til the end, and at first time it's not work, then i change back unaccent = False and guess what, it worked now. Look like all i need is the sql command in step 2 only.

Avatar
Alfonso Monrroy
Best Answer

I had the same problem in Odoo 14, I was able to fix it by doing the following installations:

sudo aptitude install unaccent
sudo aptitude install libtext-unaccent-perl

Greetings and much success

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
Multi language Invoice documents
odoo.sh v14
Avatar
Avatar
1
Aug 24
4066
How can I access an Odoo.sh backup via the terminal so I can copy it to another server? Solved
backup odoo.sh
Avatar
Avatar
Avatar
2
Dec 24
7505
Automatic database backup in odoo.sh Solved
backup odoo.sh
Avatar
Avatar
Avatar
2
May 24
8601
Backup zip error
backup v14
Avatar
Avatar
Avatar
2
Aug 23
5169
V14 Backup on Odoo with large database over 5GB
backup v14
Avatar
0
Jun 23
2724
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