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

Add Access List does not work #299

Closed
xsliii opened this issue Feb 21, 2020 · 9 comments
Closed

Add Access List does not work #299

xsliii opened this issue Feb 21, 2020 · 9 comments
Labels

Comments

@xsliii
Copy link

xsliii commented Feb 21, 2020

I'm using the current version of the nginx-proxy-manager:latest image in my docker setup on my server.

When I want to add a basic authentication "further called access list", I just receiv a "internal error" popup in the manager administration view.

The container log says the following:

[2/20/2020] [11:45:53 PM] [Access ] › ℹ info Building Access file #1 for: chainovate
[2/20/2020] [11:45:54 PM] [Access ] › ℹ info Adding: chris
[2/20/2020] [11:45:54 PM] [Access ] › ✖ error Error: Command failed: /usr/bin/htpasswd -b "/data/access/1" "chris" "asdasd123"
/bin/sh: /usr/bin/htpasswd: not found

at ChildProcess.exithandler (child_process.js:295:12)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1028:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)

[2/20/2020] [11:45:54 PM] [Access ] › ✖ error Error: Command failed: /usr/bin/htpasswd -b "/data/access/1" "chris" "asdasd123"
/bin/sh: /usr/bin/htpasswd: not found

at ChildProcess.exithandler (child_process.js:295:12)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1028:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)

[2/20/2020] [11:45:54 PM] [Access ] › ✔ success Built Access file #1 for: chainovate
[2/20/2020] [11:45:54 PM] [Express ] › ⚠ warning Command failed: /usr/bin/htpasswd -b "/data/access/1" "chris" "asdasd123"
/bin/sh: /usr/bin/htpasswd: not found

It seems that the provided image has no installed "apache2-utils" package.

My Workaround:
using a own Dockerfile extending from the provided nginx-proxy-manager image and install the missing "apache2-utils" package.

@xsliii xsliii added the bug label Feb 21, 2020
@jc21
Copy link
Member

jc21 commented Feb 21, 2020

Ok must have missed that in the new base image. Will fix it

@xsliii
Copy link
Author

xsliii commented Feb 21, 2020

Thanks 👍 could you give me an estimate if possible?

@jc21
Copy link
Member

jc21 commented Feb 21, 2020

In the next 4 hours or so

@jc21
Copy link
Member

jc21 commented Feb 21, 2020

This base image is still building and then NPM needs to be rebuilt with it. Will comment again when this is all done.

@jc21
Copy link
Member

jc21 commented Feb 21, 2020

All done, pull either latest, 2 or 2.1.1 docker image tag.

@xapfer
Copy link

xapfer commented Mar 28, 2020

Hello,

I recently installed npm in RPi, using another mariDB package, all seems to work fine but I have the same problem. The ACLs do nothing.

I've checked latest and 2.1.1 packages.

Thank you for your work.

@SAOPP
Copy link

SAOPP commented Aug 14, 2020

Guys, can u tell me, I don't understand a bit current logic, for example, there is 1 group, can I add a rule so that it works for any access from any IP - but with basic authentication for the host?

@SAOPP
Copy link

SAOPP commented Aug 14, 2020

Oooops... I apologize, it looks like I figured it out, it is just necessary after each change in the ACL, reapply the host settings. Before these actions, it looked as if my changes in the ACL didn't bring any effect. It looks like the question has been cleared, thanks.

@ItsNoted
Copy link

I have a video here showing the basics. https://www.youtube.com/watch?v=0CSvMUJEXIw

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

No branches or pull requests

5 participants