related_action new server dont start

Bug #1327736 reported by Philippe B
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Connector - Magento
Incomplete
Undecided
Unassigned

Bug Description

after intallation from bzr

bzr branch lp:openerp-web/7.0 web
bzr branch lp:openobject-server/7.0 server
bzr branch lp:openobject-addons/7.0 addons

bzr branch lp:openerp-connector/7.0 openerp-connector
bzr branch lp:openerp-connector-ecommerce/7.0 openerp-connector-ecommerce
bzr branch lp:openerp-connector-magento/7.0 openerp-connector-magento
bzr branch lp:e-commerce-addons/7.0 e-commerce-addons
bzr branch lp:openerp-product-attributes/7.0 openerp-product-attributes
bzr branch lp:sale-wkfl/7.0 sale-wkfl

with
addons_path = /opt/openerp/V7/addons,/opt/openerp/V7/web/addons,/opt/openerp/V7/openerp-connector,/opt/openerp/V7/openerp-connector-ecommerce,/opt/openerp/V7/openerp-connector-magento,/opt/openerp/V7/e-commerce-addons,/opt/openerp/V7/openerp-product-attributes,/opt/openerp/V7/sale-wkfl

on ubuntu 12.04
the startup fail
2014-06-08 07:41:09,846 9113 CRITICAL ? openerp.modules.module: Couldn't load module web
2014-06-08 07:41:09,847 9113 CRITICAL ? openerp.modules.module: cannot import name related_action
2014-06-08 07:41:09,847 9113 ERROR ? openerp.service: Failed to load server-wide module `web`.
The `web` module is provided by the addons found in the `openerp-web` project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
  File "/opt/openerp/V7/server/openerp/service/__init__.py", line 60, in load_server_wide_modules
    openerp.modules.module.load_openerp_module(m)
  File "/opt/openerp/V7/server/openerp/modules/module.py", line 415, in load_openerp_module
    getattr(sys.modules['openerp.addons.' + module_name], info['post_load'])()
  File "/opt/openerp/V7/web/addons/web/http.py", line 628, in wsgi_postload
    openerp.wsgi.register_wsgi_handler(Root())
  File "/opt/openerp/V7/web/addons/web/http.py", line 517, in __init__
    self.load_addons()
  File "/opt/openerp/V7/web/addons/web/http.py", line 580, in load_addons
    m = __import__('openerp.addons.' + module)
  File "/opt/openerp/V7/server/openerp/modules/module.py", line 133, in load_module
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "/opt/openerp/V7/openerp-connector-magento/magentoerpconnect/__init__.py", line 6, in <module>
    import magento_model
  File "/opt/openerp/V7/openerp-connector-magento/magentoerpconnect/magento_model.py", line 34, in <module>
    from .unit.backend_adapter import GenericAdapter
  File "/opt/openerp/V7/openerp-connector-magento/magentoerpconnect/unit/__init__.py", line 5, in <module>
    import import_synchronizer
  File "/opt/openerp/V7/openerp-connector-magento/magentoerpconnect/unit/import_synchronizer.py", line 26, in <module>
    from openerp.addons.connector.queue.job import job, related_action
ImportError: cannot import name related_action

it look like something is missing in database

if i revert openerp-connector-magento$ bzr revert -r967

every thing is ok and start

Revision history for this message
Philippe B (philippe-j) wrote :

with revert to 991 it start updater all everything is ok

when updating to 992 il fail i think you use a other module who implement the related_action

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Seems an installation problem.
Are you sure that all your branches are clean?

This is not related to the database. The connector module seems outdated.
Did you installed the module with the 'Apps' menu? Can you check in server/openerp/addons if there is a copy of the 'connector' module?

Revision history for this message
Philippe B (philippe-j) wrote :

they must be clean i empty completely the directory and delete the databases

this is on a test server installed 8 days ago

and the python modules are
pip freeze
Warning: cannot find svn location for distribute==0.6.24dev-r0
Babel==0.9.6
Geraldo==0.4.17
GnuPGInterface==0.3.2
Jinja2==2.6
Landscape-Client==13.07.3
Mako==0.5.0
MarkupSafe==0.15
MySQL-python==1.2.3
PAM==0.4.2
PIL==1.1.7
PyChart==1.39
PyWebDAV==0.9.4.1
PyYAML==3.10
Pygments==1.4
TRML2PDF==1.0
Twisted-Core==11.1.0
Werkzeug==0.8.1
ZSI==2.1-a1
apt-xapian-index==0.44
argparse==1.2.1
bzr==2.5.1
chardet==2.0.1
command-not-found==0.2.44
configobj==4.7.2
## FIXME: could not find svn URL in dependency_links for this package:
distribute==0.6.24dev-r0
docutils==0.8.1
feedparser==5.1
gdata==2.0.14
gnupg==1.2.5
httplib2==0.7.2
keyring==0.9.2
language-selector==0.1
laposte-api==0.1.0
launchpadlib==1.9.12
lazr.restfulclient==0.12.0
lazr.uri==1.0.3
lxml==2.3.2
magento==0.4
mock==0.7.2
oauth==1.0.1
openerp-client-etl==1.1.0
openerp-client-lib==1.1.2
paramiko==1.7.7.1
psutil==1.2.1
psycopg2==2.4.5
pyOpenSSL==0.12
pycrypto==2.4.1
pydot==1.0.2
pyodbc==3.0.7
pyparsing==1.5.2
pyserial==2.5
python-apt==0.8.3ubuntu7.2
python-dateutil==1.5
python-debian==0.1.21ubuntu1
python-ldap==2.3.13
python-openid==2.2.5
pytz==2011k
reportlab==2.5
simplejson==2.3.2
suds==0.4.1
uTidylib==0.2
ufw==0.31.1-1
unicodecsv==0.9.4
unittest2==0.5.1
vatnumber==1.0
vobject==0.8.1c
wadllib==1.3.0
wkhtmltopdf==0.2
wsgiref==0.1.2
xlwt==0.7.2
zope.interface==3.6.1

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

What returns the command

$ bzr version-info

in the connector module?

And what is the output of this command if you run it in the root of your project?

$ find . -name connector -type d

Revision history for this message
Philippe B (philippe-j) wrote :

root@laposte:/opt/openerp/V7/openerp-connector-magento# bzr version-info
revision-id: launchpad_translations_on_behalf_of_openerp-connector-core-editors-20140603061800-cibspl3u8waj0rkx
date: 2014-06-03 06:18:00 +0000
build-date: 2014-06-10 08:39:34 +0200
revno: 997
branch-nick: openerp-connector-magento

but to start the server i revert openerp-connector-magento$ bzr revert -r991

this is the branch just before the add of related action

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

I'm interested in the "openerp-connector" branch

Revision history for this message
Philippe B (philippe-j) wrote :

root@laposte:/opt/openerp/V7/openerp-connector# bzr version-info
revision-id: launchpad_translations_on_behalf_of_openerp-connector-core-editors-20140606063524-pnkx08zq3856mydk
date: 2014-06-06 06:35:24 +0000
build-date: 2014-06-10 10:35:39 +0200
revno: 634
branch-nick: openerp-connector
root@laposte:/opt/openerp/V7/openerp-connector# find . -name connector -type d
./connector

Revision history for this message
Philippe B (philippe-j) wrote :

you're right there is something wrong un connector when you

 bzr branch lp:openerp-connector/7.0 openerp-connectorYou have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
Branched 634 revisions.

root@laposte:/opt/openerp/openerp-connector/connector# ls -la
total 140
drwxr-xr-x 10 root root 4096 juin 10 11:17 .
drwxr-xr-x 5 root root 4096 juin 10 11:17 ..
-rw-r--r-- 1 root root 379 juin 10 11:17 AUTHORS
-rw-r--r-- 1 root root 4833 juin 10 11:17 backend_model.py
-rw-r--r-- 1 root root 14346 juin 10 11:17 backend.py
-rw-r--r-- 1 root root 2502 juin 10 11:17 CHANGES.rst
drwxr-xr-x 2 root root 4096 juin 10 11:17 checkpoint
-rw-r--r-- 1 root root 844 juin 10 11:17 connector_menu.xml
-rw-r--r-- 1 root root 12114 juin 10 11:17 connector.py
drwxr-xr-x 11 root root 4096 juin 10 11:17 doc
-rw-r--r-- 1 root root 7499 juin 10 11:17 event.py
-rw-r--r-- 1 root root 2212 juin 10 11:17 exception.py
drwxr-xr-x 2 root root 4096 juin 10 11:17 i18n
-rw-r--r-- 1 root root 124 juin 10 11:17 __init__.py
drwxr-xr-x 3 root root 4096 juin 10 11:17 migrations
-rwxr-xr-x 1 root root 3889 juin 10 11:17 openerp-connector-worker
-rw-r--r-- 1 root root 2636 juin 10 11:17 __openerp__.py
-rw-r--r-- 1 root root 2866 juin 10 11:17 producer.py
drwxr-xr-x 2 root root 4096 juin 10 11:17 queue
-rw-r--r-- 1 root root 2577 juin 10 11:17 related_action.py
-rw-r--r-- 1 root root 749 juin 10 11:17 res_partner_view.xml
drwxr-xr-x 2 root root 4096 juin 10 11:17 security
-rw-r--r-- 1 root root 6284 juin 10 11:17 session.py
-rw-r--r-- 1 root root 1177 juin 10 11:17 setting.py
-rw-r--r-- 1 root root 2102 juin 10 11:17 setting_view.xml
drwxr-xr-x 2 root root 4096 juin 10 11:17 tests
drwxr-xr-x 2 root root 4096 juin 10 11:17 unit

SOME files are missing

Revision history for this message
Philippe B (philippe-j) wrote :

something has changed in openerp-connector all files are yet present it ' ok it start

Changed in magentoerpconnect:
status: New → Fix Released
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Nothing changed in the stable branch, probably an installation mistake.

affects: magentoerpconnect → openerp-connector-magento
Changed in openerp-connector-magento:
status: Fix Released → Invalid
Revision history for this message
Philippe B (philippe-j) wrote :

the bug is still there
i build a brand new server
install openerp + magento connector all from bazar

build a test database ---> ok

restore my datas --- > ok

update connector r 991 to 992 or 1002
the bug block all server and to retest i have to delete all files and folder re branch all
to restart the server

Changed in openerp-connector-magento:
status: Invalid → Confirmed
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Cannot reproduce.
Please give:
 - the revision of all your branches with the command: bzr version-info
 - the --addons-path
 - result of "find . -name connector -type d" in your addons pathes and in the server

Changed in openerp-connector-magento:
status: Confirmed → Incomplete
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Did you installed the module with 'Apps'?

Revision history for this message
Philippe B (philippe-j) wrote :

the server is a brand new ubuntu server 14.04 LTS hosted by OVH

i install the modules in february with modules for the database i restore from my production server

i update the repository with bzr pull and restart the server with --update-all

after update in the web interface

the server crash after update and after it is impossible to restart

when revert to 991 (before related_action) the server start

i could give you access to my server to check an give you a copy of the database backup to check

my (amateur) mind is that import_synchronizer.py dont find the right directory for related_action.py

results openerp@facteur:~/openerp-connector$ find . -name connector -type d
./connector
openerp@facteur:~/openerp-connector$ cd ..
openerp@facteur:~$ find . -name connector -type d
./openerp-connector/connector

Revision history for this message
Philippe B (philippe-j) wrote :

i think i do find the problem

after update three command line -update-all th connector is in version 7.0.2.2.0

and in /configuration/module/updates you get un update connector Connector 7.0.2.1.1 (7.0.2.2.0)

if you do this update from web side it crash

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote : Re: [Bug 1327736] Re: related_action new server dont start

On 06/25/2014 10:23 AM, Philippe B wrote:
> i think i do find the problem
>
> after update three command line -update-all th connector is in version
> 7.0.2.2.0
>
> and in /configuration/module/updates you get un update connector
> Connector 7.0.2.1.1 (7.0.2.2.0)
>
> if you do this update from web side it crash
>

Can you explain step by step how do you do from web side?

Revision history for this message
Philippe B (philippe-j) wrote :

server side (ubuntu)
i bzr pull all directories to get all updates

i restart the server with /opt/openerp/server/openerp-server --update=all --config=/etc/openerp-server.conf

on web side i go to installed modules and i update connector magento connector
after that i get 1 update to do in the update tab

Connector 7.0.2.1.1 (7.0.2.2.0)

if you go to /installed modules th module indicate that it is in 7.0.2.2 so normally you dont have to update

if i do that update from update tab i get the crash and i can't restart the server
went back from backup to restart

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

On 06/25/2014 11:39 AM, Philippe B wrote:
> server side (ubuntu)
> i bzr pull all directories to get all updates
>
> i restart the server with /opt/openerp/server/openerp-server
> --update=all --config=/etc/openerp-server.conf
>
> on web side i go to installed modules and i update connector magento connector
> after that i get 1 update to do in the update tab
>
> Connector 7.0.2.1.1 (7.0.2.2.0)
>
> if you go to /installed modules th module indicate that it is in 7.0.2.2
> so normally you dont have to update
>
> if i do that update from update tab i get the crash and i can't restart the server
> went back from backup to restart
>

The problem is that you must never use the 'Apps' or 'Updates' menu.
The version on the 'Apps' is older (it is 7.0.2.1.1) and it won't work.
Never ever use the first 2 menus.
It copies the module in the openerp server directory, so you have to
remove it from there.

--
Guewen Baconnier
Business Solutions Software Developer

Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 39
Office: +41 21 619 10 10
http://www.camptocamp.com/

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.