pear install fails without error message, downloaded go-pear is also affected (Karmic)

Bug #445536 reported by Gabor Halaszvari
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Incomplete
Low
Unassigned

Bug Description

Binary package hint: php5

After the workarounds applied from #420639 (cleaning and updating channels), "pear install" downloads the packages but exits without any error message just before the installation (or unpacking) starts.

I removed the php-pear package and tried to install pear via go-pear (downloaded from http://pear.php.net/go-pear).
This type of installation exits also when the installer unpacks the package PEAR.

ProblemType: Bug
Architecture: i386
Date: Wed Oct 7 16:48:56 2009
DistroRelease: Ubuntu 9.10
Package: php5 5.2.10.dfsg.1-2ubuntu4
PackageArchitecture: all
ProcEnviron:
 LANG=hu_HU.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-12.40-generic
SourcePackage: php5
Uname: Linux 2.6.31-12-generic i686

Revision history for this message
Gabor Halaszvari (g-halaszvari) wrote :
summary: - pear install fails without error message (downloaded go-pear is also
- affected)
+ pear install fails without error message, downloaded go-pear is also
+ affected (Karmic)
Revision history for this message
Furlot (furlot) wrote :

I confirm this bug on a fresh Ubuntu Server 9.10-beta
ex :
root@ubuntu:~# pear install Crypt_CHAP
downloading Crypt_CHAP-1.0.2.tgz ...
Starting to download Crypt_CHAP-1.0.2.tgz (5,494 bytes)
.....done: 5,494 bytes
root@ubuntu:~#

I try pear upgrade but there is the same problem :
root@ubuntu:~# pear upgrade
downloading PEAR-1.9.0.tgz ...
Starting to download PEAR-1.9.0.tgz (291,634 bytes)
.........................................done: 291,634 bytes
root@ubuntu:~#

Revision history for this message
Chuck Short (zulcss) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:
1. Is this reproducible?
2. If so, what specific steps should we take to recreate this bug? Be as detailed as possible.
This will help us to find and resolve the problem.

Changed in php5 (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Gabor Halaszvari (g-halaszvari) wrote :

1. Is this reproducible?
Absolutely. It happens at every "pear install" and "pear upgrade" command.

2. If so, what specific steps should we take to recreate this bug? Be as detailed as possible.
Try to upgrade a pear package, or try to install a new one. The package will be downloaded, but pear is exiting before the installation without any error message:

Examples:
  root@nx7400:/root# pear install Date
  downloading Date-1.4.7.tgz ...
  Starting to download Date-1.4.7.tgz (55,754 bytes)
  .............done: 55,754 bytes
  root@nx7400:/root#

  root@nx7400:/root# pear upgrade-all
  Will upgrade channel://pear.php.net/pear
  downloading PEAR-1.9.0.tgz ...
  Starting to download PEAR-1.9.0.tgz (291,634 bytes)
  .................................done: 291,634 bytes
  root@nx7400:/root#

  root@nx7400:/root# pear install Pear
  downloading PEAR-1.9.0.tgz ...
  Starting to download PEAR-1.9.0.tgz (291,634 bytes)
  .............................................................done: 291,634 bytes
  root@nx7400:/root#

The output of the same command under Ubuntu 9.04:
  root@pcdev01:~# pear install Date
  downloading Date-1.4.7.tgz ...
  Starting to download Date-1.4.7.tgz (55,754 bytes)
  .............done: 55,754 bytes
  install ok: channel://pear.php.net/Date-1.4.7
  root@pcdev01:~#

The last line of the 9.04 output (install ok: ....) shows that the downloaded package was successfully unpacked and installed.

The pear script in 9.10 exits before this step (the downloaded 'go-pear' script also).
I think it's related to the PHP zlib extension and the Archive_Tar pear package which is used to unpack the downloaded files.

Revision history for this message
Furlot (furlot) wrote :

pear install work with -Z option :

root@ubuntu:~# pear install -Z Auth_SASL
downloading Auth_SASL-1.0.3.tar ...
Starting to download Auth_SASL-1.0.3.tar (Unknown size)
............done: 44,544 bytes
install ok: channel://pear.php.net/Auth_SASL-1.0.3
root@ubuntu:~#

Revision history for this message
Gabor Halaszvari (g-halaszvari) wrote :

Thank you!

This workaround is working.

The "pear help options" says nothing about this command line option. Is this an undocumented one?

Maybe it's related to the zlib bug mentioned here also: http://www.nabble.com/Re%3A-Debugging-pear-install-hang-p25037632.html

Revision history for this message
Till Klampaeckel (till-php) wrote :

Also, in the future, please try pear install -vvvvv Foo. Might give you more info.

Revision history for this message
Gabor Halaszvari (g-halaszvari) wrote :

This is the output running with the -vvvvv option:

root@nx7400:/home/halaszvarig# pear -vvvvv upgrade Structures_Graph

Notice: file_exists(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in PEAR/Downloader/Package.php on line 1517

Notice: is_file(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in PEAR/Downloader/Package.php on line 1527

Notice: is_file(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in PEAR/Downloader/Package.php on line 1527
Downloading "http://pear.php.net/get/Structures_Graph-1.0.3.tgz"
downloading Structures_Graph-1.0.3.tgz ...
Starting to download Structures_Graph-1.0.3.tgz (30,191 bytes)
.........done: 30,191 bytes

Warning: unlink(/tmp/glibctestEWJtz8): No such file or directory in System.php on line 206

Revision history for this message
thedp (devil-panther) wrote :

-vvvvv gives me no output!
But the -Z workaround worked perfectly!

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.