Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.15

Bug #10154 pear install does not recover from error
Submitted: 2007-02-22 08:15 UTC
From: m0kili at gmail dot com Assigned:
Status: Duplicate Package: PEAR (version 1.5.0)
PHP Version: 5.2.1 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2007-02-22 08:15 UTC] m0kili at gmail dot com (Marek)
Description: ------------ I tried to install symfony package, but pear install ended with memory exhausted error. I raised the limit. When I try to install symfony, install complains the package is installed. Uninstall complains package is not installed. Test script: --------------- $ sudo pear install symfony/symfony downloading symfony-1.0.0.tgz ... Starting to download symfony-1.0.0.tgz (1,910,892 bytes) .............................................done: 1,910,892 bytes Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 786400 bytes) in /usr/local/lib/php/PEAR/Registry.php on line 1241 $ sudo vi /usr/local/lib/php-cli.ini $ sudo pear install symfony/symfony Skipping package "symfony/symfony", already installed as version No valid packages found install failed $ sudo pear uninstall symfony/symfony No package to uninstall given $ sudo pear clear-cache reading directory /tmp/pear/cache 16 cache entries cleared $ sudo pear install symfony/symfony Skipping package "symfony/symfony", already installed as version No valid packages found install failed $ sudo pear upgrade-all Will upgrade console_getopt Will upgrade html_css Will upgrade symfony WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update downloading Console_Getopt-1.2.2.tgz ... Starting to download Console_Getopt-1.2.2.tgz (4,252 bytes) .....done: 4,252 bytes downloading HTML_CSS-1.1.3.tgz ... Starting to download HTML_CSS-1.1.3.tgz (107,398 bytes) ...done: 107,398 bytes downloading symfony-1.0.0.tgz ... Starting to download symfony-1.0.0.tgz (1,910,892 bytes) ...done: 1,910,892 bytes upgrade-all ok: channel://pear.php.net/Console_Getopt-1.2.2 upgrade-all ok: channel://pear.php.net/HTML_CSS-1.1.3 ERROR: pear.symfony-project.com/symfony not installed

Comments

 [2007-02-22 08:19 UTC] m0kili at gmail dot com
and pear list does not list the package
 [2007-02-22 15:12 UTC] cellog (Greg Beaver)
Hi, This is a pretty pickle! The registry got corrupted mid-install, not fun. What I would suggest is that you take 2 steps: sudo rm /usr/local/lib/php/.registry/.channel.pear.symfony-project.com/symfony.reg sudo peardev upgrade symfony/symfony The peardev command has no memory limit. There is very little we can do to improve memory usage of PEAR, until version 2.0. At that time, things will start looking up. In addition, the problem has been reported many times, and we have provided the "peardev" command which disables memory_limit. For this reason, I am marking this as "Bogus" In the future, if you encounter a problem of this nature, even if it is clearly a bug, write a message to pear-general@lists.php.net, this is our support mailing list, and you do not need to be subscribed to write messages to the list. Although I was able to answer quickly, it is often faster to get support through that channel.
 [2007-02-24 23:22 UTC] m0kili at gmail dot com
I meant it's OK pear crashed. But it should recover from this gracefully. Is there a way this could happen? Pear should detect the registry is corrupted and offer a way to fix it.