No app in context Share notification mail could not be sent to: xxx

This is fresh install of Nextcloud - **[Nextcloud Hub 10]

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 10 (31.0.5)
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04.2 LTS
  • Web server and version (e.g, Apache 2.4.25):
    • Apache/2.4.63
  • PHP version (e.g, 8.3):
    • PHP 8.3
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • After the frest install- working fine with Nextcloud 29

I have configured SMTP and tested it. The emails is coming through within the domain but the external users are not receiving the share notification.

Log entries

“reqId”: “v3fKbzO4jhY1OeaVFSn0”,
“level”: 3,
“time”: “2025-06-02T08:21:42+00:00”,
“remoteAddr”: “bbb”,
“user”: “bbb”,
“app”: “no app in context”,
“method”: “POST”,
“url”: “/ocs/v2.php/apps/files_sharing/api/v1/shares”,
“message”: “Share notification mail could not be sent to: abcd@gmail.com”,
“userAgent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0”,
“version”: “31.0.5.1”,
“data”: ,
“id”: “683d61c902f64”
}

Apps

Enabled:

  • activity: 4.0.0
  • admin_audit: 1.21.0
  • bruteforcesettings: 4.0.0
  • circles: 31.0.0
  • cloud_federation_api: 1.14.0
  • comments: 1.21.0
  • contacts: 7.1.1
  • 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_antivirus: 6.0.2
  • files_automatedtagging: 2.0.0
  • files_downloadlimit: 4.0.0
  • files_external: 1.23.0
  • files_pdfviewer: 4.0.0
  • files_reminders: 1.4.0
  • files_retention: 2.0.1
  • files_sharing: 1.23.1
  • files_trashbin: 1.21.0
  • files_versions: 1.24.0
  • firstrunwizard: 4.0.0
  • hsts: 0.9.0
  • logreader: 4.0.0
  • lookup_server_connector: 1.19.0
  • mail: 5.1.1
  • nextcloud_announcements: 3.0.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
  • quota_warning: 1.21.0
  • recommendations: 4.0.0
  • related_resources: 2.0.0
  • serverinfo: 3.0.0
  • settings: 1.14.0
  • sharebymail: 1.21.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
  • updatenotification: 1.21.0
  • user_retention: 1.14.0
  • user_saml: 6.6.0
  • user_status: 1.11.0
  • viewer: 4.0.0
  • weather_status: 1.11.0
  • workflowengine: 2.13.0
    Disabled:
  • app_api: 5.0.2 (installed 5.0.2)
  • encryption: 2.19.0
  • twofactor_nextcloud_notification: 5.0.0
  • twofactor_totp: 13.0.0-dev.0
  • user_ldap: 1.22.0
  • webhook_listeners: 1.2.0 (installed 1.2.0)