Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Move or copy files and folders fails #42469

Closed
5 of 8 tasks
Tracked by #3888
gibelium opened this issue Dec 23, 2023 · 23 comments · Fixed by nextcloud-libraries/nextcloud-dialogs#1207 or #43148
Closed
5 of 8 tasks
Tracked by #3888

[Bug]: Move or copy files and folders fails #42469

gibelium opened this issue Dec 23, 2023 · 23 comments · Fixed by nextcloud-libraries/nextcloud-dialogs#1207 or #43148

Comments

@gibelium
Copy link

⚠️ This issue respects the following points: ⚠️

Bug description

The "move or copy" function in the WebInterface fails for files and folders as well.

  • No log entry is written
  • Error message "'Move or copy' action failed" is show in the info area at the upper right of the weg interface
  • Moving files/folders on a local client machine and syncing the changes via Nextcloud Desktop App works without issues

Steps to reproduce

  1. Create a file or folder in your privat home folder
  2. Create a folder "Test" in your home folder
  3. Open 3-dots menu for the file or folder created in step 1
  4. Select "move or copy" option and select the folder created in step 2
  5. Select "Copy to TEST" or "Move to TEST" (both will fail)
  6. See the error message "'Move or copy' action failed"
  7. Check the log reader and see that no error has been written ti the log file

Expected behavior

  1. "Copy or move" function actually moves or copies files and folders without error.
  2. If an error occurs a meaningful log entry is created

Installation method

Community VM appliance

Nextcloud Server version

28

Operating system

None

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@gibelium gibelium added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Dec 23, 2023
@joshtrichards
Copy link
Member

This sounds like #41414, but that shouldn't exist in the general release due to #42057. Are you certain you're not running a Release Candidate build? [Providing the output of occ config:list system and running an integrity check would probably be the most reliable ways to try confirming that.]

@melianmiko
Copy link

melianmiko commented Dec 27, 2023

Ran into same problem, Nextcloud 28.0.1 from docker image.

occ config:list system and running an integrity check

output.txt

Upd. Full manual update via ZIP-file from website didn't resolves this bug.

@PolishTanker
Copy link

PolishTanker commented Dec 31, 2023

The same story. On Nextcloud Windows Client, everything works. But it is apparently due to different approach to moving files.
Web UI can't do this job and fails when you try to move files. Earlier this worked.

image

@flysaber
Copy link

I also encountered the same error, which occurred on the server side (I am not using the desktop version). I used the setup-nextcloud.php file for online installation and installed the latest version of nextcloud on Ubuntu 22.04, using Apache, PHP 8.1, and MySQL 8 environments.

@joshtrichards
Copy link
Member

I'm unable to reproduce this.

  1. Create a file or folder in your privat home folder
  2. Create a folder "Test" in your home folder

Already have a test file (a simple document).
I'm creating a folder /TestMove
I'm selecting Move or Copy from the 3-dot menu next to my test file.
I'm selecting /TestMove as the target.

  • What are your underlying filesystems/mount types?
  • Are either the source or destination shared or External Storage mounts in NC?
  • Is encryption and/or end_to_end_encryption in-use?

@OsirisDBA
Copy link

OsirisDBA commented Dec 31, 2023 via email

@alboon
Copy link

alboon commented Jan 1, 2024

Moving in the phone app works, website ui doesn't work, having the same issue, I have an unraid docker, just updated to "version": "28.0.1.1" using nginx as a proxy but never had issues before moving stuff in the web UI.

{
    "app": "files",
    "uid": "user",
    "level": 2,
    "action": {
        "_action": {
            "id": "move-copy",
            "order": 15
        }
    },
    "e": {}
}

[ERROR] files: Error while executing action core-common.js?v=0ed4b617-0:2

https://<URL>/dist/files-init.js?v=0ed4b617-0
Error: Cancelled move or copy operation at https://<URL>/dist/files-init.js?v=0ed4b617-0:2:7556

@melianmiko
Copy link

Tried this browsers, it don't work:

  • Chromium (plain, ArchLinux build, 120.0.6099.129-1)
  • Firefox (ArchLinux build, 121.0-1)
  • Vivaldi (6.5.3206.48)
  • Microsoft Edge (version unknown, built-in to Win10)

BUT, sometimes after 2-10 page refreshes it starts working. Found that in Vivaldi & Edge. idk why, disabling cache or clearing cookies don't matter.

All browsers tested without any third-party extensions, of course. Wipe of cache/cookies don't help.

@szaimen
Copy link
Contributor

szaimen commented Jan 3, 2024

cc @nextcloud/files

@novikov1337danil

This comment was marked as spam.

@hiweed
Copy link

hiweed commented Jan 10, 2024

I got the same problem, when I clicked move and copy menu item to do the action, the dest dir actually have contents show nothing ,and I check the chrome console reported "Failed to load resource:https://ip:port/core/preview?fileId=522&x=32&y=32&mimeFallback=true&a=0&c=659a5a5855cf3 the server responded with a status of 404 () ",then the browser shows "move and copy failed",but no server error log saved in data/nextcloud.log or niginx error logs.

@mherweg
Copy link

mherweg commented Jan 18, 2024

we have the same (or similar) issue since update to 28. If I try to copy a file TO THE SAME FOLDER then in the Web-UI the 2 buttons "copy to..." "move to.." don't appear anymore. In Nextcloud version 27 the copy is created and renamed to FILENAME_copy

@ilsawa
Copy link

ilsawa commented Jan 18, 2024

After upgrading to v28, when copying a file to a subfolder, I get a message that it is impossible to do this. At the same time, there are no messages in the logs.

@susnux
Copy link
Contributor

susnux commented Jan 19, 2024

@mherweg that is handled by #41768

@jansppenrade2
Copy link

Same bug here in Nextcloud version 28.0.1. For me moving files through the iOS app is also working fine but not on the Web UI. I also noticed that drag and drop in the Web UI currently works as a workaround.

@skjnldsv skjnldsv added 3. to review Waiting for reviews needs info 2. developing Work in progress and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap needs info 3. to review Waiting for reviews labels Jan 19, 2024
@Vlad-Star
Copy link

Vlad-Star commented Jan 21, 2024

I can confirm a problem with "Copy or Move" button in 28.0.1 attempted through the UI (getting "Move or copy" action failed message). Drag-n-drop move works just fine. No related errors in a log, even with 'debug' => true in the config.php

@TheDBP
Copy link

TheDBP commented Jan 23, 2024

Same problem here, exactly as described by others.

@susnux
Copy link
Contributor

susnux commented Jan 23, 2024

Please do not spam the tickets if you do not have any additional information but just leave a 👍 reaction on the initial post.

But please as soon as 28.0.2 is published, test and report back :)

@alboon
Copy link

alboon commented Jan 23, 2024

Still broken in 28.0.2rc3

@khlschrnk
Copy link

khlschrnk commented Jan 24, 2024

I ran into the same issues that moving files is not possible without further info. I found out that it happens if the destination folder starts (or maybe contains) with '#' (number sign). Happens with Firefox and Chrome.

After renaming the destination folder to remove the number sign moving files works.

Edit: I am using 28.0.1

@maaikez
Copy link

maaikez commented Sep 25, 2024

I have the same issue. For one (of the two) user.

So:

  • I make a new directory with files
  • I share the whole directory with another user
  • The other user tries to move the directory to another directory (so it's not in root anymore)
  • This fails.

But if he makes a new directory with files and I do exactly the same, it passes.
Drag and drop does also not work for him.

Version:
Nextcloud Hub 8 (29.0.5)

@nirurin
Copy link

nirurin commented Oct 13, 2024

So 10 months later, and this is still an issue?
Currently can't move any files. I can upload them and I can copy them inside the folders to make new copies... but I can't move files, and I can't delete files. They appear as moved/deleted briefly but when I refresh the page or window (depending on if I'm doing it via the browser gui or the windows app) they just reappear back where they were.

Nothing in logs at all.

@joshtrichards
Copy link
Member

joshtrichards commented Oct 13, 2024

@maaikez & @nirurin: As you can see, this particular Issue has been addressed and closed (it was fixed within weeks of being reported). If you're experiencing anything remotely similar, it likely has a different underlying cause. Please open dedicated Issue(s) so that we have all the pertinent details about your situation in order to look into it.

@nextcloud nextcloud locked as resolved and limited conversation to collaborators Oct 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.