openHABian hassle-free openHAB Setup

Hello

It’s impressive, but I can not fix two problems with openhabian:

1.- GPIO does not work version 1.9.

I have done the GPIO group, I have openhab2 with root user. Nothing does not work

Always gives this error
(Ab binding.gpio.internal.gpiobinding) exception: / sys / class / gpio / export

2.- I can not run the Wifi.

Please, I beg for urgent help. I’m desperate

I’ve tried openHABian for the first time today and unfortunately, my installation fails. I am getting this error:

[openHABian] === Start executing ‘openhabian-setup.sh’ ===
[openHABian] Checking for root privileges… OK
[openHABian] Setting timezone (Europe/Berlin) and locale (en_US.UTF-8)… OK
[openHABian] Activating first boot script… OK
[openHABian] Setting the GPU memory split down to 16MB for headless system… OK
[openHABian] Installing basic can’t-be-wrong packages (screen, vim, …)… OK
[openHABian] Installing additional needed packages… OK
[openHABian] Adding slightly tuned bash config files to system… OK
[openHABian] Adding slightly tuned vim config file to system… OK
[openHABian] Downloading FireMotD… OK
[openHABian] Preparing Oracle Java 8 Web Upd8 repository… OK
[openHABian] Adding openHAB 2 Snapshot repositories to sources.list.d… FAILED
[openHABian] === Finished executing ‘openhabian-setup.sh’ ===
=== Finished executing post-install.txt. ===

Removing cdebootstrap-helper-rc.d… OK
Saving current time for fake-hwclock…
Installation finished at Mon Jan 2 12:14:56 UTC 2017 and took 33 min 23 sec (2003 seconds)

I’ve tried it two times with the exact same result. I’ve used the official 1.0 release on GitHub. Should I install the package openhab2-offline manually, as @Benjy suggested three months ago, or is this a different issue with a different solution?

There was an issue with the apt-get repo on cloudbees this morning, see here:

https://openhab.ci.cloudbees.com/job/openHAB-Distribution/

Build #690 wasn’t successful. Maybe that was just the time were you wanted to install OH2 using openHABian?

Meanwhile there is build #691 and you should try again and see if it works now.

Of course you can try a manual installation, but openHABian does so much more with just a press of a button…

1 Like

Thanks for pointing me to the CI server, @jaydee73. It was the broken build. Now everything is up and running. :smile:

1 Like

Hello there I just wanted to say I was brand new to both rPi and Openhab and wanted to try it out. I found openHABian, ordered a rPi3, followed the directions and it worked perfectly. Thank you!

2 Likes

I’m also loving openHabian and am grateful for all the work put into it.

I am having trouble getting audio to output properly to my USB sound card; I don’t think it’s a openHabian specific issue but am posting here in case there’s a connection. See my linked post:

I get this error: [openHABian] Adding openHAB 2 Snapshot repositories to sources.list.d… FAILED

I tried a few times:
sudo mv /boot/config-reinstall.txt /boot/config.txt
sudo reboot

I shows me this error all the time.

Same here. I just finished second attempt to OpenHabian deployment od my rPI 3 and fails with the same error message :frowning:

Same here. Tried three times now…always the same failure.

[openHABian] === Start executing ‘openhabian-setup.sh’ ===
[openHABian] Checking for root privileges… OK
[openHABian] Setting timezone (Europe/Berlin) and locale (en_US.UTF-8)… OK
[openHABian] Activating first boot script… OK
[openHABian] Setting the GPU memory split down to 16MB for headless system… OK
[openHABian] Installing basic can’t-be-wrong packages (screen, vim, …)… OK
[openHABian] Installing additional needed packages… OK
[openHABian] Adding slightly tuned bash config files to system… OK
[openHABian] Adding slightly tuned vim config file to system… OK
[openHABian] Downloading FireMotD… OK
[openHABian] Preparing Oracle Java 8 Web Upd8 repository… OK
[openHABian] Adding openHAB 2 Snapshot repositories to sources.list.d… FAILED
[openHABian] === Finished executing ‘openhabian-setup.sh’ ===
=== Finished executing post-install.txt. ===

Removing cdebootstrap-helper-rc.d… OK

Any help?

Looks like the cloudbees build of the latest snapshot failed, and only one version is possible at the moment. Might need to bare with us just a bit longer.

looks like it´s still broken :frowning: not so “hassle-free” soluation trying since hours.
the generic linux install process http://docs.openhab.org/installation/linux.html has same same issue. package list not available…

Err https://openhab.ci.cloudbees.com  Packages                                                                          
  HttpError404
Get:49 https://openhab.ci.cloudbees.com  Translation-en_US [366 B]                                                      
Ign https://openhab.ci.cloudbees.com  Translation-en_US                                                                 
Get:50 https://openhab.ci.cloudbees.com  Translation-en [363 B]                                                         
Ign https://openhab.ci.cloudbees.com  Translation-en                                                                    
Get:51 https://openhab.ci.cloudbees.com  Translation-en_US.UTF-8 [372 B]                                                
Ign https://openhab.ci.cloudbees.com  Translation-en_US.UTF-8                                                           
Fetched 9,106 kB in 17s (511 kB/s)                                                                                      
W: Failed to fetch https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-offline/target/apt-repo/Packages  HttpError404
W: Failed to fetch https://openhab.ci.cloudbees.com

is there an option to get manual install package?
this should be improved some way in the future, because build will fail form time to time

Yes, the last build (#695) was made on 05.01.2017 16:47 and was broken. Since then no new build was made. I don’t know about the mechanisms for creating a new build. Maybe it has to be manually triggered, maybe it automatically tries again in case of a failed build.

You can use the manual installation method described on the link you posted. The zip-file of the latest successful build is available. But I would suggest to wait until the next successful build to start again using the package repository. It’s making things easier in the future (updates etc.).

And just for clarification: This is not the fault of openHABian.

Before finding this thread I created a ticket: https://github.com/openhab/openhabian/issues/67
I posted there instructions to install the packages. But I agree with jaydee73 that to ease future updates waiting for a fixed build could be a good idea. You can observe the status of the builds here: https://openhab.ci.cloudbees.com/job/openHAB-Distribution/
Hassle-free installation will work once the latest build has a green light.

My installation of Openhabian was successful this afternoon since build #696 was successful. However, i would agree that it would be helpful if there is some way to prevent the failure by using the most recent successful build or to describe the reason for the failure. Granted, i am very very new to openhabian but if it is possible to know that it will fail because of a dependency prior to running a fresh install, it would be helpful to save users time and potential frustration.

I have a question regarding the domain setup. Is it also possible to automatically configure a dyndns deamon to keep a dynamic IP address up to date?

Why would you do that if there is a openHAB Cloud connector available?:

http://docs.openhab.org/addons/io/openhabcloud/readme.html

I prefer to use my own domain and be independent of external cloud services :slight_smile:

1 Like

okay, valid reason :grinning:

Hey guys, I’ve been absent for a few days. Let’s see what’s going on here :slight_smile:

@GlidingFool great the upgrade worked for you. The provision of sudo openhabian-config is something done in another part of the script, which was not part of the older openHABian build you are using. I’ve added fixing this to my TODO list.

@madeinnorte GPIO is something discussed here. I’ve not spent much time on that problem. You could consider using the exec binding in combination with pigpio. Please consider taking part in the conversation in the thread!

@madeinnorte “I can not run the Wifi.”?

@stdll Nice you got it working. Thanks @jaydee73. Same goes for @wender_reis, @ElGustaff and @Jansen.
I should add, that you do not need to panic about that!

  1. this was an unfortunate time, a failed openHAB build to be present for long is not common. As @Anttisep said it would have been best to wait for the next build. I get that that’s not easy if you are on a tinkering spree :smiley:
  2. with the new repository just released, a failed build will not delete the last working build (@Paul_Morley). @Benjy are you able to confirm that!?

@djkevinz Great to hear! :wink:

@Dome I can’t help you with your USB sound card. However, you may be interested in this change: https://github.com/openhab/openhabian/issues/40 - maybe you need to remove the added option (dtparam=audio=on).

@tobias I understand your reasoning. I’m using my own domain as well. @sihui I love to be able to access my home via https://street-number.myhometown.de :wink: Regarding your question @tobias, check your router for an option to do that for you, otherwise check out ddclient and/or look for tutorials for your dyndns provider, e.g. http://www.noip.com/support/knowledgebase/installing-the-linux-dynamic-update-client

Hi
i can confirm - this time installation went fine :slight_smile: I got no error messages and logged in to opehabian:

              Welcome to            __  _____    ____  _
            ____  ____  ___  ____  / / / /   |  / __ )(_)___ _____
           / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  / / __ `/ __ \
          / /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ / / /_/ / / / /
          \____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/_/\__,_/_/ /_/
              /_/
                       openHAB 2.0.0~20170108164202 (Build )

Thanks!