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

Cannot Install Modules - rename access is denied #103

Open

Description

@laurinkeithdavis

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

Activity

  1. enrico200165 commented on Nov 4, 2012

    @enrico200165

    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"

  2. Narretz commented on Dec 20, 2012

    @Narretz

    Same bug here.

  3. toonevdb commented on Mar 21, 2013

    @toonevdb

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

  4. RedChrome commented on Mar 28, 2013

    @RedChrome

    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.

  5. icheko commented on Jun 6, 2013

    @icheko

    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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions