I am new to openHAB and I thought that the “openHABian” way was the easier one…
got my Raspberry Pi 3B+
flashed SD card with Etcher
Plugged SD card into Pi, plugged Network Cable, plugged USB power
result: nothing… tried 3 times…
no web server discoverable on LAN… I can see on router that there is a “openHABianPi” with anew IP address (192.168.0.104), but when I try to open Chrome, (both using name and IP), nothing happen…
Sounds like you’ve done everything correct. Have you tried using a different browser? Can you connect via ssh? If so whats the output of > sudo systemctl status openhab2.service
yes, even with other browsers, same result ( This site can’t be reached, 192.168.0.104 refused to connect.)
ssh with Putty I get the following:
Every 2.0s: cat /boot/first-boot.log openHABianPi: Sun Oct 14 12:43:19 2018
2018-03-13_22:53:33_UTC [openHABian] Starting the openHABian initial setup.
2018-03-13_22:53:33_UTC [openHABian] Storing configuration... OK
2018-03-13_22:53:33_UTC [openHABian] Changing default username and password... SKIPPED
2018-03-13_22:53:33_UTC [openHABian] Setting up Ethernet connection... OK
2018-03-13_22:53:33_UTC [openHABian] Ensuring network connectivity... OK
2018-03-13_22:53:33_UTC [openHABian] Waiting for dpkg/apt to get ready... OK
2018-03-13_22:53:39_UTC [openHABian] Updating repositories and upgrading installed packages... FAILED
2018-10-13_19:00:09_UTC [openHABian] Initial setup exiting with an error!
I am not an expert of linux… therefore I do not know where to start… is there enythign I can try to fix the problem?
I have replaced a USB charger with the original Raspberry Power supply, and magically it seems to work (cross fingers, it is still “doing things”)…
2018-10-14_13:48:01_UTC [openHABian] Starting the openHABian initial setup.
2018-10-14_13:48:01_UTC [openHABian] Storing configuration... OK
2018-10-14_13:48:01_UTC [openHABian] Changing default username and password... SKIPPED
2018-10-14_13:48:01_UTC [openHABian] Setting up Ethernet connection... OK
2018-10-14_13:48:01_UTC [openHABian] Ensuring network connectivity... OK
2018-10-14_13:48:11_UTC [openHABian] Waiting for dpkg/apt to get ready... OK
2018-10-14_13:48:17_UTC [openHABian] Updating repositories and upgrading installed packages... OK
2018-10-14_14:04:00_UTC [openHABian] Installing git package... OK
2018-10-14_14:04:35_UTC [openHABian] Cloning myself... OK
2018-10-14_14:04:37_UTC [openHABian] Executing 'openhabian-setup.sh unattended'...
2018-10-14_14:04:37_UTC [openHABian] Checking for root privileges... OK
2018-10-14_14:04:37_UTC [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2018-10-14_14:04:37_UTC [openHABian] Setting timezone based on IP geolocation... FAILED
2018-10-14_14:06:49_UTC [openHABian] Setting locale based on openhabian.conf... OK
2018-10-14_14:07:12_UTC [openHABian] Setting hostname of the base system... OK
2018-10-14_14:07:13_UTC [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
Am I right thinking that it is going as planned now?
I don’t see anything after
2018-10-14_14:07:13_UTC [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
is the power supply so important? I would have never guessed!
it passed the initial error, but it stopped in another steps:
2018-10-14_15:08:23_UTC [openHABian] Starting the openHABian initial setup.
2018-10-14_15:08:23_UTC [openHABian] Storing configuration... OK
2018-10-14_15:08:23_UTC [openHABian] Changing default username and password... SKIPPED
2018-10-14_15:08:23_UTC [openHABian] Setting up Ethernet connection... OK
2018-10-14_15:08:23_UTC [openHABian] Ensuring network connectivity... OK
2018-10-14_15:08:23_UTC [openHABian] Waiting for dpkg/apt to get ready... OK
2018-10-14_15:08:29_UTC [openHABian] Updating repositories and upgrading installed packages... OK
2018-10-14_15:18:02_UTC [openHABian] Installing git package... OK
2018-10-14_15:18:52_UTC [openHABian] Cloning myself... OK
2018-10-14_15:18:56_UTC [openHABian] Executing 'openhabian-setup.sh unattended'...
2018-10-14_15:18:56_UTC [openHABian] Checking for root privileges... OK
2018-10-14_15:18:56_UTC [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2018-10-14_15:18:56_UTC [openHABian] Setting timezone based on IP geolocation... FAILED (pip)
2018-10-14_15:22:05_UTC [openHABian] Setting locale based on openhabian.conf... OK
2018-10-14_15:22:29_UTC [openHABian] Setting hostname of the base system... OK
2018-10-14_15:22:29_UTC [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
2018-10-14_15:22:29_UTC [openHABian] Enabling Audio output... OK
2018-10-14_15:22:30_UTC [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... FAILED
2018-10-14_15:26:42_UTC [openHABian] Initial setup exiting with an error!
You may need to remove the SD card and re-flash the image, something may have gotten corrupted while trying to install earlier using the bad power supply. Is this a new SD card?
I’ve had issues with new SD cards and the RPI in the past. Note the new SD was cheap and most likely a fake.
In the future you may want to invest in an SSD hard drive. I use a 120g Pony SSD w/case. Once you have OH working on the SD card you can easily clone the image from the SD card to the SSD with Etcher. That’s what I did a while back and works great. Here’s a link that shows what I use https://community.openhab.org/t/rpi-ssd-and-msata-hat/51381/3?u=h102
Every 2.0s: cat /boot/first-boot.log openHABianPi: Sun Oct 14 15:50:25 2018
2018-03-13_22:53:36_UTC [openHABian] Starting the openHABian initial setup.
2018-03-13_22:53:36_UTC [openHABian] Storing configuration... OK
2018-03-13_22:53:36_UTC [openHABian] Changing default username and password... OK
2018-03-13_22:53:37_UTC [openHABian] Setting up Ethernet connection... OK
2018-03-13_22:53:37_UTC [openHABian] Ensuring network connectivity... OK
2018-03-13_22:53:37_UTC [openHABian] Waiting for dpkg/apt to get ready... OK
2018-03-13_22:53:57_UTC [openHABian] Updating repositories and upgrading installed packages... FAILED
2018-10-14_15:49:09_UTC [openHABian] Initial setup exiting with an error!
I am about to give up
re-flashed sd card (I think it is a genuine SanDisk, bought from Amazon warehouse), and I got back to step one: error during upgrade…
the only alternative I have is to try via wifi… how do I enable wifi on raspberry pi with openhabian sd card?
downloaded release 1.4.1 … where can I get the “lite version”? and to upgrade from lite to full, do I need to know linux commands? (I have no esperience at all on Linux)…
thank you for all the support/help… I am actually off for the day and then will be away for work… I will need to get back to this project later… thank you for now!