Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

Database create with dump file error

Naroči se

Get notified when there's activity on this post

This question has been flagged
errordatabaserestoreodoov14
2 Odgovori
4841 Prikazi
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
Opusti
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
Opusti
Avatar
Ezekiel Victor
Avtor 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
Opusti
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!

Prijavi
Related Posts Odgovori Prikazi Aktivnost
Could Not Restore Database Error. Odoo V8
v8 error database restore odoo
Avatar
Avatar
Avatar
6
apr. 16
13823
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
maj 23
7853
"/web/database/manager" 404 page not found Odoo14 Solved
database restore v14
Avatar
Avatar
1
maj 21
5240
Database restore error odoo 12 Solved
error database restore odoo12
Avatar
2
mar. 19
6123
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة 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