Cannot read file from folder containing "&" in subfolder with --http-no-head

What is the problem you are having with rclone?

Cannot read a file from folder that contains &

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

rclone v1.71.0

  • os/version: debian trixie/sid (64 bit)
  • os/kernel: 6.14.0-29-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.25.0
  • go/linking: static
  • go/tags: none

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

http

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

~/myrient/TOSEC/Fairchild/VES & Channel F/Games$

head Alien\ Invasion\ \(1978\)\(Zircon\).zip 

The rclone config contents with secrets removed.

[myrient]
type = http
url = https://myrient.erista.me/files/

A log from the command with the -vv flag

https://gist.github.com/WizzardSK/3cabeb64ff56c7008c8fe033ec4b4de1
2025/09/08 21:57:07 DEBUG : TOSEC/Fairchild/VES & Channel F/Games/Alien Invasion (1978)(Zircon).zip: Open: flags=OpenReadOnly
2025/09/08 21:57:07 DEBUG : TOSEC/Fairchild/VES & Channel F/Games/Alien Invasion (1978)(Zircon).zip: Open: flags=O_RDONLY
2025/09/08 21:57:07 DEBUG : TOSEC/Fairchild/VES & Channel F/Games/Alien Invasion (1978)(Zircon).zip: >Open: fd=TOSEC/Fairchild/VES & Channel F/Games/Alien Invasion (1978)(Zircon).zip (r), err=<nil>
2025/09/08 21:57:07 DEBUG : TOSEC/Fairchild/VES & Channel F/Games/Alien Invasion (1978)(Zircon).zip: >Open: fh=&{TOSEC/Fairchild/VES & Channel F/Games/Alien Invasion (1978)(Zircon).zip (r)}, err=<nil>
2025/09/08 21:57:07 DEBUG : &{Handle:TOSEC/Fairchild/VES & Channel F/Games/Alien Invasion (1978)(Zircon).zip (r)}: Read: len=8192, offset=0
2025/09/08 21:57:07 DEBUG : TOSEC/Fairchild/VES & Channel F/Games/Alien Invasion (1978)(Zircon).zip: ChunkedReader.openRange at 0 length 134217728
2025/09/08 21:57:07 ERROR : IO error: Open failed: Get "https://myrient.erista.me/files/TOSEC/Fairchild/VES%20&%20Channel%20F/Games/Alien%20Invasion%20%281978%29%28Zircon%29.zip": stopped after 10 redirects
2025/09/08 21:57:07 DEBUG : &{Handle:TOSEC/Fairchild/VES & Channel F/Games/Alien Invasion (1978)(Zircon).zip (r)}: >Read: read=0, err=Open failed: Get "https://myrient.erista.me/files/TOSEC/Fairchild/VES%20&%20Channel%20F/Games/Alien%20Invasion%20%281978%29%28Zircon%29.zip": stopped after 10 redirects
2025/09/08 21:57:07 DEBUG : &{Handle:TOSEC/Fairchild/VES & Channel F/Games/Alien Invasion (1978)(Zircon).zip (r)}: Flush: 
2025/09/08 21:57:07 DEBUG : &{Handle:TOSEC/Fairchild/VES & Channel F/Games/Alien Invasion (1978)(Zircon).zip (r)}: >Flush: err=<nil>
2025/09/08 21:57:07 DEBUG : &{Handle:TOSEC/Fairchild/VES & Channel F/Games/Alien Invasion (1978)(Zircon).zip (r)}: Release: 
2025/09/08 21:57:07 DEBUG : &{Handle:TOSEC/Fairchild/VES & Channel F/Games/Alien Invasion (1978)(Zircon).zip (r)}: >Release: err=<nil>

so, without --http-no-head, the commands work as expected?
the only issue is --http-no-head ?


can you copy just one single file, using rclone copy, not rclone mount
add --retries=1 --low-level-retries=1

Problem was with –http-no-head yesterday (did not try without), now it works with and without –http-no-head and also rclone copy works. So it looks like there was some problem with the server.

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