icarus44_zer0 Posted January 17, 2021 Share Posted January 17, 2021 (edited) The Facts. When to login one day. PW failed. I use a PW manager. Thought maybe my PW manager was corrupted. Checked backup. PW was correct. Followed the steps listed in Password Recovery. Issues persists. After following these above steps. Unraid login UI presents the following errors Warning: file(/etc/nginx/htpasswd): failed to open stream: No such file or directory in /usr/local/emhttp/login.php on line 23 Warning: Invalid argument supplied for foreach() in /usr/local/emhttp/login.php on line 23 SSH into the server with ROOT and null as PW. nano /usr/local/emhttp/login.php line 23 foreach (file('/etc/nginx/htpasswd') as $strCredentials) /etc/nginx/htpasswd - no such file or directory. ls -a - nope find: ‘htpasswd’: No such file or directory it looks like I lost/destroyed/corrupted this file somehow. Final attempt - from the console on the server login as ROOT - "passwd" - change root PW... PW accepted. Restart. Issue persists. Possible Solutions. Create a new install on a new USB.. My current usb is about 5 years old. I have not researched what the effects of this would be. Darsy Posted March 5, 2020 https://forums.unraid.net/topic/88712-i-cant-login/ (highly unrecommended by admin team... however does work). Create the htpasswd file directly on the USB. Not sure what this would entail Change line 23 to point to a different dir. Unsure of the ramifications Side Note - Did not solve problem https://forums.unraid.net/topic/88712-i-cant-login/ On 5/4/2020 at 3:42 AM, karoldo said: So what do you recommend? I have the same problem... EDIT: OK rebooting in safe mode and using "passwd" did the trick thx Thanks in advance... Open to all helpful suggestions, comments, and/or questions. Edited January 17, 2021 by icarus44_zer0 updated troubleshooting steps Quote Link to comment
icarus44_zer0 Posted January 17, 2021 Author Share Posted January 17, 2021 SOLVED: From the terminal on the server - booted into UNRAID with GUI - USER -> ROOT -> PW UI login now functions as expected Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.