Giter Site home page Giter Site logo

no logs about homebridge-server HOT 12 CLOSED

gismo141 avatar gismo141 commented on May 23, 2024
no logs

from homebridge-server.

Comments (12)

gismo141 avatar gismo141 commented on May 23, 2024

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.

hirbod avatar hirbod commented on May 23, 2024

Which wiki? My setup is correct. Also added user "homebridge" and it has correct permissions

from homebridge-server.

gismo141 avatar gismo141 commented on May 23, 2024

https://github.com/gismo141/homebridge-server/wiki/Usage

from homebridge-server.

hirbod avatar hirbod commented on May 23, 2024

Thanks. That worked! Didn't see this section.

from homebridge-server.

gismo141 avatar gismo141 commented on May 23, 2024

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.

rjmcfadd avatar rjmcfadd commented on May 23, 2024

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.

gismo141 avatar gismo141 commented on May 23, 2024

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.

rjmcfadd avatar rjmcfadd commented on May 23, 2024

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.

gismo141 avatar gismo141 commented on May 23, 2024

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.

rjmcfadd avatar rjmcfadd commented on May 23, 2024

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.

gismo141 avatar gismo141 commented on May 23, 2024

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.

rjmcfadd avatar rjmcfadd commented on May 23, 2024

No problem! Thanks for helping me, everything seems to be working great now!

from homebridge-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.