Skip to content

/var/log/nextcloud/audit.log is not rotating #2637

@esaumell

Description

@esaumell

Steps To Reproduce

  1. Go to /var/log/nextcloud/
  2. Do a ls -lh
  3. Check audit.log file size
  4. I have two instances created on few years of time span and the oldest one is 3GB and the newer one is 300MB and they do not rotate
  5. nextcloud.log is rotating correctly

Expected Result

They should rotate like nextcloud.log is doing:

-rw-r----- 1 www-data www-data 3.0G May 21 00:49 audit.log
-rw-r----- 1 www-data www-data    0 May 21 00:16 nextcloud.log
-rw-r----- 1 www-data www-data 7.5M May 21 00:16 nextcloud.log.1
-rw-r----- 1 www-data www-data 1.1K May 12 00:00 nextcloud.log.10
-rw-r----- 1 www-data www-data 2.6K May 20 00:00 nextcloud.log.2
-rw-r----- 1 www-data www-data    0 May 19 00:00 nextcloud.log.3
-rw-r----- 1 www-data www-data    0 May 18 00:00 nextcloud.log.4
-rw-r----- 1 www-data www-data 2.5K May 17 00:00 nextcloud.log.5
-rw-r----- 1 www-data www-data    0 May 16 00:00 nextcloud.log.6
-rw-r----- 1 www-data www-data  423 May 15 00:00 nextcloud.log.7
-rw-r----- 1 www-data www-data    0 May 14 00:00 nextcloud.log.8
-rw-r----- 1 www-data www-data 1.9K May 13 00:00 nextcloud.log.9

Actual Result

-rw-r----- 1 www-data www-data 3.0G May 21 00:49 audit.log

Screenshots, Videos, or Pastebins

No response

Additional Context

No response

Build Version

latest stable

Environment

By using the scripts

Environment Details

Linux XXXXXXXXX 5.4.0-177-generic #197-Ubuntu SMP Thu Mar 28 22:45:47 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions