usbguard icon indicating copy to clipboard operation
usbguard copied to clipboard

start usbguard.service with error <Failed with result 'start-limit-hit'.>

Open TheBigFish opened this issue 5 years ago • 4 comments

When systemctl start usbguard.service I got this message:

# sudo systemctl start usbguard.service
# sudo systemctl status usbguard
● usbguard.service - USBGuard daemon
   Loaded: loaded (/lib/systemd/system/usbguard.service; disabled; vendor preset: enabled)
   Active: failed (Result: start-limit-hit) since 三 2020-03-04 03:53:25 CST; 8s ago
     Docs: man:usbguard-daemon(8)
  Process: 2521 ExecStart=/usr/sbin/usbguard-daemon -k -c /etc/usbguard/usbguard-daemon.conf (code=killed, signal=SYS)
 Main PID: 2521 (code=killed, signal=SYS)

systemd[1]: usbguard.service: Unit entered failed state.
systemd[1]: usbguard.service: Failed with result 'signal'.
systemd[1]: usbguard.service: Service hold-off time over, scheduling restart.
systemd[1]: Stopped USBGuard daemon.
systemd[1]: usbguard.service: Start request repeated too quickly.
systemd[1]: Failed to start USBGuard daemon.
systemd[1]: usbguard.service: Unit entered failed state.
systemd[1]: usbguard.service: Failed with result 'start-limit-hit'.

Then I use usbguard-daemon manually start daemon, it can works, and the instuctions such as usbguad block-device also works too. But the rules from rules.conf have no effects, even I reset the daemon.

Thanks in advance!

TheBigFish avatar Mar 05 '20 00:03 TheBigFish

What's your version of usbguard and your operating system? How about the permissions in /etc/usbguard? If you are on a linux distro with SELinux, can you please show us the result of running ls -alZ /etc/usbguard? Also, what does journalctl -b --unit usbguard give you?

genodeftest avatar Mar 05 '20 17:03 genodeftest

@dkopecek, @tweksteen : Is there a place where you collect common troubleshooting info? Or should I open a wiki page for that?

genodeftest avatar Mar 05 '20 17:03 genodeftest

Hello @TheBigFish, As @genodeftest pointed out, there can be a number of reasons why you are experiencing this problem. However, I think it is due to permission inconsistency. Could you tell us what permissions does your /etc/usbguard/rules.conf file have and also who the owner/group is?

Cropi avatar Mar 29 '20 14:03 Cropi

I suspect that you might have the wrong permissions set on the rules.conf file. Please check if your rules.conf file has 600 permissions set. The reason why rules.conf does not have effect when you run usbguard-daemon is because you need to call it with option -c (path to your usbguard-daemon.conf where RulePath is set).

ZoltanFridrich avatar Feb 11 '21 14:02 ZoltanFridrich