Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

[odoo 11] Error while restoring database

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
databasebackuprestoredbdbodoo11
2 Réponses
13370 Vues
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
Ignorer
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
Meilleure réponse

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
Ignorer
Avatar
Đức Hậu Trần
Meilleure réponse

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
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
Error in odoo 12 after restoring database, ProgrammingError: relation "ir_attachment_id_seq" does not exist Résolu
database backup restore restoredb odoo12
Avatar
Avatar
Avatar
Avatar
Avatar
6
oct. 25
9944
How To Backup and Restore Odoo Database From Terminal using Command ? Résolu
database postgresql backup restoredb v17
Avatar
Avatar
Avatar
Avatar
Avatar
5
oct. 25
20613
Icons Doesn't Show After Restoring Database Résolu
database backup restore restoredb databasebackup
Avatar
Avatar
1
mars 24
9201
how to restore database for different versions of Odoo? Résolu
database backup restore restoredb odoo
Avatar
Avatar
1
août 15
7804
Restore database problem Résolu
backup restoredb
Avatar
Avatar
Avatar
2
août 24
11185
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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