[solved] Openhab not starting
#1
Information 
Hi all

Got my pine this week and downloaded the current openhab image today. Copying to SD worked great (dd in Linux) and pine starts up fine. 

Openhab is not started though so i tried to manually start it again. Still nothing. Here is the output from the status command
Code:
openhab.service - Starts and stops openHAB   Loaded: loaded (/lib/systemd/system/openhab.service; enabled; vendor preset: en
   Active: inactive (dead) since Sat 2016-06-18 20:39:54 UTC; 10min ago
     Docs: http://www.openhab.org
  Process: 1999 ExecStart=/opt/openhab/start.sh (code=exited, status=0/SUCCESS)
 Main PID: 1999 (code=exited, status=0/SUCCESS)
 
Jun 18 20:39:54 openhab systemd[1]: Started Starts and stops openHAB.
Jun 18 20:39:54 openhab start.sh[1999]: Launching the openHAB runtime...

The log folder under userdata doesn't even exist. Don't know where to start looking. Any ideas? 

Thanks
  Reply
#2
Could you try to manually start it in the foreground, i.e run start.sh in /opt/openhab?
  Reply
#3
Already tried that, doesn't work. I think I didn't get any output if I remember correctly. Will post the details once I'm back home.
Also looked into start.sh and saw that it starts the executable karaf. Tried to start that diretly too without luck.
  Reply
#4
16 Gb img of OpenHub by any chance ? - if yes, then I heard reports that the img is broken. Try the 8Gb img then.
You can find me on IRC, Discord and Twitter


  Reply
#5
(06-20-2016, 04:53 AM)Luke Wrote: 16 Gb img of OpenHub by any chance ? - if yes, then I heard reports that the img is broken. Try the 8Gb img then.

Just had to check: Yes, 16 Gb! By broken you mean it starts but the openhab installation is broken on it?
Will first try the 8 Gb version before spending too much time analyzing the problem. Thanks for the heads up!
  Reply
#6
(06-20-2016, 11:40 AM)socken23 Wrote:
(06-20-2016, 04:53 AM)Luke Wrote: 16 Gb img of OpenHub by any chance ? - if yes, then I heard reports that the img is broken. Try the 8Gb img then.

Just had to check: Yes, 16 Gb! By broken you mean it starts but the openhab installation is broken on it?
Will first try the 8 Gb version before spending too much time analyzing the problem. Thanks for the heads up!

By broke I mean that ItsDave (from IRC) tried the 16Gb img and it didn't work for him. He later downloaded the 8Gb image and had no issues with it... not exactly a technical explanation I know, but it seems like the 16Gb is somehow affected.
You can find me on IRC, Discord and Twitter


  Reply
#7
(06-20-2016, 12:12 PM)Luke Wrote:
(06-20-2016, 11:40 AM)socken23 Wrote:
(06-20-2016, 04:53 AM)Luke Wrote: 16 Gb img of OpenHub by any chance ? - if yes, then I heard reports that the img is broken. Try the 8Gb img then.

Just had to check: Yes, 16 Gb! By broken you mean it starts but the openhab installation is broken on it?
Will first try the 8 Gb version before spending too much time analyzing the problem. Thanks for the heads up!

By broke I mean that ItsDave (from IRC) tried the 16Gb img and it didn't work for him. He later downloaded the 8Gb image and had no issues with it... not exactly a technical explanation I know, but it seems like the 16Gb is somehow affected.

Answer enough  Wink Will try it and report back when I've got the time to test it. Thanks!
  Reply
#8
@Luke: Yes, you were right! The 8Gb version works out-of-the-box

@kai: Are you also involved in preparing these images? Maybe you can check the 16Gb version. Although, are these images fundamentally different? According to the wiki page, you execute resize_rootfs.sh anyway after the first startup so what's the difference between using the 8Gb image with the resize command and using the 16Gb image?

Anyway, thanks a lot, problem solved
  Reply
#9
Glad I could help. Now, see if you can expand the size of the img ( does it come with the resize script ? )
You can find me on IRC, Discord and Twitter


  Reply
#10
Yes, calling resize_rootfs.sh as root works perfectly.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pine A64 + OpenHAB + Sonoff-pow: Would it Work? Bob123456789 6 11,047 05-31-2017, 02:54 PM
Last Post: Bob123456789
Tongue Pine64 with Openhab2 - Starting guide/accessories g_t_j 4 9,790 03-12-2017, 05:13 PM
Last Post: BatoXan
  openHAB Packaging for the Pine64 kai 19 33,298 02-21-2017, 07:19 AM
Last Post: BatoXan
  Keeping Openhab current socken23 4 7,928 01-13-2017, 12:51 AM
Last Post: swinging
  OpenHAB And Zwave FrenchFrog 12 23,317 09-13-2016, 11:17 PM
Last Post: bonterra
  OpenHAB Up - Getting My Bearings - Questions doundounba 4 6,829 07-08-2016, 12:38 AM
Last Post: av1024
  openHAB just up on Pine64 :-) tllim 2 7,970 05-04-2016, 05:27 AM
Last Post: Luke

Forum Jump:


Users browsing this thread: 1 Guest(s)