trq
Repos
95
Followers
60
Following
19

PPM is a process manager, supercharger and load balancer for modern PHP applications.

6439
339

A lightweight, simple and fast MVC implementation for PHP5.4

56
10

My dot files.

3
3

Other Package Manager

1
0

The build scripts for the "Other Package Manager" system.

0
0

Events

new, slimmer dotfiles

Created at 2 weeks ago
create branch
trq create branch 2022
Created at 2 weeks ago

stuff

Created at 4 weeks ago
Created at 1 month ago
closed issue
ErrorException: Warning: touch(): Unable to create file /var/task/var/cache/dev/ContainerNh8GyCz.legacy because Read-only file system
ErrorException:
Warning: touch(): Unable to create file /var/task/var/cache/dev/ContainerNh8GyCz.legacy because Read-only file system

  at /var/task/vendor/symfony/http-kernel/Kernel.php:571
  at Symfony\Component\HttpKernel\Kernel->initializeContainer()
     (/var/task/vendor/symfony/http-kernel/Kernel.php:767)
  at Symfony\Component\HttpKernel\Kernel->preBoot()
     (/var/task/vendor/symfony/http-kernel/Kernel.php:190)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/var/task/vendor/bref/symfony-bridge/src/BrefKernel.php:48)
  at Bref\SymfonyBridge\BrefKernel->handle()
     (/var/task/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (/var/task/vendor/autoload_runtime.php:29)
  at require_once('/var/task/vendor/autoload_runtime.php')
     (/var/task/public/index.php:5)

symfony 6.1.1 bref 1.7.0 bref/symfony-bridge 0.2.0 serverless 3.20.0

I have been able to reproduce this quite easily and have a repo available here https://github.com/trq/bref-bug

The steps to reproduce are essentially listed within the commit of this repo: https://github.com/trq/bref-bug/commits/main

Once completed, all I did was:

php bin/console cache:warm --env=dev
yarn run deploy

Resulting in:

Created at 2 months ago
issue comment
ErrorException: Warning: touch(): Unable to create file /var/task/var/cache/dev/ContainerNh8GyCz.legacy because Read-only file system

Yeah, sorry, that makes perfect sense actually. Really, I was just testing a deployment and didn't want to risk hitting my staging or prod dbs, but it definitely makes sense that dev is the cause of this issue.

Created at 2 months ago
issue comment
ErrorException: Warning: touch(): Unable to create file /var/task/var/cache/dev/ContainerNh8GyCz.legacy because Read-only file system

Actually, something else about this comment:

Could it be that the application run in "prod" environment in Lambda, and you generated the cache for the "dev" environment?

If I don't pre generate the cache this issue doesn't happen. So if I'd generated dev but ran prod the issue wouldn't happen. It only happens when the cache is pre generated.

Created at 2 months ago
issue comment
ErrorException: Warning: touch(): Unable to create file /var/task/var/cache/dev/ContainerNh8GyCz.legacy because Read-only file system

Could it be that the application run in "prod" environment in Lambda, and you generated the cache for the "dev" environment?

No, I haven't yet ever deployed or ran the app in prod. Double checked multiple times including just now when I've seen your message.

Have you followed what's documented in the Bref docs?

Definitely. Pretty much word for word. The example repo https://github.com/trq/bref-bug reproduces this issue.

Created at 2 months ago
issue comment
ErrorException: Warning: touch(): Unable to create file /var/task/var/cache/dev/ContainerNh8GyCz.legacy because Read-only file system

Sorry, I didn't mean to just dump this in here and expect to get help fixing it, but am wondering if I have just missed something obvious as I don't think I've done anything but follow the typical install really.

Happy to help track down the problem if it indeed isn't something I've missed.

Created at 2 months ago
opened issue
ErrorException: Warning: touch(): Unable to create file /var/task/var/cache/dev/ContainerNh8GyCz.legacy because Read-only file system
ErrorException:
Warning: touch(): Unable to create file /var/task/var/cache/dev/ContainerNh8GyCz.legacy because Read-only file system

  at /var/task/vendor/symfony/http-kernel/Kernel.php:571
  at Symfony\Component\HttpKernel\Kernel->initializeContainer()
     (/var/task/vendor/symfony/http-kernel/Kernel.php:767)
  at Symfony\Component\HttpKernel\Kernel->preBoot()
     (/var/task/vendor/symfony/http-kernel/Kernel.php:190)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/var/task/vendor/bref/symfony-bridge/src/BrefKernel.php:48)
  at Bref\SymfonyBridge\BrefKernel->handle()
     (/var/task/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (/var/task/vendor/autoload_runtime.php:29)
  at require_once('/var/task/vendor/autoload_runtime.php')
     (/var/task/public/index.php:5)

symfony 6.1.1 bref 1.7.0 bref/symfony-bridge 0.2.0 serverless 3.20.0

I have been able to reproduce this quite easily and have a repo available here https://github.com/trq/bref-bug

The steps to reproduce are essentially listed within the commit of this repo: https://github.com/trq/bref-bug/commits/main

Once completed, all I did was:

php bin/console cache:warm --env=dev
yarn run deploy

Resulting in:

Created at 2 months ago
create branch
trq create branch main
Created at 2 months ago
create repository
trq create repository
Created at 2 months ago