#12398 Fix logrotate on kojipkgs01/02
Closed: Fixed 4 months ago by zlopez. Opened a year ago by kevin.

kojipkgs01/02 seem to be keeping lots of log files.

This is due to the logrotate for httpd having:

/var/log/httpd/*log

but the logs seem to be:

kojipkgs01.iad2.fedoraproject.org-error.log.2025-01-20

So, we should adjust this so they match up and are compressed/rotated correctly.
We also aren't saving these logs to log01 like we do for other httpd logs, we should perhaps add that.


Metadata Update from @phsmoura:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: low-trouble, medium-gain, ops

a year ago

You can assign it to me , I can take a look

Added you to ticket here so you should be able to assign yourself. ;)

Metadata Update from @seddik:
- Issue assigned to seddik

a year ago

ok, we merged the pr, but... something is still not right here:

total 2742028
-rw-r--r--. 1 root root 881843690 May 31 20:27 kojipkgs01.iad2.fedoraproject.org-access.log.2025-0
5-31
-rw-r--r--. 1 root root 871264609 May 31 20:27 access_log                                         
-rw-r--r--. 1 root root   9744879 May 31 20:27 kojipkgs01.iad2.fedoraproject.org-error.log.2025-05
-31                                              
-rw-r--r--. 1 root root         0 May 31 00:36 kojipkgs01.iad2.fedoraproject.org-error.log.2025-05
-30
-rw-r--r--. 1 root root         0 May 31 00:36 kojipkgs01.iad2.fedoraproject.org-error.log.2025-05
-29
-rw-r--r--. 1 root root         0 May 31 00:36 kojipkgs01.iad2.fedoraproject.org-error.log.2025-05
-28
-rw-r--r--. 1 root root         0 May 31 00:36 kojipkgs01.iad2.fedoraproject.org-error.log.2025-05
-27
-rw-r--r--. 1 root root         0 May 31 00:36 kojipkgs01.iad2.fedoraproject.org-error.log.2025-05
-26
-rw-r--r--. 1 root root         0 May 31 00:36 kojipkgs01.iad2.fedoraproject.org-error.log.2025-05
-25
-rw-r--r--. 1 root root         0 May 31 00:36 kojipkgs01.iad2.fedoraproject.org-error.log.2025-05
-24
-rw-r--r--. 1 root root         0 May 31 00:36 kojipkgs01.iad2.fedoraproject.org-error.log.2025-05
-23
...
-rw-r--r--. 1 root root        32 May 29 00:40 error_log-20250530.xz
-rw-r--r--. 1 root root  67036372 May 29 00:40 access_log-20250529.xz
-rw-r--r--. 1 root root  66933916 May 28 23:59 kojipkgs01.iad2.fedoraproject.org-access.log.2025-0
5-28-20250529.xz
...

So it's working, but there's also a bunch of 0 length non compressed versions?

@seddik might you be able to look at why it's recompressing 0 legnth things?

Issue tagged with: sprint-0

4 months ago

Metadata Update from @james:
- Issue untagged with: sprint-0
- Issue assigned to james (was: seddik)

4 months ago

Going to take a look to see what else needs to be done on this, I looked at a couple of other similar problems post DC move so hopefully can close this out soon.

Issue tagged with: sprint-0

4 months ago

Metadata Update from @james:
- Issue untagged with: low-trouble
- Issue tagged with: medium-trouble

4 months ago

Hopefully everything is fixed now. Crossing fingers that I don't have to reopen it.

Metadata Update from @james:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

4 months ago

Issue status updated to: Open (was: Closed)

4 months ago

@carlwgeorge Any reason why you re-opened this ticket?

Metadata Update from @zlopez:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

4 months ago

Metadata Update from @zlopez:
- Issue untagged with: sprint-0

12 days ago

Log in to comment on this ticket.

Metadata
Boards 1
ops Status: Backlog
Related Pull Requests
  • #2478 Merged 8 months ago