Unable to create external shares via Android app

I recently noticed that it is no longer possible to create external shares with the Android app. When pressing the button Link the error “An error occurred while trying to share this file or folder” is shown by the Android app. Internal shares still work.

Via the Web Interface creating external shares is possible. Any idea how to fix this?

Hello @mlsxlist welcome back to the Nextcloud community :handshake:

You’ve posted a request in the support section. Unfortunately you have not completed the required support template. Please edit your post and add as much information as possible so that community supporters have the necessary technical information to help you resolve your issue!

Without additional information the community members cannot help you.

Sorry, here is the template.

The Basics

  • Nextcloud Server version (e.g., 29.x.x): 32 .0.5

  • Operating system and version (e.g., Ubuntu 24.04): Debian 12

  • Web server and version (e.g, Apache 2.4.25): Apache/2.4.66

  • Reverse proxy and version _(e.g. nginx 1.27.2):

  • PHP version (e.g, 8.3): 8.2.29

  • Is this the first time you’ve seen this error? (Yes / No): yes

  • When did this problem seem to first start?

  • Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.) Bare Metal

  • Are you using Cloudflare, mod_security, or similar? (Yes / No) No

  • Android App version: 3.35.0

Summary of the issue you are facing:

It is no longer possible to create external shares.

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

  1. select a file or directory in the Nextcloud Android App

  2. select send/share from the context menu and click Link button

  3. Enter a password

  4. A error message is shown: An error occurered while trying to share this file or folder
    This happens on different android devices

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

No log entries visible

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [  
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/host:port\/***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "32.0.5.0",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0
        },
        "maintenance": false,
        "theme": "",
        "loglevel": 0,
        "mail_smtpmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_sendmailmode": "smtp",
        "mysql.utf8mb4": true,
        "default_phone_region": "DE",
        "check_for_working_wellknown_setup": false,
        "mail_smtpsecure": "ssl",
        "enable_previews": true,
        "preview_ffmpeg_path": "\/usr\/bin\/ffmpeg",
        "preview_max_x": 4096,
        "preview_max_y": 4096,
        "preview_max_filesize_image": 50,
        "enabledPreviewProviders": [
            "OC\\Preview\\TXT",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\PDF",
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\MP4"
        ],
        "maintenance_window_start": 5,
        "memories.db.triggers.fcu": true,
        "memories.exiftool": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-glibc",
        "memories.vod.path": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "app_install_overwrite": []
    }
}
        

Apps

The output of occ app:list (if possible).

Enabled:

  • activity: 5.0.0-dev.0
  • announcementcenter: 7.3.0
  • bookmarks: 16.0.1
  • bruteforcesettings: 5.0.0-dev.0
  • calendar: 6.1.5
  • circles: 32.0.0
  • cloud_federation_api: 1.16.0
  • collectives: 3.5.0
  • comments: 1.22.0
  • contacts: 8.2.1
  • contactsinteraction: 1.13.1
  • dashboard: 7.12.0
  • dav: 1.34.2
  • deck: 1.16.3
  • event_update_notification: 2.7.0
  • federatedfilesharing: 1.22.0
  • federation: 1.22.0
  • files: 2.4.0
  • files_automatedtagging: 3.0.2
  • files_downloadlimit: 5.0.0-dev.0
  • files_external: 1.24.1
  • files_fulltextsearch: 32.0.2
  • files_pdfviewer: 5.0.0-dev.0
  • files_reminders: 1.5.0
  • files_sharing: 1.24.1
  • files_trashbin: 1.22.0
  • files_versions: 1.25.0
  • firstrunwizard: 5.0.0-dev.0
  • forms: 5.2.3
  • fulltextsearch: 32.0.0
  • fulltextsearch_elasticsearch: 32.0.2
  • geoblocker: 0.5.19
  • gpoddersync: 3.13.3
  • logreader: 5.0.0-dev.0
  • lookup_server_connector: 1.20.0
  • mail: 5.6.7
  • memories: 7.7.0
  • nextcloud_announcements: 4.0.0-dev.0
  • notes: 4.12.4
  • notifications: 5.0.0-dev.0
  • oauth2: 1.20.0
  • password_policy: 4.0.0-dev.0
  • photos: 5.0.0-dev.1
  • previewgenerator: 5.11.0
  • privacy: 4.0.0-dev.0
  • profile: 1.1.0
  • provisioning_api: 1.22.0
  • recognize: 10.0.7
  • recommendations: 5.0.0-dev.0
  • related_resources: 3.0.0-dev.0
  • richdocuments: 9.0.2
  • richdocumentscode: 25.4.702
  • serverinfo: 4.0.0-dev.0
  • settings: 1.15.1
  • sharebymail: 1.22.0
  • spreed: 22.0.8
  • support: 4.0.0-dev.0
  • survey_client: 4.0.0-dev.0
  • suspicious_login: 10.0.0-dev.0
  • systemtags: 1.22.0
  • tables: 1.0.3
  • tasks: 0.17.1
  • text: 6.0.1
  • theming: 2.7.0
  • twofactor_backupcodes: 1.21.0
  • twofactor_webauthn: 2.4.1
  • updatenotification: 1.22.0
  • user_status: 1.12.0
  • user_usage_report: 3.0.0
  • viewer: 5.0.0-dev.0
  • weather_status: 1.12.0
  • webhook_listeners: 1.3.0
  • workflow_ocr: 1.32.1
  • workflow_script: 3.0.0
  • workflowengine: 2.14.0
    Disabled:
  • admin_audit: 1.22.0
  • app_api: 32.0.0 (installed 32.0.0)
  • encryption: 2.20.0
  • maps: 1.6.0 (installed 1.6.0)
  • twofactor_nextcloud_notification: 6.0.0-dev.0
  • twofactor_totp: 14.0.0
  • user_ldap: 1.23.0

so you are using a self-signed certificate?

Thanks for your quick reply. No I am using valid letsencrypt certificates.

double check this value in config.php