What is the problem you are having with rclone?
I'm getting an encryption-related error:
Failed to copy: gopenpgp: error in decrypting: openpgp: invalid argument: cannot decrypt encrypted session key for key id <id1> with private key id <id2>
I found nothing on the forums here that seem relevant, and I don't think this git issue is related, but one commenter there appears to be reporting the present issue.
Please let me know if there's anything I can do to help clarify. I don't know how to go about narrowing this down.
Run the command 'rclone version' and share the full output of the command.
rclone v1.65.2
- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 5.4.0-167-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.6
- go/linking: static
- go/tags: none
(also tested on v1.64.0, posted as a github issue before I was told I should have posted here first!)
Which cloud storage system are you using? (eg Google Drive)
Proton Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone sync $folder proton:$folder_name --progress --exclude ".git/" --no-update-modtime --protondrive-replace-existing-draft=true
However, I've also seen it with copy
as I was playing around.
The rclone config contents with secrets removed.
[google_drive]
type = drive
scope = drive
token = {"access_token":"<token>","token_type":"Bearer","refresh_token":"<token>","expiry":"<date>"}
root_folder_id = <id>
[proton]
type = protondrive
username = <user>
password = <pass>
clientUID = <UID>
clientAccessToken = <token>
clientRefreshToken = <token>
clientSaltedKeyPass = <salted_pass>
client_uid = <UID>
client_access_token = <token>
client_refresh_token = <token>
client_salted_key_pass = <salted_pass>
A log from the command with the -vv
flag
I'll provide what I think are relevant excerpts, but let me know if more would be helpful:
2024/03/04 12:36:34 DEBUG : rclone: Version "v1.65.2" starting with parameters ["rclone" "-vv" "sync" "/media/desiderata/00-notes/articles/" "proton:00-notes/articles/" "--progress" "--exclude" ".git/" "--no-update-modtime" "--protondrive-replace-existing-draft=true"]
2024/03/04 12:36:34 DEBUG : Creating backend with remote "/media/desiderata/00-notes/articles/"
2024/03/04 12:36:34 DEBUG : Using config file from "/home/dorian/.config/rclone/rclone.conf"
2024/03/04 12:36:34 DEBUG : fs cache: renaming cache item "/media/desiderata/00-notes/articles/" to be canonical "/media/desiderata/00-notes/articles"
2024/03/04 12:36:34 DEBUG : Creating backend with remote "proton:00-notes/articles/"
2024/03/04 12:36:34 DEBUG : proton: detected overridden config - adding "{kpshc}" suffix to name
2024/03/04 12:36:34 DEBUG : proton drive root link ID '00-notes/articles': Has cached credentials
2024/03/04 12:36:36 DEBUG : proton drive root link ID '00-notes/articles': Used cached credential to initialize the ProtonDrive API
2024/03/04 12:36:38 DEBUG : fs cache: renaming cache item "proton:00-notes/articles/" to be canonical "proton{kpshc}:00-notes/articles"
2024/03/04 12:36:38 DEBUG : .git: Excluded
...
2024/03/04 12:53:14 DEBUG : the-amygdala-is-not-the-fear-centre.md: Size and modification time the same (differ by -792.641715ms, within tolerance 1s)
2024/03/04 12:53:14 DEBUG : the-amygdala-is-not-the-fear-centre.md: Unchanged skipping
2024/03/04 12:53:14 DEBUG : the-five-types-of-couple-gottman.md: Size and modification time the same (differ by -792.641715ms, within tolerance 1s)
2024/03/04 12:53:14 DEBUG : the-five-types-of-couple-gottman.md: Unchanged skipping
2024/03/04 12:53:14 DEBUG : the-human-perspective.md: Size and modification time the same (differ by -792.641715ms, within tolerance 1s)
2024/03/04 12:53:14 DEBUG : the-human-perspective.md: Unchanged skipping
2024/03/04 12:53:14 DEBUG : the-new-democracy.md: Size and modification time the same (differ by -792.641715ms, within tolerance 1s)
2024/03/04 12:53:14 DEBUG : the-new-democracy.md: Unchanged skipping
2024/03/04 12:53:14 DEBUG : the-point-of-love.md: Size and modification time the same (differ by -792.641715ms, within tolerance 1s)
2024/03/04 12:53:14 DEBUG : the-point-of-love.md: Unchanged skipping
2024/03/04 12:53:14 DEBUG : the-scientific-ritual.md: Size and modification time the same (differ by -332.498174ms, within tolerance 1s)
2024/03/04 12:53:14 DEBUG : the-scientific-ritual.md: Unchanged skipping
...
2024/03/04 12:53:21 ERROR : emotion-and-the-mind.md: Failed to copy: gopenpgp: error in decrypting: openpgp: invalid argument: cannot decrypt encrypted session key for key id <key_id> with private key id <priv_key_id>
2024/03/04 12:53:21 ERROR : everything-is-ideology.md: Failed to copy: gopenpgp: error in decrypting: openpgp: invalid argument: cannot decrypt encrypted session key for key id <key_id> with private key id <priv_key_id>
2024/03/04 12:53:21 ERROR : education-is-entertainment.md: Failed to copy: gopenpgp: error in decrypting: openpgp: invalid argument: cannot decrypt encrypted session key for key id <key_id> with private key id <priv_key_id>