{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/29357","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/29357/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/29357/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/29357/events","html_url":"https://github.com/symfony/symfony/issues/29357","id":385016943,"node_id":"MDU6SXNzdWUzODUwMTY5NDM=","number":29357,"title":"Failed to save key on readonly filesystem","user":{"login":"mnapoli","id":720328,"node_id":"MDQ6VXNlcjcyMDMyOA==","avatar_url":"https://avatars3.githubusercontent.com/u/720328?v=4","gravatar_id":"","url":"https://api.github.com/users/mnapoli","html_url":"https://github.com/mnapoli","followers_url":"https://api.github.com/users/mnapoli/followers","following_url":"https://api.github.com/users/mnapoli/following{/other_user}","gists_url":"https://api.github.com/users/mnapoli/gists{/gist_id}","starred_url":"https://api.github.com/users/mnapoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnapoli/subscriptions","organizations_url":"https://api.github.com/users/mnapoli/orgs","repos_url":"https://api.github.com/users/mnapoli/repos","events_url":"https://api.github.com/users/mnapoli/events{/privacy}","received_events_url":"https://api.github.com/users/mnapoli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-27T22:33:42Z","updated_at":"2018-11-30T07:15:12Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**Symfony version(s) affected**: 4.1.4\r\n\r\n**Description**  \r\n\r\nI run Symfony on a readonly filesystem and I can see this in my logs:\r\n\r\n```\r\n[warning] Failed to save key \"%5BSymfony%5CBundle%5CFrameworkBundle%5CController%5CRedirectController%5D%5B1%5D\" (array)\r\n[warning] Failed to save key \"%5BSymfony%5CBundle%5CFrameworkBundle%5CController%5CRedirectController%23urlRedirectAction%5D%5B1%5D\" (array)\r\n```\r\n\r\nThe `urlRedirectAction` is interesting, it seems like the routing might be caching a redirect response?\r\n\r\nAm I doing something wrong here? I though the cache could be generated once (before deploying) and be readonly.\r\n\r\n**How to reproduce**  \r\n\r\nI would say deploy Symfony (with its cache generated) on a readonly filesystem. I deployed Symfony 4 with [Bref](https://github.com/mnapoli/bref) and its Symfony integration on AWS Lambda for example.\r\n\r\n**Possible Solution**  \r\n<!--- Optional: only if you have suggestions on a fix/reason for the bug -->\r\n\r\n**Additional context**  \r\n<!-- Optional: any other context about the problem: log messages, screenshots, etc. -->\r\n"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/443113686","html_url":"https://github.com/symfony/symfony/issues/29357#issuecomment-443113686","issue_url":"https://api.github.com/repos/symfony/symfony/issues/29357","id":443113686,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzExMzY4Ng==","user":{"login":"mnapoli","id":720328,"node_id":"MDQ6VXNlcjcyMDMyOA==","avatar_url":"https://avatars3.githubusercontent.com/u/720328?v=4","gravatar_id":"","url":"https://api.github.com/users/mnapoli","html_url":"https://github.com/mnapoli","followers_url":"https://api.github.com/users/mnapoli/followers","following_url":"https://api.github.com/users/mnapoli/following{/other_user}","gists_url":"https://api.github.com/users/mnapoli/gists{/gist_id}","starred_url":"https://api.github.com/users/mnapoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnapoli/subscriptions","organizations_url":"https://api.github.com/users/mnapoli/orgs","repos_url":"https://api.github.com/users/mnapoli/repos","events_url":"https://api.github.com/users/mnapoli/events{/privacy}","received_events_url":"https://api.github.com/users/mnapoli/received_events","type":"User","site_admin":false},"created_at":"2018-11-30T07:15:12Z","updated_at":"2018-11-30T07:15:12Z","author_association":"CONTRIBUTOR","body":"> To warm up the annotation cache, you need to dump the optimized composer class map then run cache:clear.\r\n\r\nRight, I'm already [running cache:clear and warmup before deploying](https://github.com/mnapoli/mnapoli.github.io/blob/master/.bref.yml#L3-L4) so that isn't it AFAICT.\r\n\r\nBTW you mention the annotation cache but I don't think it's related to annotations. It mentions the `RedirectController`, the routing config is the only place I reference it: https://github.com/mnapoli/mnapoli.github.io/blob/925986f74f660cdb99b4c66f55cb37deaa73ae33/config/routes.yaml#L19 Is there a routing cache maybe?\r\n\r\n> Then, you'll need to debug to answer your questions :)\r\n\r\nFair enough!\r\n\r\n> Note that the warning are silent - you can also ignore them - it's just a cache that's missing and if that's not degrading perfs, why care?\r\n\r\nThis is not just one project (in this case my blog so indeed I don't care so much). But I'm trying to provide a proper open source integration [for Symfony on AWS Lambda](https://github.com/mnapoli/bref/blob/master/docs/Symfony.md). I want it to be as good as it can be. A warning tells me there's maybe something I'm missing and can be fixed.\r\n\r\nWould it make sense to disable these warnings? (is that possible?)"}}
{"actor":{"display_login":"mnapoli"}}