Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some warnings in the log after update to Homebridge 1.3.1 #11

Open
permaMonk opened this issue Feb 24, 2021 · 7 comments
Open

Some warnings in the log after update to Homebridge 1.3.1 #11

permaMonk opened this issue Feb 24, 2021 · 7 comments

Comments

@permaMonk
Copy link

Log
[homebridge-raspberrypi-info] This plugin generated a warning from the characteristic 'S2W2': SET handler returned write response value, though the characteristic doesn't support write response. See https://git.io/JtMGR for more info.

In the Eve app, everything still seems to work.

@TZPete
Copy link

TZPete commented Mar 4, 2021

Same issue here. After updating to Homebridge v1.3.1 & v1.3.2
[04/03/2021, 16:06:37] [homebridge-raspberrypi-info] This plugin threw an error from the characteristic 'Uptime': Unhandled error thrown inside read handler for characteristic: ENOENT: no such file or directory, open '/uptime.txt'. See https://git.io/JtMGR for more info.
[04/03/2021, 16:06:37] [homebridge-raspberrypi-info] This plugin threw an error from the characteristic 'Average Load': Unhandled error thrown inside read handler for characteristic: ENOENT: no such file or directory, open '/uptime.txt'. See https://git.io/JtMGR for more info.
In Eve App Uptime/ Average Load is not shown

@permaMonk
Copy link
Author

The warning are still there - also with Homebridge v1.3.2. But they disappear after several restarts of HB. And sometimes after another restart they come again.

In Eve App Uptime/ Average Load are shown.

@permaMonk
Copy link
Author

After update of "homebridge-config-ui-x" to v4.40.0 today its starting again.

[homebridge-raspberrypi-info] This plugin generated a warning from the characteristic 'S2W2': SET handler returned write response value, though the characteristic doesn't support write response. See https://git.io/JtMGR for more info.​

@TZPete
Copy link

TZPete commented Mar 9, 2021

warnings no longer occurring after search & replace string "/uptime.txt" with "/tmp/uptime.txt" in file "/usr/local/lib/node_modules/homebridge-raspberrypi-info/index.js"

@permaMonk
Copy link
Author

Found "uptime.txt" at 3 places. And all 3 are already set to "/tmp/uptime.txt".

So that doesn't seem to be the cause of the error.

@aebgit
Copy link

aebgit commented Jul 23, 2022

It seems homebridge cannot write to /tmp.
To solve this:

  1. check under which user-account your homebridge is running (it usually pi):
    ps -u | grep homebridge should return something like:
    pi 5379 0.0 0.0 4368 552 pts/1 S+ 10:11 0:00 grep --color=auto homebridge (username is indicated the in first part = pi)

  2. find and replace whatever path is in /usr/lib/node_modules/homebridge-raspberrypi-info/index.jsto /home/<username>/uptime.txt. Replace <username> with the actual username from step 1, so for example /home/pi/uptime.txt

  3. restart homebridge

@permaMonk
Copy link
Author

It seems homebridge cannot write to /tmp. To solve this:

Sorry @aebgit I don’t know why I loose sight of this issue. This was been solved at any point of time. And I don’t know with which version of HB, HB UI or HB Rasberrypi Info.

Yet no problems with:
HB: 1.5.0
HB UI: 4.50
HB Rasberrypi Info: 0.0.5

From my side this issue may be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants