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

get errors if debug is enabled #62

Open
grisumaniac opened this issue May 26, 2021 · 5 comments
Open

get errors if debug is enabled #62

grisumaniac opened this issue May 26, 2021 · 5 comments

Comments

@grisumaniac
Copy link

grisumaniac commented May 26, 2021

I have version 4.4.2 running, but having problems to stream to an ios subsonic-client. (avsub, get music data and pictures but when i hit play nothing happens)
To check this problem, i have set debug = "true" in the config, but then i get errors "unable to write to log..." because the default path in the config is set to /var/log/ampache but there is no such path in the container !

I have checked the Dockerfile and in particular the file docker_entrypoint.sh:

...
if [ "$1" = '/run.sh' ] && [ "$(id -u)" = '0' ]; then
    mkdir -p /var/logs/ampache
    chown -R www-data:www-data /var/www/config /var/logs/ampache
    exec gosu www-data "$@"
else
  exec "$@"
fi

The path /var/logs doesnt exist, the correct path should be /var/log/ampache, or am i wrong?

Please help

@lachlan-00
Copy link
Member

/var/log

@lachlan-00
Copy link
Member

going to rebuild all the images again soon and they've all been updated now

@grisumaniac
Copy link
Author

Testing version 4.4.3-nosql:
Path /var/log/ampache in docker-entrypoint.sh is now correct but after fresh start of the container, no /var/log/ampache is created.

If i do the following manually, debug works:
mkdir /var/log/ampache
chown -R www-data:www-data /var/log/ampache

Am i doing something wrong?

@lachlan-00
Copy link
Member

The dir should get made by the build. I'll Look at why it's missing and do a rebuild

@lachlan-00
Copy link
Member

i've changed the build process to create the dir during container build instead of from the entrypoint.

building new images now so this should fix it

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

2 participants