Closed kedvsk closed 5 years ago
Doesn't make sense to me. Never happened to me. Is your SD card smaller than 8GB?
I have the same issue. It will fail the first time with a kernel panic, then after it will just hang at this step
Not sure why, but after switching to using the wifi it worked
Closing because the reason for this unusual problem could not be identified. Please comment if you have more details!
I have the same problem !
Hello @georgi-aba, as you can see here the "Waiting for dpkg/apt to get ready..." routine does exactly this and can't be the cause of a reboot. Could your system possibly be unstable due to a weak power supply? If you are seeing more evidence, please describe it.
In general I'd suspect an installation to run though without problems, in case of doubt replace the power supply and start with a fresh image.
Well for me it's stuck at "started Cleanup of Temporary Directories" Setup: Raspberry pi 3 model b LAN Fresh download Installed via "dd" Fresh SD card 16 GB https://puu.sh/wsEce/cf12cdcb8a.jpg https://puu.sh/wsEe3/912147eb1b.jpg
There is no such method or output I can remember. Your images are not loading. Please add them in this thread directly.
I’ve tried with WiFi, I’ve tried with LAN but the result Is the same: [openHABian] Waiting for dpkg/apt to get ready... -> for several hours
My setup is a brand-new Raspberry Pi 3 Model B Power Supply 2.5A MicroCD 16G Kinston Class10
I’m starting for the 4-th time with a fresh copy of the image but the results are the same. I’m using “Rufus-2.12” with DD to write the image to the SD card.
I’m doing the installation without a keyboard, with monitor only because I don’t have a USB keyboard at the moment and after the automatic configuration process of OpenHAB starts I connect via SSH to the Pi to monitor “/boot/first-boot.log” file. And the system does not reboot.
The only think that I can think of is that I don’t have heatsinks on the chips and right now here it’s 30 deg. Celsius. I don’t know if this can cause the problem?
30 °C that's not it. Mount the SD card to your Linux. Mount /dev/sdX1 /yourpath/ Edit the first-startup.sh Search for apt update Delte the &>/dev/null Try again, post the log
If dpkg will throw an error that tells your to run dpkg - - configure - a Edit the first-startup.sh again and add above the apt update dpkg - - configure - a Boot pi again and post the log again
You mean "first-boot.sh"?
Jup
Without "&>/dev/null"
2017-04-10_09:59:17_UTC [openHABian] Starting the openHABian initial setup. This might take a few minutes. 2017-04-10_09:59:17_UTC [openHABian] If you see this message more than once, something went wrong! 2017-04-10_09:59:17_UTC [openHABian] Storing configuration... OK 2017-04-10_09:59:17_UTC [openHABian] Changing default username and password... OK 2017-04-10_09:59:18_UTC [openHABian] Setting up Wifi connection... OK 2017-04-10_09:59:18_UTC [openHABian] Ensuring network connectivity... OK 2017-04-10_09:59:25_UTC [openHABian] Waiting for dpkg/apt to get ready... OK 2017-04-10_10:00:49_UTC [openHABian] Updating repositories and upgrading installed packages... 2017-04-10_10:17:10_UTC [openHABian] Starting th e openHABian initial setup. This might take a few minutes. 2017-04-10_10:17:10_UTC [openHABian] If you see this message more than once, something went wrong! 2017-04-10_10:17:10_UTC [openHABian] Storing configuration... OK 2017-04-10_10:17:11_UTC [openHABian] Changing default username and password... SKIPPED 2017-04-10_10:17:11_UTC [openHABian] Setting up Wifi connection... OK 2017-04-10_10:17:11_UTC [openHABian] Ensuring network connectivity... OK 2017-04-10_10:17:22_UTC [openHABian] Waiting for dpkg/apt to get ready... 2017-04-10_10:17:10_UTC [openHABian] Starting the openHABian initial setup. This might take a few minutes. 2017-04-10_10:17:10_UTC [openHABian] If you see this message more than once, something went wrong! 2017-04-10_10:17:10_UTC [openHABian] Storing configuration... OK 2017-04-10_10:17:10_UTC [openHABian] Changing default username and password... SKIPPED 2017-04-10_10:17:10_UTC [openHABian] Setting up Wifi connection... OK 2017-04-10_10:17:10_UTC [openHABian] Ensuring network connectivity... OK 2017-04-10_10:17:22_UTC [openHABian] Waiting for dpkg/apt to get ready... 2017-04-10_10:17:09_UTC [openHABian] Starting the openHABian initial setup. This might take a few minutes. 2017-04-10_10:17:09_UTC [openHABian] If you see this message more than once, something went wrong! 2017-04-10_10:17:09_UTC [openHABian] Storing configuration... OK 2017-04-10_10:17:09_UTC [openHABian] Changing default username and password... SKIPPED 2017-04-10_10:17:10_UTC [openHABian] Setting up Wifi connection... OK 2017-04-10_10:17:10_UTC [openHABian] Ensuring network connectivity... OK 2017-04-10_10:17:21_UTC [openHABian] Waiting for dpkg/apt to get ready...
63 echo -n "$(timestamp) [openHABian] Waiting for dpkg/apt to get ready... " 64 until apt update; &>/dev/null; do sleep 1; done 65 echo "OK" 66 67 echo -n "$(timestamp) [openHABian] Updating repositories and upgrading installed packages... " 68 apt update &>/dev/null 69 apt --yes upgrade &>/dev/null 70 if [ $? -eq 0 ]; then echo "OK"; else echo "FAILED"; fail_inprogress; fi
This should look like this afterwards
63 echo -n "$(timestamp) [openHABian] Waiting for dpkg/apt to get ready... " 64 until apt update; do sleep 1; done 65 echo "OK" 66 67 echo -n "$(timestamp) [openHABian] Updating repositories and upgrading installed packages... " 68 apt update 69 apt --yes upgrade 70 if [ $? -eq 0 ]; then echo "OK"; else echo "FAILED"; fail_inprogress; fi
Because your Log does not look correct
This is the result:
2017-04-10_09:59:11_UTC [openHABian] Starting the openHABian initial setup. This might take a few minutes. 2017-04-10_09:59:11_UTC [openHABian] If you see this message more than once, something went wrong! 2017-04-10_09:59:13_UTC [openHABian] Storing configuration... OK 2017-04-10_09:59:14_UTC [openHABian] Changing default username and password... OK 2017-04-10_09:59:15_UTC [openHABian] Setting up Wifi connection... OK 2017-04-10_09:59:15_UTC [openHABian] Ensuring network connectivity... OK 2017-04-10_09:59:23_UTC [openHABian] Waiting for dpkg/apt to get ready... OK 2017-04-10_10:00:48_UTC [openHABian] Updating repositories and upgrading installed packages... 2017-04-10_09:58:44_UTC [openHABian] Starting the openHABian initial setup. This might take a few minutes. 2017-04-10_09:58:44_UTC [openHABian] If you see this message more than once, something went wrong! 2017-04-10_09:58:44_UTC [openHABian] Storing configuration... OK 2017-04-10_09:58:44_UTC [openHABian] Changing default username and password... SKIPPED 2017-04-10_09:58:44_UTC [openHABian] Setting up Wifi connection... OK 2017-04-10_09:58:44_UTC [openHABian] Ensuring network connectivity... OK 2017-04-10_09:58:55_UTC [openHABian] Waiting for dpkg/apt to get ready... WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.
Hit http://archive.raspberrypi.org jessie InRelease Hit http://archive.raspberrypi.org jessie/main armhf Packages Hit http://archive.raspberrypi.org jessie/ui armhf Packages Ign http://archive.raspberrypi.org jessie/main Translation-en_GB Ign http://archive.raspberrypi.org jessie/main Translation-en Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB Ign http://archive.raspberrypi.org jessie/ui Translation-en Err http://mirrordirector.raspbian.org jessie InRelease
Err http://mirrordirector.raspbian.org jessie Release.gpg Cannot initiate the connection to mirrordirector.raspbian.org:80 (2a00:1098:0:80:1000:75:0:3). - connect (101: Network is unreachable) [IP: 2a00:1098:0:80:1000:75:0:3 80] W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/InRelease
W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/Release.gpg Cannot initiate the connection to mirrordirector.raspbian.org:80 (2a00:1098:0:80:1000:75:0:3). - connect (101: Network is unreachable) [IP: 2a00:1098:0:80:1000:75:0:3 80]
W: Some index files failed to download. They have been ignored, or old ones used instead. E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
62 echo -n "$(timestamp) [openHABian] Waiting for dpkg/apt to get ready... " 63 dpkg --configure -a 64 until apt update; do sleep 1; done 65 echo "OK" 66 67 echo -n "$(timestamp) [openHABian] Updating repositories and upgrading installed packages... " 68 apt update 69 apt --yes upgrade 70 if [ $? -eq 0 ]; then echo "OK"; else echo "FAILED"; fail_inprogress; fi
line 63 dpkg --configure -a add this and post log again
Since now you got the exact same Issue like me.
2017-04-10_09:59:11_UTC [openHABian] Starting the openHABian initial setup. This might take a few minutes. 2017-04-10_09:59:11_UTC [openHABian] If you see this message more than once, something went wrong! 2017-04-10_09:59:13_UTC [openHABian] Storing configuration... OK 2017-04-10_09:59:14_UTC [openHABian] Changing default username and password... OK 2017-04-10_09:59:15_UTC [openHABian] Setting up Wifi connection... OK 2017-04-10_09:59:15_UTC [openHABian] Ensuring network connectivity... OK 2017-04-10_09:59:23_UTC [openHABian] Waiting for dpkg/apt to get ready... OK 2017-04-10_10:00:48_UTC [openHABian] Updating repositories and upgrading installed packages... 2017-04-10_09:58:44_UTC [openHABian] Starting the openHABian initial setup. This might take a few minutes. 2017-04-10_09:58:44_UTC [openHABian] If you see this message more than once, something went wrong! 2017-04-10_09:58:44_UTC [openHABian] Storing configuration... OK 2017-04-10_09:58:44_UTC [openHABian] Changing default username and password... SKIPPED 2017-04-10_09:58:44_UTC [openHABian] Setting up Wifi connection... OK 2017-04-10_09:58:44_UTC [openHABian] Ensuring network connectivity... OK 2017-04-10_09:58:55_UTC [openHABian] Waiting for dpkg/apt to get ready... WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.
Hit http://archive.raspberrypi.org jessie InRelease Hit http://archive.raspberrypi.org jessie/main armhf Packages Hit http://archive.raspberrypi.org jessie/ui armhf Packages Ign http://archive.raspberrypi.org jessie/main Translation-en_GB Ign http://archive.raspberrypi.org jessie/main Translation-en Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB Ign http://archive.raspberrypi.org jessie/ui Translation-en Err http://mirrordirector.raspbian.org jessie InRelease
Err http://mirrordirector.raspbian.org jessie Release.gpg Cannot initiate the connection to mirrordirector.raspbian.org:80 (2a00:1098:0:80:1000:75:0:3). - connect (101: Network is unreachable) [IP: 2a00:1098:0:80:1000:75:0:3 80] W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/InRelease
W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/Release.gpg Cannot initiate the connection to mirrordirector.raspbian.org:80 (2a00:1098:0:80:1000:75:0:3). - connect (101: Network is unreachable) [IP: 2a00: 1098:0:80:1000:75:0:3 80]
W: Some index files failed to download. They have been ignored, or old ones used instead. E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.
Hit http://archive.raspberrypi.org jessie InRelease Hit http://archive.raspberrypi.org jessie/main armhf Packages Hit http://archive.raspberrypi.org jessie/ui armhf Packages Ign http://archive.raspberrypi.org jessie/main Translation-en_GB Ign http://archive.raspberrypi.org jessie/main Translation-en Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB Ign http://archive.raspberrypi.org jessie/ui Translation-en Err http://mirrordirector.raspbian.org jessie InRelease
Hey guys, I'll try a few setups myself this evening. I did not encounter this behavior before. This:
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Seems to be the key issue here. From this moment forward the apt update will always fail because of this issue and your loop will run indefinitely. Maybe I should give some context. The loop is there because apt and dpkg are not ready right after bootup. The loop solved this issue for me and does the job since the previous release (1.2 in March) for hundreds of users. Obviously it doesn't for you which is quite strange.
Would you please test something for me? Start with a fresh flash, then modify the first-boot.sh before the first boot in one of these ways:
until dpkg --configure -a && apt update; do sleep 1; done
until dpkg --configure -a; do sleep 1; done
Let me know if one of those does the trick, and if so which seems to be the better solution. Thanks!!
This is my first-boot.sh file. I removed all the “&>/dev/null” after the “[openHABian] Ensuring network connectivity...”
#!/bin/bash
# Log everything to file
exec &> >(tee -a "/boot/first-boot.log")
timestamp() { date +"%F_%T_%Z"; }
fail_inprogress() {
rm -f /opt/openHABian-install-inprogress
touch /opt/openHABian-install-failed
echo "$(timestamp) [openHABian] Initial setup exiting with an error."
exit 1
}
echo "$(timestamp) [openHABian] Starting the openHABian initial setup. This might take a few minutes."
echo "$(timestamp) [openHABian] If you see this message more than once, something went wrong!"
rm -f /opt/openHABian-install-failed
touch /opt/openHABian-install-inprogress
echo -n "$(timestamp) [openHABian] Storing configuration... "
cp /boot/openhabian.conf /etc/openhabian.conf
source /etc/openhabian.conf
echo "OK"
userdef="pi"
echo -n "$(timestamp) [openHABian] Changing default username and password... "
if [ -z ${username+x} ] || ! id $userdef &>/dev/null || id $username &>/dev/null; then
echo "SKIPPED"
else
usermod -l $username $userdef
usermod -m -d /home/$username $username
groupmod -n $username $userdef
chpasswd <<< "$username:$userpw"
echo "OK"
fi
# While setup: show log to logged in user, will be overwritten by openhabian-setup.sh
echo "watch cat /boot/first-boot.log" > "/home/$username/.bash_profile"
echo -n "$(timestamp) [openHABian] Setting up Wifi connection... "
if [ -z ${wifi_ssid+x} ]; then
echo "SKIPPED"
else
echo -e "ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev\nupdate_config=1" > /etc/wpa_supplicant/wpa_supplicant.conf
echo -e "network={\n\tssid=\"$wifi_ssid\"\n\tpsk=\"$wifi_psk\"\n}" >> /etc/wpa_supplicant/wpa_supplicant.conf
wpa_cli reconfigure &>/dev/null
echo "OK"
fi
echo -n "$(timestamp) [openHABian] Ensuring network connectivity... "
cnt=0
until ping -c1 8.8.8.8 &>/dev/null; do
sleep 1
cnt=$((cnt + 1))
if [ $cnt -eq 100 ]; then
echo ""
echo "$(timestamp) [openHABian] Network unreachable, can't continue. Please reboot and let me try again."
fail_inprogress
fi
done
echo "OK"
# My crap !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo -n "$(timestamp) [ABATA] --------> bite bite bite... "
until dpkg --configure -a; do sleep 1; done
echo "OK"
#End of My crap !!!!
echo -n "$(timestamp) [openHABian] Waiting for dpkg/apt to get ready... "
until apt update; do sleep 1; done
echo "OK"
echo -n "$(timestamp) [openHABian] Updating repositories and upgrading installed packages... "
apt update
apt --yes upgrade
if [ $? -eq 0 ]; then echo "OK"; else echo "FAILED"; fail_inprogress; fi
echo -n "$(timestamp) [openHABian] Installing git package... "
/usr/bin/apt -y install git
if [ $? -eq 0 ]; then echo "OK"; else echo "FAILED"; fail_inprogress; fi
echo -n "$(timestamp) [openHABian] Cloning myself... "
/usr/bin/git clone -b master https://github.com/openhab/openhabian.git /opt/openhabian
#/usr/bin/git clone -b develop https://github.com/openhab/openhabian.git /opt/openhabian &>/dev/null
if [ $? -eq 0 ]; then echo "OK"; else echo "FAILED"; fail_inprogress; fi
ln -sfn /opt/openhabian/openhabian-setup.sh /usr/local/bin/openhabian-config
echo "$(timestamp) [openHABian] Executing 'openhabian-setup.sh unattended'"
if (/bin/bash /opt/openhabian/openhabian-setup.sh unattended); then
#if (/bin/bash /opt/openhabian/openhabian-setup.sh unattended_debug); then
systemctl start openhab2.service
rm -f /opt/openHABian-install-inprogress
touch /opt/openHABian-install-successful
else
fail_inprogress
fi
echo "$(timestamp) [openHABian] Execution of 'openhabian-setup.sh unattended' completed"
echo "$(timestamp) [openHABian] First time boot setup successfully finished."
# vim: filetype=sh
And this is the full log:
2017-04-10_09:59:19_UTC [openHABian] Starting the openHABian initial setup. This might take a few minutes.
2017-04-10_09:59:19_UTC [openHABian] If you see this message more than once, something went wrong!
2017-04-10_09:59:19_UTC [openHABian] Storing configuration... OK
2017-04-10_09:59:19_UTC [openHABian] Changing default username and password... OK
2017-04-10_09:59:20_UTC [openHABian] Setting up Wifi connection... OK
2017-04-10_09:59:20_UTC [openHABian] Ensuring network connectivity... OK
2017-04-10_09:59:27_UTC [ABATA] --------> bite bite biteOK
2017-04-10_09:59:27_UTC [openHABian] Waiting for dpkg/apt to get ready... 2017-04-10_09:58:45_UTC [openHABian] Starting the openHABian initial setup. This might take a few minutes.
2017-04-10_09:58:45_UTC [openHABian] If you see this message more than once, something went wrong!
2017-04-10_09:58:45_UTC [openHABian] Storing configuration... OK
2017-04-10_09:58:45_UTC [openHABian] Changing default username and password... SKIPPED
2017-04-10_09:58:45_UTC [openHABian] Setting up Wifi connection... OK
2017-04-10_09:58:45_UTC [openHABian] Ensuring network connectivity... OK
2017-04-10_09:58:56_UTC [ABATA] --------> bite bite biteOK
2017-04-10_09:58:57_UTC [openHABian] Waiting for dpkg/apt to get ready... OK
2017-04-10_10:00:06_UTC [openHABian] Updating repositories and upgrading installed packages... 2017-04-10_10:17:12_UTC [openHABian] Starting the openHABian initial setup. This might take a few minutes.
2017-04-10_10:17:12_UTC [openHABian] If you see this message more than once, something went wrong!
2017-04-10_10:17:12_UTC [openHABian] Storing configuration... OK
2017-04-10_10:17:12_UTC [openHABian] Changing default username and password... SKIPPED
2017-04-10_10:17:12_UTC [openHABian] Setting up Wifi connection... OK
2017-04-10_10:17:12_UTC [openHABian] Ensuring network connectivity... OK
2017-04-10_10:17:23_UTC [ABATA] --------> bite bite bite... Processing triggers for initramfs-tools (0.120+deb8u3) ...
Setting up raspi-config (20170518) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Setting up raspberrypi-kernel (1.20170515-1) ...
Removing 'diversion of /boot/overlays/dionaudio-loco.dtbo to /usr/share/rpikernelhack/overlays/dionaudio-loco.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/dpi18.dtbo to /usr/share/rpikernelhack/overlays/dpi18.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/dpi24.dtbo to /usr/share/rpikernelhack/overlays/dpi24.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/dwc-otg.dtbo to /usr/share/rpikernelhack/overlays/dwc-otg.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/dwc2.dtbo to /usr/share/rpikernelhack/overlays/dwc2.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/enc28j60-spi2.dtbo to /usr/share/rpikernelhack/overlays/enc28j60-spi2.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/enc28j60.dtbo to /usr/share/rpikernelhack/overlays/enc28j60.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/fe-pi-audio.dtbo to /usr/share/rpikernelhack/overlays/fe-pi-audio.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/googlevoicehat-soundcard.dtbo to /usr/share/rpikernelhack/overlays/googlevoicehat-soundcard.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/gpio-ir.dtbo to /usr/share/rpikernelhack/overlays/gpio-ir.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/gpio-poweroff.dtbo to /usr/share/rpikernelhack/overlays/gpio-poweroff.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/hifiberry-amp.dtbo to /usr/share/rpikernelhack/overlays/hifiberry-amp.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/hifiberry-dac.dtbo to /usr/share/rpikernelhack/overlays/hifiberry-dac.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/hifiberry-dacplus.dtbo to /usr/share/rpikernelhack/overlays/hifiberry-dacplus.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/hifiberry-digi-pro.dtbo to /usr/share/rpikernelhack/overlays/hifiberry-digi-pro.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/hifiberry-digi.dtbo to /usr/share/rpikernelhack/overlays/hifiberry-digi.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/hy28a.dtbo to /usr/share/rpikernelhack/overlays/hy28a.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/hy28b.dtbo to /usr/share/rpikernelhack/overlays/hy28b.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/i2c-bcm2708.dtbo to /usr/share/rpikernelhack/overlays/i2c-bcm2708.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/i2c-gpio.dtbo to /usr/share/rpikernelhack/overlays/i2c-gpio.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/i2c-mux.dtbo to /usr/share/rpikernelhack/overlays/i2c-mux.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/i2c-pwm-pca9685a.dtbo to /usr/share/rpikernelhack/overlays/i2c-pwm-pca9685a.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/i2c-rtc.dtbo to /usr/share/rpikernelhack/overlays/i2c-rtc.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/i2c-sensor.dtbo to /usr/share/rpikernelhack/overlays/i2c-sensor.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/i2c0-bcm2708.dtbo to /usr/share/rpikernelhack/overlays/i2c0-bcm2708.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/i2c1-bcm2708.dtbo to /usr/share/rpikernelhack/overlays/i2c1-bcm2708.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/i2s-gpio28-31.dtbo to /usr/share/rpikernelhack/overlays/i2s-gpio28-31.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/iqaudio-dac.dtbo to /usr/share/rpikernelhack/overlays/iqaudio-dac.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/iqaudio-dacplus.dtbo to /usr/share/rpikernelhack/overlays/iqaudio-dacplus.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/iqaudio-digi-wm8804-audio.dtbo to /usr/share/rpikernelhack/overlays/iqaudio-digi-wm8804-audio.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/justboom-dac.dtbo to /usr/share/rpikernelhack/overlays/justboom-dac.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/justboom-digi.dtbo to /usr/share/rpikernelhack/overlays/justboom-digi.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/lirc-rpi.dtbo to /usr/share/rpikernelhack/overlays/lirc-rpi.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/mcp23017.dtbo to /usr/share/rpikernelhack/overlays/mcp23017.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/mcp23s17.dtbo to /usr/share/rpikernelhack/overlays/mcp23s17.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/mcp2515-can0.dtbo to /usr/share/rpikernelhack/overlays/mcp2515-can0.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/mcp2515-can1.dtbo to /usr/share/rpikernelhack/overlays/mcp2515-can1.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/mcp3008.dtbo to /usr/share/rpikernelhack/overlays/mcp3008.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/midi-uart0.dtbo to /usr/share/rpikernelhack/overlays/midi-uart0.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/mmc.dtbo to /usr/share/rpikernelhack/overlays/mmc.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/mz61581.dtbo to /usr/share/rpikernelhack/overlays/mz61581.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/pi3-act-led.dtbo to /usr/share/rpikernelhack/overlays/pi3-act-led.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/pi3-disable-bt.dtbo to /usr/share/rpikernelhack/overlays/pi3-disable-bt.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/pi3-disable-wifi.dtbo to /usr/share/rpikernelhack/overlays/pi3-disable-wifi.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/pi3-miniuart-bt.dtbo to /usr/share/rpikernelhack/overlays/pi3-miniuart-bt.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/piscreen.dtbo to /usr/share/rpikernelhack/overlays/piscreen.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/piscreen2r.dtbo to /usr/share/rpikernelhack/overlays/piscreen2r.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/pisound.dtbo to /usr/share/rpikernelhack/overlays/pisound.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/pitft22.dtbo to /usr/share/rpikernelhack/overlays/pitft22.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/pitft28-capacitive.dtbo to /usr/share/rpikernelhack/overlays/pitft28-capacitive.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/pitft28-resistive.dtbo to /usr/share/rpikernelhack/overlays/pitft28-resistive.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/pitft35-resistive.dtbo to /usr/share/rpikernelhack/overlays/pitft35-resistive.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/pps-gpio.dtbo to /usr/share/rpikernelhack/overlays/pps-gpio.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/pwm-2chan.dtbo to /usr/share/rpikernelhack/overlays/pwm-2chan.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/pwm.dtbo to /usr/share/rpikernelhack/overlays/pwm.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/qca7000.dtbo to /usr/share/rpikernelhack/overlays/qca7000.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/raspidac3.dtbo to /usr/share/rpikernelhack/overlays/raspidac3.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/rpi-backlight.dtbo to /usr/share/rpikernelhack/overlays/rpi-backlight.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/rpi-cirrus-wm5102.dtbo to /usr/share/rpikernelhack/overlays/rpi-cirrus-wm5102.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/rpi-dac.dtbo to /usr/share/rpikernelhack/overlays/rpi-dac.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/rpi-display.dtbo to /usr/share/rpikernelhack/overlays/rpi-display.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/rpi-ft5406.dtbo to /usr/share/rpikernelhack/overlays/rpi-ft5406.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/rpi-proto.dtbo to /usr/share/rpikernelhack/overlays/rpi-proto.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/rpi-sense.dtbo to /usr/share/rpikernelhack/overlays/rpi-sense.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/rpi-tv.dtbo to /usr/share/rpikernelhack/overlays/rpi-tv.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/rra-digidac1-wm8741-audio.dtbo to /usr/share/rpikernelhack/overlays/rra-digidac1-wm8741-audio.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/sc16is750-i2c.dtbo to /usr/share/rpikernelhack/overlays/sc16is750-i2c.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/sc16is752-spi1.dtbo to /usr/share/rpikernelhack/overlays/sc16is752-spi1.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/sdhost.dtbo to /usr/share/rpikernelhack/overlays/sdhost.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/sdio-1bit.dtbo to /usr/share/rpikernelhack/overlays/sdio-1bit.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/sdio.dtbo to /usr/share/rpikernelhack/overlays/sdio.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/sdtweak.dtbo to /usr/share/rpikernelhack/overlays/sdtweak.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/smi-dev.dtbo to /usr/share/rpikernelhack/overlays/smi-dev.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/smi-nand.dtbo to /usr/share/rpikernelhack/overlays/smi-nand.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/smi.dtbo to /usr/share/rpikernelhack/overlays/smi.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/spi-gpio35-39.dtbo to /usr/share/rpikernelhack/overlays/spi-gpio35-39.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/spi-rtc.dtbo to /usr/share/rpikernelhack/overlays/spi-rtc.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/spi0-cs.dtbo to /usr/share/rpikernelhack/overlays/spi0-cs.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/spi0-hw-cs.dtbo to /usr/share/rpikernelhack/overlays/spi0-hw-cs.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/spi1-1cs.dtbo to /usr/share/rpikernelhack/overlays/spi1-1cs.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/spi1-2cs.dtbo to /usr/share/rpikernelhack/overlays/spi1-2cs.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/spi1-3cs.dtbo to /usr/share/rpikernelhack/overlays/spi1-3cs.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/spi2-1cs.dtbo to /usr/share/rpikernelhack/overlays/spi2-1cs.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/spi2-2cs.dtbo to /usr/share/rpikernelhack/overlays/spi2-2cs.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/spi2-3cs.dtbo to /usr/share/rpikernelhack/overlays/spi2-3cs.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/tinylcd35.dtbo to /usr/share/rpikernelhack/overlays/tinylcd35.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/uart1.dtbo to /usr/share/rpikernelhack/overlays/uart1.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/vc4-fkms-v3d.dtbo to /usr/share/rpikernelhack/overlays/vc4-fkms-v3d.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/vc4-kms-v3d.dtbo to /usr/share/rpikernelhack/overlays/vc4-kms-v3d.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/vga666.dtbo to /usr/share/rpikernelhack/overlays/vga666.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/w1-gpio-pullup.dtbo to /usr/share/rpikernelhack/overlays/w1-gpio-pullup.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/w1-gpio.dtbo to /usr/share/rpikernelhack/overlays/w1-gpio.dtbo by rpikernelhack'
Removing 'diversion of /boot/overlays/wittypi.dtbo to /usr/share/rpikernelhack/overlays/wittypi.dtbo by rpikernelhack'
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.9.28+ /boot/kernel.img
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.9.28+ /boot/kernel.img
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.9.28-v7+ /boot/kernel7.img
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.9.28-v7+ /boot/kernel7.img
Setting up libraspberrypi-bin (1.20170515-1) ...
Processing triggers for ca-certificates (20141019+deb8u3) ...
Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
OK
2017-04-10_10:18:05_UTC [openHABian] Waiting for dpkg/apt to get ready...
WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.
Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://archive.raspberrypi.org jessie InRelease
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
OK
2017-04-10_10:18:58_UTC [openHABian] Updating repositories and upgrading installed packages...
WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.
Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://archive.raspberrypi.org jessie InRelease
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
OK
2017-04-10_10:19:52_UTC [openHABian] Installing git package...
WARNING: /usr/bin/apt does not have a stable CLI interface yet. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
git-man liberror-perl rsync
Suggested packages:
git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk
gitweb git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
git git-man liberror-perl rsync
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,389 kB of archives.
After this operation, 21.0 MB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main liberror-perl all 0.17-1.1 [22.4 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main git-man all 1:2.1.4-2.1+deb8u3 [1,268 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main git armhf 1:2.1.4-2.1+deb8u3 [2,725 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main rsync armhf 3.1.1-3 [373 kB]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Fetched 4,389 kB in 4s (923 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 31520 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...
Unpacking liberror-perl (0.17-1.1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.1.4-2.1+deb8u3_all.deb ...
Unpacking git-man (1:2.1.4-2.1+deb8u3) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.1.4-2.1+deb8u3_armhf.deb ...
Unpacking git (1:2.1.4-2.1+deb8u3) ...
Selecting previously unselected package rsync.
Preparing to unpack .../rsync_3.1.1-3_armhf.deb ...
Unpacking rsync (3.1.1-3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u7) ...
Setting up liberror-perl (0.17-1.1) ...
Setting up git-man (1:2.1.4-2.1+deb8u3) ...
Setting up git (1:2.1.4-2.1+deb8u3) ...
Setting up rsync (3.1.1-3) ...
Processing triggers for systemd (215-17+deb8u7) ...
OK
2017-04-10_10:21:48_UTC [openHABian] Cloning myself... Cloning into '/opt/openhabian'...
OK
2017-04-10_10:21:51_UTC [openHABian] Executing 'openhabian-setup.sh unattended'
2017-04-10_10:21:51_UTC [openHABian] Checking for root privileges... OK
2017-04-10_10:21:52_UTC [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2017-04-10_10:21:52_UTC [openHABian] Setting timezone based on IP geolocation... FAILED (pip)
2017-04-10_10:24:26_UTC [openHABian] Initial setup exiting with an error.
@georgi-aba the idea was to combine both (apt and dpkg) of them, not put them after each other :) Anyhow I get a feeling what the underlying problem is... I'm still unsure though why this is only an issue for the few of you.
I'll have to investigate further and would be happy about your help. It would be great if one of you could modify the script by replacing until apt update; do sleep 1; done
by:
# sleep 10 minutes to let the system settle
sleep 600
until dpkg --configure -a && apt update; do sleep 1; done
Workaround: To get your system up and running now, please install a standard Raspbian Lite system, then set up openHABian the manual way, the result will be exactly the same.
This is how my “first-boot.sh” looks like on line 63-66:
echo -n "$(timestamp) [openHABian] Waiting for dpkg/apt to get ready... " sleep 600 until dpkg --configure -a && apt update; do sleep 1; done echo "OK"
Again I removed all the “&>/dev/null”. This are the final lines on the “first-boot.log”:
2017-04-10_10:41:22_UTC [openHABian] Cloning myself... OK 2017-04-10_10:41:24_UTC [openHABian] Executing 'openhabian-setup.sh unattended' 2017-04-10_10:41:24_UTC [openHABian] Checking for root privileges... OK 2017-04-10_10:41:25_UTC [openHABian] Loading configuration file '/etc/openhabian.conf'... OK 2017-04-10_10:41:25_UTC [openHABian] Setting timezone based on IP geolocation... FAILED (pip) 2017-04-10_10:44:21_UTC [openHABian] Initial setup exiting with an error.
And here is the full “first-boot.log” file: https://drive.google.com/file/d/0B-pJO-VrfwZKVnRrUzUxUnN0d0k/view?usp=sharing
I’ll try to install the OpenHab manual. But it is good to have the Openhabian working :)
@georgi-aba The IP geolocation part is totally unrelated and should normally not fail. It's however not critical, so I just removed the cancellation after a problem with this step. Please try once again :pray:
Just to be clear, with the modification with a sleep and the combined loop the old problem disappeared?
@BrutalBirdie Would be great if you could also have another round with this!
Thanks for your help guys!
Hi, I have had the same problem. After 3 clean init alwais have the same result. This is the first-boot-log:
login as: openhabian
openhabian@192.168.2.105's password:
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Jun 27 19:00:52 2017 from 192.168.2.100
Every 2.0s: cat /boot/first-boot.log Tue Jun 27 19:04:37 2017
2017-04-10_09:59:15_UTC [openHABian] Starting the openHABian initial setup. This
might take a few minutes.
2017-04-10_09:59:15_UTC [openHABian] If you see this message more than once, som
ething went wrong!
2017-04-10_09:59:15_UTC [openHABian] Storing configuration... OK
2017-04-10_09:59:15_UTC [openHABian] Changing default username and password... O
K
2017-04-10_09:59:16_UTC [openHABian] Setting up Wifi connection... OK
2017-04-10_09:59:16_UTC [openHABian] Ensuring network connectivity... OK
2017-04-10_09:59:25_UTC [openHABian] Waiting for dpkg/apt to get ready... OK
2017-06-27_17:29:20_UTC [openHABian] Updating repositories and upgrading install
ed packages... FAILED
2017-06-27_17:38:41_UTC [openHABian] Initial setup exiting with an error.
After that I can´t insert any more commands because the system is hang up.
Raspberry Pi3 B micro SD 16 GB Sandisk class 10 power source 3 Amp (chinese) :( :( I have heatsinks on the chips and an additional fan. The temp shouldn´t be the problem
@jcgiacomini I'm sorry to hear that you ran into issues with the openHABian setup. However the log you've posted suggests that you are not affected by the issue discussed here. You've seen this behavior multiple times!?
HI, Yes two times. The first one the process stoped as the first comments. [openHABian] Waiting for dpkg/apt to get ready... the other 2 times [openHABian] Initial setup exiting with an error.
The rarest thing is that the cursor is positioned and fixed in the lower right corner (Putty screen) and no more commands can be typed. The only solution is to reboot the raspberry.
Question: Did you find any relationship of this type of fault with the power supply? The power supply that came with my Raspberry is 3A but generic (No brand) and without specifications. I am not sure that it is adequate or complies with the current under load. I have an fan connected!!
I don't think your hardware is the issue. The behavior you describe above is normal for the program that shows the log progress to you. You can press Ctrl+c to get to a console.
Regarding the actual issue: I'm flashing an SD card to test atm
OK. Thank you
2017-06-28 19:09 GMT-03:00 Thomas Dietrich notifications@github.com:
I don't think your hardware is the issue. The behavior you describe above is normal for the program that shows the log progress to you. You can press Ctrl+c to get to a console.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openhab/openhabian/issues/123#issuecomment-311806543, or mute the thread https://github.com/notifications/unsubscribe-auth/AMNPMbrU4NhvEcsKqgf2rw-BYsNrLH1Yks5sIs8SgaJpZM4Mosjg .
Howdy everyone! :wave:
Yet another test (RPi0W via Wi-Fi) and everything worked. Regarding the times: Remember that the system time is not accurate right after boot (no RTC). Upgrading packages did not take me 2.5 months :wink:
[16:43:33] openhabian@openHABianPi:~$ cat /boot/first-boot.log
2017-04-10_09:59:17_UTC [openHABian] Starting the openHABian initial setup. This might take a few minutes.
2017-04-10_09:59:17_UTC [openHABian] If you see this message more than once, something went wrong!
2017-04-10_09:59:18_UTC [openHABian] Storing configuration... OK
2017-04-10_09:59:18_UTC [openHABian] Changing default username and password... OK
2017-04-10_09:59:19_UTC [openHABian] Setting up Wifi connection... OK
2017-04-10_09:59:19_UTC [openHABian] Ensuring network connectivity... OK
2017-04-10_09:59:26_UTC [openHABian] Waiting for dpkg/apt to get ready... OK
2017-06-28_22:24:03_UTC [openHABian] Updating repositories and upgrading installed packages... OK
2017-06-28_22:38:03_UTC [openHABian] Installing git package... OK
2017-06-28_22:39:03_UTC [openHABian] Cloning myself... OK
2017-06-28_22:39:06_UTC [openHABian] Executing 'openhabian-setup.sh unattended'
2017-06-28_22:39:06_UTC [openHABian] Checking for root privileges... OK
2017-06-28_22:39:07_UTC [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2017-06-28_22:39:07_UTC [openHABian] Setting timezone based on IP geolocation... OK (Europe/Berlin)
2017-06-29_00:41:29_CEST [openHABian] Setting locale based on openhabian.conf... OK
2017-06-29_00:42:47_CEST [openHABian] Setting hostname of the base system... OK
2017-06-29_00:42:47_CEST [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
2017-06-29_00:42:48_CEST [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
2017-06-29_00:46:53_CEST [openHABian] Installing additional needed packages... OK
2017-06-29_00:47:27_CEST [openHABian] Installing additional bluetooth packages... OK
2017-06-29_00:48:17_CEST [openHABian] Adding slightly tuned bash config files to system... OK
2017-06-29_00:48:17_CEST [openHABian] Adding slightly tuned vim config file to system... OK
2017-06-29_00:48:17_CEST [openHABian] Downloading and setting up FireMotD... OK
2017-06-29_00:49:12_CEST [openHABian] Installing etckeeper (git based /etc backup)... OK
2017-06-29_00:50:38_CEST [openHABian] Installing Zulu Embedded OpenJDK... OK
2017-06-29_00:56:07_CEST [openHABian] Installing openHAB 2.1 (stable)... OK
2017-06-29_00:59:18_CEST [openHABian] Adding openHAB syntax to vim editor... OK
2017-06-29_00:59:19_CEST [openHABian] Adding openHAB syntax to nano editor... OK
2017-06-29_00:59:20_CEST [openHABian] Preparing openHAB folder mounts under /srv/... OK
2017-06-29_00:59:20_CEST [openHABian] Applying file permissions recommendations... OK
2017-06-29_00:59:28_CEST [openHABian] Applying miscellaneous system settings... OK
2017-06-29_00:59:28_CEST [openHABian] Setting up Samba network shares... OK
2017-06-29_01:03:19_CEST [openHABian] Execution of 'openhabian-setup.sh unattended' completed
2017-06-29_01:03:19_CEST [openHABian] First time boot setup successfully finished.
@georgi-aba @BrutalBirdie I have to rely on you to find a solution for this issue. Please provide me with results of the experiments I've described earlier.
@ThomDietrich I had the same issue and can confirm that the following changes allow the setup to run OK: sleep 600 until dpkg --configure -a && apt update; do sleep 1; done
@Oskufi thanks for testing!! Did you by any chance also try without the "sleep 600"? This command should not be in there. It would be a huge help if you could try once more.
@ThomDietrich Seems to work OK without "sleep 600" as well. BTW, my issue was on Pi 2.
I'm having an issue with RPi 3 and OpenHABian, the error message is always the same "network unreachable, can't continue" however, I can then get on the RPi and resolve google.com. Is there some port that has to be open for this to work?
2017-08-07_12:28:09_UTC [openHABian] Setting up Wifi connection... SKIPPED
2017-08-07_12:28:09_UTC [openHABian] Ensuring network connectivity...
2017-08-07_12:46:39_UTC [openHABian] Network unreachable, can't continue. Please reboot and let me try again.
2017-08-07_12:46:39_UTC [openHABian] Initial setup exiting with an error.
@bwanajag, this might be related to https://github.com/openhab/openhabian/issues/192
Yes, ICMP and DNS is limited. I opened the FW and was able to connect no problem. Thanks.
Is this a one-time deal, pinging 8.8.8.8? Can I close my FW after installation, or will it continually ping google?
That ping is only used during installation. You can close the FW again. We'll implement a better solution.
In the above posts I read symptoms I've seen myself a couple of times. In my case it's mainly user error (not being patient) I think. At first boot (after burning the image) the system seems to hang on dpkg/apt to get ready. This is also the point where the date time switches so actual waiting time can not be seen anymore.
The first time I rebooted the Pi and it got stuck at the second attempt on missing dependencies.
After a new attempt (new burned image) I took a look at the /var/log/dpkg.log using tail -f /var/log/dpkg.log
. The you see a lot of activity. I might be an idea to help the impatient with some kind of progress indication, since the reboot gets you into trouble.
Idea: maybe a dot for each added logline in dpkg.log?
partial /boot/first-boot.log
Every 2.0s: cat /boot/first-boot.log Sat Sep 9 10:36:02 2017
2017-04-10_09:59:02_UTC [openHABian] Starting the openHABian initial setup. This might take a few minutes.
2017-04-10_09:59:02_UTC [openHABian] If you see this message more than once, something went wrong!
2017-04-10_09:59:02_UTC [openHABian] Storing configuration... OK
2017-04-10_09:59:02_UTC [openHABian] Changing default username and password... OK
2017-04-10_09:59:04_UTC [openHABian] Setting up Wifi connection... SKIPPED
2017-04-10_09:59:04_UTC [openHABian] Ensuring network connectivity... OK
2017-04-10_09:59:04_UTC [openHABian] Waiting for dpkg/apt to get ready... OK
2017-09-09_07:57:47_UTC [openHABian] Updating repositories and upgrading installed packages... OK
2017-09-09_08:18:08_UTC [openHABian] Installing git package... OK
2017-09-09_08:19:16_UTC [openHABian] Cloning myself... OK
2017-09-09_08:19:20_UTC [openHABian] Executing 'openhabian-setup.sh unattended'
2017-09-09_08:19:20_UTC [openHABian] Checking for root privileges... OK
2017-09-09_08:19:20_UTC [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2017-09-09_08:19:20_UTC [openHABian] Setting timezone based on IP geolocation... OK (Europe/Amsterdam)
2017-09-09_10:21:36_CEST [openHABian] Setting locale based on openhabian.conf... OK
2017-09-09_10:22:23_CEST [openHABian] Setting hostname of the base system... OK
2017-09-09_10:22:23_CEST [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
2017-09-09_10:22:23_CEST [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
2017-09-09_10:27:19_CEST [openHABian] Installing additional needed packages... OK
2017-09-09_10:28:06_CEST [openHABian] Adding slightly tuned bash config files to system... OK
2017-09-09_10:28:06_CEST [openHABian] Adding slightly tuned vim config file to system... OK
2017-09-09_10:28:07_CEST [openHABian] Downloading and setting up FireMotD... OK
2017-09-09_10:29:06_CEST [openHABian] Installing etckeeper (git based /etc backup)... OK
2017-09-09_10:30:32_CEST [openHABian] Installing Zulu Embedded OpenJDK... OK
2017-09-09_10:35:31_CEST [openHABian] Installing openHAB 2.1 (stable)...
Hey @bambam42, ideally the problem shouldn't emerge in the first place. I'm confident we'll be able to fix this issue with the solution discussed above. The implementation and the release of openHABian v1.4 will take a few more weeks. The idea of a progress indication is interesting, sadly most of the other commands wouldn't allow to do that and having a visual progress indication for a few items in the list will be just as confusing as not having any to begin with....
I had the same problem as I was installing OpenHABian on raspberry pi 3 model B. I was booting from USB flash drive (I don't think it makes a difference where it's booted from). However, it was stuck on "started cleanup of temporary directories".
Here's my experience in bullet points so that it makes sense:
All in all, my problem was that my Raspberry Pi was not actually connected to the Internet (as I thought) during installation and I realized that the MAC address for the raspberry pi when connected to Internet using Ethernet is different than its MAC address for Wi-Fi connection.
I hope this helps and sorry for the long post. Feel free to edit it if you think it can shorter/clearer.
@alfayeza thanks for the report. There are so many special cases, we can barely keep track of all of them. The openHABian installation routine has a step where it checks your internet connection. If I understood correctly you got stuck at this point but didn't understand it yet. If so, which additional hints would you have needed to be "convinced"?
I had this behavior w/ it failing at "Updating repositories and upgrading installed packages... FAILED" just now. I found this post which solved it for me - https://community.openhab.org/t/solved-openhabian-updating-repositories-and-upgrading-installed-packages-failed/36071
In my case, the problem was that IPv6 was not allowed (or not working with the router) and apt uses IPv6 by default.
I have disabled IPv6 for APT with this command:
echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4
(source: https://unix.stackexchange.com/questions/9940/convince-apt-get-not-to-use-ipv6-method)
I also had to reboot the Pi to have the first-boot.sh script restarted.
Hi, I have something to add - only tangentially related - dns resolution has just stopped on one of my rpi3b+ installs but not the other. I have local network access but all internet is dead.
[08:25:17] jeremy@openhab1:~$ sudo apt-get update
0% [Working]^C
[08:25:33] jeremy@openhab1:~$ ping www.google.com
ping: www.google.com: Temporary failure in name resolution
this worked:
echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4
@ThomDietrich I have downloaded latest (22 July 2018) openhabian for a trial. My installation was stuck at apt update and failed. When I debugged the issue further, it seems some of the debian repos are not reachable or lots of packet losses when using IPv6. When I disabled IPv6 using sysctl commands, the installation went ahead.
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
I am not sure why IPv6 is preferred by default on this distro. It should be IPv4. Not all regions and countries are fully IPv6 ready yet.
Disabling IPv6 altogether may not be preferable on some networks. Instead we can tell address resolver to prefer IPv4 over IPv6 in /etc/gai.conf by un-commenting this line
precedence ::ffff:0:0/96 100
There is another apt specific workaround. Add -o Acquire::ForceIPv4=true
when running apt-get.
I think that I've also seen DNS resolution issues with IPv6. I thought that it was my cheap router causing it. I
I have the same problem. no solution yet?
I had the same issue and fixed it by changing the power supply. With my R3b+ this solve the issue and installation could be completed without any errors
Hi there, I have the same problem: "Updating repositories and upgrading installed packages... FAILED" System Setup: Raspberry Pi 3, SanDisk Ultra 16GB Class 10, OpenHABian v1.4.1, Installation via WiFi, Using an up-to-date Fritz!Box router (Fritz!OS 7) Steps to reproduce: Flash openhabian image to SD, enter WiFi settings in openhabian.conf, start Raspi with SD card, wait 5 minutes until installation failed. Additional observation: Interestingly, if I remove the power-plug from my raspi and put it in again to do a second boot, the installation succeeds.
I figured it out. You have to install apt-utils manually. So stop the script, then 'apt update' and after that 'apt-get install apt utils' Now you are able to start the script /boot/first-boot.sh manually and it works.
HTH BR Sascha
Installation hangs on: " Waiting for dpkg/apt to get ready..."