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č

[odoo 11] Error while restoring database

Naroči se

Get notified when there's activity on this post

This question has been flagged
databasebackuprestoredbdbodoo11
2 Odgovori
13362 Prikazi
Avatar
Link

I have odoo 11 install on my windows 10 laptop. I need to shift my db to raspberry pi 3 with last raspbian on-board.

When I trying to restore DB on raspberry I got error. Why I cant restore DB?

There is logs:

2018-01-04 13:16:28,500 9473 INFO obg_prod odoo.service.db: RESTORE DB: obg_prod 2018-01-04 13:16:28,539 9473 INFO obg_prod werkzeug: 192.168.1.237 - - [04/Jan/2018 13:16:28] "POST /web/database/restore HTTP/1.1" 303 - 2018-01-04 13:16:28,604 9473 INFO obg_prod odoo.addons.base.ir.ir_http: Generating routing map 2018-01-04 13:16:29,207 9473 INFO obg_prod odoo.sql_db: ConnectionPool(used=0/count=0/max=64): Closed 1 connections to 'dbname=obg_prod user=odoo sslmode=prefer'

2018-01-04 13:16:29,227 9473 INFO obg_prod werkzeug: 192.168.1.237 - - [04/Jan/2018 13:16:29] "GET /web/database/manager HTTP/1.1" 200 - 2018-01-04 13:16:30,677 9473 INFO obg_prod odoo.addons.fetchmail.models.fetchmail: start checking for new emails on imap server incoming - catchall@my-domname.com 2018-01-04 13:16:31,773 9473 INFO obg_prod odoo.addons.fetchmail.models.fetchmail: Fetched 0 email(s) on imap server incoming - catchall@my-domname.com; 0 succeeded, 0 failed.

2018-01-04 13:16:33,860 9473 ERROR obg_prod odoo.sql_db: bad query: b'INSERT INTO "ir_attachment" ("id", "res_model", "public", "res_id", "name", "datas_fname", "type", "mimetype", "company_id", "create_uid", "write_uid", "create_date", "write_date") VALUES(nextval(\'ir_attachment_id_seq\'), \'ir.ui.view\', true, 0, \'/web/content/css\', \'web.assets_common.0.css\', \'binary\', \'text/css\', 1, 1, 1, (now() at time zone \'UTC\'), (now() at time zone \'UTC\')) RETURNING id'

ERROR: relation "ir_attachment_id_seq" does not exist LINE 1: ...uid", "create_date", "write_date") VALUES(nextval('ir_attach...

                                                             ^

2018-01-04 13:16:33,915 9473 ERROR obg_prod odoo.addons.website.models.ir_http: 500 Internal Server Error:

Traceback (most recent call last):

...

1
Avatar
Opusti
Cyril Gaspard (GEM)

Hi,

you must have exactly the same odoo sources release for the 2 servers (no difference for odoo code between the 2 servers), and having backup your database with filestore include (backup zip), different postgresql version between the 2 servers

Bye

Avatar
Arsalan
Best Answer

i think this error is because of the different Postgres versions of Odoo instances.
My source database postgres version is 10 and my destination (restored one) postgres version is 9.5

3
Avatar
Opusti
Avatar
Đức Hậu Trần
Best Answer

You can try with create an SEQUENCE  " ir_attachment_id_seq" by manual for this issue:

CREATE SEQUENCE public.ir_attachment_id_seq
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START (number of ir_attachment.id + 1 )
CACHE 1;


ALTER TABLE public.ir_attachment_id_seq
OWNER TO ( database account );


Regards,




0
Avatar
Opusti
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
Error in odoo 12 after restoring database, ProgrammingError: relation "ir_attachment_id_seq" does not exist Solved
database backup restore restoredb odoo12
Avatar
Avatar
Avatar
Avatar
Avatar
6
okt. 25
9943
How To Backup and Restore Odoo Database From Terminal using Command ? Solved
database postgresql backup restoredb v17
Avatar
Avatar
Avatar
Avatar
Avatar
5
okt. 25
20579
Icons Doesn't Show After Restoring Database Solved
database backup restore restoredb databasebackup
Avatar
Avatar
1
mar. 24
9198
how to restore database for different versions of Odoo? Solved
database backup restore restoredb odoo
Avatar
Avatar
1
avg. 15
7798
Restore database problem Solved
backup restoredb
Avatar
Avatar
Avatar
2
avg. 24
11178
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