oDroid U3: trouble with /etc/init.d/openhab

131 views
Skip to first unread message

eric

unread,
Aug 17, 2014, 11:32:45 PM8/17/14
to ope...@googlegroups.com
Hello,
I'm having trouble with the /etc/init.d/openhab file.  I pretty much copied the file from the openhab wiki, and change the "RUN_AS=ben" to "RUN_AS=odroid".


When I run "/etc/init.d/openhab start" as root, it saids it runs.  I see the java process thread consume lots of CPU.  And after a bit when I do "/etc/init.d/openhab status", it reports that it's running.

However, when I try going to the URL for openhab, I get no response.  No webpage shows up.  If I run openhab from the folder like "/opt/openhab/start.sh" as root, it runs and I can bring up the webpage.

I'm running oDroid U3 w/ Debian 13.1 image.  OpenHAB is 1.5.  Any other oDroid users care to share their /etc/init.d/openhab file?

Thanks!


Gilles GBA

unread,
Aug 18, 2014, 2:48:01 AM8/18/14
to ope...@googlegroups.com
Hi Eric,

First, can you see error or warning messages in openhab.log system logs ?

I'm migrating openhab to an Odroid U3 running Ubuntu 14.04 server image. Openhab starts well with the joint init files. May be you can update an try it ?
What I've done is :
- create a folder /opt/openhab-1.6.0-Snapshot_20140806 (snapshot from cloudbee, run fine with OH 1.5 too)
- copy my config and DBs from my running OH environment
- create a symlink (ln -s openhab-1.6.0-Snapshot_20140806 openhab)
- create an openhab user (adduser openhab)
- change owner (chown openhab.openhab -R openhab-1.6.0-Snapshot_20140806)
- make sure user an group can write to any file or folder (chmod ug+w -R openhab-1.6.0-Snapshot_20140806)


Just to let you know, I've got an error with the "mirror" exec which is compiled for amd64, not armhf. This cause OH startup script to display [OK] but to fail few seconds later. You can have a look at a non existing or access denied to a script called in your OH init.

Hope this'll help.
Gilles
openhab.zip

Eric T

unread,
Aug 18, 2014, 11:32:41 AM8/18/14
to ope...@googlegroups.com
Hi Gilles,
Thanks very much for the suggestion.  I'm still pretty new to Linux.  I'll do some research and try out what you've said.  Thanks!

Eric


--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/DA7XlVxVmuU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.

Lehane Kellett

unread,
Aug 18, 2014, 1:31:21 PM8/18/14
to ope...@googlegroups.com
Just to add that I'm also using the U3 with Ubuntu 14.04 with no issues.

You might want to turn off the blue led.....

Lehane

Eric T

unread,
Aug 18, 2014, 2:37:52 PM8/18/14
to ope...@googlegroups.com
lol...how do you do that?  Turn off the blue LED?


Lehane Kellett

unread,
Aug 19, 2014, 3:09:29 AM8/19/14
to ope...@googlegroups.com
echo "taking over LEDs"
echo none > /sys/class/leds/led1/trigger

Lehane
Reply all
Reply to author
Forward
0 new messages