Pulled pork error in cron.daily

since the last update I’m getting mail info:

/etc/cron.daily/pulledpork:

You are not using the current version of pulledpork.conf!
Please use the version of pulledpork.conf that shipped with PulledPork v0.7.4!

at /usr/bin/pulledpork line 1795.
You are not using the current version of pulledpork.conf!
Please use the version of pulledpork.conf that shipped with PulledPork v0.7.4!

at /usr/bin/pulledpork line 1795.

Can you please paste the output of rpm -qi pulledpork?

I think the new update from EPEL takes precedence on our package. Can you check please @filippo_carletti?

[root@nethserver ~]# rpm -qi pulledpork
Name        : pulledpork
Version     : 0.7.4
Release     : 1.el7
Architecture: noarch
Install Date: So 27 Sep 2020 10:21:11 CEST
Group       : Unspecified
Size        : 152252
License     : GPLv2+
Signature   : RSA/SHA256, Sa 12 Sep 2020 15:43:01 CEST, Key ID 6a2faea2352c64e5
Source RPM  : pulledpork-0.7.4-1.el7.src.rpm
Build Date  : Sa 12 Sep 2020 15:40:41 CEST
Build Host  : buildvm-ppc64le-38.iad2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : https://github.com/shirkdog/pulledpork
Bug URL     : https://bugz.fedoraproject.org/pulledpork
Summary     : Pulled Pork for Snort and Suricata rule management
Description :
Pulled Pork for Snort and Suricata rule management (from Google code).
[root@nethserver ~]#
1 Like

Confirmed. I don’t understand how I missed the upcoming release notice.

Workaround: change the last line of /etc/pulledpork/pulledpork.conf to version=0.7.4 and line 81 to rule_path=/tmp/tmp.rules.

2 Likes

/etc/pulledpork/pulledpork.conf to version=0.7.4
This entry alrady exists

rule_path=/tmp/tmp.rules

…was empty. I changed it.
Thanks

Issue opened and packages ready for testing: https://github.com/NethServer/dev/issues/6287

@capote, if you want to try, your test case is the number 2 :wink:

1 Like

Fix released.
Thank you again Marko!

1 Like

For completeness: The number of error messages is increasing.

/etc/cron.daily/pulledpork:

Use of uninitialized value $dir_check in -d at /usr/bin/pulledpork line 1719.
Use of uninitialized value $file_check in -w at /usr/bin/pulledpork line 1719.
Use of uninitialized value $dir_check in concatenation (.) or string at /usr/bin/pulledpork line 1720.
Error:  does not exist, please create this directory
at /usr/bin/pulledpork line 1720.
	main::check_file_dir('') called at /usr/bin/pulledpork line 1872
Use of uninitialized value $dir_check in -d at /usr/bin/pulledpork line 1719.
Use of uninitialized value $file_check in -w at /usr/bin/pulledpork line 1719.
Use of uninitialized value $dir_check in concatenation (.) or string at /usr/bin/pulledpork line 1720.
Error:  does not exist, please create this directory
at /usr/bin/pulledpork line 1720.
	main::check_file_dir('') called at /usr/bin/pulledpork line 1872

I hope the fix fixes the bug.
Thank you for your fast reaction.