Struggle Getting Bifrost to Run as a Service at Startup #153
Twenty5Schmeckels
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, thank you for developing bifrost! It solves a lot of the issues I was having with DIYHue, and I was shocked at how easy it was to setup. I just wanted to point out an issue I had getting Bifrost to run as a service at startup incase anyone else encounters it.
The first hurdle I ran into was that since I have Bifrost installed on a debian LXC I was using the root user to install and run the server, this ended up installing it in the root users home folder so it created some permissions hurdles getting it to run as a system user with reduced privileges. Ultimately I moved all the files to a folder i created where the service was recommended and then had to chmod 775 the entire folder, and use chown to reassign ownership to the newly created system user. Not a big deal, but it was a little cryptic so solve. just mentioning that in case anyone else is having trouble and their logs report failing with code 200 / CHDIR.
Anyways the second issue, once i got the service running at startup i was suprised to see the it wasnt showing up in my hue app, ultimately i found that while the system reported the service as running, it was throwing weird errors in the system log. However when i manually restarted the service it started working immediately. Ultimately I added a brief delay to the startup process, and that seems to have resolved it. Now the service reliably starts in less than 10 seconds after rebooting. Might be worth adding to the example file.
Heres what I added at the beginning of the services portion of bifrost.service:
thanks again for the hardwork! Would love to see dimmers and switches get enabled, as there are a few (like the lutron aurora) that are finicky to make work in home assistant, and iconnecthue did such a good job of setting up, but love what youve built so far.
Beta Was this translation helpful? Give feedback.
All reactions