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
Yum Install dependency collision with rsyslog #1384
Comments
@czanik you really want to rename the logrotate file. I think if we should call it |
I had long discussions with Red Hat about it, but renaming it to syslog-ng does not work. The problem is, that if rsyslog stays on the system, logs are rotated twice. If we comment out the content and rsyslog is removed, then we don't have logrotation. |
Well, then let's manage the file using a
what do you think? |
Hello! I have the same problem. I can't delete rsyslog in my virtual machine, because cloud-init requires rsyslog package. |
I can implement the %post script what do you think @czanik? |
I updated my package, and now the two can be installed together:
|
That's great! Tanks a lot! |
Related question: why would you install rsyslog and syslog-ng on the same box? |
I wrote about this above. |
I thought the dependency used to be on libvirt? |
Which exact version of cloud-init do you use? Interestingly the fedora package does not depend on rsyslog but the centos version do. And in the changelog I saw some rsyslog log file parsing change, so the dependency seems genuine. |
|
I think this has been solved. Please reopen if you think it is still an issue. |
This issue still exists on syslog-ng-3.14.1 : Transaction check error: |
I just spin up a centos:latest docker and follow this https://www.syslog-ng.com/community/b/blog/posts/installing-latest-syslog-ng-on-rhel-and-other-rpm-distributions |
Hi Kokan ! I have switched to version 3.17 of syslog-ng and it works fine, no conflict on the /etc/logrotate.d/syslog file. |
I am glad to hear it. |
Hi, |
@oso24 I can reproduce the same with We haven't changed anything logrotate-related in the RPM spec file between v3.22 and v3.27. The actual conflict has been there for a long time, we seem to use the name
I guess this problem was fixed by packaging the exact same logrotate file that rsyslog had. --- a/syslog-ng.logrotate.3.22
+++ b/syslog-ng.logrotate.3.27
@@ -7,6 +7,6 @@
missingok
sharedscripts
postrotate
- /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
+ /usr/bin/systemctl kill -s HUP syslog-ng.service >/dev/null 2>&1 || true
endscript
} @czanik Could you check it, please? |
Strange. I recall fixing this a few releases ago: RHEL 7 should have the "kill -HUP" version (the exact same file as in rsyslog for RHEL 7) and RHEL 8 & Fedora should have the "systemctl" version, but under a different file name. OK, problem found. To have the above setup working, I had some local modifications to syslog-ng.spec and two copies for the logrotate file. Then after a larger upstream .spec file change I simply replaced my own with upstream, and my changes got lots. There is another open logroate related ticket in RH bugzilla. I'll look into these later this week. |
OK. A solution is available for testing, which solves both this issue and https://bugzilla.redhat.com/show_bug.cgi?id=1802165
The fix is currently available in my git snapshot repository at https://copr.fedorainfracloud.org/coprs/czanik/syslog-ng-githead/ If it works, I'll port this to the "official" syslog-ng package in EPEL 8 Please let me know your experiences with this fix! |
@czanik Thank you! It works for me. Could you also create a patch, please, to keep |
Added three files, all with .txt appended to the filename, so I could upload:
spec.diff.txt |
Thanks, I'm opening a PR from it. @oso24 Please let us know if something is wrong. |
Is there an estimate on when a new release of syslog-ng with this fix for RHEL7 will be released? Thanks! |
I just did another little change and waiting for feedback on it: https://lists.balabit.hu/pipermail/syslog-ng/2020-June/025949.html |
Why is there no documentation anywhere for 3.5.6 in EPEL 🥲 |
The documentation marks version dependencies, so you should be fine with the latest version of the documentation. You can use the one on syslog-ng.com, but my preference is using the Axoflow edition here: https://axoflow.com/docs/axosyslog-core/ Also, if you have questions you can ask here on github or use this discord server: https://discord.gg/vsCEkfaUk8 |
syslog-ng
Version of syslog-ng
latest (3/14/17)
The text was updated successfully, but these errors were encountered: