smart error with pycurl

Bug #709783 reported by Nigel Kukard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Smart Package Manager
New
Undecided
Unassigned

Bug Description

[Linux:root@nigel-e6400 ~]# rpm -q rpm
rpm-5.3.6-0.5.x86_64
[Linux:root@nigel-e6400 ~]# rpm -q python-pycurl
python-pycurl-7.19.0-0.0.x86_64
[Linux:root@nigel-e6400 ~]# rpm -q smart
smart-1.3.1-0.0.x86_64

smart-1.3 seemed to of worked fine

[Linux:root@nigel-e6400 ~]# smart upgrade bc bash bash-completion fuse libcap libcap-ng
Loading cache...
Updating cache... ####################################################################################### [100%]

Computing transaction...

Upgrading packages (7):
  bash-4.1-0.0@x86_64 bc-1.06-1.25@x86_64 libcap-2.19-1.1@x86_64 libcap-ng-0.6.5-0.2@x86_64
  bash-completion-4.1-0.0@x86_64 fuse-2.8.4-1.2@x86_64 libcap-devel-2.19-1.1@x86_64

2.1MB of package files are needed. 555.8kB will be used.

Confirm changes? (Y/n): y

Fetching packages...
-> http://download.idms-linux.org/trunk/x86_64/RPMS/bash-4.1-0.0.x86_64.rpm
bash-4.1-0.0.x86_64.rpm ####################################################################################### [ 71%]
-> http://download.idms-linux.org/trunk/x86_64/RPMS/fuse-2.8.4-1.2.x86_64.rpm
fuse-2.8.4-1.2.x86_64.rpm ####################################################################################### [ 85%]
-> http://download.idms-linux.org/trunk/x86_64/RPMS/libcap-2.19-1.1.x86_64.rpm
libcap-2.19-1.1.x86_64.rpm ####################################################################################### [100%]
Traceback (most recent call last):
  File "/usr/bin/smart", line 195, in <module>
    main(sys.argv[1:])
  File "/usr/bin/smart", line 168, in main
    exitcode = iface.run(opts.command, opts.argv)
  File "/usr/lib/python2.6/site-packages/smart/interface.py", line 53, in run
    result = _command.main(self._ctrl, opts)
  File "/usr/lib/python2.6/site-packages/smart/commands/upgrade.py", line 191, in main
    ctrl.commitTransaction(trans, confirm=confirm)
  File "/usr/lib/python2.6/site-packages/smart/control.py", line 635, in commitTransaction
    return self.commitChangeSet(trans.getChangeSet(), caching, confirm)
  File "/usr/lib/python2.6/site-packages/smart/control.py", line 683, in commitChangeSet
    caching)
  File "/usr/lib/python2.6/site-packages/smart/control.py", line 801, in fetchPackages
    fetcher.run(what=_("packages"))
  File "/usr/lib/python2.6/site-packages/smart/fetcher.py", line 243, in run
    if not handler.tick():
  File "/usr/lib/python2.6/site-packages/smart/fetcher.py", line 1524, in tick
    num, succeeded, failed = multi.info_read()
pycurl.error: (43, 'Unable to fetch curl handle from curl object')

Revision history for this message
Nigel Kukard (nkukard) wrote :
Download full text (3.5 KiB)

I'm not applying any patches to smart.

It seems I can update some packages, but others ... here is another example...

[Linux:root@nigel-e6400 ~]# smart upgrade "mysql*" "openssh*"
Loading cache...
Updating cache... ####################################################################################### [100%]

Computing transaction...

Upgrading packages (13):
  mysql-5.1.48-1.4@x86_64 mysql-embedded-devel-5.1.48-1.4@x86_64 openssh-clients-5.2p1-1.3@x86_64
  mysql-bench-5.1.48-1.4@x86_64 mysql-libs-5.1.48-1.4@x86_64 openssh-common-5.2p1-1.3@x86_64
  mysql-cluster-5.1.48-1.4@x86_64 mysql-server-5.1.48-1.4@x86_64 openssh-server-5.2p1-1.3@x86_64
  mysql-devel-5.1.48-1.4@x86_64 mysql-test-5.1.48-1.4@x86_64
  mysql-embedded-5.1.48-1.4@x86_64 openssh-5.2p1-1.3@x86_64

43.3MB of package files are needed. 112.2MB will be used.

Confirm changes? (Y/n): y

Fetching packages...
-> http://download.idms-linux.org/trunk/x86_64/RPMS/mysql-libs-5.1.48-1.4.x86_64.rpm
-> http://download.idms-linux.org/trunk/x86_64/RPMS/mysql-5.1.48-1.4.x86_64.rpm
mysql-libs-5.1.48-1.4.x86_64.rpm ####################################################################################### [ 7%]
-> http://download.idms-linux.org/trunk/x86_64/RPMS/openssh-server-5.2p1-1.3.x86_64.rpm
openssh-server-5.2p1-1.3.x86_64.rpm ####################################################################################### [ 15%]
-> http://download.idms-linux.org/trunk/x86_64/RPMS/mysql-server-5.1.48-1.4.x86_64.rpm
mysql-server-5.1.48-1.4.x86_64.rpm ####################################################################################### [ 23%]
Traceback (most recent call last):
  File "/usr/bin/smart", line 195, in <module>
    main(sys.argv[1:])
  File "/usr/bin/smart", line 168, in main
    exitcode = iface.run(opts.command, opts.argv)
  File "/usr/lib/python2.6/site-packages/smart/interface.py", line 53, in run
    result = _command.main(self._ctrl, opts)
  File "/usr/lib/python2.6/site-packages/smart/commands/upgrade.py", line 191, in main
    ctrl.commitTransaction(trans, confirm=confirm)
  File "/usr/lib/python2.6/site-packages/smart/control.py", line 635, in commitTransaction
    return self.commitChangeSet(trans.getChangeSet(), caching, confirm)
  File "/usr/lib/python2.6/site-packages/smart/control.py", line 683, in commitChangeSet
    caching)
  File "/usr/lib/python2.6/site-packages/smart/...

Read more...

Revision history for this message
Nigel Kukard (nkukard) wrote :
Download full text (4.2 KiB)

> Yeah, noticed.
>
> You could try this patch:
> http://bazaar.launchpad.net/~dsmid/smart/pycurl-ftp-segfault/revision/938
>
> Even though it's linked to a segfault with FTP, rather than generic...

No go with the patch ... I'll leave it at that and not upgrade those packages for now ... I have a reproducer now so I can test fixes :)

[Linux:root@nigel-e6400 ~]# rpm -Uvh /tmp/smart-*1.3.1-0.1*
Preparing... ########################################### [100%]
   1:smart ########################################### [ 33%]
   2:smart-update ########################################### [ 67%]
   3:smart-gui ########################################### [100%]

[Linux:root@nigel-e6400 ~]# smart upgrade flex ftp fuse* m4 mdadm mingetty minicom mktemp nagios* squid* postgresql*
Loading cache...
Updating cache... ####################################################################################### [100%]

Computing transaction...

Upgrading packages (25):
  flex m4 nagios postgresql-devel postgresql-plpython
  ftp mdadm nagios-devel postgresql-docs postgresql-server
  fuse mingetty nagios-www postgresql-libs squid
  fuse-devel minicom postgresql postgresql-perl-contrib squid-httpd
  fuse-libs mktemp postgresql-contrib postgresql-plperl squid-ldap

16.0MB of package files are needed. 20.3MB will be used.

Confirm changes? (Y/n): y

Fetching packages...
-> http://download.idms-linux.org/trunk/x86_64/RPMS/postgresql-perl-contrib-8.4.4-1.4.x86_64.rpm
postgresql-perl-contrib-8.4.4-1.4.x86_64.rpm ####################################################################################### [ 8%]
-> http://download.idms-linux.org/trunk/x86_64/RPMS/fuse-libs-2.8.4-1.2.x86_64.rpm
fuse-libs-2.8.4-1.2.x86_64.rpm ####################################################################################### [ 12%]
-> http://download.idms-linux.org/trunk/x86_64/RPMS/squid-3.0.STABLE19-1.3.x86_64.rpm
squid-3.0.STABLE19-1.3.x86_64.rpm ####################################################################################### [ 16%]
-> http://download.idms-linux.org/trunk/x86_64/RPMS/squid-httpd-3.0.STABLE19-1.3.x86_64.rpm
squid-httpd-3.0.STABLE19-1.3.x86_64.rpm ####################################################################################### [ 20%]
Traceback (mo...

Read more...

Revision history for this message
Anders F Björklund (afb) wrote :

Added an option to disable pycurl (Bug #522518)

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.