Openhabian SD image installation fails

Thank you :smile:

I have removed the firewall, formatted the SD card using SD card formatter, and recopied the image using Rufus v3.3 (i have stupidly used spaces in a folder name that Etcher cant use). I used usb power from my PC, but swapped to a fixed outlet on my desk.

Trying a fresh install stop at the same place, “Updating repositories and upgrading installed packages… FAILED”.
This time, the same error is repeated on the next three installation attempts.

I will test my power supply again, and also have the connection directly to my router, as I currently use a PLC connection between floors. I will post the result afterwards.

Really sounds like a networking issue…are you sure you are receiving an IP address and can get out to the net?

Yes, I get an IP address, and can ssh to the RPi and ping from the RPi to public IP addresses. Also, the install verifies Ethernet and connectivity prior to this step.

2018-03-13_22:53:35_UTC [openHABian] Starting the openHABian initial setup.
2018-03-13_22:53:35_UTC [openHABian] Storing configuration… OK
2018-03-13_22:53:35_UTC [openHABian] Changing default username and password… OK
2018-03-13_22:53:36_UTC [openHABian] Setting up Ethernet connection… OK
2018-03-13_22:53:36_UTC [openHABian] Ensuring network connectivity… OK
2018-03-13_22:53:36_UTC [openHABian] Waiting for dpkg/apt to get ready… OK
2018-03-13_22:53:55_UTC [openHABian] Updating repositories and upgrading installed packages… FAILED
2018-10-24_22:04:54_UTC [openHABian] Initial setup exiting with an error!

This is a know issue with the image on some pis.

It is supposed to be fixed in next release. In the meantime run
sudo apt-get update then
sudo apt-get upgrade

Then reboot you should be good. If you plan on installing multiple times message me. I can give you a modified boot file that fixes the issue.

1 Like

@Thedannymullen thanks for the additional troubleshooting info.

Wish there was a way to determine which RPI’s have this issue.:neutral_face:

I’ve seen this same issue solved by using a good power supply, but my question is why?

@perody if the power supply resolves your issue please see this post and respond accordingly.

I also ask, regardless the resolution, please post what resolved your issue so that others with similar issues may be helped.

Thanks

As far as which pi it appears to be the 3 series when using WiFi. Interesting though someone posted having a similar issue with a pine 64 board a year or more ago on the git issues page.

I have not had time to fully review the script file there should be error checking for this, but appears there could be an issue in the error check. It’s on my list but I have not had time work work with that yet.

I will post the resolution when (if…) I succeed :smiley:

Thank you very much :smiley: And yes, I would very much appreciate a modified boot file, as the RPi seems to have latest updates & upgrades already installed.

Doing install after update & upgrade gives this log:

2018-10-25_10:18:04_CEST [openHABian] Starting the openHABian initial setup.
2018-10-25_10:18:04_CEST [openHABian] Storing configuration… OK
2018-10-25_10:18:04_CEST [openHABian] Changing default username and password… SKIPPED
2018-10-25_10:18:04_CEST [openHABian] Setting up Ethernet connection… OK
2018-10-25_10:18:04_CEST [openHABian] Ensuring network connectivity… OK
2018-10-25_10:18:04_CEST [openHABian] Waiting for dpkg/apt to get ready… OK
2018-10-25_10:18:12_CEST [openHABian] Updating repositories and upgrading installed packages… OK
2018-10-25_10:18:20_CEST [openHABian] Installing git package… FAILED
2018-10-25_10:18:34_CEST [openHABian] Initial setup exiting with an error!

I hope this is solvable

Update:
Today I received two new RPi 3 Model B+. As I understood the problem might be with certain specimens, I tested installing a fresh image with one of these. The installation fails at installing java/zulu, and thereafter at cloning itself.

If there is a setup script or image that can help, i am very greateful.

Every 2.0s: cat /boot/first-boot.log openHABianPi: Thu Oct 25 13:33:24 2018

2018-03-13_22:53:42_UTC [openHABian] Starting the openHABian initial setup.
2018-03-13_22:53:42_UTC [openHABian] Storing configuration… OK
2018-03-13_22:53:42_UTC [openHABian] Changing default username and password… OK
2018-03-13_22:53:43_UTC [openHABian] Setting up Ethernet connection… OK
2018-03-13_22:53:43_UTC [openHABian] Ensuring network connectivity… OK
2018-03-13_22:53:43_UTC [openHABian] Waiting for dpkg/apt to get ready… OK
2018-10-25_11:08:38_UTC [openHABian] Updating repositories and upgrading installed packages… OK
2018-10-25_11:12:52_UTC [openHABian] Installing git package… OK
2018-10-25_11:13:27_UTC [openHABian] Cloning myself… OK
2018-10-25_11:13:29_UTC [openHABian] Executing ‘openhabian-setup.sh unattended’…
2018-10-25_11:13:29_UTC [openHABian] Checking for root privileges… OK
2018-10-25_11:13:29_UTC [openHABian] Loading configuration file ‘/etc/openhabian.conf’… OK
2018-10-25_11:13:29_UTC [openHABian] Setting timezone based on IP geolocation… OK (Europe/Oslo)
2018-10-25_13:14:42_CEST [openHABian] Setting locale based on openhabian.conf… OK
2018-10-25_13:15:06_CEST [openHABian] Setting hostname of the base system… OK
2018-10-25_13:15:07_CEST [openHABian] Setting the GPU memory split down to 16MB for headless system… OK
2018-10-25_13:15:07_CEST [openHABian] Enabling Audio output… OK
2018-10-25_13:15:07_CEST [openHABian] Installing basic can’t-be-wrong packages (screen, vim, …)… OK
2018-10-25_13:15:57_CEST [openHABian] Installing additional needed packages… OK
2018-10-25_13:16:09_CEST [openHABian] Installing additional bluetooth packages… OK
2018-10-25_13:16:19_CEST [openHABian] Adding slightly tuned bash config files to system… OK
2018-10-25_13:16:19_CEST [openHABian] Adding slightly tuned vim config file to system… OK
2018-10-25_13:16:19_CEST [openHABian] Downloading and setting up FireMotD… OK
2018-10-25_13:16:43_CEST [openHABian] Installing Zulu Embedded OpenJDK… FAILED (keyserver)
2018-10-25_13:16:46_CEST [openHABian] Initial setup exiting with an error!

2018-10-25_13:31:01_CEST [openHABian] Starting the openHABian initial setup.
2018-10-25_13:31:01_CEST [openHABian] Storing configuration… OK
2018-10-25_13:31:01_CEST [openHABian] Changing default username and password… SKIPPED
2018-10-25_13:31:01_CEST [openHABian] Setting up Ethernet connection… OK
2018-10-25_13:31:01_CEST [openHABian] Ensuring network connectivity… OK
2018-10-25_13:31:01_CEST [openHABian] Waiting for dpkg/apt to get ready… OK
2018-10-25_13:31:10_CEST [openHABian] Updating repositories and upgrading installed packages… OK
2018-10-25_13:31:17_CEST [openHABian] Installing git package… OK
2018-10-25_13:31:35_CEST [openHABian] Cloning myself… FAILED
2018-10-25_13:31:35_CEST [openHABian] Initial setup exiting with an error!

2018-10-25_13:32:06_CEST [openHABian] Starting the openHABian initial setup.
2018-10-25_13:32:06_CEST [openHABian] Storing configuration… OK
2018-10-25_13:32:06_CEST [openHABian] Changing default username and password… SKIPPED
2018-10-25_13:32:06_CEST [openHABian] Setting up Ethernet connection… OK
2018-10-25_13:32:06_CEST [openHABian] Ensuring network connectivity… OK
2018-10-25_13:32:06_CEST [openHABian] Waiting for dpkg/apt to get ready… OK
2018-10-25_13:32:12_CEST [openHABian] Updating repositories and upgrading installed packages… OK
2018-10-25_13:32:20_CEST [openHABian] Installing git package… OK
2018-10-25_13:32:27_CEST [openHABian] Cloning myself… FAILED
2018-10-25_13:32:27_CEST [openHABian] Initial setup exiting with an error!

This failure is a different problem. The only failure that has been diagnosed to a software issue right now is “failed updating packages”

This could be a power supply issue. Do you have another supply… ?

Files are in my post above. Fyi

@Thedannymullen
Thanks, I found the files. And will try a different power supply

This is not too promising:

Tested with a 2600 mA power. Firewall is turned off during test. Fresh image. New RPI 3 model B+. The setup is fine until install of java8/zulu. Here the manual installation has stopped previously:

The command
“apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x219BD9C9” get the ressponse
“gpg: keyserver receive failed: No keyserver available”.

I have tried with other keyservers also, all with the same result.

Every 2.0s: cat /boot/first-boot.log openHABianPi: Thu Oct 25 15:12:33 2018

2018-03-13_22:53:38_UTC [openHABian] Starting the openHABian initial setup.
2018-03-13_22:53:38_UTC [openHABian] Storing configuration… OK
2018-03-13_22:53:38_UTC [openHABian] Changing default username and password… OK
2018-03-13_22:53:38_UTC [openHABian] Setting up Ethernet connection… OK
2018-03-13_22:53:38_UTC [openHABian] Ensuring network connectivity… OK
2018-03-13_22:53:38_UTC [openHABian] Waiting for dpkg/apt to get ready… OK
2018-10-25_13:03:45_UTC [openHABian] Updating repositories and upgrading installed packages… OK
2018-10-25_13:08:15_UTC [openHABian] Installing git package… OK
2018-10-25_13:08:52_UTC [openHABian] Cloning myself… OK
2018-10-25_13:08:54_UTC [openHABian] Executing ‘openhabian-setup.sh unattended’…
2018-10-25_13:08:54_UTC [openHABian] Checking for root privileges… OK
2018-10-25_13:08:54_UTC [openHABian] Loading configuration file ‘/etc/openhabian.conf’… OK
2018-10-25_13:08:54_UTC [openHABian] Setting timezone based on IP geolocation… OK (Europe/Oslo)
2018-10-25_15:10:12_CEST [openHABian] Setting locale based on openhabian.conf… OK
2018-10-25_15:10:37_CEST [openHABian] Setting hostname of the base system… OK
2018-10-25_15:10:37_CEST [openHABian] Setting the GPU memory split down to 16MB for headless system… OK
2018-10-25_15:10:37_CEST [openHABian] Enabling Audio output… OK
2018-10-25_15:10:38_CEST [openHABian] Installing basic can’t-be-wrong packages (screen, vim, …)… OK
2018-10-25_15:11:29_CEST [openHABian] Installing additional needed packages… OK
2018-10-25_15:11:42_CEST [openHABian] Installing additional bluetooth packages… OK
2018-10-25_15:11:53_CEST [openHABian] Adding slightly tuned bash config files to system… OK
2018-10-25_15:11:53_CEST [openHABian] Adding slightly tuned vim config file to system… OK
2018-10-25_15:11:53_CEST [openHABian] Downloading and setting up FireMotD… OK
2018-10-25_15:12:16_CEST [openHABian] Installing Zulu Embedded OpenJDK… FAILED (keyserver)
2018-10-25_15:12:19_CEST [openHABian] Initial setup exiting with an error!

Remember to reflash the SD card again so that its clean. The image install using poor power will sometimes get corrupted.

@H102: Hello and thank you for your effort to help :smiley:
I have made a fresh SD card and loaded to a new (received today) RPi. Turned off the routers fw, and connected a 2600 mAh power supply to the RPi. The setup stops at the “java/zulu” install as described above. The “keyserver” error may be the problem, if there is not a power supply hidden there even with a 2600mA supply. What power do you recommend?

5v 2.5A is recommended, I would think that 2600ma is sufficient. Is the supply really outputting 2600ma?

Ok now I think we may be just having an issue with the zulu server side possibly. As right above fire motd installed.

I don’t know how to trouble shoot other then trying a manual install on the command line and see what breaks. I am betting something external to you could be messed

@Thedannymullen: I have done the manual setup a few times already. The same command is the showstopper every time:

The command
“apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x219BD9C9” get the ressponse
“gpg: keyserver receive failed: No keyserver available”.

I have tried with other keyservers also, all with the same result.

@H102: I will have to find a way to test if the power actually may output 2600 mA. That is its specification, though.