Open Slyke opened 2 years ago
Executing a command as the www-data user works as expected:
root@ampache-59876cf8f-gspgg:/var/www/config# su -c "touch test" -s /bin/sh www-data
root@ampache-59876cf8f-gspgg:/var/www/config# ls -ahl
total 56K
drwxrwx--- 1 www-data www-data 48 Feb 5 11:59 .
drwxrwxr-x 1 www-data www-data 4.0K Dec 16 21:35 ..
-rwxrwx--- 1 www-data www-data 47K Feb 5 11:41 ampache.cfg.php.dist
-rw-r--r-- 1 www-data www-data 0 Feb 5 11:59 test
Messing around with the source code: https://github.com/ampache/ampache/blob/a93fe6a4bff4b003c98f3da7016183d03dc7e57c/src/Config/functions.php#L526
I've discovered that the is_writable
function on is_writeable(__DIR__ . '/../../config/')
is returning false. Still investigating as to why.
Any progress on that? Note that this seems to be a duplicate of https://github.com/ampache/ampache-docker/issues/22
That check really weirds me out, even when 777 are the file permissions it reports issues...
Also, it reports a warning on the PHP max upload size
even though I have configured it at 100MB, as if it wasn't reading the config properly...
@xeruf mounting a php.ini file with the following content as /etc/php/8.1/apache2/conf.d/custom-php.ini
works for me.
[php]
max_upload_size = 100M
I still have a similar issue using docker-compose as stated in you example, and yet still it complains with:
This test attempts to read config/ampache.cfg.php. If this fails the file is either not in the correct location,
from inside docker:
# ls -la /var/www/config/
total 104
drwxr-xr-x 2 www-data www-data 4096 Apr 9 20:21 .
drwxrwxr-x 10 www-data www-data 4096 Mar 28 05:24 ..
-rw-rw-rw- 1 www-data www-data 47806 Apr 9 20:21 ampache.cfg.php
-rw-r--r-- 1 www-data www-data 47801 Apr 9 20:26 ampache.cfg.php.dist
using ampache/ampache:latest
What is the problem here?
Complete vanilla with no config I get stuck at :
Have a same problem too
Needs the https://github.com/ampache/ampache/wiki/Installation ampache database user password to be set
[ website database user. (blank database passwords are not accepted)]
https://user-images.githubusercontent.com/1305249/129309667-5bed76c9-589d-4c2f-ab99-055affb1afbe.png
This could be related to https://github.com/ampache/ampache-docker/issues/12
I have Ampache setup on Kubernetes home cluster.
On the second setup page I get 2 errors on these 2 points:
The third step fails due to not being able to write the config file.
Running
ls -ahl
on the directory:Nothing interesting shows up in the pod logs. The
/var/log/ampache
directory is empty.Here is my deployment. Note the initContainer setting permissions. Without this, it can't even read the
ampache.cfg.php.dist
file.