Razberry & openHAB

Hi,

I am trying to use Razberry Z-Wave with openhab. To connect my Fibaro Z-Wave Switch I installed Z-Way. I connected the device and stopped the Z-Way service.

After this I installed the Z-Wave Binding (“org.openhab.binding.zwave-1.7.1.jar”) as well as HABmin2.

I added "-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0 " to
/etc/init.d/openhab
as well as to
/OpenHAB Home/bin/openhab.sh (via the samba connection)

In my openhab.cfg I uncommented port and healtime:

# The Z-Wave controller port. Valid values are e.g. COM1 for Windows and /dev/ttyS0 or
# /dev/ttyUSB0 for Linux
zwave:port=/dev/ttyAMA0

# Z-Wave nightly heal time. This is the hour (eg 2AM) at which the automatic nightly
# network heal will be performed.
zwave:healtime=2

Also I added the user “openhab” to the dialout group:
sudo usermod -a -G dialout openhab

Still I get the following error while starting OpenHAB and can’t control my Z-Wave devices via HABmin:

015-10-25 18:33:34.968 [DEBUG] [.z.internal.ZWaveActiveBinding] - ConverterHandler not initialised. Polling disabled.
2015-10-25 18:33:34.974 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, port = /dev/ttyAMA0
2015-10-25 18:33:34.975 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, healtime = 2
2015-10-25 18:33:34.977 [DEBUG] [.z.internal.ZWaveActiveBinding] - Initialising zwave binding
2015-10-25 18:33:34.979 [INFO ] [.service.AbstractActiveService] - ZWave Refresh Service has been started
2015-10-25 18:33:34.985 [DEBUG] [.o.b.ntp.internal.NtpActivator] - NTP binding has been started.
2015-10-25 18:33:35.140 [INFO ] [b.z.i.protocol.ZWaveController] - Starting Z-Wave controller
2015-10-25 18:33:35.142 [INFO ] [b.z.i.protocol.ZWaveController] - Z-Wave timeout is set to 5000ms. Soft reset is false.
2015-10-25 18:33:35.144 [INFO ] [b.z.i.protocol.ZWaveController] - Connecting to serial port /dev/ttyAMA0
2015-10-25 18:33:35.158 [DEBUG] [.myopenhab.internal.MyOHClient] - Transport.EVENT_REQUEST_HEADERS
2015-10-25 18:33:35.158 [DEBUG] [.rrd4j.internal.RRD4jActivator] - RRD4j persistence bundle has been started.
2015-10-25 18:33:35.227 [DEBUG] [.p.internal.PersistenceManager] - Initializing rrd4j persistence service.
2015-10-25 18:33:35.256 [ERROR] [b.z.i.protocol.ZWaveController] - Serial Error: Port /dev/ttyAMA0 does not exist

Any suggestions how to get the error fixed?
Which openhab file is the correct one for adding "-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0 "?
How can I start openhab as root user?

// Got the same error while using HABmin1

Thanks!

It looks like it is the wrong port …
… try /dev/ttyACM0

Unfortunately it is not the wrong port. The razberry z-wave module is not an USB Device, it is connected with the pins on the raspberry pi board. Nevertheless I tried your suggestion, but still get the same “port error”.

could you check in the /dev folder which ports are listed there?

and if the ones you are referring to are there?

Seems like it is listed (end of the list):

pi@raspberrypi ~ $ ls -l /dev/tty*

crw-rw-rw- 1 root root      5,  0 Jan  1  1970 /dev/tty
crw------- 1 root root      4,  0 Jan  1  1970 /dev/tty0
crw-rw---- 1 root tty       4,  1 Oct 26 09:18 /dev/tty1
crw------- 1 root root      4, 10 Jan  1  1970 /dev/tty10
crw------- 1 root root      4, 11 Jan  1  1970 /dev/tty11
crw------- 1 root root      4, 12 Jan  1  1970 /dev/tty12
crw------- 1 root root      4, 13 Jan  1  1970 /dev/tty13
crw------- 1 root root      4, 14 Jan  1  1970 /dev/tty14
crw------- 1 root root      4, 15 Jan  1  1970 /dev/tty15
crw------- 1 root root      4, 16 Jan  1  1970 /dev/tty16
crw------- 1 root root      4, 17 Jan  1  1970 /dev/tty17
crw------- 1 root root      4, 18 Jan  1  1970 /dev/tty18
crw------- 1 root root      4, 19 Jan  1  1970 /dev/tty19
crw-rw---- 1 root tty       4,  2 Oct 26 09:18 /dev/tty2
crw------- 1 root root      4, 20 Jan  1  1970 /dev/tty20
crw------- 1 root root      4, 21 Jan  1  1970 /dev/tty21
crw------- 1 root root      4, 22 Jan  1  1970 /dev/tty22
crw------- 1 root root      4, 23 Jan  1  1970 /dev/tty23
crw------- 1 root root      4, 24 Jan  1  1970 /dev/tty24
crw------- 1 root root      4, 25 Jan  1  1970 /dev/tty25
crw------- 1 root root      4, 26 Jan  1  1970 /dev/tty26
crw------- 1 root root      4, 27 Jan  1  1970 /dev/tty27
crw------- 1 root root      4, 28 Jan  1  1970 /dev/tty28
crw------- 1 root root      4, 29 Jan  1  1970 /dev/tty29
crw-rw---- 1 root tty       4,  3 Oct 26 09:18 /dev/tty3
crw------- 1 root root      4, 30 Jan  1  1970 /dev/tty30
crw------- 1 root root      4, 31 Jan  1  1970 /dev/tty31
crw------- 1 root root      4, 32 Jan  1  1970 /dev/tty32
crw------- 1 root root      4, 33 Jan  1  1970 /dev/tty33
crw------- 1 root root      4, 34 Jan  1  1970 /dev/tty34
crw------- 1 root root      4, 35 Jan  1  1970 /dev/tty35
crw------- 1 root root      4, 36 Jan  1  1970 /dev/tty36
crw------- 1 root root      4, 37 Jan  1  1970 /dev/tty37
crw------- 1 root root      4, 38 Jan  1  1970 /dev/tty38
crw------- 1 root root      4, 39 Jan  1  1970 /dev/tty39
crw-rw---- 1 root tty       4,  4 Oct 26 09:18 /dev/tty4
crw------- 1 root root      4, 40 Jan  1  1970 /dev/tty40
crw------- 1 root root      4, 41 Jan  1  1970 /dev/tty41
crw------- 1 root root      4, 42 Jan  1  1970 /dev/tty42
crw------- 1 root root      4, 43 Jan  1  1970 /dev/tty43
crw------- 1 root root      4, 44 Jan  1  1970 /dev/tty44
crw------- 1 root root      4, 45 Jan  1  1970 /dev/tty45
crw------- 1 root root      4, 46 Jan  1  1970 /dev/tty46
crw------- 1 root root      4, 47 Jan  1  1970 /dev/tty47
crw------- 1 root root      4, 48 Jan  1  1970 /dev/tty48
crw------- 1 root root      4, 49 Jan  1  1970 /dev/tty49
crw-rw---- 1 root tty       4,  5 Oct 26 09:18 /dev/tty5
crw------- 1 root root      4, 50 Jan  1  1970 /dev/tty50
crw------- 1 root root      4, 51 Jan  1  1970 /dev/tty51
crw------- 1 root root      4, 52 Jan  1  1970 /dev/tty52
crw------- 1 root root      4, 53 Jan  1  1970 /dev/tty53
crw------- 1 root root      4, 54 Jan  1  1970 /dev/tty54
crw------- 1 root root      4, 55 Jan  1  1970 /dev/tty55
crw------- 1 root root      4, 56 Jan  1  1970 /dev/tty56
crw------- 1 root root      4, 57 Jan  1  1970 /dev/tty57
crw------- 1 root root      4, 58 Jan  1  1970 /dev/tty58
crw------- 1 root root      4, 59 Jan  1  1970 /dev/tty59
crw-rw---- 1 root tty       4,  6 Oct 26 09:18 /dev/tty6
crw------- 1 root root      4, 60 Jan  1  1970 /dev/tty60
crw------- 1 root root      4, 61 Jan  1  1970 /dev/tty61
crw------- 1 root root      4, 62 Jan  1  1970 /dev/tty62
crw------- 1 root root      4, 63 Jan  1  1970 /dev/tty63
crw------- 1 root root      4,  7 Jan  1  1970 /dev/tty7
crw------- 1 root root      4,  8 Jan  1  1970 /dev/tty8
crw------- 1 root root      4,  9 Jan  1  1970 /dev/tty9
crw-rw---T 1 root dialout 204, 64 Jan  1  1970 /dev/ttyAMA0
crw-rw---T 1 root dialout   5,  3 Jan  1  1970 /dev/ttyprintk

ok, could you grep data from there?

sudo cat /dev/ttyAMA0

make sure there is something attached to the pins to send data to the pi.

in addition - probably wanna check as well this one:

https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=17360

in addition seems that the read access is not given to all. So check if the user that runs OH is within the user group dialout

Reference: http://gphoto.sourceforge.net/doc/manual/permissions-serial.html

Cheers
Karsten

Thanks for your quick reply!

For testing purpose I gave every user access to the port:

pi@raspberrypi ~ $ sudo chmod a+rw /dev/ttyAMA0
pi@raspberrypi ~ $ ls -l /dev/ttyAMA0
crw-rw-rwT 1 root dialout 204, 64 Oct 26 10:08 /dev/ttyAMA0

I have my Z-Wave modul attached to the pins, unfortunately I do not get any feedback in the terminal when entering sudo cat /dev/ttyAMA0. Should the data appear under the command? ( I just get a blank line, with the cursor)

pi@raspberrypi ~ $ sudo cat /dev/ttyAMA0

The connection with the zwave modul already worked when I had the z-way software installed.

Still getting the error:

2015-10-26 10:22:56.240 [ERROR] [b.z.i.protocol.ZWaveController] - Serial Error: Port /dev/ttyAMA0 does not exist

cat is listening to the port for inbound data.

i am not very familiar with zwave module and protocol so not sure if zwave modules are regularily putting data to the port/ gpio or not. If you could manually change a zwave module attached to it - you should be able to receive data there.

But i would first try this one with the z-way sw - if this shows external changes made to the z-wave device

Turned my connected switch with the z-way sw on & off and got this data for the cat command. So it seems like that there is data coming in and the modul is connected correct.

pi@raspberrypi ~ $ sudo cat /dev/ttyAMA0

1"?
   1"?
      1"?
         1"?
            1"?
               1"?
                  1"?
                     1"?
                        1"?
                           1"?
                              1"?
                                 1"?????
                                        1"?
                                           1"?
                                              1"?
                                                 1"?????
                                                        1"?
                                                           1"?
                                                              1"?
                                                                 1"?????????????????????????????????????????????????????
                                                                                                                        1""?
                                                                                                                            1""?
                                                                                                                                1""?
                                                                                                                                    1""

ok, getting closer then.data is coming to the GPIOs

at which place in the /etc/init.d/openhab have you added

*-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0 *

it should not be at the end but somewhere at the beginning. I thought i once had it at the end and it was not read correctly. (check here: https://groups.google.com/forum/#!searchin/openhab/helios/openhab/R2uGyf0jNjE/wni9OzHkAogJ)

1 Like

Karsten you are awesome! It is working now!

But now a new error occured, everytime I try to open the website it wants me to enter a username and password. I tried all of my existing users but none them is working, seems like I destroyed some kind the access managing. Any idea how to fix this? (It appears at openhab as well as habmin2)

Log looks like this:

2015-10-26 15:33:06.199 [WARN ] [.io.net.http.SecureHttpContext] - authentication of user 'admin' failed
javax.security.auth.login.LoginException: Login Failure: all modules ignored
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:906) ~[na:1.8.0]
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195) ~[na:1.8.0]
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682) ~[na:1.8.0]
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680) ~[na:1.8.0]
        at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0]
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) ~[na:1.8.0]
        at javax.security.auth.login.LoginContext.login(LoginContext.java:587) ~[na:1.8.0]
        at org.openhab.io.net.http.SecureHttpContext.authenticate(SecureHttpContext.java:293) [org.openhab.io.net_1.7.1.jar:na]
        at org.openhab.io.net.http.SecureHttpContext.computeAuthHeader(SecureHttpContext.java:232) [org.openhab.io.net_1.7.1.jar:na]
        at org.openhab.io.net.http.SecureHttpContext.handleSecurity(SecureHttpContext.java:109) [org.openhab.io.net_1.7.1.jar:na]
        at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:60) [org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar:na]
        at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) [org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar:na]
        at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) [org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar:na]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [javax.servlet_3.0.0.v201112011016.jar:na]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598) [org.eclipse.jetty.servlet_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486) [org.eclipse.jetty.servlet_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413) [org.eclipse.jetty.servlet_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.Server.handle(Server.java:350) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) [org.eclipse.jetty.http_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) [org.eclipse.jetty.http_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606) [org.eclipse.jetty.io_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46) [org.eclipse.jetty.io_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603) [org.eclipse.jetty.util_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538) [org.eclipse.jetty.util_8.1.3.v20120522.jar:8.1.3.v20120522]
        at java.lang.Thread.run(Thread.java:744) [na:1.8.0]
2015-10-26 15:33:06.199 [WARN ] [.io.net.http.SecureHttpContext] - authentication of user 'admin' failed
javax.security.auth.login.LoginException: Login Failure: all modules ignored
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:906) ~[na:1.8.0]
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195) ~[na:1.8.0]
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682) ~[na:1.8.0]
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680) ~[na:1.8.0]
        at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0]
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) ~[na:1.8.0]
        at javax.security.auth.login.LoginContext.login(LoginContext.java:587) ~[na:1.8.0]
        at org.openhab.io.net.http.SecureHttpContext.authenticate(SecureHttpContext.java:293) [org.openhab.io.net_1.7.1.jar:na]
        at org.openhab.io.net.http.SecureHttpContext.computeAuthHeader(SecureHttpContext.java:232) [org.openhab.io.net_1.7.1.jar:na]
        at org.openhab.io.net.http.SecureHttpContext.handleSecurity(SecureHttpContext.java:109) [org.openhab.io.net_1.7.1.jar:na]
        at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:60) [org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar:na]
        at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) [org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar:na]
        at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) [org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar:na]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [javax.servlet_3.0.0.v201112011016.jar:na]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598) [org.eclipse.jetty.servlet_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486) [org.eclipse.jetty.servlet_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413) [org.eclipse.jetty.servlet_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.Server.handle(Server.java:350) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) [org.eclipse.jetty.http_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) [org.eclipse.jetty.http_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606) [org.eclipse.jetty.io_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46) [org.eclipse.jetty.io_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603) [org.eclipse.jetty.util_8.1.3.v20120522.jar:8.1.3.v20120522]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538) [org.eclipse.jetty.util_8.1.3.v20120522.jar:8.1.3.v20120522]
        at java.lang.Thread.run(Thread.java:744) [na:1.8.0]

For documentation reason:
I followed your suggestion, my openhab and openhab.sh file look like this now

    JAVA_ARGS_DEFAULT="-Dosgi.clean=true \
-Declipse.ignoreApp=true \
 -Dosgi.noShutdown=true \
-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0 \
 -Djetty.port=${HTTP_PORT} \
 -Dopenhab.configfile="${OPENHAB_CONF_DIR}/configurations/openhab.cfg" \
 -Dopenhab.configdir="${OPENHAB_CONF_DIR}/configurations" \
 -Dopenhab.logdir="${OPENHAB_LOG_DIR}" \
 -Dsmarthome.userdata="${OPENHAB_USER_DATA_DIR}"
 -Djetty.home="${OPENHAB_DIR}" \
....

I will restore my backup this evening and give it a new try without messing around :wink:

1 Like

@jonas_asd How do you do this please ? I am having the same issue.

Thank you

I also have this issue, maybe someone can look into this? Is it because of raspbian Jessie?

Don’t know, but i thin with raspbian wheezy it would run.

Yes it does run.

I had the same issue a few weeks ago and did the following:

  • modified the openhab configuration file to indicate which port to use
  • modified the script used to start the openhab service (for me its a script in init.d)
  • added the openhab user to the group having access to the tty ports

Dont have much more details… found everything on internet