[MXS-4227] MaxCtrl incompatibility with MemoryDenyWriteExecute=true is not documented Created: 2022-07-30 Updated: 2022-09-01 Resolved: 2022-09-01 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Documentation |
| Affects Version/s: | 6.4.1 |
| Fix Version/s: | 2.5.22, 6.4.3 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Nikita Borisenkov | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian GNU/Linux 11 (bullseye) |
||
| Description |
|
I ran into a problem that maxscale logs are not rotated
As a result, a new /var/log/maxscale/query_audit file are not created
maxscale version: 6.4.1~bullseye-1 I did a little research and found out that the problem is in the "MemoryDenyWriteExecute=true" parameter in the "/lib/systemd/system/logrotate.service" file. From man systemd.exec:
How to reproduce this issue:
Accordingly, there should be a configuration for maxscale log rotation and the log file must exist. Workaround: Set "MemoryDenyWriteExecute=false" in logrotate systemd unit |
| Comments |
| Comment by markus makela [ 2022-08-01 ] | ||||||||||||||||||||||||
|
This might be expected behavior as MaxCtrl is based on NodeJS:
If I'd have to guess, I'd say all MaxCtrl commands will behave exactly the same and this has nothing to do with the rotate logs command in particular. This also seems like something you can't even use with NodeJS in general:
So far the only solution is to not use it and to docuent this limitation in the MaxCtrl documentation. | ||||||||||||||||||||||||
| Comment by markus makela [ 2022-08-30 ] | ||||||||||||||||||||||||
|
We'll add a note to the MaxCtrl documentation about this limitation in NodeJS. |