İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
13191 Görünümler

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

Avatar
Vazgeç

Do you find the issue?

Üretici

Not yet unfortunatelly

I've got the same issue :'(

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

Üretici

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.

En İyi Yanıt

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

Avatar
Vazgeç
Üretici

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

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.

En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Ağu 24
3271
2
Ara 24
4749
2
May 24
6538
2
Ağu 23
4233
0
Haz 23
2067