Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ampache.cfg.php.dist" is not readable #45

Closed
YasserAntonio opened this issue Sep 2, 2020 · 9 comments
Closed

"ampache.cfg.php.dist" is not readable #45

YasserAntonio opened this issue Sep 2, 2020 · 9 comments

Comments

@YasserAntonio
Copy link

YasserAntonio commented Sep 2, 2020

I'm using the ampache/ampache:nosql image on armv7 when I try to install ampache
I get the error ( screenshot) that "ampache.cfg.php.dist"is not readable.

Capture d’écran 2020-09-02 à 17 44 00

I chmoded it to 777:

root@b6d4084a3b20:/# chmod 777 /var/temp/ampache.cfg.php.dist
root@b6d4084a3b20:/# ls -la /var/temp/ampache.cfg.php.dist
-rwxrwxrwx 1 www-data www-data 41850 Aug 20 02:56 /var/temp/ampache.cfg.php.dist
root@b6d4084a3b20:/# 

but I'm still getting the error. Any idea how to solve this ?

@wagnered
Copy link

wagnered commented Sep 2, 2020

Does the Apache2 access.log give any clue?

@YasserAntonio
Copy link
Author

Does the Apache2 access.log give any clue?

nope it's empty

@YasserAntonio
Copy link
Author

YasserAntonio commented Sep 2, 2020

I checked the logs in var/logs and found nothing. Any idea where I can find the result/log of the test from the installation test ?

@YasserAntonio
Copy link
Author

YasserAntonio commented Sep 2, 2020

had to remove my docker volume : - /home/pi/ampache/config:/var/www/config
so no persistant configuration for the moment... if you guys knows a way to make it persistant I 'm very interested

@wagnered
Copy link

wagnered commented Sep 2, 2020

Sorry, I'm not very familiar with docker so I'll leave this for @lachlan-00.

@YasserAntonio
Copy link
Author

no problem ! Thanks for you help !

@m1dnight
Copy link

This issue still persists to this day, and I haven't really managed to get it working.

I have even removed a mounted volume for the configuration, but that gives the same error.

Is there a known solution to this?

@YasserAntonio
Copy link
Author

YasserAntonio commented Aug 26, 2021

nope.. but don't forget to chmod after removing your volume, my Ampache on arm7 is working now. To make a regular backup I mounted a volume next to the ampache folder from where I do a regular copy using a cron task. Lot of DB have troubles with mounted volume and ampache is no exception ..

@m1dnight
Copy link

Okay, so what I did to get it working is the following.
Start up the docker container without any volumes, and when the installation page shows copy out the files from /var/www/config to wherever you want them to reside on the host. In my case this is /mnt/containers/ampache/config so I did docker cp ampache:/var/www/config /mnt/containers/ampache/ ; chown -R www-data:www-data /mnt/containers/ampache/config
Now you can safely remove the running container and boot up your final instance with /mnt/containers/ampache/config bindmounted to /var/www/config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants