Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File permissions on cache/var folder #17

Open
benblub opened this issue Feb 1, 2023 · 1 comment
Open

File permissions on cache/var folder #17

benblub opened this issue Feb 1, 2023 · 1 comment

Comments

@benblub
Copy link

benblub commented Feb 1, 2023

OS: macOS Monterey
Symfony: 6.2.5
meUser: 'www-data',
PHP: 8.2.1
lando: v3.9.0

From time to time the permissions on log/cache changed to root

drwxr-xr-x  3 root     root       96 Feb  1 08:38 cache
drwxr-xr-x  2 root     root       64 Feb  1 08:38 log

If that happens running tests as example gives a RuntimeException

RuntimeException: Unable to write in the "cache" directory (/app/var/cache/test).

deleting the folders and run the test again works -> file permissions changed then to www-data

I'm unsure why this happen at all. This behavior has started after some changes (change php from 8.1 to 8.2, run composer updated deps, updated lando to version v3.9.0)

lando.yaml

changed
image: lando/php:8.1-apache-4
to
image: lando/php:8.2-apache-4

composer I downgrade now and let me see this can be related to a composer update?

  - Downgrading symfony/yaml (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/filesystem (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/string (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/console (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/config (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading nikic/php-parser (v4.15.3 => v4.15.2): Extracting archive
  - Downgrading nette/utils (v3.2.9 => v3.2.8): Extracting archive
  - Downgrading symfony/stopwatch (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/process (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/options-resolver (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/finder (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/event-dispatcher (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading friendsofphp/php-cs-fixer (v3.14.2 => v3.13.1): Extracting archive
  - Downgrading phpunit/php-code-coverage (9.2.24 => 9.2.23): Extracting archive
  - Downgrading phpunit/phpunit (9.5.28 => 9.5.27): Extracting archive
  - Downgrading brianium/paratest (v6.8.1 => v6.8.0): Extracting archive
  - Downgrading symfony/intl (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/twig-bridge (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/http-foundation (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/var-dumper (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/error-handler (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/http-kernel (v6.2.5 => v6.2.4): Extracting archive
  - Downgrading symfony/var-exporter (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/dependency-injection (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/twig-bundle (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/routing (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/cache (v6.2.5 => v6.2.4): Extracting archive
  - Downgrading symfony/framework-bundle (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/translation (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/password-hasher (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/security-core (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/property-info (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/property-access (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/security-http (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/security-csrf (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/security-bundle (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/lock (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading doctrine/event-manager (2.0.0 => 1.2.0): Extracting archive
  - Downgrading doctrine/persistence (3.1.3 => 3.1.2): Extracting archive
  - Downgrading symfony/doctrine-bridge (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/asset (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading doctrine/dbal (3.5.3 => 3.5.2): Extracting archive
  - Downgrading doctrine/collections (2.1.2 => 1.8.0): Extracting archive
  - Downgrading doctrine/orm (2.14.1 => 2.14.0): Extracting archive
  - Downgrading doctrine/doctrine-bundle (2.8.2 => 2.8.0): Extracting archive
  - Downgrading damienharper/auditor (2.4.4 => 2.4.3): Extracting archive
  - Downgrading doctrine/data-fixtures (1.6.3 => 1.6.1): Extracting archive
  - Downgrading friendsofphp/proxy-manager-lts (v1.0.14 => v1.0.13): Extracting archive
  - Downgrading doctrine/migrations (3.5.5 => 3.5.2): Extracting archive
  - Installing stella-maris/clock (0.1.7): Extracting archive
  - Downgrading lcobucci/clock (3.0.0 => 2.3.0): Extracting archive
  - Downgrading league/flysystem (3.12.2 => 3.12.0): Extracting archive
  - Downgrading league/flysystem-bundle (3.1.0 => 3.0.0): Extracting archive
  - Downgrading lcobucci/jwt (4.3.0 => 4.2.1): Extracting archive
  - Downgrading symfony/web-link (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/serializer (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading api-platform/core (v3.1.1 => v3.0.8): Extracting archive
  - Downgrading phpstan/phpstan (1.9.14 => 1.9.4): Extracting archive
  - Downgrading phpstan/phpstan-doctrine (1.3.32 => 1.3.28): Extracting archive
  - Downgrading phpstan/phpstan-strict-rules (1.4.5 => 1.4.4): Extracting archive
  - Downgrading phpstan/phpstan-symfony (1.2.20 => 1.2.19): Extracting archive
  - Downgrading ramsey/uuid (4.7.3 => 4.7.1): Extracting archive
  - Downgrading scheb/2fa-bundle (v6.6.0 => v6.4.0): Extracting archive
  - Downgrading scheb/2fa-backup-code (v6.6.0 => v6.4.0): Extracting archive
  - Downgrading scheb/2fa-totp (v6.6.0 => v6.4.0): Extracting archive
  - Downgrading symfony/http-client-contracts (v3.2.0 => v3.1.1): Extracting archive
  - Downgrading symfony/http-client (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading sentry/sentry (3.12.1 => 3.12.0): Extracting archive
  - Downgrading gedmo/doctrine-extensions (v3.11.0 => v3.10.0): Extracting archive
  - Downgrading symfony/messenger (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/amqp-messenger (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/dom-crawler (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/browser-kit (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/css-selector (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/debug-bundle (v6.2.5 => v6.2.1): Extracting archive
  - Downgrading symfony/doctrine-messenger (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/dotenv (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/expression-language (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/mime (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading egulias/email-validator (4.0.1 => 3.2.4): Extracting archive
  - Downgrading symfony/mailer (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/mailchimp-mailer (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/monolog-bridge (v6.2.5 => v6.2.2): Extracting archive
  - Downgrading symfony/phpunit-bridge (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/uid (v6.2.5 => v6.2.0): Extracting archive
  - Downgrading symfony/validator (v6.2.5 => v6.2.3): Extracting archive
  - Downgrading symfony/web-profiler-bundle (v6.2.5 => v6.2.4): Extracting archive
  - Downgrading tijsverkoyen/css-to-inline-styles (2.2.6 => 2.2.5): Extracting archive
  - Downgrading lorenzo/pinky (1.0.9 => 1.0.7): Extracting archive
  - Downgrading zenstruck/assert (v1.3.0 => v1.2.0): Extracting archive
  - Downgrading zenstruck/foundry (v1.28.0 => v1.26.0): Extracting archive
  - Downgrading zenstruck/messenger-test (v1.6.0 => v1.5.1): Extracting archive
@benblub benblub added the symfony label Feb 1, 2023
@pirog pirog transferred this issue from lando/lando Feb 1, 2023
@benblub
Copy link
Author

benblub commented Feb 1, 2023

ok, I can confirm das composer dependencies has nothing todo with that issue.

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

No branches or pull requests

2 participants