shawly / docker-nut

Docker container for https://github.com/blawar/NUT. "latest" & "v3" tags use stable release v3.3. "edge" tag uses latest master source code.
GNU General Public License v3.0
63 stars 8 forks source link

Organize API returns 404 #9

Closed johnc2k closed 1 year ago

johnc2k commented 1 year ago

Calling http://localhost:9000/api/organize (with the appropriate host) returns 404 error (and does not organize files). The scan API however works fine.

Tested both the latest and edge releases on amd64.

johnc2k commented 1 year ago

Seems if the keys.txt is not populated this results in the above error

shawly commented 1 year ago

Yeah I can reproduce this on edge when I use my old keys.txt, with my old keys.txt I don't have this issue when I use latest. After I dumped my keys again with Lockpick I can solve this problem on edge as well.

This issue also happens with the keys.txt found on the net by googling. So I guess people will have to use latest or v3.3 if they didn't dump their own keys.

Nonetheless, this is an issue related to NUT itself so stuff like this should be reported on their GitHub in the future because I cannot fix issues with NUT itself in my Docker image.