Hi,
I’m fairly new at playing with openhab, starting off with trying to get my squeezeboxes to run and then hopefully use one of them as an audio sink for TTS.
I’m running openhab2 on debian stretch, with
deb https://dl.bintray.com/openhab/apt-repo2 testing main
as my sources list and running the latest M6 version of 2.0.4
root@proliant:/etc# apt-cache policy openhab2
openhab2:
Installed: 2.4.0~M6-1
Candidate: 2.4.0~M6-1
Version table:
*** 2.4.0~M6-1 650
650 https://dl.bintray.com/openhab/apt-repo2 testing/main amd64 Packages
100 /var/lib/dpkg/status
The squeezebox binding finds the server correctly, and the connected clients, but I can’t control any of them.
When connecting to the openhab cli, it shows that I’m using the latest M6 binding:
list -s org.openhab.binding.squeezebox
START LEVEL 100 , List Threshold: 50
ID │ State │ Lvl │ Version │ Symbolic name
────┼────────┼─────┼──────────┼───────────────$
196 │ Active │ 80 │ 2.4.0.M6 │ org.openhab.binding.squeezebox
looking at the log with debug enabled for the binding I get this:
14:13:17.468 [INFO ] [i.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.13.2:8080
14:13:17.469 [INFO ] [i.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.13.2:8443
14:13:17.589 [INFO ] [marthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
14:13:17.781 [DEBUG] [org.openhab.binding.squeezebox ] - BundleEvent STARTING - org.openhab.binding.squeezebox
14:13:17.782 [DEBUG] [org.openhab.binding.squeezebox ] - BundleEvent STARTED - org.openhab.binding.squeezebox
14:13:17.788 [DEBUG] [org.openhab.binding.squeezebox ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.UpnpDiscoveryParticipant}={service.id=343, service.bundleid=196, service.scope=bundle, component.name=org.openhab.binding.squeezebox.$
14:13:17.790 [DEBUG] [org.openhab.binding.squeezebox ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.type.DynamicStateDescriptionProvider, org.openhab.binding.squeezebox.internal.SqueezeBoxStateDescriptionOptionsProvider}={service.id=344, s$
14:13:17.806 [DEBUG] [org.openhab.binding.squeezebox ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={service.id=345, service.bundleid=196, service.scope=bundle, component.name=org.openhab.binding.squeezebox.int$
14:13:17.852 [DEBUG] [.SqueezeBoxPlayerDiscoveryParticipant] - Request player job scheduled to run every 60 seconds
14:13:17.856 [DEBUG] [org.openhab.binding.squeezebox ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=348, service.bundleid=196, service.scope=singleton} - org.openhab.binding.squeezebox
14:13:17.870 [DEBUG] [ernal.handler.SqueezeBoxServerHandler] - initializing server handler for thing squeezebox:squeezeboxserver:6c76cba1
14:13:17.877 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'squeezebox:squeezeboxserver:6c76cba1' changed from UNINITIALIZED to INITIALIZING
14:13:17.882 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'squeezebox:squeezeboxplayer:6c76cba1:e27ca66e92f9' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
14:13:17.883 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'squeezebox:squeezeboxplayer:6c76cba1:000420061c8c' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
14:13:17.897 [DEBUG] [ernal.handler.SqueezeBoxServerHandler] - listener connection started to server 127.0.0.1:9090
14:13:17.903 [DEBUG] [ernal.handler.SqueezeBoxServerHandler] - Sending command: players 0
14:13:17.904 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'squeezebox:squeezeboxserver:6c76cba1' changed from INITIALIZING to ONLINE
14:13:17.905 [DEBUG] [ernal.handler.SqueezeBoxServerHandler] - Sending command: favorites items 0 100
14:13:17.907 [DEBUG] [org.openhab.binding.squeezebox ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.audio.AudioSink}={service.id=349, service.bundleid=196, service.scope=singleton} - org.openhab.binding.squeezebox
14:13:17.907 [DEBUG] [org.openhab.binding.squeezebox ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.audio.AudioSink}={service.id=350, service.bundleid=196, service.scope=singleton} - org.openhab.binding.squeezebox
14:13:17.907 [DEBUG] [ernal.handler.SqueezeBoxServerHandler] - Sending command: listen 1
14:13:17.923 [DEBUG] [ernal.handler.SqueezeBoxServerHandler] - Sending command: 00:04:20:06:1c:8c status - 1 subscribe:10 tags:yagJlNKjc
14:13:17.924 [DEBUG] [.SqueezeBoxPlayerDiscoveryParticipant] - player added 00:04:20:04:18:c1 : SLIMP3
14:13:17.926 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'squeezebox:squeezeboxplayer:6c76cba1:e27ca66e92f9' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
14:13:17.930 [DEBUG] [ernal.handler.SqueezeBoxPlayerHandler] - player thing squeezebox:squeezeboxplayer:6c76cba1:000420061c8c initialized.
14:13:17.929 [DEBUG] [ernal.handler.SqueezeBoxPlayerHandler] - player thing squeezebox:squeezeboxplayer:6c76cba1:e27ca66e92f9 initialized.
14:13:17.930 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'squeezebox:squeezeboxplayer:6c76cba1:000420061c8c' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
14:13:17.932 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'squeezebox:squeezeboxplayer:6c76cba1:e27ca66e92f9' changed from INITIALIZING to ONLINE
14:13:17.934 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'squeezebox:squeezeboxplayer:6c76cba1:000420061c8c' changed from INITIALIZING to ONLINE
14:13:17.939 [DEBUG] [ernal.handler.SqueezeBoxServerHandler] - Sending command: 00:04:20:04:18:c1 status - 1 subscribe:10 tags:yagJlNKjc
14:13:17.940 [DEBUG] [.SqueezeBoxPlayerDiscoveryParticipant] - player added 00:04:20:1e:b2:fa : Squeezebox Boom
14:13:17.966 [DEBUG] [ernal.handler.SqueezeBoxServerHandler] - Sending command: 00:04:20:1e:b2:fa status - 1 subscribe:10 tags:yagJlNKjc
14:13:17.967 [DEBUG] [ernal.handler.SqueezeBoxPlayerHandler] - Player e2:7c:a6:6e:92:f9 updating favorites list
14:13:17.968 [DEBUG] [ernal.handler.SqueezeBoxPlayerHandler] - Player 00:04:20:06:1c:8c updating favorites list
14:13:17.974 [DEBUG] [ernal.handler.SqueezeBoxPlayerHandler] - Trying to download the content of URL http://www.bbc.co.uk/radio/imda/logos/radio4_logomobile1-1.png
14:13:17.982 [ERROR] [et.http.internal.WebClientFactoryImpl] - Could not start Jetty http client
java.lang.IllegalStateException: Insufficient configured threads: required=13 < max=10 for QueuedThreadPool[common]@fee4838{STARTED,5<=5<=10,i=5,q=0}[ReservedThreadExecutor@3da228b{s=0/1,p=0}]
at org.eclipse.jetty.util.thread.ThreadPoolBudget.check(ThreadPoolBudget.java:149) ~[?:?]
at org.eclipse.jetty.util.thread.ThreadPoolBudget.leaseTo(ThreadPoolBudget.java:130) ~[?:?]
at org.eclipse.jetty.util.thread.ThreadPoolBudget.leaseFrom(ThreadPoolBudget.java:175) ~[?:?]
at org.eclipse.jetty.io.SelectorManager.doStart(SelectorManager.java:251) ~[?:?]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[?:?]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) ~[?:?]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) ~[?:?]
at org.eclipse.jetty.client.AbstractConnectorHttpClientTransport.doStart(AbstractConnectorHttpClientTransport.java:64) ~[?:?]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[?:?]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) ~[?:?]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) ~[?:?]
at org.eclipse.jetty.client.HttpClient.doStart(HttpClient.java:241) ~[?:?]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[?:?]
at org.eclipse.smarthome.io.net.http.internal.WebClientFactoryImpl$2.run(WebClientFactoryImpl.java:258) ~[?:?]
at org.eclipse.smarthome.io.net.http.internal.WebClientFactoryImpl$2.run(WebClientFactoryImpl.java:1) ~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at org.eclipse.smarthome.io.net.http.internal.WebClientFactoryImpl.createHttpClientInternal(WebClientFactoryImpl.java:244) ~[?:?]
at org.eclipse.smarthome.io.net.http.internal.WebClientFactoryImpl.access$7(WebClientFactoryImpl.java:242) ~[?:?]
at org.eclipse.smarthome.io.net.http.internal.WebClientFactoryImpl$1.run(WebClientFactoryImpl.java:218) ~[?:?]
at org.eclipse.smarthome.io.net.http.internal.WebClientFactoryImpl$1.run(WebClientFactoryImpl.java:1) ~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at org.eclipse.smarthome.io.net.http.internal.WebClientFactoryImpl.initialize(WebClientFactoryImpl.java:209) ~[?:?]
at org.eclipse.smarthome.io.net.http.internal.WebClientFactoryImpl.getCommonHttpClient(WebClientFactoryImpl.java:160) ~[?:?]
at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrlAndGetReponse(HttpUtil.java:194) ~[?:?]
at org.eclipse.smarthome.io.net.http.HttpUtil.downloadData(HttpUtil.java:438) ~[?:?]
at org.eclipse.smarthome.io.net.http.HttpUtil.downloadImage(HttpUtil.java:401) ~[?:?]
at org.eclipse.smarthome.io.net.http.HttpUtil.downloadImage(HttpUtil.java:372) ~[?:?]
at org.eclipse.smarthome.io.net.http.HttpUtil.downloadImage(HttpUtil.java:358) ~[?:?]
at org.openhab.binding.squeezebox.internal.handler.SqueezeBoxPlayerHandler.lambda$0(SqueezeBoxPlayerHandler.java:419) ~[?:?]
at org.eclipse.smarthome.core.cache.ExpiringCache.refreshValue(ExpiringCache.java:97) [101:org.eclipse.smarthome.core:0.10.0.oh240M6]
at org.eclipse.smarthome.core.cache.ExpiringCache.getValue(ExpiringCache.java:68) [101:org.eclipse.smarthome.core:0.10.0.oh240M6]
at org.eclipse.smarthome.core.cache.ExpiringCacheMap.get(ExpiringCacheMap.java:198) [101:org.eclipse.smarthome.core:0.10.0.oh240M6]
at org.eclipse.smarthome.core.cache.ExpiringCacheMap.putIfAbsentAndGet(ExpiringCacheMap.java:127) [101:org.eclipse.smarthome.core:0.10.0.oh240M6]
at org.eclipse.smarthome.core.cache.ExpiringCacheMap.putIfAbsentAndGet(ExpiringCacheMap.java:112) [101:org.eclipse.smarthome.core:0.10.0.oh240M6]
at org.openhab.binding.squeezebox.internal.handler.SqueezeBoxPlayerHandler.downloadImage(SqueezeBoxPlayerHandler.java:416) [196:org.openhab.binding.squeezebox:2.4.0.M6]
at org.openhab.binding.squeezebox.internal.handler.SqueezeBoxPlayerHandler.coverArtChangeEvent(SqueezeBoxPlayerHandler.java:402) [196:org.openhab.binding.squeezebox:2.4.0.M6]
at org.openhab.binding.squeezebox.internal.handler.SqueezeBoxServerHandler$SqueezeServerListener$14.updateListener(SqueezeBoxServerHandler.java:777) [196:org.openhab.binding.squeezebox:2.4.0.M6]
at org.openhab.binding.squeezebox.internal.handler.SqueezeBoxServerHandler.updatePlayer(SqueezeBoxServerHandler.java:1000) [196:org.openhab.binding.squeezebox:2.4.0.M6]
at org.openhab.binding.squeezebox.internal.handler.SqueezeBoxServerHandler.access$8(SqueezeBoxServerHandler.java:988) [196:org.openhab.binding.squeezebox:2.4.0.M6]
at org.openhab.binding.squeezebox.internal.handler.SqueezeBoxServerHandler$SqueezeServerListener.handleStatusMessage(SqueezeBoxServerHandler.java:774) [196:org.openhab.binding.squeezebox:2.4.0.M6]
at org.openhab.binding.squeezebox.internal.handler.SqueezeBoxServerHandler$SqueezeServerListener.handlePlayerUpdate(SqueezeBoxServerHandler.java:554) [196:org.openhab.binding.squeezebox:2.4.0.M6]
at org.openhab.binding.squeezebox.internal.handler.SqueezeBoxServerHandler$SqueezeServerListener.run(SqueezeBoxServerHandler.java:434) [196:org.openhab.binding.squeezebox:2.4.0.M6]
14:13:27.855 [DEBUG] [ernal.handler.SqueezeBoxServerHandler] - no connection to squeeze server when trying to send command, returning...
14:14:27.857 [DEBUG] [ernal.handler.SqueezeBoxServerHandler] - no connection to squeeze server when trying to send command, returning...
And then it just repeats that there is no connection to squeeze server. I have tried changing the squeeze server ip or hostname to 192.168.13.2 from 127.0.0.1 with the same result.
Is the jetty server failure just a red herring and I’m looking in the wrong place to fix this?
The squeezeboxserver I run is pretty recent, and other third party clients (such as squeezer on android) seem to have no problem connecting and controlling the squeezebox server.
root@proliant:/etc# apt-cache policy logitechmediaserver
logitechmediaserver:
Installed: 7.9.2~1542290182
Candidate: 7.9.2~1542290182
Version table:
*** 7.9.2~1542290182 100
100 /var/lib/dpkg/status
Any help would be appreciated…
Thanks,
Koen.