Login Problems

FTFY.

1 Like

No I’d add it to the docs i.e. don’t use the RP Imager as the imaging bit is a linked page. Ah I see what you mean. Hadn’t realised that had changed.

Yep, I’d suggest instead of Option 2, a note that the Raspberry Pi Imager has been found to fail to create a usable image and it is not recommended.

1 Like

I seem to have the reverse issue. I flashed an SDcard with Imager, which may be an issue.
I’ve used Etcher but have had much more success with imager, and no longer have Etcher installed.

This is an old emonpi unit that has worked well for years. I mistrust the original SD card, as it had collapsed, so downloaded a the latest image and burned a new SDcard.

With the new SDcard, the pi booted normally, DHCP’d an address via Ethernet and the www interface is reachable.

I followed the the process to register a user and logged in OK. I ran the upgrade process from the web interface, which completed successfully.

So far so good.

However I’m unable to get an SSH session to log in.

I initially had issues because I had public/private key authentication set up which definitely caused problems. Suppressing that changed behavior so that the login did not fail immediately,

shoka@Lenovo2:~$ ssh -o 'PubkeyAuthentication no' [email protected]
[email protected]'s password: 
Permission denied, please try again.
[email protected]'s password: 
Permission denied, please try again.
[email protected]'s password: 
[email protected]: Permission denied (publickey,password).
shoka@Lenovo2:~$ 

The symptoms are consistent with the pi user not existing.
I noticed that the update log mentioned “bullseye” which normally has no pi user, though the downloaded image says buster.
It’s also possible that the SD image is corrupted / the password on the SD is corrupted.

Installing Etcher and re-flashing the SD card requires extracting the emonpi from a very inconvenient location, so I’d appreciate confirmation that there is no other possible issue before I do that.

Cheers Harry

There are two ways to enable SSH - via the pushbutton menu on the emonPi, or by making an empty file on the SD card after you’ve flashed the image to it. Details are here: emonSD Download — OpenEnergyMonitor 0.0.1 documentation

I use this on the laptop I’m typing on, and have never had a problem (I don’t set a password on the file so this machine - not the user - has access to the emonPi. This is OK because the whole machine is encrypted anyway.)

I’m not a Pi expert - you might have to wait a bit for one of those - but I’d suspect your image didn’t get written properly, or maybe the update didn’t complete after all.

There was a problem with Raspberry Pi imager reported recently: Login Problems - #16 by Robert.Wall

You might want to look at this alternative - though I’ve no experience with it: Alternative to Etcher to write images: USBImager

Sorry missed the reply above.

Don’t know exactly what the issue was. I edited the SDcard in one of my laptops, wiped the pi password in passwd, passwd- and shadow, added a second trusted user ( I was going to add later anyway ) set up public key authentication for that user and got in that way, then tidied up the mess and regenerated the Pi password. Everything seems to be working now…

Cheers Harry
.