Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Cannot Install Modules - rename access is denied #103

Open
laurinkeithdavis opened this issue Aug 7, 2012 · 6 comments
Open

Cannot Install Modules - rename access is denied #103

laurinkeithdavis opened this issue Aug 7, 2012 · 6 comments
Labels

Comments

@laurinkeithdavis
Copy link

Windows 7 Professional x64

C:\inetpub\3rd Party Apps\PEAR>pyrus install hp/HTMLPurifier

Pyrus version 2.0.0a4 SHA-1: 72271D92C3AA1FA96DF9606CD538868544609A52
Using PEAR installation found at C:\inetpub\3rd Party Apps\PEAR\PEAR
Downloading htmlpurifier.org/HTMLPurifier
Mime-type: application/x-gzip
[>
[===============================================================================
====================>] 99% (267/270 kb)

Warning: rename(C:\inetpub\3rd Party Apps\PEAR\PEAR,C:\inetpub\3rd Party Apps\PEAR.old-PEAR): Access is denied. (code: 5) in phar://C:/inetpub/3rd Party Apps/PEAR/PEAR/pyrus.phar/Pyrus-2.0.0a4/php/Pyrus/AtomicFileTransaction/Transaction/TwoStage.php on line 82

Call Stack:
0.0789 1229632 1. {main}() C:\inetpub\3rd Party Apps\PEAR\PEAR\pyrus.phar:0
0.1018 2005512 2. Pyrus\ScriptFrontend\Commands->run() C:\inetpub\3rd Party Apps\PEAR\PEAR\pyrus.phar:69
0.2028 3429264 3. Pyrus\ScriptFrontend\Commands->install() phar://C:/inetpub/3rd Party Apps/PEAR/PEAR/pyrus.phar/Pyrus-2.0.0a4/php/Pyrus/ScriptFrontend/Commands.php:309
0.6842 4308904 4. Pyrus\Installer::commit() phar://C:/inetpub/3rd Party Apps/PEAR/PEAR/pyrus.phar/Pyrus-2.0.0a4/php/Pyrus/ScriptFrontend/Commands.php:559
61.2355 8395392 5. Pyrus\AtomicFileTransaction::commit() phar://C:/inetpub/3rd Party Apps/PEAR/PEAR/pyrus.phar/Pyrus-2.0.0a4/php/Pyrus/Installer.php:3446

1.2355 8395416 6. Pyrus\AtomicFileTransaction\Manager->commit() phar://C:/inetpub/3rd Party Apps/PEAR/PEAR/pyrus.phar/Pyrus-2.0.0a4/php/Pyrus/AtomicFileTransaction.php:90
61.2356 8395488 7. Pyrus\AtomicFileTransaction\Transaction\TwoStage->commit() phar://C:/inetpub/3rd Party Apps/PEAR/PEAR/pyrus.phar/Pyrus-2.0.0a4/php/Pyrus/AtomicFileTransaction/Manager.php:165
61.2357 8395592 8. rename() phar://C:/inetpub/3rd Party Apps/PEAR/PEAR/pyrus.phar/Pyrus-2.0.0a4/php/Pyrus/AtomicFileTransaction/Transaction/TwoStage.php:82

Pyrus\Installer\Exception: Installation failed
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 transaction

@enrico200165
Copy link

exactly same problem here. I tried to manually rename the pear dir manually, the initial . seems to be refused by windows 7, gives error box "You must type a file name"

@Narretz
Copy link

Narretz commented Dec 20, 2012

Same bug here.

@toonevdb
Copy link

Got the same error with 2 different packages. Windows 7 x64.

@RedChrome
Copy link

Yeah got the same problem too...
my workaround was to create a temp dir for the installer to place the executables files in, and change the paths of the executables appropriately:

php .phar set bin_dir C:\php\TMP

Unfortunately, the paths in C:\php\TMP\ *.bat are wrong, so remove TMP\ from the *.bat's and move them to C:\php.

@icheko
Copy link

icheko commented Jun 6, 2013

I finally got it working by removing the read-only attribute from the folder containing pyrus.phar. Couldn't find a fix on the interwebs, so I'm adding it here.

http://stringoftheseus.com/blog/2010/12/22/php-unlink-permisssion-denied-error-on-windows/

@ghost
Copy link

ghost commented Mar 20, 2014

Used -f option and it worked.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants