Closed driftywinds closed 1 week ago
Here is the same issue: #81.
docker exec -it -u 1000 servas php artisan key:generate --force
should work.
Sorry, I never got the notification of you replying until right now, when you closed the issue.
Here is the same issue: #81.
docker exec -it -u 1000 servas php artisan key:generate --force
should work.
Executing this command gives me this error now: -
UnexpectedValueException
The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream : Permission denied
The exception occurred while attempting to log: file_put_contents(/var/www/html/.env): Failed to open stream: Permissio n denied
Context: {"exception":{}}
at vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:137
133▕ }
134▕ if (!is_resource($stream)) {
135▕ $this->stream = null;
136▕
➜ 137▕ throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened in ap pend mode: '.$this->errorMessage, $url) . Utils::getRecordMessageForException($record));
138▕ }
139▕ stream_set_chunk_size($stream, $this->streamChunkSize);
140▕ $this->stream = $stream;
141▕ }
+11 vendor frames
12 artisan:35
Illuminate\Foundation\Console\Kernel::handle()
For anyone visiting this issue, this instruction from issue #81 solved it.
The error: -
my docker-compose.yml file: - (using port 3002 because I use a reverse proxy with other apps)
My .env file:-