pyrus / Pyrus

The next generation of the PEAR installer.
http://pear2.php.net/
Other
70 stars 18 forks source link

Rename of the actual to backup path failed #122

Open Surt opened 11 years ago

Surt commented 11 years ago

Each time I try to install any package it gives me:

Pyrus\AtomicFileTransaction\MultiException: ERROR: Commit failed
   Pyrus\IOException: CRITICAL - unable to complete transaction, rename of actual to backup path failed
       Pyrus\AtomicFileTransaction\RuntimeException: Cannot rollback - not in a trasaction

before that multiple warnings trying to rename php.old-php5.3.5 etc

Using Windows 8 64bits

stormwild commented 11 years ago

I have the same problem when I tried to update phpcs:

pyrus install pear/PHP_CodeSniffer-1.4.6
...
8. rename() phar://D:/wamp/bin/php/php5.4.3/pyrus.phar/Pyrus-2.0.0a4/php/Pyrus/AtomicFileTransaction/TwoStage.php:82

Warning: rename(D:\wamp\bin\php\php5.4.3,D:\wamp\bin\php\.old-php5.4.3): The program cannot access the file because it is being used by another process. (code:32) in phar://D:/wamp/bin/php/php5.4.3/pyrus.phar/Pyrus-2.0.0a4/php/Pyrus/AtomicFileTransaction/Transaction/TwoStage.php on line 82

wamp was not running.

Why is Pyrus trying to modify it's own containing folder?

Windows 7, 64bit

This issue is related to the following issues: https://github.com/pyrus/Pyrus/issues/3 https://github.com/pyrus/Pyrus/issues/24 https://github.com/pyrus/Pyrus/issues/9 https://github.com/pear2/pear2.php.net/issues/25