Dashboard Widget Latest Activity doesn't update

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu Server 24.04.2
  • Web server and version (e.g, Apache 2.4.25):
    • 2.4.58
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • None
  • PHP version (e.g, 8.3):
    • 8.3.19
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes (but it's been like this for nearly a month)
  • When did this problem seem to first start?
    • 24 days ago
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Bare metal
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

The Latest Activity widget on my dashboard hasn’t updated for almost a month. The All Activity page shows updates as expected.

There’s a similar thread from 2022 that hasn’t been resolved.

I have searched the forum and FAQ, but I can’t find anything to remedy this.

Steps to replicate it (hint: details matter!):

  1. Perform a change to a document
  2. Observe the change being announced on the Activities Page
  3. Observe if the change is being announced on the Activities dashboard widget

Log entries

Nextcloud

Not sure what to look for

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

Not sure what to look for

Configuration

Nextcloud

$ sudo -u www-data php /var/www/nextcloud/occ config:list system
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "default_phone_region": "DK",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "domain.net",
            "10.0.0.30"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "31.0.2.1",
        "overwrite.cli.url": "https:\/\/domain.net",
        "htaccess.RewriteBase": "\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance_window_start": 1,
        "simpleSignUpLink.shown": false,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 3,
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [],
        "maintenance": false,
        "theme": "",
        "forbidden_filename_basenames": [
            "con",
            "prn",
            "aux",
            "nul",
            "com0",
            "com1",
            "com2",
            "com3",
            "com4",
            "com5",
            "com6",
            "com7",
            "com8",
            "com9",
            "com\u00b9",
            "com\u00b2",
            "com\u00b3",
            "lpt0",
            "lpt1",
            "lpt2",
            "lpt3",
            "lpt4",
            "lpt5",
            "lpt6",
            "lpt7",
            "lpt8",
            "lpt9",
            "lpt\u00b9",
            "lpt\u00b2",
            "lpt\u00b3"
        ],
        "forbidden_filename_characters": [
            "<",
            ">",
            ":",
            "\"",
            "|",
            "?",
            "*",
            "\\",
            "\/"
        ],
        "forbidden_filename_extensions": [
            " ",
            ".",
            ".filepart",
            ".part"
        ],
        "defaultapp": ""
    }
}

Apps

$ sudo -u www-data php /var/www/nextcloud/occ app:list

Enabled:
  - activity: 4.0.0
  - app_api: 5.0.2
  - bruteforcesettings: 4.0.0
  - calendar: 5.2.0
  - cfg_share_links: 7.0.1
  - circles: 31.0.0
  - cloud_federation_api: 1.14.0
  - comments: 1.21.0
  - contacts: 7.0.4
  - contactsinteraction: 1.12.0
  - dashboard: 7.11.0
  - dav: 1.33.0
  - federatedfilesharing: 1.21.0
  - federation: 1.21.0
  - files: 2.3.1
  - files_downloadlimit: 4.0.0
  - files_pdfviewer: 4.0.0
  - files_reminders: 1.4.0
  - files_sharing: 1.23.1
  - files_trashbin: 1.21.0
  - files_versions: 1.24.0
  - firstrunwizard: 4.0.0
  - integration_mastodon: 3.1.1
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - mail: 4.3.1
  - nextcloud_announcements: 3.0.0
  - notes: 4.11.0
  - notifications: 4.0.0
  - oauth2: 1.19.1
  - password_policy: 3.0.0
  - photos: 4.0.0-dev.1
  - privacy: 3.0.0
  - profile: 1.0.0
  - provisioning_api: 1.21.0
  - recommendations: 4.0.0
  - related_resources: 2.0.0
  - richdocuments: 8.6.3
  - richdocumentscode: 24.4.1302
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - sharebymail: 1.21.0
  - socialsharing_email: 3.3.0
  - support: 3.0.0
  - survey_client: 3.0.0
  - suspicious_login: 9.0.1
  - systemtags: 1.21.1
  - text: 5.0.0
  - theming: 2.6.1
  - twofactor_backupcodes: 1.20.0
  - twofactor_totp: 13.0.0-dev.0
  - unroundedcorners: 1.1.4
  - updatenotification: 1.21.0
  - user_status: 1.11.0
  - viewer: 4.0.0
  - weather_status: 1.11.0
  - webhook_listeners: 1.2.0
  - workflowengine: 2.13.0
