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

Could Not Restore Database Error. Odoo V8

Subscriure's

Get notified when there's activity on this post

This question has been flagged
v8errordatabaserestoreodoo
6 Respostes
13795 Vistes
Avatar
JA

It starts to run, gets to about 80% and then the message on the center off screen: Could Not Restore Database. But at the same time on a message box at right top corner says database resored.

Can not figure it out.

 

Thanks in advance for your time and help.

 

1
Avatar
Descartar
Avatar
Ankit H Gandhi(AHG)
Best Answer

Dear JA,

Please use below code.

Modified the openerp/tools/misc.py as follows:

def exec_pg_command(name, *args):
    prog = find_pg_tool(name)
    env = exec_pg_environ()
    with open(os.devnull) as dn:
# default commit 4bd2ee1
# https://github.com/odoo/odoo/commit/4bd2ee1aaace8e7f6fa5621688e00dc2115fa8a7
#        args2 = (prog,) + args
#        rc = subprocess.call(args2, env=env, stdout=dn, stderr=subprocess.STDOUT)
#        if rc:
#            raise Exception('Postgres subprocess %s error %s' % (args2, rc))
#
#
# new modification maclarensg
# https://github.com/odoo/odoo/issues/5241#issuecomment-76509036
         rc = subprocess.call((prog,) + args, env=env, stdout=dn, stderr=subprocess.STDOUT)
# new modification end

Hope this help for you.

Cheers,

Ankit H Gandhi.

0
Avatar
Descartar
Avatar
Ludo - 21South
Best Answer

Check your logs for Odoo to see what the reason would be. Then post them here and we can have a look on how to solve this.

0
Avatar
Descartar
Luke Branch

@Ludo,

I'm having the same issue after a recent pull that @JA has described. I've opened a github issue here:

https://github.com/odoo/odoo/issues/5241

along with steps to reproduce and an excerpt from the debug logs. The traceback is as follows:

2015-02-12 09:18:10,054 7521 DEBUG testing openerp.tools.translate: translation went wrong for "'Backup Database'", skipped 2015-02-12 09:22:16,089 7521 INFO None openerp.service.db: DUMP DB: testing format zip 2015-02-12 09:22:16,208 7521 ERROR testing openerp.addons.web.controllers.main: Database.backup Traceback (most recent call last): File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 736, in backup dump_stream = openerp.service.db.dump_db(backup_db, None, backup_format) File "/opt/odoo/odoo-server/openerp/service/db.py", line 196, in dump_db openerp.tools.exec_pg_command(*cmd) File "/opt/odoo/odoo-server/openerp/tools/misc.py", line 127, in exec_pg_command raise Exception('Postgres subprocess %s error %s' % (args2, rc)) NameError: global name 'args2' is not defined 2015-02-12 09:22:16,209 7521 DEBUG testing openerp.tools.translate: translation went wrong for "'Backup Database'", skipped

I think the issue may have been introduced in a recent commit, although I am not sure which one. I have referenced a commit with a reference to the name 'args2' that was done recently, however i'm not absolutely sure whether this commit is related to the issue or not.

Luke Branch

@Ludo,

Thanks for your help. I've just updated the github issue mentioned above. It looks like xmo-odoo issued a fix for the initial issue here:

https://github.com/odoo/odoo/commit/ec9a543014a91be17398ba6e443578fe37c3a885

However i've run into another issue in the same process detailed here:

https://github.com/odoo/odoo/issues/5241#issuecomment-76509036

I'm trying to determine if it has something to do with my setup/environment, or if it's a problem with an update in one of the core Odoo SA modules.

This setup was working fine up until a couple of weeks ago, so I suspect it may be related to Odoo core code updates, however if not I need to revise my setup procedure.

Your insight on this would be invaluable.

Avatar
JA
Autor Best Answer

Thanks. It seems in my case is because a configuration on nginx, and the error is about file to big. The case is that the file is only 4.3mb.

I will find correct configuration and see if this resolves issue.

0
Avatar
Descartar
Luke Branch

@JA,

Please write back here with what you find. I seem to have run into exactly the same issue without an Nginx proxy.

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
Database create with dump file error
error database restore odoo v14
Avatar
Avatar
2
de des. 21
4826
Restore database from Odoo 12 to Odoo 16 Solved
database restore odoo
Avatar
Avatar
1
de febr. 24
79
Odoo 14: request not bound to a database Solved
database restore odoo
Avatar
Avatar
2
de maig 23
7841
What is the difference between "Backup restore" and "Copy of a different database"?
v8 database restore
Avatar
Avatar
1
de març 17
8536
[8.0]sale_quotation_number: Error "undefined get method" when updating the amount
v8 error odoo
Avatar
Avatar
1
de jul. 16
5158
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