homebridge-eufy-security / plugin

Homebridge plugin to control certain Eufy Security devices
Apache License 2.0
166 stars 24 forks source link

[Bug]: latest beta V1.1.1-beta.51 setup works but Homebridge crashes #7

Closed ghost closed 2 years ago

ghost commented 2 years ago

What happened?

A bug happened!

I tried removing the persistent.json in the eufysecurity folder, however this didn't solve it.

Could you support?

Device Type

Doorbell (Supported)

Plugin Version

beta (Best Effort)

HomeBridge Version

v1.4.x (Supported)

NodeJS Version

v16 (Supported)

Operating System

Raspbian 10+ (Supported)

Relevant log output

[11/04/2022, 22:45:37] [EufySecurity] Initializing EufySecurity platform...
[11/04/2022, 22:45:37] [EufySecurity] warning: planned changes, see https://github.com/homebridge-eufy-security/plugin/issues/1
[11/04/2022, 22:45:37] [EufySecurity] Country set: NL
[11/04/2022, 22:45:37] Error: EEXIST: file already exists, copyfile '/var/lib/homebridge/persistent.json' -> '/var/lib/homebridge/eufysecurity/persistent.json'
    at Object.copyFileSync (node:fs:2800:3)
    at new EufySecurityPlatform (/usr/local/lib/node_modules/homebridge-eufy-security/src/platform.ts:138:10)
    at /usr/local/lib/node_modules/homebridge/src/server.ts:440:40
    at Array.forEach (<anonymous>)
    at Server.loadPlatforms (/usr/local/lib/node_modules/homebridge/src/server.ts:372:27)
    at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:159:29)
[11/04/2022, 22:45:37] Got SIGTERM, shutting down Homebridge...
github-actions[bot] commented 2 years ago

Did you check this Common Issues pages ?

jordainfg commented 2 years ago

Hi, I'm getting this as well, did you find a solution? I'm also setting it up in NL

@T18DJ

ghost commented 2 years ago

Hi, I'm getting this as well, did you find a solution? I'm also setting it up in NL

@T18DJ

Hey! I reinstalled the last stable version and then created this ticket. Hopefully the creator can use the feedback and solve the issue for this great plugin!

lenoxys commented 2 years ago

Hello

Ok I see until I provide a fix you can remove the file manually through SSH.

sudo rm -rf /var/lib/homebridge/persistent.json
lenoxys commented 2 years ago

should be good with .52

ghost commented 2 years ago

Solved!