Cannot get openhabian to work/install

Got it working now. Thanks.

Hi all,

I have the same problem…

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…

how can I “debug/fix this problem”?

Many thanks

Ivan

1 Like

Hi Ivan,

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?

many thanks

Ivan

Is there something blocking OH from the internet?

Need to add the port to the end 192.168.0.104:8080

not that I am aware of… can I connect the Pi with wifi? just to try?

yes, that was my typo…

You can try wifi, I would also check that the power supply is good(5v 2.5A) and try connecting directly to the router with a good Ethernet cable.

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!

I will update once done, if no errors :stuck_out_tongue:

You are correct.:grin: Should be able to access the browser soon.

Yes, on the RPI this is very important.
Glad to see it working.:smiley:

unfortunately it did not work :frowning:

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!

what can be wrong?

Thanks

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?

yes, it is a brand new SD card, SanDisk Ultra 16 GB… will try again… thank you

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.:expressionless:

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 :frowning:

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?

Don’t give up yet, OH is worth it!

Flash Raspian lite image to the SD card, that will verify the card is good. Once you have rasp lite installed you can install OH via apt-get.

Where are you downloading the openhabian image from?

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)…

Just to make sure, your downloading this Raspberry Pi image: openhabianpi-raspbian-201804031720-gitdba76f6-crc9e93c3eb.img.xz correct?

You can get other images like rasp from a google search. I think its https://www.raspberrypi.org/downloads/

yes, that is the right image I am using…

I will try the rasp lite and “report back here”…

Thank for now…

Here’s the link to raspberry downloads https://www.raspberrypi.org/downloads/

I also, just download the image and install on my test pi, so there’s no issue with the image.

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! :slight_smile: