Having followed all the steps in manual installation, the web interface returns HTTP 500 and the following information is shown in the container logs:
NOTICE: PHP message: PHP Fatal error: Uncaught 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: Unsupported cipher or incorrect key length. Supported ciphers are: aes-128-cbc, aes-256-cbc, aes-128-gcm, aes-256-gcm.
Context: {"exception":{}} in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:140
Stack trace:
#0 /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(44): Monolog\Handler\StreamHandler->write()
#1 /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php(390): Monolog\Handler\AbstractProcessingHandler->handle()
#2 /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php(645): Monolog\Logger->addRecord()
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Log/Logger.php(184): Monolog\Logger->error()
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Log/Logger...
This error repeats rapidly.
Steps to Reproduce
I wrote the following Ansible role to reproduce the manual installation steps.
Indeed, even though all the directories I created are (as instructed) owned by 9999:root on the host, and 9999:9999 in the container, the log file (laravel.log) is owned by root:root. Whatever created this, did so with the incorrect permissions.
root@91ebb53936cf:/var/www/html# ll storage/
total 36
drwxr-xr-x 1 webuser webgroup 4096 Nov 11 2024 ./
drwxr-xr-x 1 webuser webgroup 4096 Nov 10 21:23 ../
drwxr-xr-x 1 webuser webgroup 4096 Nov 10 21:23 app/
drwxr-xr-x 2 webuser webgroup 4096 Nov 11 2024 debugbar/
drwxr-xr-x 1 webuser webgroup 4096 Nov 11 2024 framework/
drwxr-xr-x 1 webuser webgroup 4096 Nov 10 21:23 logs/
drwxr-xr-x 2 webuser webgroup 4096 Nov 11 2024 pail/
root@91ebb53936cf:/var/www/html# ll storage/logs/
total 20
drwxr-xr-x 1 webuser webgroup 4096 Nov 10 21:23 ./
drwxr-xr-x 1 webuser webgroup 4096 Nov 11 2024 ../
-rw-r--r-- 1 webuser webgroup 14 Nov 11 2024 .gitignore
-rw-r--r-- 1 root root 185 Nov 10 21:23 laravel.log
As for the Unsupported cipher or incorrect key length. error, I cannot comment on why this occurs, but if I manually fix the permission on the log file, it gives this full trace:
This problem is caused by forgetting to prefix APP_KEY with base64:. Whilst this is my fault, it still should not be possible to create laravel.log with incorrect permissions; this is still a bug.
Error Message and Logs
Having followed all the steps in manual installation, the web interface returns HTTP 500 and the following information is shown in the container logs:
This error repeats rapidly.
Steps to Reproduce
I wrote the following Ansible role to reproduce the manual installation steps.
Example Repository URL
No response
Coolify Version
latest
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Ubuntu 22.04.3 LTS
Additional Information
Indeed, even though all the directories I created are (as instructed) owned by
9999:root
on the host, and9999:9999
in the container, the log file (laravel.log
) is owned byroot:root
. Whatever created this, did so with the incorrect permissions.As for the
Unsupported cipher or incorrect key length.
error, I cannot comment on why this occurs, but if I manually fix the permission on the log file, it gives this full trace: