PINE64
[solved] Openhab not starting - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6)
+---- Forum: openHAB (https://forum.pine64.org/forumdisplay.php?fid=26)
+---- Thread: [solved] Openhab not starting (/showthread.php?tid=1438)

Pages: 1 2


[solved] Openhab not starting - socken23 - 06-18-2016

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


RE: Openhab not starting - kai - 06-20-2016

Could you try to manually start it in the foreground, i.e run start.sh in /opt/openhab?


RE: Openhab not starting - socken23 - 06-20-2016

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.


RE: Openhab not starting - Luke - 06-20-2016

16 Gb img of OpenHub by any chance ? - if yes, then I heard reports that the img is broken. Try the 8Gb img then.


RE: Openhab not starting - socken23 - 06-20-2016

(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!


RE: Openhab not starting - Luke - 06-20-2016

(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.


RE: Openhab not starting - socken23 - 06-20-2016

(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!


RE: Openhab not starting - socken23 - 06-20-2016

@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


RE: [solved] Openhab not starting - Luke - 06-20-2016

Glad I could help. Now, see if you can expand the size of the img ( does it come with the resize script ? )


RE: [solved] Openhab not starting - socken23 - 06-21-2016

Yes, calling resize_rootfs.sh as root works perfectly.