I am seeing a strange error in the openhab.log:
2022-09-21 18:21:59.733 [WARN ] [io.netty.channel.AbstractChannel ] - Force-closing a channel whose registration task was not accepted by an event loop: [id: 0xc5632bd8]
java.util.concurrent.RejectedExecutionException: event executor terminated
at io.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadEventExecutor.java:923) ~[?:?]
at io.netty.util.concurrent.SingleThreadEventExecutor.offerTask(SingleThreadEventExecutor.java:350) ~[?:?]
at io.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThreadEventExecutor.java:343) ~[?:?]
at io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:825) ~[?:?]
at io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:815) ~[?:?]
at io.netty.channel.AbstractChannel$AbstractUnsafe.register(AbstractChannel.java:483) ~[?:?]
at io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:87) ~[?:?]
at io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:81) ~[?:?]
at io.netty.channel.MultithreadEventLoopGroup.register(MultithreadEventLoopGroup.java:86) ~[?:?]
at io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:323) ~[?:?]
at io.netty.bootstrap.Bootstrap.doResolveAndConnect(Bootstrap.java:155) ~[?:?]
at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:139) ~[?:?]
at org.openhab.binding.ipcamera.internal.onvif.OnvifConnection.sendOnvifRequest(OnvifConnection.java:533) ~[?:?]
at org.openhab.binding.ipcamera.internal.onvif.OnvifConnection.connect(OnvifConnection.java:837) ~[?:?]
at org.openhab.binding.ipcamera.internal.handler.IpCameraHandler.pollingCameraConnection(IpCameraHandler.java:1372) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
2022-09-21 18:21:59.767 [ERROR] [ent.DefaultPromise.rejectedExecution] - Failed to submit a listener notification task. Event loop shut down?
java.util.concurrent.RejectedExecutionException: event executor terminated
at io.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadEventExecutor.java:923) ~[?:?]
at io.netty.util.concurrent.SingleThreadEventExecutor.offerTask(SingleThreadEventExecutor.java:350) ~[?:?]
at io.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThreadEventExecutor.java:343) ~[?:?]
at io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:825) ~[?:?]
at io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:815) ~[?:?]
at io.netty.util.concurrent.DefaultPromise.safeExecute(DefaultPromise.java:841) ~[?:?]
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:499) ~[?:?]
at io.netty.util.concurrent.DefaultPromise.addListener(DefaultPromise.java:184) ~[?:?]
at io.netty.channel.DefaultChannelPromise.addListener(DefaultChannelPromise.java:95) ~[?:?]
at io.netty.channel.DefaultChannelPromise.addListener(DefaultChannelPromise.java:30) ~[?:?]
at org.openhab.binding.ipcamera.internal.onvif.OnvifConnection.sendOnvifRequest(OnvifConnection.java:533) ~[?:?]
at org.openhab.binding.ipcamera.internal.onvif.OnvifConnection.connect(OnvifConnection.java:837) ~[?:?]
at org.openhab.binding.ipcamera.internal.handler.IpCameraHandler.pollingCameraConnection(IpCameraHandler.java:1372) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
2022-09-21 18:22:07.576 [WARN ] [netty.util.concurrent.DefaultPromise] - An exception was thrown by org.openhab.binding.ipcamera.internal.handler.IpCameraHandler$2.operationComplete()
java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@d6a6f6[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@111bd13[Wrapped task = org.openhab.binding.ipcamera.internal.onvif.OnvifConnection$$Lambda$1857/0x94df0628@fd4097]] rejected from java.util.concurrent.ScheduledThreadPoolExecutor@187f3c2[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2055) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:825) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:340) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:562) ~[?:?]
at org.openhab.binding.ipcamera.internal.onvif.OnvifConnection.disconnect(OnvifConnection.java:869) ~[?:?]
at org.openhab.binding.ipcamera.internal.handler.IpCameraHandler.offline(IpCameraHandler.java:1727) ~[?:?]
at org.openhab.binding.ipcamera.internal.handler.IpCameraHandler.resetAndRetryConnecting(IpCameraHandler.java:1675) ~[?:?]
at org.openhab.binding.ipcamera.internal.handler.IpCameraHandler.cameraCommunicationError(IpCameraHandler.java:1396) ~[?:?]
at org.openhab.binding.ipcamera.internal.handler.IpCameraHandler$2.operationComplete(IpCameraHandler.java:628) ~[?:?]
at org.openhab.binding.ipcamera.internal.handler.IpCameraHandler$2.operationComplete(IpCameraHandler.java:1) ~[?:?]
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578) [bundleFile:4.1.72.Final]
at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571) [bundleFile:4.1.72.Final]
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550) [bundleFile:4.1.72.Final]
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491) [bundleFile:4.1.72.Final]
at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616) [bundleFile:4.1.72.Final]
at io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609) [bundleFile:4.1.72.Final]
at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117) [bundleFile:4.1.72.Final]
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe$1.run(AbstractNioChannel.java:262) [bundleFile:4.1.72.Final]
at io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98) [bundleFile:4.1.72.Final]
at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:170) [bundleFile:4.1.72.Final]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) [bundleFile:4.1.72.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) [bundleFile:4.1.72.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:503) [bundleFile:4.1.72.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) [bundleFile:4.1.72.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [bundleFile:4.1.72.Final]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [bundleFile:4.1.72.Final]
at java.lang.Thread.run(Thread.java:829) [?:?]
Here is everything about my installation from the UI / About / Technical Details
runtimeInfo:
version: 3.4.0.M1
buildString: Milestone Build
locale: en-US
systemInfo:
configFolder: /etc/openhab
userdataFolder: /var/lib/openhab
logFolder: /var/log/openhab
javaVersion: 11.0.13
javaVendor: Azul Systems, Inc.
javaVendorVersion: Zulu11.52+13-CA
osName: Linux
osVersion: 5.10.103-v7l+
osArchitecture: arm
availableProcessors: 4
freeMemory: 41496
totalMemory: 259522560
startLevel: 100
bindings:
- amazonechocontrol
- astro
- denonmarantz
- gpstracker
- icalendar
- icloud
- ipcamera
- irobot
- logreader
- mail
- mqtt
- myq
- network
- ntp
- openweathermap
- remoteopenhab
- roku
- tuya
- zwave
clientInfo:
device:
ios: false
android: false
androidChrome: false
desktop: true
iphone: false
ipod: false
ipad: false
edge: false
ie: false
firefox: false
macos: false
windows: true
cordova: false
phonegap: false
electron: false
nwjs: false
webView: false
webview: false
standalone: false
os: windows
pixelRatio: 1.5
prefersColorScheme: light
isSecureContext: false
locationbarVisible: true
menubarVisible: true
navigator:
cookieEnabled: true
deviceMemory: N/A
hardwareConcurrency: 4
language: en-US
languages:
- en-US
onLine: true
platform: Win32
screen:
width: 1707
height: 1067
colorDepth: 24
support:
touch: false
pointerEvents: true
observer: true
passiveListener: true
gestures: false
intersectionObserver: true
themeOptions:
dark: light
filled: true
pageTransitionAnimation: default
bars: filled
homeNavbar: default
homeBackground: default
expandableCardAnimation: default
userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/105.0.0.0 Safari/537.36
timestamp: 2022-09-22T01:18:07.626Z
I don’t see any clues in the first two errors that point to a culprit. I wondere if the IP Camera Binding error in the 3rd ERROR is the result of the previous error rather than the cause. I will try disabling that binding and see what happens.
I noticed a problem with my system the last couple of days. After the above error sequence, some things stop working, like Astro event triggers. I noticed it when my exterior lights don’t come on in the evening. So I suspect they are related, but have no idea how.
Appreciate any suggestions on how to troubleshoot.