⚠️ This issue respects the following points: ⚠️
Bug description
When the size of the log file nextcloud.log exceeds a certain size, it will be moved to nextcloud.log.1 and a new empty file nextcloud.log is created. Even if that log rotation is successful, a log entry with level "Warning" will be created:

This warning will show up in Administration > Overview > Security & setup warnings:

Steps to reproduce
- Keep the defaults for the log configuration. Consider lowering
loglevel to 1 or 0 to create more logs in a shorter time period and/or reduce log_rotate_size to a lower value to force earlier log rotation.
- Wait until the log file exceeds the configured size (100 MiB, if you didn't change it in step 1) and gets rotated.
- Find the log entry of type "Warning" as described above.
Expected behavior
No log entry of type "Warning" is generated in case log rotation is successful.
Installation method
Community Manual installation with Archive
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"cloud.huntu.at"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"default_phone_region": "AT",
"dbtype": "mysql",
"version": "28.0.1.1",
"overwrite.cli.url": "https:\/\/cloud.huntu.at",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"maintenance": false,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauth": 1,
"mail_smtpsecure": "tls",
"mail_smtpport": "587",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauthtype": "LOGIN",
"theme": "",
"loglevel": 0,
"mysql.utf8mb4": true,
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"preview_max_memory": -1,
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0,
"timeout": 1.5
},
"updater.release.channel": "stable",
"app_install_overwrite": [
"calendar"
],
"enable_previews": false
}
}
List of activated Apps
Enabled:
- activity: 2.20.0
- admin_audit: 1.18.0
- calendar: 4.6.1
- circles: 28.0.0-dev
- cloud_federation_api: 1.11.0
- contacts: 5.5.0
- contactsinteraction: 1.9.0
- dashboard: 7.8.0
- dav: 1.29.1
- deck: 1.12.0
- federatedfilesharing: 1.18.0
- files: 2.0.0
- files_pdfviewer: 2.9.0
- files_reminders: 1.1.0
- files_sharing: 1.20.0
- files_trashbin: 1.18.0
- files_versions: 1.21.0
- firstrunwizard: 2.17.0
- forms: 4.0.0
- logreader: 2.13.0
- lookup_server_connector: 1.16.0
- nextcloud_announcements: 1.17.0
- notifications: 2.16.0
- oauth2: 1.16.3
- password_policy: 1.18.0
- photos: 2.4.0
- privacy: 1.12.0
- provisioning_api: 1.18.0
- recommendations: 2.0.0
- related_resources: 1.3.0
- richdocuments: 8.3.0
- serverinfo: 1.18.0
- settings: 1.10.1
- sharebymail: 1.18.0
- survey_client: 1.16.0
- systemtags: 1.18.0
- tasks: 0.15.0
- text: 3.9.1
- theming: 2.3.0
- twofactor_backupcodes: 1.17.0
- updatenotification: 1.18.0
- user_status: 1.8.1
- viewer: 2.2.0
- weather_status: 1.8.0
- workflowengine: 2.10.0
Disabled:
- bruteforcesettings: 2.8.0
- checksum: 1.2.2 (installed 1.2.2)
- collectives: 2.9.2 (installed 2.9.2)
- comments: 1.18.0 (installed 1.5.0)
- encryption: 2.16.0
- federation: 1.18.0 (installed 1.6.0)
- files_external: 1.20.0
- files_markdown: 2.4.1 (installed 2.4.1)
- notes: 4.9.1 (installed 4.9.1)
- polls: 6.0.1 (installed 6.0.1)
- quicknotes: 0.8.10 (installed 0.8.10)
- support: 1.11.0 (installed 1.0.0)
- suspicious_login: 6.0.0
- twofactor_totp: 10.0.0-beta.2
- user_ldap: 1.19.0
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
{"reqId":"X9Lu9xmXvf601vTspji6","level":2,"time":"2023-12-29T23:42:02+00:00","remoteAddr":"","user":"--","app":"OC\\Log\\Rotate","method":"","url":"--","message":"Log file \"/srv/nextcloud_data//nextcloud.log\" was over 104857600 bytes, moved to \"/srv/nextcloud_data//nextcloud.log.1\"","userAgent":"--","version":"28.0.1.1","data":{"app":"OC\\Log\\Rotate"}}
Additional info
No response
Bug description
When the size of the log file
nextcloud.logexceeds a certain size, it will be moved tonextcloud.log.1and a new empty filenextcloud.logis created. Even if that log rotation is successful, a log entry with level "Warning" will be created:This warning will show up in Administration > Overview > Security & setup warnings:
Steps to reproduce
loglevelto1or0to create more logs in a shorter time period and/or reducelog_rotate_sizeto a lower value to force earlier log rotation.Expected behavior
No log entry of type "Warning" is generated in case log rotation is successful.
Installation method
Community Manual installation with Archive
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
{ "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "cloud.huntu.at" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "default_phone_region": "AT", "dbtype": "mysql", "version": "28.0.1.1", "overwrite.cli.url": "https:\/\/cloud.huntu.at", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "maintenance": false, "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_sendmailmode": "smtp", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauth": 1, "mail_smtpsecure": "tls", "mail_smtpport": "587", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_smtpauthtype": "LOGIN", "theme": "", "loglevel": 0, "mysql.utf8mb4": true, "memcache.local": "\\OC\\Memcache\\APCu", "memcache.distributed": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "preview_max_memory": -1, "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "timeout": 1.5 }, "updater.release.channel": "stable", "app_install_overwrite": [ "calendar" ], "enable_previews": false } }List of activated Apps
Nextcloud Signing status
Nextcloud Logs
{"reqId":"X9Lu9xmXvf601vTspji6","level":2,"time":"2023-12-29T23:42:02+00:00","remoteAddr":"","user":"--","app":"OC\\Log\\Rotate","method":"","url":"--","message":"Log file \"/srv/nextcloud_data//nextcloud.log\" was over 104857600 bytes, moved to \"/srv/nextcloud_data//nextcloud.log.1\"","userAgent":"--","version":"28.0.1.1","data":{"app":"OC\\Log\\Rotate"}}Additional info
No response