Skip to content

setup:upgrade want's to have full var/ writeable #2406

Closed
@amenk

Description

@amenk

When there is a file like var/.hiawatha which is not writable, bin/magento setup:upgrade fails

Error:

 Missing write permissions to the following directories: '/WebServer/websites/example/staging/var'  

Exception trace:
 () at /WebServer/websites/www.example.de/staging/setup/src/Magento/Setup/Model/Installer.php:438
 Magento\Setup\Model\Installer->checkInstallationFilePermissions() at /WebServer/websites/www.example.de/staging/setup/src/Magento/Setup/Model/Installer.php:744
 Magento\Setup\Model\Installer->installDataFixtures() at /WebServer/websites/www.example.de/staging/setup/src/Magento/Setup/Console/Command/UpgradeCommand.php:72
 Magento\Setup\Console\Command\UpgradeCommand->execute() at /WebServer/websites/www.example.de/staging/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
 Symfony\Component\Console\Command\Command->run() at /WebServer/websites/www.example.de/staging/vendor/symfony/console/Symfony/Component/Console/Application.php:874
 Symfony\Component\Console\Application->doRunCommand() at /WebServer/websites/www.example.de/staging/vendor/symfony/console/Symfony/Component/Console/Application.php:195
 Symfony\Component\Console\Application->doRun() at /WebServer/websites/www.example.de/staging/vendor/magento/framework/Console/Cli.php:49
 Magento\Framework\Console\Cli->doRun() at /WebServer/websites/www.example.de/staging/vendor/symfony/console/Symfony/Component/Console/Application.php:126
 Symfony\Component\Console\Application->run() at /WebServer/websites/www.example.de/staging/bin/magento:25

Also this is hard to debug - would be good, if it shows where the error comes from (it is \Magento\Setup\Model\FilePermissions::checkRecursiveDirectories)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for development

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions