GCTC-NTGC / gc-digital-talent

GC Digital Talent is the new recruitment platform for digital and tech jobs in the Government of Canada. // Talents numériques du GC est la nouvelle plateforme de recrutement pour les emplois numériques et technologiques au gouvernement du Canada.
https://talent.canada.ca
GNU Affero General Public License v3.0
17 stars 8 forks source link

🐛 Permission denied on /tmp/api/storage/framework/views #10908

Closed petertgiles closed 2 weeks ago

petertgiles commented 4 weeks ago

🐛 Bug

I've seen this error a few times in prod since the last deployment:

file_put_contents(/tmp/api/storage/framework/views/af454003dbbdf3f52f45df0598526b5b.php): Failed to open stream: Permission denied

Image

🙋‍♀️ Proposed Solution

We probably need grant ownership or write permissions to the www-data user during the post-deploy script.

✅ Acceptance Criteria

petertgiles commented 3 weeks ago

Looks like this breaks Graphiql as well. I needed a quick fix to get it going again: image

esizer commented 3 weeks ago

Any risks to just handing over ownership of the storage dir to www-data? That is what the laravel docs recommend.

petertgiles commented 3 weeks ago

Any risks to just handing over ownership of the storage dir to www-data? That is what the laravel docs recommend.

Oh, thanks for looking that up. Yeah, that makes sense to me.