Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
12983 Vizualizări

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

Imagine profil
Abandonează

Do you find the issue?

Autor

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

Autor

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.

Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor

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.

Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
aug. 24
3014
2
dec. 24
4154
2
mai 24
6049
2
aug. 23
3964
0
iun. 23
1898