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

Filter out duplicate UUIDs when restoring cache #2856

Closed
GRClark opened this issue Mar 4, 2021 · 4 comments
Closed

Filter out duplicate UUIDs when restoring cache #2856

GRClark opened this issue Mar 4, 2021 · 4 comments
Assignees
Labels

Comments

@GRClark
Copy link

GRClark commented Mar 4, 2021

Hoping someone can help me with errors I’m getting after updating Homebridge this morning. Worked fine beforehand but now I can’t even get Homebridge running - UI X comes up fine.

[3/4/2021, 11:59:13 AM] Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: a67be37e-2900-43f3-97bd-cf9dee2bc67e
at Bridge.Accessory.addBridgedAccessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:563:15)
at /usr/local/lib/node_modules/homebridge/src/bridgeService.ts:326:19
at Array.filter ()
at BridgeService.restoreCachedPlatformAccessories (/usr/local/lib/node_modules/homebridge/src/bridgeService.ts:283:69)
at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:128:24)

@oznu
Copy link
Member

oznu commented Mar 4, 2021

Delete the cachedAccessories file. It's in the "accessories" folder of your homebridge storage directory.

@GRClark
Copy link
Author

GRClark commented Mar 4, 2021

Thanks for the help that solved the issue.

@oznu oznu self-assigned this Mar 4, 2021
@oznu
Copy link
Member

oznu commented Mar 4, 2021

We should check for duplicate UUIDs when restoring and handle it gracefully.

@oznu oznu changed the title Error after updating Filter out duplicate UUIDs when restoring cache Mar 4, 2021
@oznu
Copy link
Member

oznu commented Mar 5, 2021

Homebridge 1.3.3 will gracefully handle and resolve this error itself.

https://github.com/homebridge/homebridge/wiki/Homebridge-Beta-Testing

@oznu oznu closed this as completed Mar 5, 2021
This was referenced Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants