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
Healthcheck fails in Docker with default .filebrowser.json: curl: (3) URL rejected: Bad hostname #3085
Comments
Ah, you're correct. The double quotes are introduced by executing jq without the -r (--raw-output) flag. I didn't realize there was already logic in Not sure why yours wasn't falling back to localhost though. Adding the -r flag is all I needed. |
Oh yes, you're right. Only -r is needed. Just tested on a fresh container and it works fine. |
I don't understand what the fix is here. I have a default filebrowser installation and keeps giving me this healtcheck error too:
|
Were you able to inspect the pull request? That might make it clear. There's a healthcheck.sh script inside the container that needs to be changed to incorporate the mentioned -r parameter. |
|
Guess this wont work for me, as it repulls the image in portainer when i change my compose to run as root (otherwise i cant edit healtcheck). I need a new docker image build :-( |
@Tuumke You don't have to run the container as root. If you are using Portainer, you can execute a shell from the webui (select PS. Fixed my comment above |
Here's a one line command as a temp fix:
|
Thanks for your workaround! If your container does not run as root, just add "-u root".
|
healthechk.sh shoudl be changed to:
-r needs to be added in order to give just the strings and not "strings", i.e. the address is |
But when can we see this fixed in the docker image? :O |
Needs to get merged first. |
If fixing a typo that makes the default docker image unusable takes more than two weeks, that doesn't really instill confidence in the project. |
@jinks If you think you can do better, why don't you fork this project and maintain it better instead. Don't forget that this project is maintained by unpaid volunteers with their own lives, and no obligations to any of us. |
@Guiorgy Because I don't care enough to maintain a project long-term. The question remains, why pushing a 2-letter fix to Docker Hub remains such a chore. It's not even part of the core code. Unless there is something seriously wrong with the release process, I would imagine pushing the fix to Docker should be less work than this thread has already consumed. |
@jinks As I said, they have their lives, maybe they have something more urgent going on. And it's not like the container is completely broken, or hard to manually workaround. |
I'm running into this issue as well, and my workaround is to add an environment variable |
FYI, the fix has been merged (#3130), so just wait for the next release 😁 |
Description
This is a regression caused by #2938. Healthcheck fails due to .filebrowser.json having an empty address property. The healthcheck script used to default to localhost, now it defaults to empty string.
Expected behaviour
healthcheck script calls /health endpoint
What is happening instead?
curl fails, script exits with code 1
Additional context
I think this can be fixed by setting
address
to "localhost" in docker_config.jsonHow to reproduce?
and wait for healthcheck
The text was updated successfully, but these errors were encountered: