# Premiumize can't move files

**URL:** <https://forum.rclone.org/t/premiumize-cant-move-files/27169>\
**Category:** Suspected Bug\
**Created:** [October 26, 2021, 6:28pm UTC](https://forum.rclone.org/t/premiumize-cant-move-files/27169 "2021-10-26T18:28:09Z")\
**Posts on this page:** 16\
**Page:** 2

<div class="post-metadata">

**Author:** ![ivandeex](https://forum.rclone.org/user_avatar/forum.rclone.org/ivandeex/32/11183_2.png) [@ivandeex](https://forum.rclone.org/u/ivandeex)\
**Post date:** [October 28, 2021, 2:47am UTC](https://forum.rclone.org/t/premiumize-cant-move-files/27169/21 "2021-10-28T02:47:25Z")

</div>

> [@asdffdsa](#):
>
> should rclone know that  
> `premiumize:test/NewDir/NewFile.bin` is a file, not a directory?  
> `Creating backend with remote "premiumize:test/NewDir/NewFile.bin"`
> 
> for local, rclone is not confused  
> `Creating backend with remote "D:/files/test/newdir/"`

@ncw  
premiumize might have been affected by

> <https://github.com/rclone/rclone/commit/3fbaa4c0b0e8076b9bc135fd51966f06dc207408>
>
> This changes the interface to NewObject so that if NewObject is called
> on a dire…ctory then it should return fs.ErrorIsDir if possible without
> doing any extra work, otherwise fs.ErrorObjectNotFound.
> 
> Tested on integration test server with:
> 
> go run integration-test.go -tests backend -run TestIntegration/FsMkdir/FsPutFiles/FsNewObjectDir -branch fix-stat -maxtries 1

or by

> <https://github.com/rclone/rclone/commit/1eff0eef7a03ec89a808737565c47068308468b3>
>
> This tries to fix the integration tests by only allowing one
> premiumizeme test t…o run at once, in the hope it will stop rclone
> hitting the rate limits and breaking the tests.
> 
> See: #5734

---

<div class="post-metadata">

**Author:** ![ingep](https://forum.rclone.org/letter_avatar_proxy/v4/letter/i/ecae2f/32.png) [@ingep](https://forum.rclone.org/u/ingep)\
**Post date:** [October 28, 2021, 8:56pm UTC](https://forum.rclone.org/t/premiumize-cant-move-files/27169/22 "2021-10-28T20:56:17Z")

</div>

@asdffdsa is right - this used to work for me until around 5th-7th October. I did not change anything at that time, it just stopped working. So that points to something having changed on the Premiumize side, but then again, using the REST API does work, which points to the issue being in rclone. 🤔

I just tried "mv test.txt ../NewDir" (using a folder as destination) in my rclone-mounted folder, but got the same error.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [October 31, 2021, 12:37pm UTC](https://forum.rclone.org/t/premiumize-cant-move-files/27169/23 "2021-10-31T12:37:31Z")

</div>

I think the premiumizeme API has changed somehow.

In particular when I use the folder paste API it returns a successful response but then doesn't move anything

[https://app.swaggerhub.com/apis-docs/premiumize.me/api/1.6.7#/folder/folderPaste](https://app.swaggerhub.com/apis-docs/premiumize.me/api/1.6.7#/folder/folderPaste)

Here is what the message looked like

```auto
2021/10/23 22:06:56 DEBUG : HTTP REQUEST (req 0xc00064db00)
2021/10/23 22:06:56 DEBUG : POST /api/folder/paste?apikey=XXX HTTP/1.1
Host: www.premiumize.me
User-Agent: rclone/v1.57.0-beta.5800.a542ddf60
Transfer-Encoding: chunked
Content-Type: multipart/form-data;
boundary=b0ca803bd4c403d1ef508c0b6cb812d842e73541e3147d66cb8a253a0841
Accept-Encoding: gzip

151
--b0ca803bd4c403d1ef508c0b6cb812d842e73541e3147d66cb8a253a0841
Content-Disposition: form-data; name="id"

t6PPZhL09VB0B0WuHHRtXg
--b0ca803bd4c403d1ef508c0b6cb812d842e73541e3147d66cb8a253a0841
Content-Disposition: form-data; name="files[]"

dyP0CNotvyhY_gQJo-CAKw
--b0ca803bd4c403d1ef508c0b6cb812d842e73541e3147d66cb8a253a0841--

0

```

And here is the response - apparently successful, but the file did not move into the folder.

```auto
2021/10/23 22:06:57 DEBUG : HTTP RESPONSE (req 0xc00064db00)
2021/10/23 22:06:57 DEBUG : HTTP/2.0 200 OK
Access-Control-Allow-Origin: *
Alt-Svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443";
ma=86400, h3-27=":443"; ma=86400
Cf-Cache-Status: DYNAMIC
Cf-Ray: 6a2deea2199b4096-LHR
Content-Type: application/json
Date: Sat, 23 Oct 2021 21:06:57 GMT
Expect-Ct: max-age=604800,
report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Report-To:
{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=GKtVD84f4Bc82QGZG5EgSMDXuq4db%2BprdQmSviYkzFlGITvkyk0X4%2BMfYs29Swl%2BEy4kmAaxr7kxiw6MIdczRbvKdw5IqC9pkJNG0cTWtY
gwz%2FwiEn1mrjYpHdF%2FqCjzo0RV7Q%3D%3D"}],"group":"cf-nel","max_age":604800}
Server: cloudflare
Set-Cookie: xss-token=1689fa9eedc120f877373349e0ffde72; expires=Mon,
22-Nov-2021 21:06:56 GMT; Max-Age=2592000; path=/
Strict-Transport-Security: max-age=604800
X-Frame-Options: sameorigin

{"status":"success"}

```

So @ingep @mithrial I think this is the cause of the broken mv/moveto

I did email them to get the integration test account working again and they said they've done a major overhaul of the API so there might be broken stuff.

The bit of rclone code which does this is

> <https://github.com/rclone/rclone/blob/a8059b8a90ec980b9c2112d571a9eb3e3a638526/backend/premiumizeme/premiumizeme.go#L643-L672>

If anyone can see any mistakes in the code, that would be much appreciated, because I've stared at it for ages now 🙂

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [October 31, 2021, 2:32pm UTC](https://forum.rclone.org/t/premiumize-cant-move-files/27169/24 "2021-10-31T14:32:18Z")

</div>

> [@asdffdsa](#):
>
> is rclone getting confused, should rclone know that  
> `premiumize:test/NewDir/NewFile.bin` is a file, not a directory?  
> `Creating backend with remote "premiumize:test/NewDir/NewFile.bin"`

hi,  
is this correct, that rclone is getting confused?

---

<div class="post-metadata">

**Author:** ![jwink3101](https://forum.rclone.org/letter_avatar_proxy/v4/letter/j/b38774/32.png) [@jwink3101](https://forum.rclone.org/u/jwink3101)\
**Post date:** [October 31, 2021, 3:51pm UTC](https://forum.rclone.org/t/premiumize-cant-move-files/27169/25 "2021-10-31T15:51:46Z")

</div>

Not your main issue but...:

> [@mithrial](#):
>
> but there is a new empty _directory_ created with the new file name:

You need to use `moveto` or `copyto` when you're specifying a file name destination.

```
$ rclone copy remote:sub/myfile.txt remote:newsub/ # copy -- specify dest directory
$ rclone copyto remote:sub/myfile.txt remote:newsub/myfile.txt # copyto -- specify dest location

```

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [October 31, 2021, 3:55pm UTC](https://forum.rclone.org/t/premiumize-cant-move-files/27169/26 "2021-10-31T15:55:08Z")

</div>

hi,  
i did a `rclone moveto` and it did not work. is there something wrong with that command?

[https://forum.rclone.org/t/premiumize-cant-move-files/27169/19?u=asdffdsa](https://forum.rclone.org/t/premiumize-cant-move-files/27169/19)

---

<div class="post-metadata">

**Author:** ![jwink3101](https://forum.rclone.org/letter_avatar_proxy/v4/letter/j/b38774/32.png) [@jwink3101](https://forum.rclone.org/u/jwink3101)\
**Post date:** [October 31, 2021, 3:57pm UTC](https://forum.rclone.org/t/premiumize-cant-move-files/27169/27 "2021-10-31T15:57:08Z")

</div>

No. I was answering OP's original comment about the moves. Not the underlying API issue

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [October 31, 2021, 4:29pm UTC](https://forum.rclone.org/t/premiumize-cant-move-files/27169/28 "2021-10-31T16:29:55Z")

</div>

I think I figured out what changed in the premiumizeme API

Can anyone having trouble moving files on premiumizeme try this beta please

[v1.57.0-beta.5811.9a5cf0509.fix-premiumizeme](https://beta.rclone.org/branch/fix-premiumizeme/v1.57.0-beta.5811.9a5cf0509.fix-premiumizeme/) on branch [fix-premiumizeme](https://github.com/rclone/rclone/tree/fix-premiumizeme) (uploaded in 15-30 mins)

There may be more things which need fixing...

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [October 31, 2021, 4:46pm UTC](https://forum.rclone.org/t/premiumize-cant-move-files/27169/29 "2021-10-31T16:46:28Z")

</div>

good point, in all the back and forth, that was never make explicitly clear.

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [October 31, 2021, 5:30pm UTC](https://forum.rclone.org/t/premiumize-cant-move-files/27169/30 "2021-10-31T17:30:50Z")

</div>

- for the beta, the windows 64bit was not uploaded, so i tested using the 32bit.
- i tried these two commands and both worked  
--- `rclone moveto premiumize:test/OldDir/OldFile.bin premiumize:test/NewDir/NewFile.bin`  
--- `rclone move premiumize:test/OldDir/OldFile.bin premiumize:test/NewDir`

```auto
d:\data\rclone\exe\rclone-v1.57.0-beta.5811.9a5cf0509.fix-premiumizeme-windows-386\rclone delete premiumize:test/OldDir -v 

d:\data\rclone\exe\rclone-v1.57.0-beta.5811.9a5cf0509.fix-premiumizeme-windows-386\rclone delete premiumize:test/NewDir -v 

d:\data\rclone\exe\rclone-v1.57.0-beta.5811.9a5cf0509.fix-premiumizeme-windows-386\rclone copy C:\data\rclone\scripts\rr\other\newtest\pme\OldFile.bin premiumize:test/OldDir -v 
2021/10/31 13:05:19 INFO : OldFile.bin: Copied (new)
2021/10/31 13:05:19 INFO : 
Transferred: 1 B / 1 B, 100%, 0 B/s, ETA 0s
Transferred: 1 / 1, 100%
Elapsed time: 1.9s

d:\data\rclone\exe\rclone-v1.57.0-beta.5811.9a5cf0509.fix-premiumizeme-windows-386\rclone moveto premiumize:test/OldDir/OldFile.bin premiumize:test/NewDir/NewFile.bin -vv 
2021/10/31 13:05:20 DEBUG : Setting --config "C:\\data\\rclone\\scripts\\rclone.conf" from environment variable RCLONE_CONFIG="C:\\data\\rclone\\scripts\\rclone.conf"
2021/10/31 13:05:20 DEBUG : rclone: Version "v1.57.0-beta.5811.9a5cf0509.fix-premiumizeme" starting with parameters ["d:\\data\\rclone\\exe\\rclone-v1.57.0-beta.5811.9a5cf0509.fix-premiumizeme-windows-386\\rclone.exe" "moveto" "premiumize:test/OldDir/OldFile.bin" "premiumize:test/NewDir/NewFile.bin" "-vv"]
2021/10/31 13:05:20 DEBUG : Creating backend with remote "premiumize:test/OldDir/OldFile.bin"
2021/10/31 13:05:20 DEBUG : Using config file from "C:\\data\\rclone\\scripts\\rclone.conf"
2021/10/31 13:05:21 DEBUG : fs cache: adding new entry for parent of "premiumize:test/OldDir/OldFile.bin", "premiumize:test/OldDir"
2021/10/31 13:05:21 DEBUG : Creating backend with remote "premiumize:test/NewDir/"
2021/10/31 13:05:21 DEBUG : fs cache: renaming cache item "premiumize:test/NewDir/" to be canonical "premiumize:test/NewDir"
2021/10/31 13:05:21 DEBUG : OldFile.bin: Need to transfer - File not found at Destination
2021/10/31 13:05:22 INFO : OldFile.bin: Moved (server-side) to: NewFile.bin
2021/10/31 13:05:22 INFO : 
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 1 / 1, 100%
Renamed: 1
Elapsed time: 2.1s

2021/10/31 13:05:22 DEBUG : 5 go routines active

C:\data\rclone\scripts\rr\other\newtest\pme>d:\data\rclone\exe\rclone-v1.57.0-beta.5811.9a5cf0509.fix-premiumizeme-windows-386\rclone copy C:\data\rclone\scripts\rr\other\newtest\pme\OldFile.bin premiumize:test/OldDir -v 
2021/10/31 13:05:24 INFO : OldFile.bin: Copied (new)
2021/10/31 13:05:24 INFO : 
Transferred: 1 B / 1 B, 100%, 0 B/s, ETA 0s
Transferred: 1 / 1, 100%
Elapsed time: 2.0s

C:\data\rclone\scripts\rr\other\newtest\pme>d:\data\rclone\exe\rclone-v1.57.0-beta.5811.9a5cf0509.fix-premiumizeme-windows-386\rclone move premiumize:test/OldDir/OldFile.bin premiumize:test/NewDir -vv 
2021/10/31 13:05:24 DEBUG : Setting --config "C:\\data\\rclone\\scripts\\rclone.conf" from environment variable RCLONE_CONFIG="C:\\data\\rclone\\scripts\\rclone.conf"
2021/10/31 13:05:24 DEBUG : rclone: Version "v1.57.0-beta.5811.9a5cf0509.fix-premiumizeme" starting with parameters ["d:\\data\\rclone\\exe\\rclone-v1.57.0-beta.5811.9a5cf0509.fix-premiumizeme-windows-386\\rclone.exe" "move" "premiumize:test/OldDir/OldFile.bin" "premiumize:test/NewDir" "-vv"]
2021/10/31 13:05:24 DEBUG : Creating backend with remote "premiumize:test/OldDir/OldFile.bin"
2021/10/31 13:05:24 DEBUG : Using config file from "C:\\data\\rclone\\scripts\\rclone.conf"
2021/10/31 13:05:25 DEBUG : fs cache: adding new entry for parent of "premiumize:test/OldDir/OldFile.bin", "premiumize:test/OldDir"
2021/10/31 13:05:25 DEBUG : Creating backend with remote "premiumize:test/NewDir"
2021/10/31 13:05:26 DEBUG : OldFile.bin: Need to transfer - File not found at Destination
2021/10/31 13:05:26 INFO : OldFile.bin: Moved (server-side)
2021/10/31 13:05:26 INFO : 
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 1 / 1, 100%
Renamed: 1
Elapsed time: 1.9s

2021/10/31 13:05:26 DEBUG : 5 go routines active

d:\data\rclone\exe\rclone-v1.57.0-beta.5811.9a5cf0509.fix-premiumizeme-windows-386\rclone ls premiumize:test 
        1 NewDir/NewFile.bin
        1 NewDir/OldFile.bin

```

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [October 31, 2021, 7:21pm UTC](https://forum.rclone.org/t/premiumize-cant-move-files/27169/31 "2021-10-31T19:21:13Z")

</div>

I think I've tracked the remaining API changes down now and **all** the integration tests pass again 🙂

I've merged this to master now which means it will be in [v1.57.0-beta.5816.f7764a0c9](https://beta.rclone.org/v1.57.0-beta.5816.f7764a0c9/) (or later) in 15-30 minutes and released in v1.57

I think this is the last showstopper for 1.57 so we should be able to get that out tomorrow 🤞

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [October 31, 2021, 7:29pm UTC](https://forum.rclone.org/t/premiumize-cant-move-files/27169/32 "2021-10-31T19:29:21Z")

</div>

just tested the exact same commands using latest rclone-v1.57.0-beta.5816.f7764a0c9-windows-amd64  
all commands worked. i can post the debug logs if requested.

are there any other command that you would want me to run?

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [October 31, 2021, 8:25pm UTC](https://forum.rclone.org/t/premiumize-cant-move-files/27169/33 "2021-10-31T20:25:00Z")

</div>

I think that is great testing thank you 🙂

The next test will be to see if the integration tests run clean 🤞 - these run tonight and the results will appear here: [FAIL: 20 tests failed in 11h9m0.344735968s](https://pub.rclone.org/integration-tests/current/)

---

<div class="post-metadata">

**Author:** ![ingep](https://forum.rclone.org/letter_avatar_proxy/v4/letter/i/ecae2f/32.png) [@ingep](https://forum.rclone.org/u/ingep)\
**Post date:** [November 1, 2021, 1:49am UTC](https://forum.rclone.org/t/premiumize-cant-move-files/27169/34 "2021-11-01T01:49:35Z")

</div>

I just did a test too, moving a file in a folder that was mounted with rclone, and great success! Thank you very much for the quick fix!

---

<div class="post-metadata">

**Author:** ![mithrial](https://forum.rclone.org/letter_avatar_proxy/v4/letter/m/e36b37/32.png) [@mithrial](https://forum.rclone.org/u/mithrial)\
**Post date:** [November 1, 2021, 3:56pm UTC](https://forum.rclone.org/t/premiumize-cant-move-files/27169/35 "2021-11-01T15:56:32Z")

</div>

Thank you very much. This beta solves my issue fully.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [November 4, 2021, 3:56pm UTC](https://forum.rclone.org/t/premiumize-cant-move-files/27169/36 "2021-11-04T15:56:49Z")

</div>

Closed on November 4, 2021, 3:56pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.

[Previous page](https://forum.rclone.org/t/premiumize-cant-move-files/27169.md?page=1)
