Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

How to uninstall / upgrade a module when web page is not accessible

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
moduleuninstallupgrade
6 Răspunsuri
30461 Vizualizări
Imagine profil
Kibong Moon

I installed a custom module which turned out to have error in xml file. I stopped server and fixed the error. But I cannot access any page after server restart.

It seems that the server still has the problematic module. I need to upgrade the module first. But I cannot access upgrade menu.

Is there a way to upgrade or uninstall a module outside the web?

Regards,

Kibong

2
Imagine profil
Abandonează
Imagine profil
Stephen Mack
Cel mai bun răspuns

You can update a module using the command line.

Upgrade would be: odoo.py -d <database> -u <module> -c <config file>

There is no command line option to delete a module

4
Imagine profil
Abandonează
Bole

For uninstall module via terminal you can always do: psql - database -c "update ir_module_module set state='uninstalled' where name='module' ;" ... true not realy using orm but that is commandline way to quickly "uninstall" module.. it will not remove any data, just mark the module uninstalled...

iWesabe Technologies

+1

Imagine profil
Ivan
Cel mai bun răspuns

This is not supposed to be the "proper" way, but this is what I use if the database I am using for developement has been foobared.  Use psql (or PgAdmin III) to access the database, open the ir_module_module table, then change the value of the state field of the module you want to change.  The values are: 'uninstalled', 'to install', 'installed', 'to upgrade', 'to remove'.

You must be very careful so that it does not make the database more foobared:

  • never make modules that are 'uninstalled' to be 'installed' or 'to upgrade'.  Always make it 'to install' so that it is installed properly during the next refresh.
  • never make 'installed' module to be 'uninstalled'.  Always try to go through 'to remove' state first so that it is uninstalled properly
  • never delete any record.  Do it from the UI once it is up.
3
Imagine profil
Abandonează
Setiawan

What do you mean by next refresh? How do we refresh the db? Restarting server?

Imagine profil
Alberto Rubio
Cel mai bun răspuns

You can update modules when web page is not accesible with a psql command.
 

sudo su postgres
psql -d database_name
UPDATE ir_module_module SET state = 'to upgrade' where name = 'module_name';


0
Imagine profil
Abandonează
Imagine profil
Kibong Moon
Autor Cel mai bun răspuns

Dear Stephen & Ivan,

Thank you!

Pardon me that I couldn't leave comment right below your answers due to shortage of karma.

Regards,

Kibong

0
Imagine profil
Abandonează
Imagine profil
Devendra Kavthekar
Cel mai bun răspuns

There are some manual ways but have a look at my pull request:

https://github.com/odoo/odoo/pull/12373

(If a patch link can help: https://patch-diff.githubusercontent.com/raw/odoo/odoo/pull/12373.patch)

And my stackoverflow answer:

http://stackoverflow.com/questions/21485630/how-to-uninstall-manually-openerp-module#answer-41760541

The pull request has been there for a long time but they dont have time. ;)

A Video of how it is helpful:

    https://www.youtube.com/watch?v=7jtmDM0wfFQ

0
Imagine profil
Abandonează
Imagine profil
Dale
Cel mai bun răspuns

Thanks for the above advice


I have tried the command above but I get the error CRITICAL <database> openerp.service.server: Failed to initialize the database. What else can I try?


Below is the error:



odoo@ubuntu:~/addons/website_report$ /opt/odoo/odoo.py -d MMC_Live -u website_report -c /etc/odoo-server.conf

ERROR: couldn't create the logfile directory. Logging to the standard output.

2015-07-14 12:39:49,424 1995 INFO ? openerp: OpenERP version 8.0

2015-07-14 12:39:49,425 1995 INFO ? openerp: addons paths: ['/opt/odoo/.local/share/Odoo/addons/8.0', u'/opt/odoo/addons', '/opt/odoo/openerp/addons']

2015-07-14 12:39:49,425 1995 INFO ? openerp: database hostname: localhost

2015-07-14 12:39:49,425 1995 INFO ? openerp: database port: 5432

2015-07-14 12:39:49,425 1995 INFO ? openerp: database user: odoo

2015-07-14 12:39:49,641 1995 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069

2015-07-14 12:39:49,663 1995 INFO MMC_Live openerp.modules.loading: loading 1 modules...

2015-07-14 12:39:49,902 1995 INFO MMC_Live openerp.modules.loading: 1 modules loaded in 0.24s, 0 queries

2015-07-14 12:39:52,791 1995 CRITICAL MMC_Live openerp.service.server: Failed to initialize database `MMC_Live`.

Traceback (most recent call last):

File "/opt/odoo/openerp/service/server.py", line 909, in preload_registries

registry = RegistryManager.new(dbname, update_module=update_module)

File "/opt/odoo/openerp/modules/registry.py", line 366, in new

openerp.modules.load_modules(registry._db, force_demo, status, update_module)

File "/opt/odoo/openerp/modules/loading.py", line 326, in load_modules

modobj.button_upgrade(cr, SUPERUSER_ID, ids)

File "/opt/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/openerp/addons/base/module/module.py", line 542, in button_upgrade

self.update_list(cr, uid)

File "/opt/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/openerp/addons/base/module/module.py", line 654, in update_list

handler.load_addons()

File "/opt/odoo/openerp/http.py", line 1298, in load_addons

m = __import__('openerp.addons.' + module)

File "/opt/odoo/openerp/modules/module.py", line 80, in load_module

mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)

File "/opt/odoo/.local/share/Odoo/addons/8.0/auto_backup/__init__.py", line 23, in <module>

import backup_scheduler

File "/opt/odoo/.local/share/Odoo/addons/8.0/auto_backup/backup_scheduler.py", line 33, in <module>

raise ImportError('This module needs pysftp to automaticly write backups to the FTP through SFTP. Please install pysftp on your system. (sudo pip install pysftp)')

ImportError: This module needs pysftp to automaticly write backups to the FTP through SFTP. Please install pysftp on your system. (sudo pip install pysftp)

^C2015-07-14 12:40:01,877 1995 INFO MMC_Live openerp.service.server: Initiating shutdown

2015-07-14 12:40:01,877 1995 INFO MMC_Live openerp.service.server: Hit CTRL-C again or send a second signal to force the shutdown.

0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Uninstall module programatically using boolean Rezolvat
module uninstall
Imagine profil
Imagine profil
1
nov. 19
5793
Uninstall Module where the source code is not there anymore Rezolvat
module uninstall
Imagine profil
1
mar. 16
5731
Custom field gets removed on module upgrade? [SOLVED] Rezolvat
module upgrade
Imagine profil
Imagine profil
1
mar. 15
6216
Can't uninstall module
module uninstall
Imagine profil
Imagine profil
1
mar. 15
9058
base_partner_merge_automatic__base_partner_merge_automatic_fkey Rezolvat
module upgrade v14
Imagine profil
1
nov. 22
2524
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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