Comments (12)
Hey please check the wiki pages for nearly all your problems, it seems that you have not given the correct rights to your user executing the homebridge!
There is an extra section just for systemd!
from homebridge-server.
Which wiki? My setup is correct. Also added user "homebridge" and it has correct permissions
from homebridge-server.
https://github.com/gismo141/homebridge-server/wiki/Usage
from homebridge-server.
Thanks. That worked! Didn't see this section.
from homebridge-server.
No problem!
I think I should add the link to the projects-README (maybe just for this startup-system-cases.
I'll push an update in half an hour or so for the hotlink-problem.
May I close this one?
from homebridge-server.
I am having this problem too as well as reboot not doing anything.
I followed the wiki and entered
sudo usermod -a -G systemd-journal homebridge
When I click log it's blank and shows this in the terminal window
[Homebridge Server] Executing: journalctl --no-pager -u homebridge --since yesterday
from homebridge-server.
What is the username executing your homebridge-service?
Depending on the way you added the user, you could try to login as this user and issue the same commands.
I'm going to make the log-messages more verbose to help users identify the specific problems.
from homebridge-server.
Thank you for the help. I think the username is either pi or homebridge.
I figured out the problem with the log. I didn't copy my config file from /home/pi/.homebridge to /var/homebridge.
I'm still having trouble with the rebooting though. When I click reboot, this appears in the log
Jan 13 16:37:01 raspberrypi homebridge[412]: [1/13/2017, 4:37:01 PM] [Homebridge Server] Executing: journalctl --no-pager -u homebridge --since yesterday
Jan 13 16:37:26 raspberrypi sudo[1193]: pam_unix(sudo:auth): conversation failed
Jan 13 16:37:26 raspberrypi sudo[1193]: pam_unix(sudo:auth): auth could not identify password for [homebridge]
Jan 13 16:37:26 raspberrypi homebridge[412]: [1/13/2017, 4:37:26 PM] [Homebridge Server] Executing: sudo systemctl restart homebridge
from homebridge-server.
The username is very important for the command you entered.
The sudo usermod -a -G systemd-journal homebridge
means basically that the super user modifies the rights of user homebridge
adds him to the group systemd-journal
grants him the ability to read the systemd logs.
You can see the user in the homebridge.service
-file and should adapt the call accordingly.
For example if the user you're using to execute is pi then the call should look like:
sudo usermod -a -G systemd-journal pi
As well you need to add the user to the needed sudoers-file according to the wiki because a normal unix-user is not allowed to execute the wanted commands.
from homebridge-server.
Ok thanks for the reply. The user is homebridge but the problem was with the sudoers file because my systemctl file is located at /bin/systemctl not /usr/bin/systemctl.
from homebridge-server.
Ah okay, sorry for that. I'll add that to the wiki ASAP.
Thanks for the reply and I hope everything is working now ;)
from homebridge-server.
No problem! Thanks for helping me, everything seems to be working great now!
from homebridge-server.
Related Issues (20)
- Confirmation window before removing HOT 1
- Log page HOT 1
- Does not work with journalctl and sudo HOT 2
- can get it to work right HOT 3
- Reboot issue on MacOS HOT 5
- Platform not loading HOT 2
- Trying to install homebridge-server HOT 8
- npm install|uninstall not working HOT 1
- try the 'Log' page then throw this HOT 3
- Possibility to define the "system" log name HOT 1
- Platform does not load HOT 1
- Understanding the installation process HOT 2
- Can make it to work - please assist HOT 2
- Installing Error HOT 10
- log - use of journalctl requires sudo HOT 3
- Graphics changed? HOT 8
- Cannot read property HOT 2
- restart not working (Mac launchd) HOT 3
- Server working, but the site closes upon trying to make a change. HOT 1
- Nobee needs help! What is my problem? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-server.