Skip to content

Unable to create the cache directory (/tmp/cache/prod/twig/88) #1400

@iceyu07

Description

@iceyu07

i'm using symfony 6.1 and bref 1.7, when i deploy the project to aws lambda,
if i visit a twig template page i got error: Unable to create the cache directory (/tmp/cache/prod/twig/88),
when visit a api url it works fine.
how can i resolve the issue.
thank you very much

`

2023-02-06T12:39:04.444+08:00{ "message": "Uncaught PHP Exception RuntimeException: "Unable to create the cache directory (/tmp/cache/prod/twig/88)." at /var/task/vendor/twig/twig/src/Cache/FilesystemCache.php line 53", "context": { "exception": { "class": "RuntimeException", "message": "Unable to create the cache directory (/tmp/cache/prod/twig/88).", "code": 0, "file": "/var/task/vendor/twig/twig/src/Cache/FilesystemCache.php:53" } }, "level": 500, "level_name": "CRITICAL", "channel": "request", "datetime": "2023-02-06T04:39:04.403355+00:00", "extra": {} } {"message":"Uncaught PHP Exception RuntimeException: "Unable to create the cache directory (/tmp/cache/prod/twig/88)." at /var/task/vendor/twig/twig/src/Cache/FilesystemCache.php line 53","context":{"exception":{"class":"RuntimeException","message":"Unable to create the cache directory (/tmp/cache/prod/twig/88).","code":0,"file":"/var/task/vendor/twig/twig/src/Cache/FilesystemCache.php:53"}},"level":500,"level_name":"CRITICAL","channel":"request","datetime":"2023-02-06T04:39:04.403355+00:00","extra":{}}
`

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