Login Problems

Just remember to be patient on first boot (it takes quite a while) and at the first Web UI screen you need to register the first account.

https://docs.openenergymonitor.org/emoncms/intro-rpi.html

If you use the ‘old’ SD csrd, you will of course lose all your old data. To avoid this, retain the old SD card and write the new download to a new SD card. You might then be able to recover the old data.

When you say, ‘quite a while.’

How long is a while?

How long have you waited? Is this an emonPi?

I ran it overnight but it was still saying Booting after 9 hours.

So, just in case I’d popped the SD card out of the slot before all the files had been written, I re-burned it and shut the computer down to force all the writes to happen.

It’s been booting for 90 mins at the moment.

Just about to go shopping. Will check on it again when I get back.

It’s an emonPi.

Thanks,
Richard

Yes it does seem to get stuck here. After that time, I’d suggest just a reboot will sort it out.

Back from shopping. Still Booting.

Switched it off, waited 30 secs, switched it back on again.

Same behaviour.

Half an hour ago repeated. Still the same.

Booting…Please Wait.

I downloaded this image: emonSD-10Nov22 (Stable)

My EmonPi is from 2019.

Don’t know if that information is relevant. Thought I’d post it in case it was.

Thanks.

I have also tried booting it with and without the sensor cables attached.

No difference.

That’s as expected, because all sensors feed into the “emon” ATMega 328P processor, not the Raspberry Pi.

I recently wrote the same image (10 Nov 22) to a 32 GB SD card using Balena Etcher, it booted absolutely normally in a RPi 2B. Which tools did you use to write the image to your SD card?

Raspberry Pi Imager.

At this stage, it might be worth trying balenaEtcher - Flash OS images to SD cards & USB drives. You do not need to unzip the downloaded image with this.

Have you checked the MD5 for the zip: 271d8d502e822e3703500a5762519c1d [NOT as published!]
and the image (emonSD-10Nov22_16gb.img) : f5d7963ffa585231210a5b4f560fc39e

@TrystanLea
Note the incorrect MD5 Hash. :exploding_head:

Hi,

Reburned the SD card using Etcher.

It worked well.

Back up and running.

Thanks everyone.

1 Like

I think the RPi Imager try to be too clever. One for the docs.

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
.