Transfer files to other user via WebUI

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud 26 Winter
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian Trixie 13
  • Web server and version (e.g, Apache 2.4.25):
    • nginx 1.16.3
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • 8.4
  • Is this the first time you’ve seen this error? (Yes / No):
    • No
  • When did this problem seem to first start?
    • when trying totransfer file ownership
  • 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:

Transfer of file ownership not worling.

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

  1. Login as User A

  2. Go Settings → Sharing

  3. “Choose file or folder to transfer” and select file or folder

  4. Select new owner (i.e. User B) and press “Transfer”

  5. Login as User B and confirm transfer

  6. wait 24 hours and realize that nothing has changed, nothing transferred

When running command php occ file:transfer-ownership –path="folder" A B task is done in less than a second.

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.

How to upload 200MB log file?

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.

PASTE

Web server / Reverse Proxy

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

PASTE HERE

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": [
            "192.168.178.18"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "33.0.0.16",
        "overwrite.cli.url": "https:\/\/192.168.178.18",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "maintenance_window_start": 1,
        "loglevel": 0
    }
}
ro

Apps

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

Enabled:
activity: 6.0.0-dev.0
app_api: 33.0.0
bruteforcesettings: 6.0.0-dev.0
calendar: 6.2.1
circles: 33.0.0
cloud_federation_api: 1.17.0
comments: 1.23.0
contactsinteraction: 1.14.1
dashboard: 7.13.0
dav: 1.36.0
federatedfilesharing: 1.23.0
federation: 1.23.0
files: 2.5.0
files_downloadlimit: 5.1.0-dev.0
files_pdfviewer: 6.0.0-dev.0
files_reminders: 1.6.0
files_sharing: 1.25.2
files_trashbin: 1.23.0
files_versions: 1.26.0
firstrunwizard: 6.0.0-dev.0
logreader: 6.0.0
lookup_server_connector: 1.21.0
nextcloud_announcements: 5.0.0
notes: 4.13.0
notifications: 6.0.0
oauth2: 1.21.0
password_policy: 5.0.0-dev.0
photos: 6.0.0-dev.0
privacy: 5.0.0-dev.0
profile: 1.2.0
provisioning_api: 1.23.0
recommendations: 6.0.0-dev.0
related_resources: 4.0.0-dev.0
serverinfo: 5.0.0-dev.0
settings: 1.16.0
sharebymail: 1.23.0
support: 5.0.0
survey_client: 5.0.0-dev.0
systemtags: 1.23.0
text: 7.0.0-dev.3
theming: 2.8.0
twofactor_backupcodes: 1.22.0
twofactor_totp: 15.0.0-dev.0
updatenotification: 1.23.0
user_status: 1.13.0
viewer: 6.0.0-dev.0
weather_status: 1.13.0
webhook_listeners: 1.5.0
workflowengine: 2.15.0

Disabled:
admin_audit: 1.23.0
encryption: 2.21.0
files_external: 1.25.1
suspicious_login: 11.0.0-dev.0
twofactor_nextcloud_notification: 7.0.0
user_ldap: 1.24.0


Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Please double-check the used command syntax because it contains typos. It should be as follows:

<path-to-occ-command>/occ files:transfer-ownership --path=<folder-path> <source-user> <destination-user>

Additionally you could increase the verbosity as described in the help text:

./occ files:transfer-ownership --help
Description:
  All files and folders are moved to another user - outgoing shares and incoming user file shares (optionally) are moved as well.

Usage:
  files:transfer-ownership [options] [--] <source-user> <destination-user>

Arguments:
  source-user                                                owner of files which shall be moved
  destination-user                                           user who will be the new owner of the files

Options:
      --path=PATH                                            selectively provide the path to transfer. For example --path="folder_name" [default: ""]
      --move                                                 move data from source user to root directory of destination user, which must be empty
      --transfer-incoming-shares[=TRANSFER-INCOMING-SHARES]  Incoming shares are always transferred now, so this option does not affect the ownership transfer anymore [default: "2"]
      --include-external-storage                             include files on external storages, this will _not_ setup an external storage for the target user, but instead moves all the files from the external storages into the target users home directory
      --force-include-external-storage                       don't ask for confirmation for transferring external storages
  -h, --help                                                 Display help for the given command. When no command is given display help for the list command
  -q, --quiet                                                Do not output any message
  -V, --version                                              Display this application version
      --ansi|--no-ansi                                       Force (or disable --no-ansi) ANSI output
  -n, --no-interaction                                       Do not ask any interactive question
      --no-warnings                                          Skip global warnings, show command output only
  -v|vv|vvv, --verbose                                       Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Many thanks for your answer.

But, the command worked for me. The issue is with the Web Interface not working.
As i wrote; i started the file ownership transfer from user A, and in user B i accepted the transfer, but even after 24 hours nothing happened.

Only when i used occ command in CLI, files were transferred within a second.

Why? - Just copy the issue-related lines and paste them into the Support Template you posted above.