Disabled:
  - admin_audit: 1.21.0
  - deck: 1.15.0 (installed 1.15.0)
  - encryption: 2.19.0
  - files_external: 1.23.0
  - geoblocker: 0.5.16 (installed 0.5.16)
  - news: 25.3.0 (installed 25.3.0)
  - riotchat: 0.18.8 (installed 0.18.7)
  - tasks: 0.16.1 (installed 0.16.1)
  - twofactor_nextcloud_notification: 5.0.0 (installed 4.0.0)
  - user_ldap: 1.22.0

Thank you in advance
:slight_smile:

#appActivity nc31

only on the dasboard or apps/activity/all also?

Hello

The All Activities page works just fine.

Is there anything visible in the browser logs/console?
Or have you tried different browsers?

If there’s anything in the logs, I don’t know what to look for. There are no immediate entries from when I log in.

I have tried across an array of browsers: Chrome, Firefox, Edge for Windows and Firefox and Brave for Fedora Workstation. Same thing in all browsers.

ok, but have you already set the nc log to debug?
If it’s the same for all browsers, then there should be something in the NC.

You could also try the following:
and check after each step, point 4 only when the others have not yielded anything

  1. set log level to debug
  2. occ integrity:check-app dashboard
  3. occ integrity:check-app activity
  4. occ maintenance:repair but to be on the safe side, make a backup first

Ok, thanks. I’m not sure what to look for, though.

I’ve set the log level to Debug

After doing occ integrity:check-app I got:

[no app in context] Fejlfinding: OCA\Richdocuments\Controller\SettingsController::getJsonFontList uses the @NoCSRFRequired annotation and should use the #[OCP\AppFramework\Http\Attribute\NoCSRFRequired] attribute instead
GET /apps/richdocuments/settings/fonts.json
fra 123.456.78 af ? kl. 26. mar. 2025, 16.52.48

after doing occ check-app activity I got

[core] Fejlfinding: The loading of lazy AppConfig values have been triggered by app “core”
fra ? af ? kl. 26. mar. 2025, 16.55.19

Logging in as a regular user I caught this one, just now:

[activity] Fejlfinding: OCA\Files_Sharing\Activity\Providers\RemoteShares::parse() threw \InvalidArgumentException which is deprecated. Throw \OCP\Activity\Exceptions\UnknownActivityException when the event is not known to your provider and otherwise handle all \InvalidArgumentException yourself.
GET /ocs/v2.php/apps/dashboard/api/v2/widget-items?widgets%5B%5D=activity
fra 12.34.567.890 af lmsoren kl. 26. mar. 2025, 17.13.15

Don’t know if that gives you anything?

I have downloaded an entire logfile, if you’re interested?

On a side note: The Notes app doesn’t sync, and hasn’t done so for quite a while. I don’t know it there’s a connection?

But it seems there is a current entry, no?

Okay, but I’m not sure what that means? I don’t see anything connected to this, that brings me closer to a solution?

The question is, did you see the new entry?
But it sounds not so.

No, I don’t really see anything that could be a clue as to why the app has stopped working.

The web Activites page updates, the mobile Activities app updates. Everything but the dashboard is fine.

But thanks for your help, anyway :+1:

Have you tried deactivating and reactivating the app?
And also removing it from the dashboard and putting it back in?

Yes, I have deactivated and reactivated the app. Removed it from the dashboard and put it back on.

After reactivating, the Activities pages was perfectly able to display my latest activities, but the dashboard app wasn’t.