After loading a new OctoPrint 1.10.3 image unable to login to interface

What is the problem?

Octoprint was working perfectly fine until I received a notice indicating that I needed to update Python to continue to receive updates. I followed the recommendation to just pull the latest stable release and create a new image. Once I did that, I am no longer able to log into the Octoprint interface. The default username/password is not being accepted.

What did you already try to solve it?

I followed the "forgot password" FAQ and logged into the SSH using PuTTY. When I attempted to change the password on the user "pi" (or for any other attempt) the response is "User does not exist".

I have tried several user names to no avail.

I blew away all files on the SD card and reloaded a fresh image, exact same experience.

I went through the "Get Help" posts to see if there was any similar problem reported.

2025-0428 PuTTY session

Have you tried running in safe mode?

No

Did running in safe mode solve the problem?

Unknown

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog... no bundle, no support, unless the reason you couldn't retrieve the bundle is your network issues

WRITE HERE

Additional information about your setup

Hardware you are trying to connect to, hardware you are trying to connect from, router, access point, used operating systems, ... as much data as possible

WRITE HERE

There are two usernames (and passwords) associated with an OctoPi / OctoPrint install. The first is the username and password associated with the OS. These are usually set when the image is written on the microSD card. The second is the username and password associated with OctoPrint itself. These are set during the first run.

See https://community.octoprint.org/t/i-forgot-my-octoprint-password-how-can-i-reset-it/215 for instructions on how to reset the second pair.

See https://community.octoprint.org/t/octoprint-is-telling-me-i-need-to-update-my-default-system-password/40956 for instructions on how to reset the password on the first pair.

thank you for the quick response b-morgan. Understood, I am able to log into the OS using the user/password set during the image creation. I followed the instructions for resetting an OctoPrint user (2nd set that you are referring to). I provided a screenshot of my SSH session, it shows that for whatever username I enter it says it does not exist, including the default "pi/raspberry" entry. Unfortunately I blew away the older version that worked just fine, now I am stuck. When the new image came up, it did not initiate any setup wizard, is that because I pre-entered my SSID info and OS user/password in the initial settings of the Raspberry Pi imager? Once booted, it goes directly to the username/password screen as shown:
2025-0429 OctoPrint login error

Login via SSH and from the first post I linked, please execute the three commands I've extracted below and then attempt to open OctoPrint in your web browser.

Remember the username (and password) you assign during the first run setup :grin:

thanks again b-morgan. Unfortunately this version of OctoPi 1.10.3 doesn't have the users.yaml file, nor the octoprint directory. No users file anywhere in the image. The instructions page says that only works for versions less than 1.3.12

Still stuck.

Can you post the output of pwd and ls -la. Note that the directory is .octoprint. Directories that start with a period (.) are normally hidden so they don't show up unless you ask nicely :sweat_smile:.

While the instructions page says 1.3.12 those three commands will work (I tested it) on OctoPrint 1.10.3 and 1.11.0.

thanks again b-morgan, I eventually found time to get back to this and for the reminder of the purpose of the "." for hidden directories! Here is the screenshot of the PuTTY session:

However, since I did have a backup I discovered that the backup file contained the "users.yaml" file, so I copied that over to the .octoprint directory and then I was able to use my existing user login and now back in business. Thank you for your suggestions and the exercise reintroduced me back to command line!

All the best