crash when selecting database at startup

Bug #592531 reported by Ruud Riem-Vis on 2010-06-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

After upgrading from server version 2065 to 2067 it is impossible to select a database with the -d option on the command line or even to open a database with a client.

The error message with the -d databasename option is the following:

[2010-06-11 08:27:25,136] INFO:server:version - 5.0.11
[2010-06-11 08:27:25,136] INFO:server:addons_path - /usr/local/lib/python2.6/dist-packages/openerp-server/addons
[2010-06-11 08:27:25,136] INFO:server:database hostname - localhost
[2010-06-11 08:27:25,136] INFO:server:database port - 5432
[2010-06-11 08:27:25,136] INFO:server:database user - openerp
[2010-06-11 08:27:25,137] INFO:objects:initialising distributed objects services
Traceback (most recent call last):
  File "./openerp-server.py", line 99, in <module>
    pooler.get_db_and_pool(db, update_module=tools.config['init'] or tools.config['update'])
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line 40, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
AttributeError: 'module' object has no attribute 'load_modules'

Using the GTK client there is no error message but the application is quit directly.

This is an urgent issue as it blocks all access!

description: updated
JMA(Open ERP) (jma-openerp) wrote :

Hi Ruud,

I am sorry to say, but we do not face such a problem.
We have tried with both clients(GTK and web).

It seems that there is some problem with your addons directory.
Please see through that the __init__.py files are in proper order.
Also make sure that the directory structure is in intact.

Hope this helps.
Thanks.

On 11.06.2010 08:57, JMA(Open ERP) wrote:
> Hi Ruud,
>
> I am sorry to say, but we do not face such a problem.
> We have tried with both clients(GTK and web).
>
> It seems that there is some problem with your addons directory.
> Please see through that the __init__.py files are in proper order.
> Also make sure that the directory structure is in intact.
>
> Hope this helps.
> Thanks.
>
>
Hello jma,

Thanks for your hint. Indeed there seems to be a problem with the addons
directory but this is caused by some the extra-addons directory (as I
did not change anything but the update of the source files). I've
attached you the change log of the update where you can see the presence
of __init__.py at the addons level. I think it is good to react fast
otherwise many will be infected with this.

Removing the files change the error to :

Traceback (most recent call last):
   File "./openerp-server.py", line 56, in <module>
     logger.notifyChannel("server", netsvc.LOG_INFO, "version - %s" %
release.version )
   File
"/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line
163, in notifyChannel
     from service.web_services import common
   File
"/usr/local/lib/python2.6/dist-packages/openerp-server/service/__init__.py",
line 23, in <module>
     import web_services
   File
"/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py",
line 33, in <module>
     import addons
ImportError: No module named addons

Any hint for me?

Thanks,

Ruud

JMA(Open ERP) (jma-openerp) wrote :

Hi Ruud,

The only problem at your end is of addons directory structure.

The addons directory should contain the file mentioned here:http://bazaar.launchpad.net/~openerp/openobject-server/5.0/files/head:/bin/addons/

Make sure you do not remove addons from server/bin. there should be atleast above files in the directory.

You may run other modules by specifying --addons-path=path where your addons have been residing, while starting the server.

Hope this helps.

Thanks.

Hi Ruud,

I completely agree with JMA(OpenERP). Thanks for the help.

Changed in openobject-server:
milestone: none → 5.0.12
status: New → Invalid
Ruud Riem-Vis (ruud-riem-vis) wrote :

On 11.06.2010 10:51, Jay (Open ERP) wrote:
> Hi Ruud,
>
> I completely agree with JMA(OpenERP). Thanks for the help.
>
> ** Changed in: openobject-server
> Status: New => Invalid
>
> ** Changed in: openobject-server
> Milestone: None => 5.0.12
>
>
Thanks JMA, I repaired the issue and everything works fine again.
I think it has been caused by the update from the extraddons branch as
you can see in the change log of the previous post that is was overwritten.
Replacing the __init__.py from the location you indicated repaired the
issue.
Thanks again,
Ruud

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments