Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

Database create with dump file error

Odoberať

Get notified when there's activity on this post

This question has been flagged
errordatabaserestoreodoov14
2 Replies
4813 Zobrazenia
Avatar
Ezekiel Victor

Please I tried using a dump file to create a new database, and I am getting this error on my odoo Version 14.0. Below is the error Message 

Traceback (most recent call last):  File "/home/odoo/addons/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch    result = request.dispatch()  File "/home/odoo/addons/odoo/odoo/http.py", line 807, in dispatch    r = self._call_function(**self.params)  File "/home/odoo/addons/odoo/odoo/http.py", line 360, in _call_function    return checked_call(self.db, *args, **kwargs)  File "/home/odoo/addons/odoo/odoo/service/model.py", line 94, in wrapper    return f(dbname, *args, **kwargs)  File "/home/odoo/addons/odoo/odoo/http.py", line 351, in checked_call    result.flatten()  File "/home/odoo/addons/odoo/odoo/http.py", line 1251, in flatten    self.response.append(self.render())  File "/home/odoo/addons/odoo/odoo/http.py", line 1244, in render    return env["ir.ui.view"]._render_template(self.template, self.qcontext)  File "/home/odoo/addons/odoo/odoo/addons/base/models/ir_ui_view.py", line 1709, in _render_template    return self.browse(self.get_view_id(template))._render(values, engine)  File "/home/odoo/addons/odoo/addons/website/models/ir_ui_view.py", line 420, in _render    return super(View, self)._render(values, engine=engine, minimal_qcontext=minimal_qcontext)  File "/home/odoo/addons/odoo/addons/web_editor/models/ir_ui_view.py", line 28, in _render    return super(IrUiView, self)._render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)  File "/home/odoo/addons/odoo/odoo/addons/base/models/ir_ui_view.py", line 1717, in _render    return self.env[engine]._render(self.id, qcontext)  File "/home/odoo/addons/odoo/odoo/addons/base/models/ir_qweb.py", line 55, in _render    result = super(IrQWeb, self)._render(id_or_xml_id, values=values, **context)  File "/home/odoo/addons/odoo/odoo/addons/base/models/qweb.py", line 258, in _render    self.compile(template, options)(self, body.append, values or {})  File "/home/odoo/addons/odoo/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn    raise e  File "/home/odoo/addons/odoo/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn    return compiled(self, append, new, options, log)  File "", line 1, in template_web_login_6  File "/home/odoo/addons/odoo/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn    raise e  File "/home/odoo/addons/odoo/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn    return compiled(self, append, new, options, log)  File "", line 1, in template_web_login_layout_12  File "/home/odoo/addons/odoo/odoo/addons/base/models/qweb.py", line 338, in _compiled_fn    raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name) Exception The above exception was the direct cause of the following exception: Traceback (most recent call last):  File "/home/odoo/addons/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch    result = request.dispatch()  File "/home/odoo/addons/odoo/odoo/http.py", line 807, in dispatch    r = self._call_function(**self.params)  File "/home/odoo/addons/odoo/odoo/http.py", line 360, in _call_function    return checked_call(self.db, *args, **kwargs)  File "/home/odoo/addons/odoo/odoo/service/model.py", line 94, in wrapper    return f(dbname, *args, **kwargs)  File "/home/odoo/addons/odoo/odoo/http.py", line 351, in checked_call    result.flatten()  File "/home/odoo/addons/odoo/odoo/http.py", line 1251, in flatten    self.response.append(self.render())  File "/home/odoo/addons/odoo/odoo/http.py", line 1244, in render    return env["ir.ui.view"]._render_template(self.template, self.qcontext)  File "/home/odoo/addons/odoo/odoo/addons/base/models/ir_ui_view.py", line 1709, in _render_template    return self.browse(self.get_view_id(template))._render(values, engine)  File "/home/odoo/addons/odoo/addons/website/models/ir_ui_view.py", line 420, in _render    return super(View, self)._render(values, engine=engine, minimal_qcontext=minimal_qcontext)  File "/home/odoo/addons/odoo/addons/web_editor/models/ir_ui_view.py", line 28, in _render    return super(IrUiView, self)._render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)  File "/home/odoo/addons/odoo/odoo/addons/base/models/ir_ui_view.py", line 1717, in _render    return self.env[engine]._render(self.id, qcontext)  File "/home/odoo/addons/odoo/odoo/addons/base/models/ir_qweb.py", line 55, in _render    result = super(IrQWeb, self)._render(id_or_xml_id, values=values, **context)  File "/home/odoo/addons/odoo/odoo/addons/base/models/qweb.py", line 258, in _render    self.compile(template, options)(self, body.append, values or {})  File "/home/odoo/addons/odoo/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn    raise e  File "/home/odoo/addons/odoo/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn    return compiled(self, append, new, options, log)  File "", line 1, in template_web_login_6  File "/home/odoo/addons/odoo/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn    raise e  File "/home/odoo/addons/odoo/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn    return compiled(self, append, new, options, log)  File "", line 1, in template_web_login_layout_12  File "/home/odoo/addons/odoo/odoo/addons/base/models/qweb.py", line 338, in _compiled_fn    raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name) odoo.addons.base.models.qweb.QWebException: relation "ir_attachment_id_seq" does not exist LINE 1: ...ore_fname", "type", "website_id") VALUES (nextval('ir_attach...                                                             ^ Traceback (most recent call last):  File "/home/odoo/addons/odoo/odoo/tools/cache.py", line 85, in lookup    r = d[key]  File "/home/odoo/addons/odoo/odoo/tools/func.py", line 71, in wrapper    return func(self, *args, **kwargs)  File "/home/odoo/addons/odoo/odoo/tools/lru.py", line 34, in __getitem__    a = self.d[obj] KeyError: ('ir.qweb', , 'web.assets_common', 'en_US', True, False, '', False, False, False, (1,)) During handling of the above exception, another exception occurred: Traceback (most recent call last):  File "/home/odoo/addons/odoo/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn    return compiled(self, append, new, options, log)  File "", line 1, in template_web_frontend_layout_101  File "", line 2, in _get_asset_nodes  File "/home/odoo/addons/odoo/odoo/tools/cache.py", line 90, in lookup    value = d[key] = self.method(*args, **kwargs)  File "/home/odoo/addons/odoo/odoo/addons/base/models/ir_qweb.py", line 297, in _get_asset_nodes    return remains + asset.to_node(css=css, js=js, debug=debug, async_load=async_load, defer_load=defer_load, lazy_load=lazy_load)  File "/home/odoo/addons/odoo/odoo/addons/base/models/assetsbundle.py", line 153, in to_node    css_attachments = self.css() or []  File "/home/odoo/addons/odoo/odoo/addons/base/models/assetsbundle.py", line 346, in css    self.save_attachment("css", css)  File "/home/odoo/addons/odoo/odoo/addons/base/models/assetsbundle.py", line 295, in save_attachment    attachment = ira.with_user(SUPERUSER_ID).create(values)  File "", line 2, in create  File "/home/odoo/addons/odoo/odoo/api.py", line 326, in _model_create_single    return create(self, arg)  File "/home/odoo/addons/odoo/addons/website/models/ir_attachment.py", line 25, in create    return super(Attachment, self).create(vals)  File "", line 2, in create  File "/home/odoo/addons/odoo/odoo/api.py", line 347, in _model_create_multi    return create(self, [arg])  File "/home/odoo/addons/odoo/odoo/addons/base/models/ir_attachment.py", line 611, in create    return super(IrAttachment, self).create(vals_list)  File "", line 2, in create  File "/home/odoo/addons/odoo/odoo/api.py", line 348, in _model_create_multi    return create(self, arg)  File "/home/odoo/addons/odoo/odoo/addons/base/models/ir_fields.py", line 534, in create    recs = super().create(vals_list)  File "", line 2, in create  File "/home/odoo/addons/odoo/odoo/api.py", line 348, in _model_create_multi    return create(self, arg)  File "/home/odoo/addons/odoo/odoo/models.py", line 3869, in create    records = self._create(data_list)  File "/home/odoo/addons/odoo/odoo/models.py", line 3975, in _create    cr.execute(query, params)  File "", line 2, in execute  File "/home/odoo/addons/odoo/odoo/sql_db.py", line 101, in check    return f(self, *args, **kwargs)  File "/home/odoo/addons/odoo/odoo/sql_db.py", line 298, in execute    res = self._obj.execute(query, params) psycopg2.ProgrammingError: relation "ir_attachment_id_seq" does not exist LINE 1: ...ore_fname", "type", "website_id") VALUES (nextval('ir_attach...                                                             ^ Error to render compiling AST ProgrammingError: relation "ir_attachment_id_seq" does not exist LINE 1: ...ore_fname", "type", "website_id") VALUES (nextval('ir_attach...                                                             ^ Template: web.frontend_layout Path: /t/html/head/t[7] Node:

I do not know where this is coming from or the course of it, I haven't seen it nor backed up using a dump file before.

thanks for your concern,

Waiting in anticipation. 

0
Avatar
Zrušiť
Avatar
Kiran K
Best Answer

Hi ,

The issue occurs when you try to restore the backup from a higher version to a lower version.

Remove 'As integer' from dump.sql file and restore it will solve the issue .

 https://github.com/Yenthe666/auto_backup/issues/79#issuecomment-420711666

Hope it Helps,

Kiran 


2
Avatar
Zrušiť
Avatar
Ezekiel Victor
Autor Best Answer

Thank you very much Kiran for your fast response, I have successfully removed the whole "As Integer", but now am getting this error in the Database 

Database restores error: "There is no item named 'dump.sql' in the archive".
Did I also remove the relevant 'As integer'?? 


Thanks a lot, @Kiran

Waiting in anticipation. 

0
Avatar
Zrušiť
Kiran K


To do this

- Unzip your backup file
- Open dump.sql file and Delete every occurrence of 'AS INTEGER' from every 'CREATE
SEQUENCE'
- Zip the file and do restore

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrácia
Related Posts Replies Zobrazenia Aktivita
Could Not Restore Database Error. Odoo V8
v8 error database restore odoo
Avatar
Avatar
Avatar
6
apr 16
13777
Restore database from Odoo 12 to Odoo 16 Solved
database restore odoo
Avatar
Avatar
1
feb 24
79
Odoo 14: request not bound to a database Solved
database restore odoo
Avatar
Avatar
2
máj 23
7826
"/web/database/manager" 404 page not found Odoo14 Solved
database restore v14
Avatar
Avatar
1
máj 21
5212
Database restore error odoo 12 Solved
error database restore odoo12
Avatar
2
mar 19
6110
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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