Closed RMCob closed 1 year ago
More info on the problem I am having: Every 2 minutes the plugin aborts and restarts. While other than constantly restarting it appears to be functioning normally in that I can control my devices properly. Here is a snippet from the log file:
Error: EISDIR: illegal operation on a directory, read [9/17/2023, 9:56:12 AM] [eWeLink] Child bridge process ended [9/17/2023, 9:56:12 AM] [eWeLink] Process Ended. Code: 1, Signal: null [9/17/2023, 9:56:19 AM] [eWeLink] Restarting Process... [9/17/2023, 9:56:20 AM] [eWeLink] Launched child bridge with PID 19458 [9/17/2023, 9:56:21 AM] Registering platform 'homebridge-ewelink.eWeLink' [9/17/2023, 9:56:21 AM] [eWeLink] Loaded homebridge-ewelink v11.0.2 child bridge successfully [9/17/2023, 9:56:21 AM] Loaded 2 cached accessories from cachedAccessories.0E7BBECC2D82. [9/17/2023, 9:56:21 AM] [eWeLink] Initialising plugin v11.0.2 | System linux | Node v18.17.1 | HB v1.6.1 | HAPNodeJS v0.11.1... [9/17/2023, 9:56:21 AM] [eWeLink] Plugin initialised. Setting up accessories.... [9/17/2023, 9:56:21 AM] Homebridge v1.6.1 (HAP v0.11.1) (eWeLink) is running on port 30218. [9/17/2023, 9:56:24 AM] [eWeLink] Fetching devices from eWeLink home/id [My Home] [5f20d867f7ab930007a6b80c]. [9/17/2023, 9:56:29 AM] [eWeLink] LAN monitoring started. [9/17/2023, 9:56:29 AM] [eWeLink] [Bedroom Fan] initialising with options {"hideLight":true,"logging":"standard"}. [9/17/2023, 9:56:29 AM] [eWeLink] [Bedroom Fan] initialised and found locally with IP [192.168.1.115] [34:iFan03]. [9/17/2023, 9:56:29 AM] [eWeLink] [Betty’s Office Fan] initialising with options {"hideLight":false,"logging":"standard"}. [9/17/2023, 9:56:29 AM] [eWeLink] [Betty’s Office Fan] initialised and found locally with IP [192.168.1.116] [34:iFan03]. [9/17/2023, 9:56:29 AM] [eWeLink] ✓ Setup complete. This plugin has been made with ♥ by bwp91, please consider a ☆ on GitHub if you are finding it useful! Error: EISDIR: illegal operation on a directory, read [9/17/2023, 9:58:21 AM] [eWeLink] Child bridge process ended [9/17/2023, 9:58:21 AM] [eWeLink] Process Ended. Code: 1, Signal: null [9/17/2023, 9:58:28 AM] [eWeLink] Restarting Process... [9/17/2023, 9:58:29 AM] [eWeLink] Launched child bridge with PID 19604 [9/17/2023, 9:58:30 AM] Registering platform 'homebridge-ewelink.eWeLink' [9/17/2023, 9:58:30 AM] [eWeLink] Loaded homebridge-ewelink v11.0.2 child bridge successfully [9/17/2023, 9:58:30 AM] Loaded 2 cached accessories from cachedAccessories.0E7BBECC2D82. [9/17/2023, 9:58:30 AM] [eWeLink] Initialising plugin v11.0.2 | System linux | Node v18.17.1 | HB v1.6.1 | HAPNodeJS v0.11.1... [9/17/2023, 9:58:30 AM] [eWeLink] Plugin initialised. Setting up accessories.... [9/17/2023, 9:58:30 AM] Homebridge v1.6.1 (HAP v0.11.1) (eWeLink) is running on port 30218. [9/17/2023, 9:58:34 AM] [eWeLink] Fetching devices from eWeLink home/id [My Home] [5f20d867f7ab930007a6b80c]. [9/17/2023, 9:58:38 AM] [eWeLink] LAN monitoring started. [9/17/2023, 9:58:38 AM] [eWeLink] [Bedroom Fan] initialising with options {"hideLight":true,"logging":"standard"}. [9/17/2023, 9:58:38 AM] [eWeLink] [Bedroom Fan] initialised and found locally with IP [192.168.1.115] [34:iFan03]. [9/17/2023, 9:58:38 AM] [eWeLink] [Betty’s Office Fan] initialising with options {"hideLight":false,"logging":"standard"}. [9/17/2023, 9:58:38 AM] [eWeLink] [Betty’s Office Fan] initialised and found locally with IP [192.168.1.116] [34:iFan03]. [9/17/2023, 9:58:38 AM] [eWeLink] ✓ Setup complete. This plugin has been made with ♥ by bwp91, please consider a ☆ on GitHub if you are finding it useful!
This is very strange, I have not seen this before:
Error: EISDIR: illegal operation on a directory, read
I'm guessing it's something to do with the folders/files that the plugin creates to store some cache info.
In your homebridge storage directory (typically /var/lib/homebridge
), do you have two folders in there (amongst others) called:
homebridge-ewelink
bwp91_cache
?Inside both folders should be nothing more than files named as uuids. with no folders inside these ^
Thanks for the suggestion on where to look. There was in fact some crud in /var/lib/homebridge/homebridge-ewelink. Don't know how it got there. I uninstalled the plugin, removed /var/lib/homebridge/homebridge-ewelink and /var/lib/homebridge/bwp91_cache, reinstalled the plugin, and now all is working well again!
What issue do you have? Please be as thorough and explicit as possible.
Per your README I added "debug": true to the configfile and got " [eWeLink] Config entry [debug] is unused and can be removed. "
Details of your setup.
Do you use (1) Homebridge UI-X (2) Homebridge CLI or (3) HOOBS? Homebridge UI-X
Which version of Homebridge/HOOBS do you have? 1.6.1
Which platform do you run Homebridge/HOOBS on (e.g. Raspberry Pi/Windows/HOOBS Box)? Please also mention your version of Node.js/NPM if known. Raspberry Pi 4 nodejs 18.17.1
Which version of this plugin (homebridge-ewelink) do you have? Has the issue started since upgrading from a previous version? Had a problem upgrading to 11.0.2 so went back to 11.0.1. Had same problem so I tried to turn on debug logging which didn't work.
Which eWeLink devices do you have that are causing issues? Please include product models if applicable. iFan03
Please paste any relevant logs below.