Onewire not connecting

  • Platform information:
    • Hardware: Docker (under MacOS)
    • OS: Alpine (under MacOS)
    • Java Runtime Environment:
    • openHAB version: 4.2.1
  • Issue of the topic:
    I’ve upgraded my openhab installation from 2.something to 4.2.1 (docker release), and am having issues connecting to owfs
    The configuration has ported over, although I’ve re-added it, but I’m permanently getting ‘communication error’

I get the following in the logs:

could not open owServerConnection to 172.25.4.7:4304: Connection refused

However, I can ping 172.24.4.7 from within the docker instance, and I’ve no issue connecting to the HTTP port (2121)

Does anyone have any ideas that might help?

More from the log, incase it helps:


2024-08-24 13:55:17.751 [DEBUG] [ternal.handler.OwserverBridgeHandler] - Updating owserverconnectionstate to STOPPED
2024-08-24 13:55:17.756 [DEBUG] [nternal.discovery.OwDiscoveryService] - bundle org.openhab.binding.onewire:4.2.1 (254)[org.openhab.binding.onewire.internal.discovery.OwDiscoveryService(334)] : ServiceFactory.ungetService()
2024-08-24 13:55:17.758 [DEBUG] [nternal.discovery.OwDiscoveryService] - bundle org.openhab.binding.onewire:4.2.1 (254)[org.openhab.binding.onewire.internal.discovery.OwDiscoveryService(334)] : invoking deactivate: deactivate: parameters []
2024-08-24 13:55:17.758 [DEBUG] [nternal.discovery.OwDiscoveryService] - bundle org.openhab.binding.onewire:4.2.1 (254)[org.openhab.binding.onewire.internal.discovery.OwDiscoveryService(334)] : invoked deactivate: deactivate
2024-08-24 13:55:17.759 [DEBUG] [nternal.discovery.OwDiscoveryService] - bundle org.openhab.binding.onewire:4.2.1 (254)[org.openhab.binding.onewire.internal.discovery.OwDiscoveryService(334)] : DependencyManager: osgi.ds.satisfying.condition close component unbinding from org.apache.felix.scr.impl.manager.ComponentContextImpl@196398c6 at tracking count 1 refpairs: [[RefPair: ref: [{org.osgi.service.condition.Condition}={service.id=6, service.bundleid=0, service.scope=singleton, service.pid=0.org.osgi.service.condition.ConditionImpl, osgi.condition.id=true}] service: [null]]]
2024-08-24 13:55:17.759 [DEBUG] [nternal.discovery.OwDiscoveryService] - bundle org.openhab.binding.onewire:4.2.1 (254)[org.openhab.binding.onewire.internal.discovery.OwDiscoveryService(334)] : Querying state active
2024-08-24 13:55:17.760 [DEBUG] [nternal.discovery.OwDiscoveryService] - bundle org.openhab.binding.onewire:4.2.1 (254)[org.openhab.binding.onewire.internal.discovery.OwDiscoveryService(334)] : Changed state from active to satisfied
2024-08-24 13:55:18.446 [DEBUG] [internal.owserver.OwserverConnection] - Trying to (re)start OW server connection - previous state: STOPPED
2024-08-24 13:55:18.457 [DEBUG] [internal.owserver.OwserverConnection] - could not open owServerConnection to 172.25.4.7:4304: Connection refused
2024-08-24 13:55:18.463 [DEBUG] [internal.owserver.OwserverConnection] - could not open owServerConnection to 172.25.4.7:4304: Connection refused
2024-08-24 13:55:18.469 [DEBUG] [internal.owserver.OwserverConnection] - could not open owServerConnection to 172.25.4.7:4304: Connection refused
2024-08-24 13:55:18.477 [DEBUG] [internal.owserver.OwserverConnection] - could not open owServerConnection to 172.25.4.7:4304: Connection refused
2024-08-24 13:55:18.482 [DEBUG] [internal.owserver.OwserverConnection] - could not open owServerConnection to 172.25.4.7:4304: Connection refused
2024-08-24 13:55:18.488 [DEBUG] [internal.owserver.OwserverConnection] - could not open owServerConnection to 172.25.4.7:4304: Connection refused
2024-08-24 13:55:18.489 [DEBUG] [internal.owserver.OwserverConnection] - OW connection state: set to failed as max retries exceeded.
2024-08-24 13:55:18.489 [DEBUG] [ternal.handler.OwserverBridgeHandler] - Updating owserverconnectionstate to FAILED
2024-08-24 13:55:18.490 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler OwserverBridgeHandler tried updating the thing status although the handler was already disposed.
2024-08-24 13:55:20.046 [DEBUG] [nternal.discovery.OwDiscoveryService] - bundle org.openhab.binding.onewire:4.2.1 (254)[org.openhab.binding.onewire.internal.discovery.OwDiscoveryService(334)] : ServiceFactory.getService()
2024-08-24 13:55:20.047 [TRACE] [ternal.handler.OwserverBridgeHandler] - refresh requested by thread ID 590 denied, as not refresheable
2024-08-24 13:55:20.047 [DEBUG] [nternal.discovery.OwDiscoveryService] - bundle org.openhab.binding.onewire:4.2.1 (254)[org.openhab.binding.onewire.internal.discovery.OwDiscoveryService(334)] : This thread collected dependencies
2024-08-24 13:55:20.048 [DEBUG] [nternal.discovery.OwDiscoveryService] - bundle org.openhab.binding.onewire:4.2.1 (254)[org.openhab.binding.onewire.internal.discovery.OwDiscoveryService(334)] : getService (ServiceFactory) dependencies collected.
2024-08-24 13:55:20.048 [DEBUG] [nternal.discovery.OwDiscoveryService] - bundle org.openhab.binding.onewire:4.2.1 (254)[org.openhab.binding.onewire.internal.discovery.OwDiscoveryService(334)] : Querying state satisfied
2024-08-24 13:55:20.049 [DEBUG] [nternal.discovery.OwDiscoveryService] - bundle org.openhab.binding.onewire:4.2.1 (254)[org.openhab.binding.onewire.internal.discovery.OwDiscoveryService(334)] : For dependency osgi.ds.satisfying.condition, optional: false; to bind: [[RefPair: ref: [{org.osgi.service.condition.Condition}={service.id=6, service.bundleid=0, service.scope=singleton, service.pid=0.org.osgi.service.condition.ConditionImpl, osgi.condition.id=true}] service: [null]]]
2024-08-24 13:55:20.050 [DEBUG] [nternal.discovery.OwDiscoveryService] - bundle org.openhab.binding.onewire:4.2.1 (254)[org.openhab.binding.onewire.internal.discovery.OwDiscoveryService(334)] : invoking activate: activate: parameters [org.apache.felix.scr.impl.helper.ReadOnlyDictionary]
2024-08-24 13:55:20.050 [DEBUG] [nternal.discovery.OwDiscoveryService] - bundle org.openhab.binding.onewire:4.2.1 (254)[org.openhab.binding.onewire.internal.discovery.OwDiscoveryService(334)] : invoked activate: activate
2024-08-24 13:55:20.051 [DEBUG] [nternal.discovery.OwDiscoveryService] - bundle org.openhab.binding.onewire:4.2.1 (254)[org.openhab.binding.onewire.internal.discovery.OwDiscoveryService(334)] : Changed state from satisfied to active
2024-08-24 13:55:20.056 [DEBUG] [internal.owserver.OwserverConnection] - Trying to (re)start OW server connection - previous state: STOPPED
2024-08-24 13:55:20.067 [DEBUG] [internal.owserver.OwserverConnection] - could not open owServerConnection to 172.25.4.7:4304: Connection refused
2024-08-24 13:55:20.074 [DEBUG] [internal.owserver.OwserverConnection] - could not open owServerConnection to 172.25.4.7:4304: Connection refused
2024-08-24 13:55:20.079 [DEBUG] [internal.owserver.OwserverConnection] - could not open owServerConnection to 172.25.4.7:4304: Connection refused
2024-08-24 13:55:20.084 [DEBUG] [internal.owserver.OwserverConnection] - could not open owServerConnection to 172.25.4.7:4304: Connection refused
2024-08-24 13:55:20.090 [DEBUG] [internal.owserver.OwserverConnection] - could not open owServerConnection to 172.25.4.7:4304: Connection refused
2024-08-24 13:55:20.096 [DEBUG] [internal.owserver.OwserverConnection] - could not open owServerConnection to 172.25.4.7:4304: Connection refused
2024-08-24 13:55:20.096 [DEBUG] [internal.owserver.OwserverConnection] - OW connection state: set to failed as max retries exceeded.
2024-08-24 13:55:20.097 [DEBUG] [ternal.handler.OwserverBridgeHandler] - Updating owserverconnectionstate to FAILED