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

The .htpasswd file isn't located in the right place #437

Merged
merged 1 commit into from
Mar 2, 2022
Merged

The .htpasswd file isn't located in the right place #437

merged 1 commit into from
Mar 2, 2022

Conversation

cvuiller
Copy link
Contributor

After following the Easy install: using Docker procedure with config-frontend.env file containing:

[...]
HYPHE_HTPASSWORD_USER=<USER>
HYPHE_HTPASSWORD_PASS=<PASS>
[...]

When I log in to the web interface with the credentials defined in the config-frontend.env file, I get the following error (seen with the docker-compose logs -f command):

frontend_1  | 2022/02/27 18:48:49 [error] 21#21: *2 open() "/frontend/.htpasswd" failed (2: No such file or directory), client: <IP>, server: localhost, request: "GET / HTTP/1.1", host: "<HOST>"

I was able to solve this problem by moving the .htpasswd file to the right place: docker exec -it --user root <hyphe-container> mv .htpasswd ...

Adding the .htpasswd absolute path to the hyphe_frontend/docker-entrypoint.sh file could be useful to avoid this kind of problem.

@boogheta
Copy link
Member

boogheta commented Mar 2, 2022

Well caught, thanks for the fix!

@boogheta boogheta merged commit 2858a3e into medialab:master Mar 2, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants