Skip to content
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

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

Closed
esaumell opened this issue May 20, 2024 · 0 comments · Fixed by #2639
Closed

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

esaumell opened this issue May 20, 2024 · 0 comments · Fixed by #2639
Labels

Comments

@esaumell
Copy link

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

@esaumell esaumell added the bug label May 20, 2024
enoch85 added a commit that referenced this issue May 24, 2024
fix #2637

Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
enoch85 added a commit that referenced this issue May 24, 2024
fix #2637

Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant