Talk conversations no longer show attached/added images after folder removal

Support intro

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 34.0.4
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04.5 LTS
  • Web server and version (e.g, Apache 2.4.25):
    • Apache/2.4.58
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Caddy 1.0
  • PHP version (e.g, 8.3):
    • v8.4.25,
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • After manual folder cleanup
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • VMWare Virtual Machine
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

At least one major version ago, and several Talk updates ago, I noticed that under my /Talk folder there were multiple subfolders suddenly existing with a username- alphanumeric number. Inside those folders were Drafts, and more subfolders with an account name - username. I periodically do stale folder cleanup on my system and for one user I removed these folders thinking they were from something that failed an upload.

Now, whenever I have a conversation with this particular user in Talk, if they attach or upload an image to the conversation, I get a message that says “user has shared a file which is no longer available”. I can share images to them, and they see it, and when they attach an image they see it in their thread, but I do not. I realize those folders are somehow now part of the image sharing process.

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

  1. Go to Talk conversation with specific user, either via mobile app or Web Browser

  2. Have this user share/attach a file. Message appears in the conversation thread but from my end says file is no longer available.

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.

There are no log entries created for this issue.

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

N/A

Web server / Reverse Proxy

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

N/A

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": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "1": "cloud.domain.com",
            "2": "192.168.x.x"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "34.0.4.1",
        "overwrite.cli.url": "https:\/\/cloud.domain.com\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "upgrade.disable-web": true,
        "log_type": "file",
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "loglevel": "2",
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "mail_smtpmode": "smtp",
        "remember_login_cookie_lifetime": "1800",
        "log_rotate_size": "10485760",
        "trashbin_retention_obligation": "auto, 60",
        "versions_retention_obligation": "auto, 180",
        "activity_expire_days": "120",
        "simpleSignUpLink.shown": false,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": true,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0.5,
            "dbindex": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "default_phone_region": "us",
        "logtimezone": "US\/Central",
        "htaccess.RewriteBase": "\/",
        "enable_previews": true,
        "enabledPreviewProviders": {
            "11": "OC\\Preview\\PNG",
            "12": "OC\\Preview\\JPEG",
            "13": "OC\\Preview\\GIF",
            "14": "OC\\Preview\\BMP",
            "16": "OC\\Preview\\MP3",
            "17": "OC\\Preview\\TXT"
        },
        "preview_max_x": 2048,
        "preview_max_y": 2048,
        "jpeg_quality": 60,
        "maintenance": false,
        "has_rebuilt_cache": true,
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauthtype": "PLAIN",
        "mail_smtpauth": 1,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "memories.exiftool_no_local": true,
        "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",
        "updater.release.channel": "stable",
        "maintenance_window_start": 1,
        "memories.db.triggers.fcu": true,
        "files.chunked_upload.max_size": 104857600,
        "app_install_overwrite": []

Apps

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

  • activity: 7.0.0
  • admin_audit: 1.24.0
  • app_api: 34.0.0
  • appstore: 1.0.0
  • bookmarks: 16.2.7
  • bruteforcesettings: 7.0.0
  • calendar: 6.6.1
  • camerarawpreviews: 1.1.4
  • circles: 34.0.0
  • cloud_federation_api: 1.18.0
  • collectives: 4.7.1
  • comments: 1.24.0
  • contacts: 8.9.0
  • contactsinteraction: 1.15.0
  • cospend: 4.1.3
  • dashboard: 7.14.0
  • dav: 1.40.0
  • deck: 1.18.5
  • epubviewer: 1.9.7
  • eurooffice: 11.0.5
  • federatedfilesharing: 1.24.0
  • federation: 1.24.0
  • files: 2.6.0
  • files_downloadlimit: 5.2.0
  • files_lock: 34.0.1
  • files_pdfviewer: 7.0.0
  • files_reminders: 1.7.0
  • files_sharing: 1.26.0
  • files_trashbin: 1.24.0
  • files_versions: 1.27.0
  • firstrunwizard: 7.0.0-dev.0
  • guests: 4.10.0
  • integration_giphy: 2.2.2
  • logreader: 7.0.0
  • lookup_server_connector: 1.22.0
  • mail: 5.12.2
  • maps: 1.8.0
  • memegen: 2.0.2
  • memories: 9.0.1
  • news: 28.7.0
  • nextcloud_announcements: 6.0.0
  • notes: 6.1.0
  • notifications: 7.0.0-dev.1
  • oauth2: 1.22.0
  • office: 1.0.0
  • otpmanager: 1.2.3
  • password_policy: 6.0.0-dev.0
  • passwords: 2026.9.20
  • photos: 7.0.0
  • previewgenerator: 5.15.0
  • privacy: 6.0.0-dev.1
  • profile: 1.3.0
  • provisioning_api: 1.24.0
  • recommendations: 7.0.0
  • related_resources: 5.0.0-dev.0
  • richdocuments: 11.1.1
  • richdocumentscode: 26.4.402
  • serverinfo: 6.0.0
  • settings: 1.17.0
  • sharebymail: 1.24.0
  • side_menu: 6.2.0
  • spreed: 24.0.5
  • support: 6.0.0
  • systemtags: 1.24.0
  • tasks: 0.18.1
  • text: 8.0.0
  • theming: 2.9.0
  • twofactor_backupcodes: 1.23.0
  • twofactor_email: 3.5.1
  • twofactor_nextcloud_notification: 8.0.0
  • twofactor_totp: 16.0.0
  • updatenotification: 1.24.0
  • user_status: 1.14.0
  • viewer: 7.0.0-dev.0
  • weather_status: 1.14.0
  • webhook_listeners: 1.6.0
  • workflowengine: 2.16.0
    Disabled:
  • cfg_share_links: 7.0.1 (installed 7.0.1)
  • encryption: 2.22.0
  • files_external: 1.26.0
  • fileslibreofficeedit: 2.0.1 (installed 2.0.1)
  • integration_openstreetmap: 4.2.0 (installed 4.2.0)
  • onlyoffice: 10.1.2 (installed 10.1.2)
  • survey_client: 6.0.0-dev.0 (installed 1.12.0)
  • suspicious_login: 12.0.0-dev.0
  • testing: 1.23.0
  • user_ldap: 1.25.0

Tips for increasing the likelihood of a response

Is there a way to have the system rebuild the missing folder structure and repair for this user? I tried manually rebuilding the folder based on the folder name details from my Activity feed but it doesn’t seem to resolve.

It’s only affecting the user I deleted these folders for. So I would like to try and fix it, as opposed to having to create a whole new user for this person and have them transfer their data to a new account, and then also lose the current Talk history with them.

Yea these folders are mandatory. Check in the files app in the sidebar the deleted shares and check if you can restore them

I tried that, and it simple reports “Restore Share: Failed” or sometimes “Restore share: failed on some elements”

Logging shows this when trying to Restore:

[PHP] Warning: Undefined array key 1 at /var/www/nextcloud/lib/private/Share20/Manager.php#1323
POST /ocs/v2.php/apps/files_sharing/api/v1/deletedshares/1019101

The modified date on the deleted Share timestamp seems consistent to when the user last uploaded an image. But it won’t restore.

Is there no way to manually make a new folder and update the database somehow so Talk references that new folder? Or issue a command to have Talk rebuild it entirely?

As a workaround I found I can create a new conversation with the same user, and then it builds out new folders. So I can archive the original I guess and this option would work.

That seems to be [stable34] fix(files_sharing): Use share id in file actions by backportbot[bot] · Pull Request #62403 · nextcloud/server · GitHub which unfortunately did not make it to the last release (of 34, it should be working in 33 and 35) :frowning: