Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rezanm2's avatar

Laradock laravel.log Permission denied error

Hi,

I try to deploy my Laravel project with Laradock via Jenkins pipeline. Everything went wel, but when I try to visit the website I get the next error: UnexpectedValueException The stream or file "/var/www/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied

I already tried this:

  • docker exec -it --user=laradock 7a7 bash => unable to find user laradock: no matching entries in passwd file

I tried also to find out what userid and usergroupid is for Jenkins User in my server, and changed the id's in env-example file, but without any results.

Does anyone knows what is going wrong here? Thanx

0 likes
1 reply
deepu07's avatar
deepu07
Best Answer
Level 11

@rezanm2 seems like a permission problem. do like this

chmod 777 storage/logs

Please or to participate in this conversation.