Noob needs help rclone move mega: proton:

What is the problem you are having with rclone?

Im probably the problem, not sure if Im doing correctly....I want to move folders and files from mega to protondrive. I tried to follow instructions and try to do everything correctly as well as asking for help. Im new and im respectfully requesting help.Thanks

rclone move mega: "proton drive": --delete-empty-src-dirs --checksum --ignore-existing --verbose --dry-run
2023/11/04 07:17:21 Failed to create file system for "mega:": couldn't login: Post "https://g.api.mega.co.nz/cs?id=662184533": dial tcp: lookup g.api.mega.co.nz on 10.98.0.1:53: read udp 192.168.0.26:***->10.98.0.1:53: i/o timeout

So i removed mega "2fa" and then was able to..

rclone lsd mega:
          -1 2023-04-01 06:45:44        -1 Camera uploads
          
          -1 2023-10-21 01:23:41        -1 MEGAsync Uploads
          -1 2023-11-01 01:29:12        -1 OpenShotProjects_FB
          -1 2023-02-01 19:55:09        -1 kids
          -1 2023-06-05 00:22:30        -1 sjHighSchool
          -1 2023-02-04 11:56:42        -1 snapchat_fam
          -1 2023-05-30 12:14:51        -1 zip_kids_pics

so i tried again
https://pastebin.com/28sHuAGb

rclone lsd "proton drive":
2023/11/04 07:25:41.320357 ERROR RESTY 401 GET https://mail.proton.me/api/core/v4/users: Invalid access token (Code=401, Status=401), Attempt 1
2023/11/04 07:25:41.469264 ERROR RESTY 422 POST https://mail.proton.me/api/auth/v4/refresh: Invalid refresh token (Code=10013, Status=422), Attempt 1
2023/11/04 07:25:45.251779 ERROR RESTY 422 POST https://mail.proton.me/api/auth/v4/2fa: Incorrect login credentials. Please try again. (Code=8002, Status=422), Attempt 1
2023/11/04 07:25:45 Failed to create file system for "proton drive:": couldn't initialize a new proton drive instance: 422 POST https://mail.proton.me/api/auth/v4/2fa: Incorrect login credentials. Please try again. (Code=8002, Status=422)

I then removed protondrive 2fa, deleted the protondrive remote and reconfigured it and tried agin..

rclone move mega: proton: --delete-empty-src-dirs --checksum --ignore-existing -vv --log-file=FILE --dry-run

[https://pastebin.com/YJv0jvJD](https://pastebin.com/YJv0jvJD)

#### Run the command 'rclone version' and share the full output of the command.

rclone version
rclone v1.64.2

  • os/version: debian 12.2 (64 bit)
  • os/kernel: 6.1.0-13-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.3
  • go/linking: static
  • go/tags: none

Are you on the latest version of rclone? You can validate by checking the version listed here: https://rclone.org/downloads/
 -->
yes

####  Which cloud storage system are you using? (eg Google Drive)
mega and protondrive


#### The command you were trying to run (eg `rclone copy /tmp remote:tmp`)  
<!--  You should use 3 backticks to begin and end your paste to make it readable.   -->

rclone move mega: proton: --delete-empty-src-dirs --checksum --ignore-existing --verbose --dry-run



#### Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
<!--  You should use 3 backticks to begin and end your paste to make it readable.   -->

rclone config redacted
[mega]
type = mega
user = XXX
pass = XXX

[proton]
type = protondrive
username = XXX
password = XXX
client_uid = XXX
client_access_token = XXX
client_refresh_token = XXX
client_salted_key_pass = XXX

Double check the config for sensitive info before posting publicly




#### A log from the command that you were trying to run with the `-vv` flag  
<!-- You should use 3 backticks to begin and end your paste to make it readable.  Or use a service such as https://pastebin.com or https://gist.github.com/   -->

[https://pastebin.com/YJv0jvJD](https://pastebin.com/YJv0jvJD)

welcome the forum,

not able to view those logs.
"Forbidden (#403) Error, this is a private paste or is pending moderation. If this paste belongs to you, please login to Pastebin to view it."

Before you try any copy/move/sync make sure that both of your remotes work.

Mega remote works - you can tick it off.

clearly says that your Proton Drive remote is not configured correctly yet.

Start again - read docs - make sure that you can run rclone lsd "proton drive:" -vv without any errors.

I apologize, it should be viewable now. my first time using pastebin

here is my working config, which uses 2FA

rclone config redacted proton01:
[proton01]
type = protondrive
username = XXX
password = XXX
2fa = XXX
client_uid = XXX
client_access_token = XXX
client_refresh_token = XXX
client_salted_key_pass = XXX
rclone lsd proton01: -vv
2023/11/04 17:35:09 DEBUG : rclone: Version "v1.64.2" starting with parameters ["rclone" "lsd" "proton01:" "-vv"]
2023/11/04 17:35:09 DEBUG : Creating backend with remote "proton01:"
2023/11/04 17:35:09 DEBUG : Using config file from "c:\\data\\rclone\\rclone.conf"
2023/11/04 17:35:09 DEBUG : proton drive root link ID '': Has cached credentials
2023/11/04 17:35:11 DEBUG : proton drive root link ID '': Used cached credential to initialize the ProtonDrive API
          -1 2023-11-04 17:32:43        -1 zork

Thanks for the reply. Im aware its not configured correctly. The --dry-run log said

Transferred:   	   11.117 GiB / 11.117 GiB, 100%, 0 B/s, ETA -
Checks:              1632 / 1632, 100%
Deleted:                0 (files), 19 (dirs)

which confuses me some. specifically "Transferred"
it worked or did not?
And respectfully, i have read
https://rclone.org/protondrive/
countless times... im just not getting it.

And im kinda confused on

NOTE: The Proton Drive encryption keys need to have been already generated after a regular login via the browser, otherwise attempting to use the credentials in rclone will fail.


and i searched the forums and read everything i can find

here is mine

rclone lsd proton: -vv
2023/11/04 17:41:12 DEBUG : rclone: Version "v1.64.2" starting with parameters ["rclone" "lsd" "proton:" "-vv"]
2023/11/04 17:41:12 DEBUG : Creating backend with remote "proton:"
2023/11/04 17:41:12 DEBUG : Using config file from "/home/xxx/.config/rclone/rclone.conf"
2023/11/04 17:41:12 DEBUG : proton drive root link ID '': Has cached credentials
2023/11/04 17:41:17 DEBUG : proton drive root link ID '': Used cached credential to initialize the ProtonDrive API
          -1 2023-06-09 20:34:36        -1 2023-04-11
          
          -1 2023-01-22 07:09:47        -1 CoolShitNotesCmds
          -1 2023-10-10 18:20:33        -1 blockingNW
          -1 2023-09-02 22:15:46        -1 football
          -1 2023-06-03 15:18:08        -1 
          -1 2023-10-11 15:25:07        -1 pancake
2023/11/04 17:41:21 DEBUG : 5 go routines active

the command worked, but did not copy, as you used --dry-run.
the output will show you what rclone would do when you remove --dry-run
NOTICE: file.ext: Skipped copy as --dry-run is set


And im kinda confused on
NOTE: The Proton Drive encryption keys need to have been already generated after a regular login via the browser, otherwise attempting to use the credentials in rclone will fail.
  1. must login to proton drive using a web browser, then proton will create the keys.
  2. run rclone config

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