Panic on rclone copy from Proton Drive

What is the problem you are having with rclone?

rclone copy bombs with panic message

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

$ rclone version
rclone v1.67.0

  • os/version: debian 12.6 (64 bit)
  • os/kernel: 6.1.0-23-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.22.4
  • go/linking: static
  • go/tags: none
Yes

Which cloud storage system are you using? (eg Google Drive)

Proton

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone copy Proton: /media/dee/INTDAT/Cloud/Protone

The rclone config contents with secrets removed.

"config edit" command for Proton -- with some redactions:
Editing existing "Proton" remote with options:
- type: protondrive
- username: dee.wat@protonmail.com
- password: *** ENCRYPTED ***
- client_uid: *REDACTED*
- client_access_token: *REDACTED*
- client_refresh_token: *REDACTED*
- client_salted_key_pass: *REDACTED*

A log from the command with the -vv flag

$ rclone copy -vv Proton: /media/dee/INTDAT/Cloud/Proton
2024/08/21 11:51:16 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rclone" "copy" "-vv" "Proton:" "/media/dee/INTDAT/Cloud/Proton"]
2024/08/21 11:51:16 DEBUG : Creating backend with remote "Proton:"
2024/08/21 11:51:16 DEBUG : Using config file from "/home/dee/.config/rclone/rclone.conf"
2024/08/21 11:51:16 DEBUG : proton drive root link ID '': Has cached credentials
2024/08/21 11:51:17 DEBUG : proton drive root link ID '': Used cached credential to initialize the ProtonDrive API
2024/08/21 11:51:17 DEBUG : Creating backend with remote "/media/dee/INTDAT/Cloud/Proton"
2024/08/21 11:51:19 DEBUG : First_proton_file_20240821: Original file size missing
2024/08/21 11:51:19 DEBUG : First_proton_file_20240821: Need to transfer - File not found at Destination
2024/08/21 11:51:19 DEBUG : First_proton_file_20240821: Original file size missing
2024/08/21 11:51:19 DEBUG : Rory Gilmore Reads.docx: Need to transfer - File not found at Destination
2024/08/21 11:51:19 DEBUG : First_proton_file_20240821: Original file size missing
2024/08/21 11:51:19 DEBUG : Local file system at /media/dee/INTDAT/Cloud/Proton: Waiting for checks to finish
2024/08/21 11:51:19 DEBUG : Local file system at /media/dee/INTDAT/Cloud/Proton: Waiting for transfers to finish
2024/08/21 11:51:19 DEBUG : First_proton_file_20240821: Original file size missing
2024/08/21 11:51:19 DEBUG : First_proton_file_20240821: Original file size missing
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x162a8c6]

goroutine 72 [running]:
github.com/rclone/rclone/backend/protondrive.(*Object).Open(0xc000c1e000, {0x2b90450, 0xc000e10c30}, {0xc0006c2060, 0x1, 0x20?})
	github.com/rclone/rclone/backend/protondrive/protondrive.go:886 +0x46
github.com/rclone/rclone/fs/operations.(*ReOpen).open(0xc000ca0000)
	github.com/rclone/rclone/fs/operations/reopen.go:147 +0x106
github.com/rclone/rclone/fs/operations.NewReOpen({0x2b90450, 0xc000e10c30}, {0x2ba69d0, 0xc000c1e000}, 0xa, {0xc0006c2030, 0x1, 0x1})
	github.com/rclone/rclone/fs/operations/reopen.go:102 +0x50b
github.com/rclone/rclone/fs/operations.Open({0x2b90450, 0xc000e10c30}, {0x2ba69d0, 0xc000c1e000}, {0xc0006c2030, 0x1, 0x1})
	github.com/rclone/rclone/fs/operations/reopen.go:124 +0x6b
github.com/rclone/rclone/fs/operations.(*copy).manualCopy(0xc0009685a0, {0x2b90450, 0xc000e10c30})
	github.com/rclone/rclone/fs/operations/copy.go:257 +0x4e5
github.com/rclone/rclone/fs/operations.(*copy).copy(0xc0009685a0, {0x2b90450, 0xc000e10c30})
	github.com/rclone/rclone/fs/operations/copy.go:306 +0x16c
github.com/rclone/rclone/fs/operations.Copy({0x2b90450, 0xc000e10c30}, {0x2ba5f50, 0xc000e060a0}, {0x0, 0x0}, {0xc000c1a5c0, 0x1a}, {0x2ba69d0, 0xc000c1e000})
	github.com/rclone/rclone/fs/operations/copy.go:408 +0x485
github.com/rclone/rclone/fs/sync.(*syncCopyMove).pairCopyOrMove(0xc000c32288, {0x2b90450, 0xc000e10c30}, 0xc000e10b40, {0x2ba5f50, 0xc000e060a0}, 0x32, 0x0?)
	github.com/rclone/rclone/fs/sync/sync.go:501 +0x205
created by github.com/rclone/rclone/fs/sync.(*syncCopyMove).startTransfers in goroutine 1
	github.com/rclone/rclone/fs/sync/sync.go:531 +0x6b

welcome to the forum,

https://github.com/rclone/rclone/issues/7959

just now, i did a quick test, can confirm that github issue.
also, i tried --ignore-size, did not help.

tho, in protondrive website, the file does have a size

What is the problem you are having with rclone?
rclone panic runtime error

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

  • os/version: arch (64 bit)
  • os/kernel: 6.10.9-arch1-2 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.23.1
  • go/linking: dynamic
  • go/tags: none

Which cloud storage system are you using?
Proton

The command you were trying to run
rclone sync --interactive -u -P proton-drive: /home/user/pdrive

logs
<..>

goroutine 89 [running]:
github.com/rclone/rclone/backend/protondrive.(*Object).Open(0xc003e2a320, {0x563425d1a310, 0xc000db2e10}, {0xc0006e07f0, 0x1, 0xc0023559b8?})
	github.com/rclone/rclone/backend/protondrive/protondrive.go:886 +0x46
github.com/rclone/rclone/fs/operations.(*ReOpen).open(0xc003f09180)
	github.com/rclone/rclone/fs/operations/reopen.go:147 +0x109
github.com/rclone/rclone/fs/operations.NewReOpen({0x563425d1a310, 0xc000db2e10}, {0x563425d31b30, 0xc003e2a320}, 0xa, {0xc0006e07e0, 0x1, 0x1})
	github.com/rclone/rclone/fs/operations/reopen.go:102 +0x50b
github.com/rclone/rclone/fs/operations.Open({0x563425d1a310, 0xc000db2e10}, {0x563425d31b30, 0xc003e2a320}, {0xc0006e07e0, 0x1, 0x1})
	github.com/rclone/rclone/fs/operations/reopen.go:124 +0x6b
github.com/rclone/rclone/fs/operations.(*copy).manualCopy(0xc002945ef0, {0x563425d1a310, 0xc000db2e10})
	github.com/rclone/rclone/fs/operations/copy.go:261 +0x4dc
github.com/rclone/rclone/fs/operations.(*copy).copy(0xc002945ef0, {0x563425d1a310, 0xc000db2e10})
	github.com/rclone/rclone/fs/operations/copy.go:310 +0x176
github.com/rclone/rclone/fs/operations.Copy({0x563425d1a310, 0xc000db2e10}, {0x563425d30fd0, 0xc0008c1d60}, {0x0, 0x0}, {0xc000d57800, 0x2d}, {0x563425d31b30, 0xc003e2a320})
	github.com/rclone/rclone/fs/operations/copy.go:412 +0x493
github.com/rclone/rclone/fs/sync.(*syncCopyMove).pairCopyOrMove(0xc00089c008, {0x563425d1a310, 0xc000db2e10}, 0xc000db2d70, {0x563425d30fd0, 0xc0008c1d60}, 0x0, 0x2?)
	github.com/rclone/rclone/fs/sync/sync.go:501 +0x1fe
created by github.com/rclone/rclone/fs/sync.(*syncCopyMove).startTransfers in goroutine 1
	github.com/rclone/rclone/fs/sync/sync.go:531 +0x6b

still confirm issue above (previously with 1.67 and go 1.22 as well)

welcome to the forum,

your issue might not be the same as the OP.

if it is the same issue, there is already an open issue at github, so might be best to post at github.
tho, the last reply from author of the proton drive backend is Jul 29 2024

if not the same issue, then please start a new topic, use the help and support template, answer all the questions.
tho, the author of the proton drive backend, has not been seen in the forum since Apr 24 2024

https://github.com/henrybear327/Proton-API-Bridge
has not been updated in a year...

Thx for hints and addressed me.