Bug 55764 - opa.log is not rotated even if rotation settings are set.
opa.log is not rotated even if rotation settings are set.
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: HTTP-API (Kelvin)
UCS@school 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
: 56635 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-02-27 14:47 CET by Dirk Ahrnke
Modified: 2024-02-06 15:33 CET (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.103
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023092021000301
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Ahrnke univentionstaff 2023-02-27 14:47:40 CET
UCS: 5.0-3 errata594
ucsschool-kelvin-rest-api=1.8.5

opa.log is not rotated (while Bug 54247 is not closed here the corresponding issue in gitlab is)

root@primus:~# univention-app shell ucsschool-kelvin-rest-api
/kelvin # ucr search opa
logrotate/opa/compress: 

logrotate/opa/create: 

logrotate/opa/missingok: 

logrotate/opa/notifempty: 

logrotate/opa/rotate/count: 30

logrotate/opa/rotate: daily

/kelvin # ash -x /etc/periodic/daily/logrotate
+ '[' -f /etc/conf.d/logrotate ]
+ . /etc/conf.d/logrotate
+ CPULIMIT=50
+ '[' -x /usr/bin/cpulimit ]
+ /usr/sbin/logrotate /etc/logrotate.conf
warning: Potentially dangerous mode on opa: 0666
error: Ignoring opa because it is writable by group or others.
+ EXITVALUE=0
+ '[' 0 '!=' 0 ]
+ exit 0
/kelvin # ls -l /etc/logrotate.d/
total 12
-rw-r--r--    1 root     root           140 Jan 24 05:32 acpid
-rw-rw-rw-    1 root     root           613 Feb 23 16:22 opa
-rw-r--r--    1 root     root            43 Feb 10 06:38 openrc
/kelvin #
Comment 1 Dirk Ahrnke univentionstaff 2023-09-20 15:09:12 CEST
5.0-4 errata801
ucsschool-kelvin-rest-api=1.8.10

it shouldnt be a big task to change the file permissions

root@server:~# univention-app shell ucsschool-kelvin-rest-api
/kelvin # ls -l /etc/logrotate.d/opa
-rw-rw-rw-    1 root     root           613 Sep 12 12:12 /etc/logrotate.d/opa
Comment 3 Jan-Luca Kiok univentionstaff 2024-02-06 15:29:44 CET
*** Bug 56635 has been marked as a duplicate of this bug. ***