-
Notifications
You must be signed in to change notification settings - Fork 636
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
rsyslogd 8.2310.0-4.el9 throws imjournal: open() failed for path: '/var/lib/rsyslog/imjournal.state.tmp': Operation not permitted [v8.2310.0-4.el9 try https://www.rsyslog.com/e/2433 ] #5375
Comments
The same for me. This is not due to missing
|
But it's complaining about |
Yes they do. Restarting the service, or even rebooting the host, causes the same issue. |
Same for me on a RHEL 9.4. Persist after restart of service and reboot of server. |
I think since this patch was backported I am still confused exactly to what is going but I believe rsyslogd no longer supports the legacy configuration
in particular the cratemode is ignored and default Umask from the unit is tried. 0640 and this is then denied due to:
in the unit. Fixes seem to be overriding
Note this is the default format of EL9 to use this method configuration. Need to check this again some time. |
this now sounds like a packaging bug. It would be good to report this to RH @Cropi any idea? |
Had the same problem on RH 9.4. Removed 8.2310 and installed 8.2102. Lost my configuration in the process and redid it, this time I left the default config and put overrides in conf.d. Forgot to pin the version and auto update moved it back to 8.2310 the next day and it's still working. Haven't had time to restore an image with the old configuration to see what the differences are. |
Well its a back port that introduces unexpected features. .. Given that |
Well, $ModLoad works, but the mask is a breaking change (as was discussed in the mentioned issue tracker). So depending on RH's default config, they need to change packaging. Just trying to get it straight. In any case, it's a good idea to move forward to the advanced format. It's much clearer. |
On Sat, 18 May 2024, Steve Traylen wrote:
I am still confused exactly to what is going but I believe rsyslogd no longer supports the legacy configuration
no, support has not been dropped.
```
$ModLoad imjournal
$FileCreateMode 0600
```
in particular the cratemode is ignored and default Umask from the unit is tried. 0640 and this is then denied due to:
but if you ar expecting the filecreatemode to affect the loading of imjournal,
then it needs to be set before you do the modload.
David Lang
…
```
RestrictSUIDSGID=yes
```
in the unit.
Fixes seem to be overriding `RestrictSUIDSGID` to `no` in the unit file which is probably a bad thing to do or
better switching to the non-legacy format from $ModLoad. i.e
```
#$ModLoad imjournal
module(load="imjournal"
UsePid="system" # PID nummbe
FileCreateMode=0600
StateFile="imjournal.state")
```
Note this is the default format of EL9 to use this method configuration.
Need to check this again some time.
|
@davidelang just confirming that changing the order of:
to
does indeed fix things after this patch 👍 |
For info if anyone else has the misfortune of running EL7 still then the order must be kept as it is. |
That sounds like a bug in the old version. I overlooked it, but in obsolete legacy style you always need to set params before they are used (one important reason we switched to the new style). Just FYI. |
Expected behavior
No errors
Actual behavior
Upon upgrading rsyslog from a previous working version (rsyslog-8.2102.0-117.el9.x86_64.rpm) to the latest offered within Oracle 9 repos (just recently added) rsyslog-8.2310.0-4.el9.x86_64.rpm results in:
No idea what the real impact of this is either.
Steps to reproduce the behavior
Upgrade to rsyslog-8.2310.0 using yum/dnf.
Environment
BROKEN:
WORKING:
The text was updated successfully, but these errors were encountered: