← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 670233] Re: Product Import Fails 1.3.2.4 Step 6

 

Kyle, apparently Magento answers something that Python is unable to
understand. We need to know why.
I see two solutions you could do to help us understand what is goring wrong
on your Magento:

1) copy/paste your apache error log at the exact instant you click on the
button (you create indentation before in the tail and then look the result),
that is:
tail -f /var/log/apache2/error.log
and paste us here what you see.

2) Alternatively you can hack the Python xmlrpclib temporarily to show the
Magento response.
To do that, do:
sudo gedit /usr/lib/python2.6/xmlrpclib.py
and then, around line 1392, in the _parse_response method, add a line like
print response
after the response = allocation lines.
Then save, restart OpenERP and tell us what you see in the OpenERP logs when
the error will occur again.
Be careful, if you opt for that solution, you should then edit again
the xmlrpclib.py
file to revert your change!

So what do you see?

Raphaël Valyi


On Wed, Nov 3, 2010 at 5:12 PM, Kyle Waid <670233@xxxxxxxxxxxxxxxxxx> wrote:

> We narrowed it down with the server side log.
>
> root@midwest:~# tail -f /var/log/openerp-server.log
> [2010-11-03 12:05:25,848] ERROR:web-services:[28]:     return
> self.__send(self.__name, args)
> [2010-11-03 12:05:25,848] ERROR:web-services:[29]:   File
> "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
> [2010-11-03 12:05:25,848] ERROR:web-services:[30]:
> verbose=self.__verbose
> [2010-11-03 12:05:25,849] ERROR:web-services:[31]:   File
> "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
> [2010-11-03 12:05:25,849] ERROR:web-services:[32]:     return
> self._parse_response(h.getfile(), sock)
> [2010-11-03 12:05:25,849] ERROR:web-services:[33]:   File
> "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
> [2010-11-03 12:05:25,849] ERROR:web-services:[34]:     return u.close()
> [2010-11-03 12:05:25,849] ERROR:web-services:[35]:   File
> "/usr/lib/python2.6/xmlrpclib.py", line 836, in close
> [2010-11-03 12:05:25,850] ERROR:web-services:[36]:     raise
> ResponseError()
> [2010-11-03 12:05:25,850] ERROR:web-services:[37]: ResponseError:
> ResponseError()
> [2010-11-03 12:05:49,874] INFO:Magento Connection:Attempting connection
> with Settings:
> http://midwest.wagento.com/index.php/api/xmlrpc/,admin,toggle25
> [2010-11-03 12:05:50,289] INFO:Magento Connection:Login Successful
> [2010-11-03 12:05:50,292] INFO:Magento Connection:Calling
> Method:catalog_product.list,Arguments:[]
> [2010-11-03 12:05:53,606] ERROR:Magento Call:[01]:
> [2010-11-03 12:05:53,608] ERROR:Magento Call:[02]: Environment Information
> :
> [2010-11-03 12:05:53,608] ERROR:Magento Call:[03]: System :
> Linux-2.6.32-24-generic-i686-with-Ubuntu-10.04-lucid
> [2010-11-03 12:05:53,608] ERROR:Magento Call:[04]: OS Name : posix
> [2010-11-03 12:05:53,609] ERROR:Magento Call:[05]: Distributor ID:
>  Ubuntu
> [2010-11-03 12:05:53,609] ERROR:Magento Call:[06]: Description: Ubuntu
> 10.04.1 LTS
> [2010-11-03 12:05:53,609] ERROR:Magento Call:[07]: Release:     10.04
> [2010-11-03 12:05:53,609] ERROR:Magento Call:[08]: Codename:    lucid
> [2010-11-03 12:05:53,609] ERROR:Magento Call:[09]: Operating System Release
> : 2.6.32-24-generic
> [2010-11-03 12:05:53,610] ERROR:Magento Call:[10]: Operating System Version
> : #42-Ubuntu SMP Fri Aug 20 14:24:04 UTC 2010
> [2010-11-03 12:05:53,610] ERROR:Magento Call:[11]: Operating System
> Architecture : 32bit
> [2010-11-03 12:05:53,610] ERROR:Magento Call:[12]: Operating System Locale
> : en_US.UTF8
> [2010-11-03 12:05:53,611] ERROR:Magento Call:[13]: Python Version : 2.6.5
> [2010-11-03 12:05:53,611] ERROR:Magento Call:[14]: OpenERP-Server Version :
> 5.0.6
> [2010-11-03 12:05:53,611] ERROR:Magento Call:[15]: Last revision No. & ID :
> [2010-11-03 12:05:53,611] ERROR:Magento Call:[16]: Method:
> catalog_product.list
> [2010-11-03 12:05:53,611] ERROR:Magento Call:[17]: Arguments:[]
> [2010-11-03 12:05:53,612] ERROR:Magento Call:[18]: Error:ResponseError()
> [2010-11-03 12:05:53,617] WARNING:Magento Call:Webservice Failure, sleeping
> 1 second before next attempt
> [2010-11-03 12:05:54,622] INFO:Magento Connection:Calling
> Method:catalog_product.list,Arguments:[]
> [2010-11-03 12:05:57,979] ERROR:Magento Call:[01]:
> [2010-11-03 12:05:57,980] ERROR:Magento Call:[02]: Environment Information
> :
> [2010-11-03 12:05:57,981] ERROR:Magento Call:[03]: System :
> Linux-2.6.32-24-generic-i686-with-Ubuntu-10.04-lucid
> [2010-11-03 12:05:57,981] ERROR:Magento Call:[04]: OS Name : posix
> [2010-11-03 12:05:57,981] ERROR:Magento Call:[05]: Distributor ID:
>  Ubuntu
> [2010-11-03 12:05:57,981] ERROR:Magento Call:[06]: Description: Ubuntu
> 10.04.1 LTS
> [2010-11-03 12:05:57,981] ERROR:Magento Call:[07]: Release:     10.04
> [2010-11-03 12:05:57,982] ERROR:Magento Call:[08]: Codename:    lucid
> [2010-11-03 12:05:57,982] ERROR:Magento Call:[09]: Operating System Release
> : 2.6.32-24-generic
> [2010-11-03 12:05:57,982] ERROR:Magento Call:[10]: Operating System Version
> : #42-Ubuntu SMP Fri Aug 20 14:24:04 UTC 2010
> [2010-11-03 12:05:57,982] ERROR:Magento Call:[11]: Operating System
> Architecture : 32bit
> [2010-11-03 12:05:57,983] ERROR:Magento Call:[12]: Operating System Locale
> : en_US.UTF8
> [2010-11-03 12:05:57,983] ERROR:Magento Call:[13]: Python Version : 2.6.5
> [2010-11-03 12:05:57,983] ERROR:Magento Call:[14]: OpenERP-Server Version :
> 5.0.6
> [2010-11-03 12:05:57,983] ERROR:Magento Call:[15]: Last revision No. & ID :
> [2010-11-03 12:05:57,983] ERROR:Magento Call:[16]: Method:
> catalog_product.list
> [2010-11-03 12:05:57,984] ERROR:Magento Call:[17]: Arguments:[]
> [2010-11-03 12:05:57,984] ERROR:Magento Call:[18]: Error:ResponseError()
> [2010-11-03 12:05:57,991] WARNING:Magento Call:Webservice Failure, sleeping
> 3 second before next attempt
> [2010-11-03 12:06:00,998] INFO:Magento Connection:Calling
> Method:catalog_product.list,Arguments:[]
> [2010-11-03 12:06:07,380] ERROR:Magento Call:[01]:
> [2010-11-03 12:06:07,381] ERROR:Magento Call:[02]: Environment Information
> :
> [2010-11-03 12:06:07,381] ERROR:Magento Call:[03]: System :
> Linux-2.6.32-24-generic-i686-with-Ubuntu-10.04-lucid
> [2010-11-03 12:06:07,382] ERROR:Magento Call:[04]: OS Name : posix
> [2010-11-03 12:06:07,382] ERROR:Magento Call:[05]: Distributor ID:
>  Ubuntu
> [2010-11-03 12:06:07,382] ERROR:Magento Call:[06]: Description: Ubuntu
> 10.04.1 LTS
> [2010-11-03 12:06:07,382] ERROR:Magento Call:[07]: Release:     10.04
> [2010-11-03 12:06:07,383] ERROR:Magento Call:[08]: Codename:    lucid
> [2010-11-03 12:06:07,383] ERROR:Magento Call:[09]: Operating System Release
> : 2.6.32-24-generic
> [2010-11-03 12:06:07,383] ERROR:Magento Call:[10]: Operating System Version
> : #42-Ubuntu SMP Fri Aug 20 14:24:04 UTC 2010
> [2010-11-03 12:06:07,383] ERROR:Magento Call:[11]: Operating System
> Architecture : 32bit
> [2010-11-03 12:06:07,383] ERROR:Magento Call:[12]: Operating System Locale
> : en_US.UTF8
> [2010-11-03 12:06:07,384] ERROR:Magento Call:[13]: Python Version : 2.6.5
> [2010-11-03 12:06:07,384] ERROR:Magento Call:[14]: OpenERP-Server Version :
> 5.0.6
> [2010-11-03 12:06:07,384] ERROR:Magento Call:[15]: Last revision No. & ID :
> [2010-11-03 12:06:07,384] ERROR:Magento Call:[16]: Method:
> catalog_product.list
> [2010-11-03 12:06:07,384] ERROR:Magento Call:[17]: Arguments:[]
> [2010-11-03 12:06:07,385] ERROR:Magento Call:[18]: Error:ResponseError()
> [2010-11-03 12:06:07,390] WARNING:Magento Call:Webservice Failure, sleeping
> 6 second before next attempt
> [2010-11-03 12:06:13,804] ERROR:web-services:[01]:
> [2010-11-03 12:06:13,805] ERROR:web-services:[02]: Environment Information
> :
> [2010-11-03 12:06:13,805] ERROR:web-services:[03]: System :
> Linux-2.6.32-24-generic-i686-with-Ubuntu-10.04-lucid
> [2010-11-03 12:06:13,806] ERROR:web-services:[04]: OS Name : posix
> [2010-11-03 12:06:13,806] ERROR:web-services:[05]: Distributor ID:
>  Ubuntu
> [2010-11-03 12:06:13,806] ERROR:web-services:[06]: Description: Ubuntu
> 10.04.1 LTS
> [2010-11-03 12:06:13,806] ERROR:web-services:[07]: Release:     10.04
> [2010-11-03 12:06:13,806] ERROR:web-services:[08]: Codename:    lucid
> [2010-11-03 12:06:13,807] ERROR:web-services:[09]: Operating System Release
> : 2.6.32-24-generic
> [2010-11-03 12:06:13,807] ERROR:web-services:[10]: Operating System Version
> : #42-Ubuntu SMP Fri Aug 20 14:24:04 UTC 2010
> [2010-11-03 12:06:13,807] ERROR:web-services:[11]: Operating System
> Architecture : 32bit
> [2010-11-03 12:06:13,807] ERROR:web-services:[12]: Operating System Locale
> : en_US.UTF8
> [2010-11-03 12:06:13,807] ERROR:web-services:[13]: Python Version : 2.6.5
> [2010-11-03 12:06:13,808] ERROR:web-services:[14]: OpenERP-Server Version :
> 5.0.6
> [2010-11-03 12:06:13,808] ERROR:web-services:[15]: Last revision No. & ID :
> [2010-11-03 12:06:13,808] ERROR:web-services:[16]: Traceback (most recent
> call last):
> [2010-11-03 12:06:13,808] ERROR:web-services:[17]:   File
> "/usr/lib/openerp-server/osv/osv.py", line 59, in wrapper
> [2010-11-03 12:06:13,808] ERROR:web-services:[18]:     return f(self,
> dbname, *args, **kwargs)
> [2010-11-03 12:06:13,809] ERROR:web-services:[19]:   File
> "/usr/lib/openerp-server/osv/osv.py", line 118, in execute
> [2010-11-03 12:06:13,809] ERROR:web-services:[20]:     res =
> pool.execute_cr(cr, uid, obj, method, *args, **kw)
> [2010-11-03 12:06:13,809] ERROR:web-services:[21]:   File
> "/usr/lib/openerp-server/osv/osv.py", line 110, in execute_cr
> [2010-11-03 12:06:13,809] ERROR:web-services:[22]:     return
> getattr(object, method)(cr, uid, *args, **kw)
> [2010-11-03 12:06:13,810] ERROR:web-services:[23]:   File
> "/usr/lib/openerp-server/addons/magentoerpconnect/magerp_core.py", line 137,
> in sync_products
> [2010-11-03 12:06:13,810] ERROR:web-services:[24]:     list_prods =
> attr_conn.call('catalog_product.list')
> [2010-11-03 12:06:13,810] ERROR:web-services:[25]:   File
> "/usr/lib/openerp-server/addons/magentoerpconnect/magerp_osv.py", line 53,
> in call
> [2010-11-03 12:06:13,810] ERROR:web-services:[26]:     res =
> self.ser.call(self.session, method, arguments)
> [2010-11-03 12:06:13,810] ERROR:web-services:[27]:   File
> "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
> [2010-11-03 12:06:13,811] ERROR:web-services:[28]:     return
> self.__send(self.__name, args)
> [2010-11-03 12:06:13,811] ERROR:web-services:[29]:   File
> "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
> [2010-11-03 12:06:13,811] ERROR:web-services:[30]:
> verbose=self.__verbose
> [2010-11-03 12:06:13,811] ERROR:web-services:[31]:   File
> "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
> [2010-11-03 12:06:13,811] ERROR:web-services:[32]:     return
> self._parse_response(h.getfile(), sock)
> [2010-11-03 12:06:13,812] ERROR:web-services:[33]:   File
> "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
> [2010-11-03 12:06:13,812] ERROR:web-services:[34]:     return u.close()
> [2010-11-03 12:06:13,812] ERROR:web-services:[35]:   File
> "/usr/lib/python2.6/xmlrpclib.py", line 836, in close
> [2010-11-03 12:06:13,812] ERROR:web-services:[36]:     raise
> ResponseError()
> [2010-11-03 12:06:13,812] ERROR:web-services:[37]: ResponseError:
> ResponseError()
> ^C
> root@midwest:~#
>
> --
> Product Import Fails 1.3.2.4 Step 6
> https://bugs.launchpad.net/bugs/670233
> You received this bug notification because you are subscribed to Magento
> Open ERP Connector.
>
> Status in Magento Open ERP Connector: New
>
> Bug description:
> Hi,
> We are trying to implement openerp into our existing magento store using
> this connector. We have approx. 5,000 products and a few core/community
> extension modules. I have the openerp server running in ubuntu 10.04 version
> 5 latest from synaptic manager and the latest connector installed. Our
> magento webstore is version 1.3.2.4. The webserver is on litespeed with
> suggested php version.
>
> Using a clean install with the magento sample data the import works
> perfectly on all steps but when we try a dev setup of our webstore it fails
> on product import. Here is a snapshot of the error.
>
> Traceback (most recent call last):
>  File "/usr/lib/openerp-server/netsvc.py", line 244, in dispatch
>    result = LocalService(service_name)(method, *params)
>  File "/usr/lib/openerp-server/netsvc.py", line 73, in __call__
>    return getattr(self, method)(*params)
>  File "/usr/lib/openerp-server/service/web_services.py", line 583, in
> execute
>    res = service.execute(db, uid, object, method, *args)
>  File "/usr/lib/openerp-server/osv/osv.py", line 59, in wrapper
>    return f(self, dbname, *args, **kwargs)
>  File "/usr/lib/openerp-server/osv/osv.py", line 118, in execute
>    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
>  File "/usr/lib/openerp-server/osv/osv.py", line 110, in execute_cr
>    return getattr(object, method)(cr, uid, *args, **kw)
>  File "/usr/lib/openerp-server/addons/magentoerpconnect/magerp_core.py",
> line 137, in sync_products
>    list_prods = attr_conn.call('catalog_product.list')
>  File "/usr/lib/openerp-server/addons/magentoerpconnect/magerp_osv.py",
> line 53, in call
>    res = self.ser.call(self.session, method, arguments)
>  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
>    return self.__send(self.__name, args)
>  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
>    verbose=self.__verbose
>  File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
>    return self._parse_response(h.getfile(), sock)
>  File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
>    return u.close()
>  File "/usr/lib/python2.6/xmlrpclib.py", line 836, in close
>    raise ResponseError()
> ResponseError: ResponseError()
> ----------------------------------------------------------
> I checked and there is no magento error log. I do not know how to get any
> other type of log report "will try any suggestions with directions".
> I tried dropping the openerp database starting fresh. Same error. Tried
> using the sneldev module. Same error. Tried removing all but one community
> module "some gift cert" same error. we still have a few core modules
> installed. Tried using a standard home webpage. Same error. Tried increasing
> timeout to 1,000 and memory to 1024. Same error. I am not sure what I should
> do next. If anyone has any suggestions please tell me and ill try it. I
> understand that the error is being returned by magento, or the information
> being returned isnt what was asked for but thats all. If you think its
> because the products are configured wrong, or anything.
>
>
>

-- 
Product Import Fails 1.3.2.4 Step 6
https://bugs.launchpad.net/bugs/670233
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in Magento Open ERP Connector: New

Bug description:
Hi,
We are trying to implement openerp into our existing magento store using this connector. We have approx. 5,000 products and a few core/community extension modules. I have the openerp server running in ubuntu 10.04 version 5 latest from synaptic manager and the latest connector installed. Our magento webstore is version 1.3.2.4. The webserver is on litespeed with suggested php version.

Using a clean install with the magento sample data the import works perfectly on all steps but when we try a dev setup of our webstore it fails on product import. Here is a snapshot of the error.

Traceback (most recent call last):
  File "/usr/lib/openerp-server/netsvc.py", line 244, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/usr/lib/openerp-server/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/usr/lib/openerp-server/service/web_services.py", line 583, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/usr/lib/openerp-server/osv/osv.py", line 59, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/openerp-server/osv/osv.py", line 118, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/openerp-server/osv/osv.py", line 110, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/openerp-server/addons/magentoerpconnect/magerp_core.py", line 137, in sync_products
    list_prods = attr_conn.call('catalog_product.list')
  File "/usr/lib/openerp-server/addons/magentoerpconnect/magerp_osv.py", line 53, in call
    res = self.ser.call(self.session, method, arguments)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
    return u.close()
  File "/usr/lib/python2.6/xmlrpclib.py", line 836, in close
    raise ResponseError()
ResponseError: ResponseError()
----------------------------------------------------------
I checked and there is no magento error log. I do not know how to get any other type of log report "will try any suggestions with directions".
I tried dropping the openerp database starting fresh. Same error. Tried using the sneldev module. Same error. Tried removing all but one community module "some gift cert" same error. we still have a few core modules installed. Tried using a standard home webpage. Same error. Tried increasing timeout to 1,000 and memory to 1024. Same error. I am not sure what I should do next. If anyone has any suggestions please tell me and ill try it. I understand that the error is being returned by magento, or the information being returned isnt what was asked for but thats all. If you think its because the products are configured wrong, or anything.





References