Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

[odoo 11] Error while restoring database

Subscriure's

Get notified when there's activity on this post

This question has been flagged
databasebackuprestoredbdbodoo11
2 Respostes
13379 Vistes
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
Descartar
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
Descartar
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
Descartar
Enjoying the discussion? Don't just read, join in!

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

Registrar-se
Related Posts Respostes Vistes Activitat
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
d’oct. 25
9953
How To Backup and Restore Odoo Database From Terminal using Command ? Solved
database postgresql backup restoredb v17
Avatar
Avatar
Avatar
Avatar
Avatar
5
d’oct. 25
20639
Icons Doesn't Show After Restoring Database Solved
database backup restore restoredb databasebackup
Avatar
Avatar
1
de març 24
9206
how to restore database for different versions of Odoo? Solved
database backup restore restoredb odoo
Avatar
Avatar
1
d’ag. 15
7810
Restore database problem Solved
backup restoredb
Avatar
Avatar
Avatar
2
d’ag. 24
11189
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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