Cgroup: fork rejected by pids controller in /system.slice/openhab.service

  • Platform information:
    • Hardware: Raspberry Pi 4 Model B Rev 1.2
    • OS: openhabian “main”
    • Java Runtime Environment: 11.0.11 (Zulu11.48+21-CA)
    • openHAB version: openHAB 3.1.0.M4

While being away for a few days, openHAB got into troubles. The maximum threads for openHAB has been reached, while the memory was still sufficient…

grafik

grafik

Reading the log files, I assume that there is a problem within the gardena binding.
The messages seem to correspond to the number of active threads.
It started very slowly but than the frequency incresed a lot.

Maybe it is related to [Gardena] Suspected memory leak (especially) when api is down · Issue #10516 · openhab/openhab-addons · GitHub

From Gardena Binding:

2021-05-31 16:25:48.784 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-05-31 16:35:17.234 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 03:11:25.075 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 03:17:17.480 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 03:23:16.084 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 13:33:43.422 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): Broken pipe, restarting
2021-06-01 13:33:43.427 [WARN ] [ng.gardena.internal.GardenaSmartImpl] - Restarting GardenaSmart Webservice failed: java.nio.channels.AsynchronousCloseException, restarting binding
2021-06-01 13:59:21.515 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): Broken pipe, restarting
2021-06-01 13:59:21.520 [WARN ] [ng.gardena.internal.GardenaSmartImpl] - Restarting GardenaSmart Webservice failed: java.nio.channels.AsynchronousCloseException, restarting binding
2021-06-01 13:59:21.524 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): Broken pipe, restarting
2021-06-01 14:00:22.269 [WARN ] [ternal.handler.GardenaAccountHandler] - Error 400 Bad Request, {"error":"invalid_request","error_description":"Simultaneous logins detected for client[id=], user[id=, email=}]","error_code":"simultaneous.logins"}
2021-06-01 14:00:22.511 [WARN ] [ternal.handler.GardenaAccountHandler] - Error 400 Bad Request, {"error":"invalid_request","error_description":"Simultaneous logins detected for client[id=], user[id=, email=}]","error_code":"simultaneous.logins"}
2021-06-01 14:17:56.975 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 18:40:34.585 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 18:49:09.603 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 18:49:09.611 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:22:29.970 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:22:29.971 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:22:29.972 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:35:25.735 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:36:43.475 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:36:43.476 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:36:43.477 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:39:14.627 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:39:14.630 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:39:14.664 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:41:45.569 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:41:45.757 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:41:46.018 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:42:30.082 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:42:31.935 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:44:16.812 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:44:16.833 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:44:16.900 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:45:01.239 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:45:03.007 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:45:21.213 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:46:47.699 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:46:48.029 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:46:48.065 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:47:32.359 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:47:34.186 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:47:43.477 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:47:45.204 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:47:52.365 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:48:43.505 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:49:18.751 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:49:18.914 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:49:19.161 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:50:03.352 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:50:05.342 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:50:14.575 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:50:16.251 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:50:23.379 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:50:40.364 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:50:44.822 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:51:10.670 [WARN ] [ternal.handler.GardenaAccountHandler] - Error 400 Bad Request, {"error":"invalid_request","error_description":"Simultaneous logins detected for client[id=], user[id=, email=}]","error_code":"simultaneous.logins"}
2021-06-01 21:51:14.511 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:51:24.725 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:51:26.360 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:51:42.251 [WARN ] [ternal.handler.GardenaAccountHandler] - Error 400 Bad Request, {"error":"invalid_request","error_description":"Simultaneous logins detected for client[id=], user[id=, email=}]","error_code":"simultaneous.logins"}
2021-06-01 21:51:49.856 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:51:50.052 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:51:50.222 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:52:12.056 [WARN ] [ternal.handler.GardenaAccountHandler] - Error 400 Bad Request, {"error":"invalid_request","error_description":"Simultaneous logins detected for client[id=], user[id=, email=}]","error_code":"simultaneous.logins"}
2021-06-01 21:52:34.410 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:52:36.456 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:52:45.613 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:52:47.298 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:52:54.421 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:53:11.219 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:53:11.391 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:53:15.962 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:53:45.528 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:53:47.815 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:53:49.436 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:54:07.159 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:54:10.886 [WARN ] [ternal.handler.GardenaAccountHandler] - Error 400 Bad Request, {"error":"invalid_request","error_description":"Simultaneous logins detected for client[id=], user[id=, email=}]","error_code":"simultaneous.logins"}
2021-06-01 21:54:21.276 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:54:32.035 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:54:43.747 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:54:49.642 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:55:05.527 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:55:07.559 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:55:16.727 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:55:18.430 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:55:25.489 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:55:29.412 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:55:42.312 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:55:42.389 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:55:47.005 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:55:50.780 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150002/150000 ms, restarting
2021-06-01 21:55:58.059 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:55:59.660 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:56:01.262 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:56:10.779 [WARN ] [ternal.handler.GardenaAccountHandler] - Error 400 Bad Request, {"error":"invalid_request","error_description":"Simultaneous logins detected for client[id=], user[id=, email=}]","error_code":"simultaneous.logins"}
2021-06-01 21:56:16.532 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:56:18.989 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:56:20.501 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:56:22.853 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:56:25.261 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:41:46.018 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:42:30.082 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:42:31.935 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:44:16.812 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:44:16.833 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:44:16.900 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:45:01.239 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:45:03.007 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:45:21.213 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:46:47.699 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:46:48.029 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:46:48.065 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:47:32.359 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:47:34.186 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:47:43.477 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:47:45.204 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:47:52.365 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:48:43.505 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:49:18.751 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150001/150000 ms, restarting
2021-06-01 21:49:18.914 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:49:19.161 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:50:03.352 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:50:05.342 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:50:14.575 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:50:16.251 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:50:23.379 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:50:40.364 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:50:44.822 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:51:10.670 [WARN ] [ternal.handler.GardenaAccountHandler] - Error 400 Bad Request, {"error":"invalid_request","error_description":"Simultaneous logins detected for client[id=], user[id=, email=}]","error_code":"simultaneous.logins"}
2021-06-01 21:51:14.511 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:51:24.725 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:51:26.360 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:51:42.251 [WARN ] [ternal.handler.GardenaAccountHandler] - Error 400 Bad Request, {"error":"invalid_request","error_description":"Simultaneous logins detected for client[id=], user[id=, email=}]","error_code":"simultaneous.logins"}
2021-06-01 21:51:49.856 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:51:50.052 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:51:50.222 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:52:12.056 [WARN ] [ternal.handler.GardenaAccountHandler] - Error 400 Bad Request, {"error":"invalid_request","error_description":"Simultaneous logins detected for client[id=], user[id=, email=}]","error_code":"simultaneous.logins"}
2021-06-01 21:52:34.410 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting
2021-06-01 21:52:36.456 [WARN ] [rdena.internal.GardenaSmartWebSocket] - Gardena Webservice error (garden-My Garden): java.util.concurrent.TimeoutException: Idle timeout expired: 150000/150000 ms, restarting

In openhab.log:

2021-06-01 14:17:56.981 [INFO ] [cript.LanMower: MaehrlinOfflineCheck] - Mährlin ist OFFLINE
2021-06-01 14:17:58.480 [WARN ] [org.eclipse.jetty.io.ManagedSelector] - java.nio.channels.ClosedSelectorException
2021-06-01 14:19:02.548 [INFO ] [cript.LanMower: MaehrlinOfflineCheck] - Mährlin ist ONLINE

2021-06-01 18:40:34.594 [INFO ] [cript.LanMower: MaehrlinOfflineCheck] - Mährlin ist OFFLINE
2021-06-01 18:40:36.092 [WARN ] [org.eclipse.jetty.io.ManagedSelector] - java.nio.channels.ClosedSelectorException
2021-06-01 18:41:41.393 [INFO ] [cript.LanMower: MaehrlinOfflineCheck] - Mährlin ist ONLINE

2021-06-01 18:49:09.625 [INFO ] [cript.LanMower: MaehrlinOfflineCheck] - Mährlin ist OFFLINE
2021-06-01 18:49:09.645 [WARN ] [ty.websocket.common.WebSocketSession] - Exception while notifying onError
java.util.ConcurrentModificationException: null
	at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1043) ~[?:?]
	at java.util.ArrayList$Itr.next(ArrayList.java:997) ~[?:?]
	at org.openhab.binding.gardena.internal.GardenaSmartImpl.stopWebsockets(GardenaSmartImpl.java:156) ~[?:?]
	at org.openhab.binding.gardena.internal.GardenaSmartImpl.dispose(GardenaSmartImpl.java:296) ~[?:?]
	at org.openhab.binding.gardena.internal.handler.GardenaAccountHandler.disposeGardena(GardenaAccountHandler.java:134) ~[?:?]
	at org.openhab.binding.gardena.internal.handler.GardenaAccountHandler.onError(GardenaAccountHandler.java:192) ~[?:?]
	at org.openhab.binding.gardena.internal.GardenaSmartImpl.onWebSocketError(GardenaSmartImpl.java:358) ~[?:?]
	at org.openhab.binding.gardena.internal.GardenaSmartWebSocket.onError(GardenaSmartWebSocket.java:153) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
	at org.eclipse.jetty.websocket.common.events.annotated.CallableMethod.call(CallableMethod.java:70) ~[?:?]
	at org.eclipse.jetty.websocket.common.events.annotated.OptionalSessionCallableMethod.call(OptionalSessionCallableMethod.java:72) ~[?:?]
	at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver.onError(JettyAnnotatedEventDriver.java:192) ~[?:?]
	at org.eclipse.jetty.websocket.common.WebSocketSession.callApplicationOnError(WebSocketSession.java:416) ~[?:?]
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.close(AbstractWebSocketConnection.java:209) ~[?:?]
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onReadTimeout(AbstractWebSocketConnection.java:564) ~[?:?]
	at org.eclipse.jetty.io.AbstractConnection.onFillInterestedFailed(AbstractConnection.java:172) ~[?:?]
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillInterestedFailed(AbstractWebSocketConnection.java:539) ~[?:?]
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.failed(AbstractConnection.java:317) ~[?:?]
	at org.eclipse.jetty.io.FillInterest.onFail(FillInterest.java:140) ~[?:?]
	at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillableFail(SslConnection.java:576) ~[?:?]
	at org.eclipse.jetty.io.ssl.SslConnection.onFillInterestedFailed(SslConnection.java:404) ~[?:?]
	at org.eclipse.jetty.io.ssl.SslConnection$2.failed(SslConnection.java:167) ~[?:?]
	at org.eclipse.jetty.io.FillInterest.onFail(FillInterest.java:140) ~[?:?]
	at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407) ~[?:?]
	at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:171) ~[?:?]
	at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:113) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
	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) [?:?]
2021-06-01 18:50:14.461 [INFO ] [cript.LanMower: MaehrlinOfflineCheck] - Mährlin ist ONLINE


2021-06-01 22:06:53.543 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception: 
java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
	at java.lang.Thread.start0(Native Method) ~[?:?]
	at java.lang.Thread.start(Thread.java:798) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:937) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1343) ~[?:?]
	at org.openhab.binding.network.internal.PresenceDetection.performPresenceDetection(PresenceDetection.java:352) ~[?:?]
	at org.openhab.binding.network.internal.PresenceDetection.lambda$10(PresenceDetection.java:605) ~[?:?]
	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) [?:?]
2021-06-01 22:06:53.552 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception: 
java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
	at java.lang.Thread.start0(Native Method) ~[?:?]
	at java.lang.Thread.start(Thread.java:798) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:937) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1343) ~[?:?]
	at org.openhab.binding.network.internal.PresenceDetection.performPresenceDetection(PresenceDetection.java:352) ~[?:?]
	at org.openhab.binding.network.internal.PresenceDetection.lambda$10(PresenceDetection.java:605) ~[?:?]
	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) [?:?]
2021-06-01 22:06:53.555 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception: 
java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
	at java.lang.Thread.start0(Native Method) ~[?:?]
	at java.lang.Thread.start(Thread.java:798) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:937) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1343) ~[?:?]
	at org.openhab.binding.network.internal.PresenceDetection.performPresenceDetection(PresenceDetection.java:352) ~[?:?]
	at org.openhab.binding.network.internal.PresenceDetection.lambda$10(PresenceDetection.java:605) ~[?:?]
	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) [?:?]

