Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pulledpork3 in mode timer is broken #50

Open
Azaretdodo opened this issue Aug 17, 2022 · 1 comment
Open

pulledpork3 in mode timer is broken #50

Azaretdodo opened this issue Aug 17, 2022 · 1 comment

Comments

@Azaretdodo
Copy link

Azaretdodo commented Aug 17, 2022

hello,

pulledpork3 is broken in mode timer since the time i enable the mode pid :

pulledpork3.service - Runs PulledPork3 to update Snort 3 Rulesets
     Loaded: loaded (/lib/systemd/system/pulledpork3.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2022-08-17 15:25:01 CEST; 5s ago
TriggeredBy: ● pulledpork3.timer
    Process: 3852505 ExecStart=/usr/local/bin/pulledpork3/pulledpork.py -c /usr/local/etc/pulledpork3/pulledpork.conf (code=exited, status=1/FAILURE)
   Main PID: 3852505 (code=exited, status=1/FAILURE)
        CPU: 7.959s

août 17 15:25:01 Ubuntu-ThinkPad-X250 pulledpork.py[3852505]:     main()
août 17 15:25:01 Ubuntu-ThinkPad-X250 pulledpork.py[3852505]:   File "/usr/local/bin/pulledpork3/pulledpork.py", line 619, in main
août 17 15:25:01 Ubuntu-ThinkPad-X250 pulledpork.py[3852505]:     log.warning(f'Error loading pid file {conf.pid_file}: {e}')
août 17 15:25:01 Ubuntu-ThinkPad-X250 pulledpork.py[3852505]:   File "/usr/local/bin/pulledpork3/lib/config.py", line 71, in __getattr__
août 17 15:25:01 Ubuntu-ThinkPad-X250 pulledpork.py[3852505]:     raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{key}'")
août 17 15:25:01 Ubuntu-ThinkPad-X250 pulledpork.py[3852505]: AttributeError: 'Config' object has no attribute 'pid_file'
août 17 15:25:01 Ubuntu-ThinkPad-X250 systemd[1]: pulledpork3.service: Main process exited, code=exited, status=1/FAILURE
août 17 15:25:01 Ubuntu-ThinkPad-X250 systemd[1]: pulledpork3.service: Failed with result 'exit-code'.
août 17 15:25:01 Ubuntu-ThinkPad-X250 systemd[1]: Failed to start Runs PulledPork3 to update Snort 3 Rulesets.
août 17 15:25:01 Ubuntu-ThinkPad-X250 systemd[1]: pulledpork3.service: Consumed 7.959s CPU time.

thanks you in advance to help myself repair pulledpork3,

regards.

Azaretdodo.

@moizl599
Copy link

moizl599 commented Jun 2, 2023

Hi did had the same issue and I noticed that there was a syntax issue in the file which led it to be broken I updated the oncalander portion with a space making it look like this :

[Unit]
Description=Run PulledPork3 rule updater for Snort 3 rulesets
RefuseManualStart=no # Allow manual starts
RefuseManualStop=no # Allow manual stops
[Timer]
#Execute job if it missed a run due to machine being off
Persistent=true
#Run 120 seconds after boot for the first time
OnBootSec=120
#Run daily at 1 am
OnCalendar=--* 13:35:00 previously it wasOnCalendar=--*13:35:00
#File describing job to execute
Unit=pulledpork3.service
[Install]
WantedBy=timers.target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants