Nginx-proxy-manager: Add Access List does not work

Created on 21 Feb 2020  ·  9Comments  ·  Source: jc21/nginx-proxy-manager

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.

bug

Most helpful comment

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

All 9 comments

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

Thanks 👍 could you give me an estimate if possible?

In the next 4 hours or so

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

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

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.

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?

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.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Kranzy picture Kranzy  ·  7Comments

MatijaTerzic picture MatijaTerzic  ·  6Comments

spoolr picture spoolr  ·  5Comments

jiatao99 picture jiatao99  ·  6Comments

McCloudS picture McCloudS  ·  3Comments