[GH-ISSUE #299] Add Access List does not work #264

Closed
opened 2026-02-26 06:31:49 +03:00 by kerem · 9 comments
Owner

Originally created by @xsliii on GitHub (Feb 21, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/299

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.

Originally created by @xsliii on GitHub (Feb 21, 2020). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/299 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.
kerem 2026-02-26 06:31:49 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@jc21 commented on GitHub (Feb 21, 2020):

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

<!-- gh-comment-id:589439470 --> @jc21 commented on GitHub (Feb 21, 2020): Ok must have missed that in the new base image. Will fix it
Author
Owner

@xsliii commented on GitHub (Feb 21, 2020):

Thanks 👍 could you give me an estimate if possible?

<!-- gh-comment-id:589441353 --> @xsliii commented on GitHub (Feb 21, 2020): Thanks 👍 could you give me an estimate if possible?
Author
Owner

@jc21 commented on GitHub (Feb 21, 2020):

In the next 4 hours or so

<!-- gh-comment-id:589441901 --> @jc21 commented on GitHub (Feb 21, 2020): In the next 4 hours or so
Author
Owner

@jc21 commented on GitHub (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.

<!-- gh-comment-id:589443885 --> @jc21 commented on GitHub (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.
Author
Owner

@jc21 commented on GitHub (Feb 21, 2020):

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

<!-- gh-comment-id:589471226 --> @jc21 commented on GitHub (Feb 21, 2020): All done, pull either `latest`, `2` or `2.1.1` docker image tag.
Author
Owner

@xapfer commented on GitHub (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.

<!-- gh-comment-id:605410245 --> @xapfer commented on GitHub (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.
Author
Owner

@SAOPP commented on GitHub (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?

<!-- gh-comment-id:674091838 --> @SAOPP commented on GitHub (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?
Author
Owner

@SAOPP commented on GitHub (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.

<!-- gh-comment-id:674094278 --> @SAOPP commented on GitHub (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.
Author
Owner

@ItsNoted commented on GitHub (Aug 24, 2020):

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

<!-- gh-comment-id:679400970 --> @ItsNoted commented on GitHub (Aug 24, 2020): I have a video here showing the basics. https://www.youtube.com/watch?v=0CSvMUJEXIw
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#264
No description provided.