/var/sagan/fifo 3029761:[*] [03/13/2021 04:08:34] - Attempting to open syslog FIFO (/var/sagan/fifo/sagan.fifo). 3029762:[*] [03/13/2021 04:08:34] - Fifo not found, creating it (/var/sagan/fifo/sagan.fifo). 3029763:[E] [03/13/2021 04:08:34] - Could not create FIFO '/var/sagan/fifo/sagan.fifo'. Abort! /var/log/sagan/stats 3029203:[E] [03/13/2021 04:05:22] - [processors/stats-json.c, line 70] Can't open /var/log/sagan/stats/stats.json - No such file or directory! 3029477:[E] [03/13/2021 04:07:54] - [processors/stats-json.c, line 70] Can't open /var/log/sagan/stats/stats.json - Permission denied!
Created attachment 691257 [details] sagan-2.0.1-r3.ebuild.patch Does this work for you?
...?
Trying now
This is wrong keepdir /var/log/sagan{,stats} Let me try again with keepdir /var/log/sagan/{,stats}
The two issues mentioned above are fixed now Let me check if logrotate complain about the permissions
Nope L'unità logrotate.service ha iniziato la fase di avvio. mar 15 02:01:38 ALESSAND-F1E8 logrotate[54404]: error: skipping "/var/log/sagan/alert" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation. mar 15 02:01:38 ALESSAND-F1E8 logrotate[54404]: error: skipping "/var/log/sagan/sagan.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for ro tation. mar 15 02:01:38 ALESSAND-F1E8 logrotate[54404]: error: skipping "/var/log/sagan/sagan.stats" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation. mar 15 02:01:38 ALESSAND-F1E8 systemd[1
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e7e6c33f5a2f02cf74a4851b858b63ab91e6e5d commit 6e7e6c33f5a2f02cf74a4851b858b63ab91e6e5d Author: Sam James <sam@gentoo.org> AuthorDate: 2021-03-15 01:19:14 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-03-15 01:19:14 +0000 app-admin/sagan: fix log and runtime directory permissions Closes: https://bugs.gentoo.org/775902 Signed-off-by: Sam James <sam@gentoo.org> .../sagan/{sagan-2.0.1-r3.ebuild => sagan-2.0.1-r4.ebuild} | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a0d469ed446b082600e3f4c7db0472dccd87d58 commit 0a0d469ed446b082600e3f4c7db0472dccd87d58 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-03-15 01:25:33 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-03-15 01:25:33 +0000 app-admin/sagan: add warning to fix permissions for older installs Bug: https://bugs.gentoo.org/775902 Signed-off-by: Sam James <sam@gentoo.org> app-admin/sagan/sagan-2.0.1-r4.ebuild | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
Thanks for the feedback. Hope this works. I'm not a user of Sagan, so I'm kind of working blindish here, but trying to test it.