if by chance addons-path is missing, it crashes the databse

Bug #373176 reported by Shah Japan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

If by mistake server is started without addons-path or with wrong addons-path

then it crashes the modules status, and unable to get back to the original state of the modules.

I tried --update all, it works sometimes but not for all the cases.....

Tags: addons-path
Revision history for this message
Shah Japan (jsh.axelor) wrote :

here is one basic solution, if someone is facing the similar problem,

make a list of modules that you have installed previously and don't forget to add dependent modules of each module, in the list too...

and update the state of listed modules to 'installed' from postgres database

,go to the backend - postgres through your postgresql client

e.g.

psql db_name

update ir_module_module set state = 'installed' where name in ('base','product','sale'); ,etc...

and start the server with --update all --database db_name

Shah Japan (jsh.axelor)
tags: added: addons-path
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

put an assert to check if the addons path is valid.

Changed in openobject-server:
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello,

Would you please check with the suggested patch?

If --addons-path is missing, OpenERP will treat /server/bin/addons as the --addons-path.
If --addons-path is a wrong one, this patch will notify the user.

Thanks.

Changed in openobject-server:
status: Confirmed → In Progress
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Fixed by revision 1944 <email address hidden> on stable.
Fixed by revision 1998 <email address hidden> on trunk.

Changed in openobject-server:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.