Skip to content

[Bug]: Persistent "errors in the logs" warning in Admin Overview (Nextcloud 31)Β #1674

@eiger3970

Description

@eiger3970

⚠️ This issue respects the following points: ⚠️

Bug description

"errors in the logs" warning in the Administration settings -> Overview page does not clear, even after the nextcloud.log file is confirmed empty/deleted, occ maintenance:repair is run, and the database has been manually inspected.
Mention the specific warning: "259 errors in the logs since June 5, 2025, 4:11:55 PM" (use your current timestamp).

Image

Steps to reproduce

  1. Initial problem: Nextcloud reported X errors in nextcloud.log.
  2. docker-compose stop app
  3. rm data/nextcloud.log (or mv data/nextcloud.log data/nextcloud.log.old)
  4. docker-compose start app
  5. ls -l data/nextcloud.log showed "No such file or directory".
  6. Checked Nextcloud admin overview, warning persisted.
  7. Attempted docker-compose exec -u www-data app php occ log:manage --clear (state that this command failed with "--clear option does not exist").
  8. Logged into MariaDB db container.
  9. TRUNCATE TABLE oc_log; (state this failed with "Table 'nextcloud.oc_log' doesn't exist").
  10. SHOW TABLES; confirmed no oc_log table.
  11. SELECT * FROM oc_appconfig WHERE appid='core'; (state no obvious log error counter was found).
  12. TRUNCATE TABLE oc_filecache; TRUNCATE TABLE oc_authtoken; TRUNCATE TABLE oc_webauthn; TRUNCATE TABLE oc_login_flow_v2; (mention the ones that failed due to non-existence).
  13. docker-compose exec -u www-data app php occ maintenance:repair was run.
  14. Warning still persists in the admin overview after browser refresh.

Expected behavior

The "errors in the logs" warning should disappear from the Administration settings -> Overview page after the log file is cleared and maintenance:repair is run.

Nextcloud Server version

31

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?

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

Nextcloud version: 31.0.4.1 (or whatever your exact version is shown in the admin overview)
Operating system: Ubuntu 20.04 (host)
Web server: Nginx (via Docker)
Database: MariaDB 10.6.21 (from mysql output)
PHP version: (You can get this from docker-compose exec -u www-data app php -v, likely PHP 8.2 or 8.3 in NC31)
Docker version: docker version
Docker Compose version: docker-compose version
Are you using a custom config.php? If yes, mention any non-default log-related settings if you know of any.
Are you running a containerized setup? Yes, via docker-compose.

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Output of ls -l data/nextcloud.log showing "No such file".
Output of docker-compose exec -u www-data app php occ log:manage --clear showing "The "--clear" option does not exist."
Output of MariaDB [nextcloud]> TRUNCATE TABLE oc_log; showing "Table 'nextcloud.oc_log' doesn't exist".
Output of MariaDB [nextcloud]> SELECT * FROM oc_appconfig WHERE appid='core'; (even though it didn't show the key).
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 493
Server version: 10.6.21-MariaDB-ubu2004 mariadb.org binary distribution

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [nextcloud]> SHOW TABLES;
+-----------------------------+
| Tables_in_nextcloud         |
+-----------------------------+
| oc_accounts                 |
| oc_accounts_data            |
| oc_activity                 |
| oc_activity_mq              |
| oc_addressbookchanges       |
| oc_addressbooks             |
| oc_appconfig                |
| oc_appconfig_ex             |
| oc_authorized_groups        |
| oc_authtoken                |
| oc_bruteforce_attempts      |
| oc_calendar_appt_bookings   |
| oc_calendar_appt_configs    |
| oc_calendar_invitations     |
| oc_calendar_reminders       |
| oc_calendar_resources       |
| oc_calendar_resources_md    |
| oc_calendar_rooms           |
| oc_calendar_rooms_md        |
| oc_calendarchanges          |
| oc_calendarobjects          |
| oc_calendarobjects_props    |
| oc_calendars                |
| oc_calendarsubscriptions    |
| oc_cards                    |
| oc_cards_properties         |
| oc_circles_circle           |
| oc_circles_event            |
| oc_circles_member           |
| oc_circles_membership       |
| oc_circles_mount            |
| oc_circles_mountpoint       |
| oc_circles_remote           |
| oc_circles_share_lock       |
| oc_circles_token            |
| oc_collres_accesscache      |
| oc_collres_collections      |
| oc_collres_resources        |
| oc_comments                 |
| oc_comments_read_markers    |
| oc_dav_absence              |
| oc_dav_cal_proxy            |
| oc_dav_shares               |
| oc_direct_edit              |
| oc_directlink               |
| oc_ex_apps                  |
| oc_ex_apps_daemons          |
| oc_ex_apps_routes           |
| oc_ex_deploy_options        |
| oc_ex_event_handlers        |
| oc_ex_occ_commands          |
| oc_ex_settings_forms        |
| oc_ex_speech_to_text        |
| oc_ex_speech_to_text_q      |
| oc_ex_task_processing       |
| oc_ex_text_processing       |
| oc_ex_text_processing_q     |
| oc_ex_translation           |
| oc_ex_translation_q         |
| oc_ex_ui_files_actions      |
| oc_ex_ui_scripts            |
| oc_ex_ui_states             |
| oc_ex_ui_styles             |
| oc_ex_ui_top_menu           |
| oc_external_applicable      |
| oc_external_config          |
| oc_external_mounts          |
| oc_external_options         |
| oc_federated_reshares       |
| oc_file_locks               |
| oc_filecache                |
| oc_filecache_extended       |
| oc_files_metadata           |
| oc_files_metadata_index     |
| oc_files_reminders          |
| oc_files_trash              |
| oc_files_versions           |
| oc_flow_checks              |
| oc_flow_operations          |
| oc_flow_operations_scope    |
| oc_group_admin              |
| oc_group_user               |
| oc_groups                   |
| oc_jobs                     |
| oc_known_users              |
| oc_login_flow_v2            |
| oc_mail_accounts            |
| oc_mail_aliases             |
| oc_mail_attachments         |
| oc_mail_coll_addresses      |
| oc_mail_internal_address    |
| oc_mail_local_messages      |
| oc_mail_mailboxes           |
| oc_mail_message_tags        |
| oc_mail_messages            |
| oc_mail_messages_retention  |
| oc_mail_messages_snoozed    |
| oc_mail_provisionings       |
| oc_mail_recipients          |
| oc_mail_smime_certificates  |
| oc_mail_tags                |
| oc_mail_trusted_senders     |
| oc_migrations               |
| oc_mimetypes                |
| oc_mounts                   |
| oc_notes_meta               |
| oc_notifications            |
| oc_notifications_pushhash   |
| oc_notifications_settings   |
| oc_oauth2_access_tokens     |
| oc_oauth2_clients           |
| oc_open_local_editor        |
| oc_photos_albums            |
| oc_photos_albums_collabs    |
| oc_photos_albums_files      |
| oc_preferences              |
| oc_preferences_ex           |
| oc_privacy_admins           |
| oc_profile_config           |
| oc_properties               |
| oc_ratelimit_entries        |
| oc_reactions                |
| oc_recent_contact           |
| oc_richdocuments_assets     |
| oc_richdocuments_direct     |
| oc_richdocuments_template   |
| oc_richdocuments_wopi       |
| oc_schedulingobjects        |
| oc_sec_signatory            |
| oc_share                    |
| oc_share_external           |
| oc_shares_limits            |
| oc_storages                 |
| oc_storages_credentials     |
| oc_systemtag                |
| oc_systemtag_group          |
| oc_systemtag_object_mapping |
| oc_talk_attachments         |
| oc_talk_attendees           |
| oc_talk_bans                |
| oc_talk_bots_conversation   |
| oc_talk_bots_server         |
| oc_talk_bridges             |
| oc_talk_commands            |
| oc_talk_consent             |
| oc_talk_internalsignaling   |
| oc_talk_invitations         |
| oc_talk_phone_numbers       |
| oc_talk_poll_votes          |
| oc_talk_polls               |
| oc_talk_proxy_messages      |
| oc_talk_reminders           |
| oc_talk_retry_ocm           |
| oc_talk_rooms               |
| oc_talk_sessions            |
| oc_taskprocessing_tasks     |
| oc_text2image_tasks         |
| oc_text_documents           |
| oc_text_sessions            |
| oc_text_steps               |
| oc_textprocessing_tasks     |
| oc_trusted_servers          |
| oc_twofactor_backupcodes    |
| oc_twofactor_providers      |
| oc_user_status              |
| oc_user_transfer_owner      |
| oc_users                    |
| oc_vcategory                |
| oc_vcategory_to_object      |
| oc_webauthn                 |
| oc_webhook_listeners        |
| oc_whats_new                |
+-----------------------------+
172 rows in set (0.001 sec)

MariaDB [nextcloud]> SELECT * FROM oc_appconfig WHERE appid='core';
+-------+---------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+------+
| appid | configkey                 | configvalue                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | type | lazy |
+-------+---------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+------+
| core  | backgroundjobs_mode       | cron                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |    2 |    0 |
| core  | emailTestSuccessful       | 0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |    2 |    0 |
| core  | files_metadata            | {"photos-original_date_time":{"value":null,"type":"int","etag":"","indexed":true,"editPermission":0},"photos-size":{"value":null,"type":"array","etag":"","indexed":false,"editPermission":0},"photos-exif":{"value":null,"type":"array","etag":"","indexed":false,"editPermission":0},"photos-ifd0":{"value":null,"type":"array","etag":"","indexed":false,"editPermission":0},"photos-gps":{"value":null,"type":"array","etag":"","indexed":false,"editPermission":0},"blurhash":{"value":null,"type":"string","etag":"7d362a505fcad0def3a45a711bd3ffd8","indexed":false,"editPermission":0},"photos-place":{"value":null,"type":"string","etag":"","indexed":true,"editPermission":0}} |   64 |    1 |
| core  | installedat               | 1746615490.5131                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |    2 |    0 |
| core  | lastcron                  | 1749736943                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |    8 |    0 |
| core  | lastupdateResult          | {"version":"31.0.6.2","versionstring":"Nextcloud 31.0.6","url":"https:\/\/download.nextcloud.com\/server\/releases\/nextcloud-31.0.6.zip","web":"https:\/\/docs.nextcloud.com\/server\/31\/admin_manual\/maintenance\/upgrade.html","changes":"https:\/\/updates.nextcloud.com\/changelog_server\/?version=31.0.6","autoupdater":"1","eol":"0"}                                                                                                                                                                                                                                                                                                                                           |    2 |    0 |
| core  | lastupdatedat             | 1749737513                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |    8 |    0 |
| core  | metadataGenerationDone    | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |   32 |    0 |
| core  | moveavatarsdone           | yes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |    2 |    0 |
| core  | oc.integritycheck.checker | []                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |   64 |    1 |
| core  | previewsCleanedUp         | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |    2 |    0 |
| core  | public_files              | files_sharing/public.php                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |    2 |    0 |
| core  | vendor                    | nextcloud                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |    2 |    0 |
+-------+---------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+------+
13 rows in set (0.000 sec)


The full output of docker-compose exec -u www-data app php occ maintenance:repair. ubuntu@nextcloud-vps:~$ docker-compose exec -u www-data app php occ maintenance:repair
ERROR: 
        Can't find a suitable configuration file in this directory or any
        parent. Are you in the right directory?

root@nextcloud-vps:/home/ubuntu/nextcloud# docker-compose exec -u www-data app php occ maintenance:repair
 - Repair MySQL collation
     - All tables already have the correct collation -> nothing to do
 - Clean tags and favorites
     - 0 tags of deleted users have been removed.
     - 0 tags for delete files have been removed.
     - 0 tag entries for deleted tags have been removed.
     - 0 tags with no entries have been removed.
 - Repair invalid shares
 - Move .step file of updater to backup location
 - Add move avatar background job
     - Repair step already executed
 - Add preview cleanup background jobs
 - Migrate oauth2_clients table to nextcloud schema
     - Update the oauth2_access_tokens table schema.
     - Update the oauth2_clients table schema.
     - Delete clients (and their related access tokens) with the redirect_uri starting with oc:// or ending with *
 - Repair language codes
 - Add log rotate job
 - Clear frontend caches
     - Image cache cleared
     - JS cache cleared
 - Clear every generated avatar
 - Add preview background cleanup job
 - Queue a one-time job to cleanup old backups of the updater
 - Cleanup invalid photocache files for carddav
 - Add background job to cleanup login flow v2 tokens
 - Remove potentially over exposing share links
     - No need to remove link shares.
 - Clear access cache of projects
 - Reset generated avatar flag
 - Keep legacy encryption enabled
 - Check encryption key format
 - Remove old dashboard app config data
 - Add job to cleanup the bruteforce entries
 - Queue a one-time job to check for user uploaded certificates
 - Repair DAV shares
 - Add background job to set the lookup server share state for users
 - Add token cleanup job
 - Clean up abandoned apps
 - Add possibly missing system config
 - Add AI tasks cleanup jobs
 - Queue a job to generate metadata
 - migrate lazy config values
 - Cache logo dimension to fix size in emails on Outlook
     - Theming is not used to provide a logo
 - Remove legacy ".ocdata" file
 - Add cleanup-deleted-users background job
 - Validate account properties and store phone numbers in a known format for search
     - Queued background to validate account properties.
 - AppAPI Daemons configuration GPU params update
     - Daemons configuration GPU params updated: 0
 - Upgrading Circles App
 - Fix component of birthday calendars
     - 2 birthday calendars updated.
 - Regenerating birthday calendars to use new icons and fix old birthday events without year
     - Repair step already executed
 - Fix broken values of calendar objects
    0 [->--------------------------]
 - Registering building of calendar search index as background job
     - Repair step already executed
 - Register building of social profile search index as background job
     - Repair step already executed
 - Registering background jobs to update cache for webcal calendars
     - Added 0 background jobs to update webcal calendars
 - Registering building of calendar reminder index as background job
     - Repair step already executed
 - Clean up orphan event and contact data
     - 0 events without a calendar have been cleaned up
     - 0 properties without an events have been cleaned up
     - 0 changes without a calendar have been cleaned up
     - 0 cached events without a calendar subscription have been cleaned up
     - 0 changes without a calendar subscription have been cleaned up
     - 0 contacts without an addressbook have been cleaned up
     - 0 properties without a contact have been cleaned up
     - 0 changes without an addressbook have been cleaned up
 - Remove activity entries of private events
     - Removed 0 activity entries
 - Clean up old calendar subscriptions from deleted users that were not cleaned-up
    0 [----->----------------------]
     - 0 calendar subscriptions without an user have been cleaned up
 - Remove invalid object properties
     - 0 invalid object properties removed.
 - Fix the share type of guest shares when migrating from ownCloud
 - Copy the share password into the dedicated column
 - Set existing shares as accepted
 - Restore default tags that are missing
     - Looking up default tags
     - 0 accounts to check found
    0 [--------->------------------]
 - Add a generated message-id to all Mail messages that have none
     - Looking up messages without a message-id
 - Purify and migrate collected mail addresses
    0 [------------->--------------]
 - Insert background jobs for all accounts
    0 [---------------->-----------]
 - Make Mail itinerary extractor executable
 - Create or update provisioned Mail accounts
     - 0 accounts provisioned
 - Repair Broken Threads for all mail accounts
     - Repaired threads, 0 messages updated
 - Queue a job to delete duplicated cached messages
 - Clean up meta table
 - Show a hint about the new editor to existing users
 - Update OAuth token expiration times
 - init metadata
 - Switches from default updater server to the customer one if a valid subscription is available
     - Repair step already executed
 - Migrate some config values to lazy loading
 - Send an admin notification if monthly report is disabled
 - Force-reset all Text document sessions
 - Initialize migration of background images from dashboard to theming app
 - Add background job to check for backup codes
 - Populating added database structures for workflows


        Supported filenames: docker-compose.yml, docker-compose.yaml

Additional info

Output from browser Nextcloud -> Profle -> Administration settings -> Overview:
Security & setup warnings
It's important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the linked documentation for more information.

There are some warnings regarding your setup.
259 errors in the logs since June 5, 2025, 4:28:48β€―PM
The database is used for transactional file locking. To enhance performance, please configure memcache, if available. For more details see the documentation β†—.
You have not set or verified your email server configuration, yet. Please head over to the "Basic settings" in order to set them. Afterwards, use the "Send email" button below the form to verify your settings. For more details see the documentation β†—.
Please double check the installation guides β†—, and check for any errors or warnings in the log.

Check the security of your Nextcloud over our security scan β†—.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions