chrivers / chrivers/bifrost

Error pairing with Hue Bridge

Open
#152 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
430
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Here's a fun one.

With a fresh setup:
- Freshly-installed official Hue app (iOS 26)
- Fresh install of Bifrost on its own VM from source (to avoid weird Home Assistant port collisions with `:80/:443`)
- New certificate generated, etc

I'm getting pairing errors:

```
Nov 04 23:19:18 bifrost bifrost[548]: bifrost::server: Config changed, saving..
Nov 04 23:22:13 bifrost bifrost[548]: bifrost::routes::api: post: b"{\"devicetype\":\"Hue#iPhone\",\"generateclientkey\":true}"
Nov 04 23:22:13 bifrost bifrost[548]: bifrost::routes: V1 request failed: No such file or directory (os error 2)
Nov 04 23:22:14 bifrost bifrost[548]: bifrost::routes: V1 request failed: No such file or directory (os error 2)
Nov 04 23:22:15 bifrost bifrost[548]: bifrost::routes: V1 request failed: No such file or directory (os error 2)
Nov 04 23:22:16 bifrost bifrost[548]: bifrost::routes: V1 request failed: No such file or directory (os error 2)
Nov 04 23:22:17 bifrost bifrost[548]: bifrost::routes: V1 request failed: No such file or directory (os error 2)
Nov 04 23:22:18 bifrost bifrost[548]: bifrost::routes: V1 request failed: No such file or directory (os error 2)
Nov 04 23:22:20 bifrost bifrost[548]: bifrost::routes: V1 request failed: No such file or directory (os error 2)
Nov 04 23:22:21 bifrost bifrost[548]: bifrost::routes: V1 request failed: No such file or directory (os error 2)
Nov 04 23:22:21 bifrost bifrost[548]: bifrost::routes: V1 request failed: No such file or directory (os error 2)
Nov 04 23:22:22 bifrost bifrost[548]: bifrost::routes: V1 request failed: No such file or directory (os error 2)
Nov 04 23:22:23 bifrost bifrost[548]: bifrost::routes: V1 request failed: No such file or directory (os error 2)
... etc
```

I'm running Bifrost under `systemd`:

```
root@bifrost:~# systemctl cat bifrost
# /etc/systemd/system/bifrost.service
[Unit]
Description=Bifrost Hue Emulator
After=network.target

[Service]
ExecStart=/usr/local/bin/bifrost
Restart=on-failure
WorkingDirectory=/etc/bifrost

[Install]
WantedBy=multi-user.target
```

Here's the *extra* weird thing: when I copy `config.yml` to `~/` and run `bifrost` in the shell, it came up fine, paired, and even showed the Z2M groups I'd created.

Then I `cp *.yml /etc/bifrost/ && cp cert.pem /etc/bifrost/` and started Bifrost again. It worked!

Fun fun fun! I couldn't track down where `V1 request failed...` was coming from in the code, but then I'm not familiar with Rust so 🤷🏻
Any ideas?

Image

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.