And in the system journal:

Jun 01 22:06:51 kopf kernel: cgroup: fork rejected by pids controller in /system.slice/openhab.service
Jun 01 22:06:52 kopf karaf[31852]: [1390343,197s][warning][os,thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 2048k, guardsize: 0k, detached.
Jun 01 22:06:52 kopf karaf[31852]: [1390343,303s][warning][os,thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 2048k, guardsize: 0k, detached.
Jun 01 22:06:53 kopf karaf[31852]: [1390344,772s][warning][os,thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 2048k, guardsize: 0k, detached.


Jun 01 22:17:10 kopf karaf[31852]: Exception in thread "OH-common-72604" java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
Jun 01 22:17:10 kopf karaf[31852]:         at java.base/java.lang.Thread.start0(Native Method)
Jun 01 22:17:10 kopf karaf[31852]:         at java.base/java.lang.Thread.start(Thread.java:798)
Jun 01 22:17:10 kopf karaf[31852]:         at java.base/java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:937)
Jun 01 22:17:10 kopf karaf[31852]:         at java.base/java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:1005)
Jun 01 22:17:10 kopf karaf[31852]:         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
Jun 01 22:17:10 kopf karaf[31852]:         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
Jun 01 22:17:10 kopf karaf[31852]:         at java.base/java.lang.Thread.run(Thread.java:829)

Due to the lack of threads several parts stopped working (e.g. zwave binding, exec things) while others remained working.

Hi @usambara, how did you get the info for that chart? Which binding did you use? I had a similar issue (but don’t have gardena) but don’t have a place to see threads over time. Thanks

Hi,

it’s from the systeminfo binding:
Number num_Server_CPU_Threads "Number of Threads [%d]" {channel="systeminfo:computer:kopf:cpu#threads"}

I’ve got that binding but for some reason that channel is not there, doesn’t exist. I haven’t done file configs, have been using the UI. In theory it should be possible to configure all through the UI, but it seems reality is different.

I think you need to enable "show advanced on the top right of the channels.

Hi everyone,
some time ago I had the same issue with my gardena binding. When the binding was running for some time, I got a lot ‘TimeoutException’ and ’ simultaneous.logins’ errors that slowed down my whole Openhab.
So I downloaded the code of the binding and had a look. I think the problem is, how the binding handles connection losses. The websocket connection to the Gardena API randomly just closes for no obvious reason. This leads to a complete reinitalization of the whole communication instead of just restarting the closed websocket. Also the binding does not properly synchronize the calls from different threads when a websocket closes. So sometimes the binding restarts the connection twices. The longer the binding is running, the more connections/threads are started, which will slow down Openhab.

To resolve this issue, I fixed the handling of websockets and compiled my own binding. I never had issues after that. Connection losses are now properly detected and the websockets are restarted.

You can find the jar file here: click

If this also works for you, I will provide the source code.

Best Nico

1 Like

Why not just provide a Pull Request with your changes ? It will then be reviewed and merged if all is ok.

I just wanted to make sure, that the fix works for everyone, before I provide the Pull Request.
But if it is preferred to provide the Pull Request now, I can do that. :slight_smile:

1 Like

This are wonderful news, Nico!
At the moment testing is a bit difficult as it is winter and I have the binding uninstalled - due to the instabilities it brings.

I’m looking really forward to have your changes in the binding and having the review completed in time for the new gardening season.

Thanks for fixing it!
Really much appreciated!

Hi all,

I upgraded to OpenHAB 3.3.0 some days ago and since then, my log fills with these messages:

[INFO ] [ng.gardena.internal.GardenaSmartImpl] - Restarting GardenaSmart Webservice

Sometimes every two hours, last night basically every two minutes for a longer period.
I didn’t have this issue with OpenHAB 3.2.

Any suggestions?

Hi all!

After upgrading to OH 3.3.0 I have exactly the same Problem.

[INFO ] [ng.gardena.internal.GardenaSmartImpl] - Restarting GardenaSmart Webservice (home-My Garden)

Like siruplex wrote, sometimes after 2 hours, sometimes every 2 minutes. After restarting OH the period of the massages again is 2 hours.

I 've the same. But as it reconnects properly, it seems not to bei a Problem

Hi all,
I am in the same boat here. Log flooding with

Restarting GardenaSmart Webservice

Any tips to avoid this ? log level to WARN ?

Update few hours later, it ends up by :

Restarting GardenaSmart Webservice failed (home-My Garden): Error 429 null, {“message”:“Limit Exceeded”}, restarting binding

Now it is getting even worse. My Gardena Binding goes offline:

*COMMUNICATION_ERROR*
*Error 429 null, {"message":"Limit Exceeded"}*

I guess something changed on Gardena side and they may enforce more strict quotas on queries to the API. Or the OH3.3 API changed the way it is using the API and Gardena does not like it. In short, at the moment the Gardena Binding is of no use for me.

Yesterday, I could get it online again, today it refuses to do so with the same error. Probably I have to wait 24 hours or so, just to run into the next “Limit Exceeded” some hours later. I didn’t change anything on my side besides upgrading to OpenHAB 3.3.

I implemented the following script, triggered every 5 minutes to check if the Gardena Account Thing is Offline and to reactivate it if necessary. I’ve stolen the script with pride from somebody else who offered it as a solution for a different Binding but for the same purpose (and there it works perfectly).

    var thingStatusInfo = getThingStatusInfo("gardena:account:home")

    if ((thingStatusInfo !== null) && (thingStatusInfo.getStatus().toString() == "OFFLINE")) {
         logInfo("test", "Gardena Account Offline, re-enabling in 30 minutes")
         sendHttpPutRequest("http://<USER>:<PASSWORD>@<OpenHAB IP>:<PORT>/rest/things/gardena%3Aaccount%3Ahome/enable","text/plain",'false',5000)

         createTimer(now.plusMinutes(30),  [|
            sendHttpPutRequest("http://<USER>:<PASSWORD>@<OpenHAB IP>:<PORT>/rest/things/gardena%3Aaccount%3Ahome/enable","text/plain",'true',5000)
            logInfo("test", "Gardena Account re-enabled")
         ] )
    }

When it’s detected to be offline, it will re-enable it after 30 minutes. I recommend not to shorten this period otherwise you may potentially start contributing to the “limit exceeded” issue and make it worse.

Make sure you enter your credentials into the script plus IP and Port of your OpenHAB server. Please also check that you are using the correct ID string of your Gardena Account Thing, which may not be “gardena:account:home” in your case (most likely you called it differently than “home”). Don’t forget to adjust the Thing ID in both http request lines as well.

I implemented it on my side around 3 hours ago and it seems to work, let’s see what the mid-term behavior will be. Hope it is of help for you as well. Of course, this is just a kind of work-around to avoid that the Gardena Account is down for days without anyone realizing. The underlying root cause still needs to be fixed in the binding by someone who understands what it going wrong at the end.

FYI, there is a thread focused on the “limit exceeded” issue, I suggest to continue discussing this bug in the other thread: