1fichier only 1 location allowed at a time

What is the problem you are having with rclone?

After mounting 1fichier cloud as a drive, sometimes I get the message: vfs cache: failed to download: vfs reader: failed to write to cache file: couldn't list files: HTTP error 403 (403 Forbidden) returned body: "{"status":"KO","message":"Only 1 location allowed at a time #875"}".

Is there a setting I should use to prevent this?

What is your rclone version (output from rclone version)

rclone v1.55.0

  • os/type: windows
  • os/arch: amd64
  • go/version: go1.16.2
  • go/linking: dynamic
  • go/tags: cmount

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows Server 2016

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

1fichier

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

rclone mount remote: Z: --vfs-cache-mode full --no-modtime --network-mode --vfs-read-ahead 256M --vfs-cache-max-size 150G --bwlimit-file 16M --dir-cache-time 1000h --poll-interval 15s

The rclone config contents with secrets removed.

[remote]
type = fichier
api_key = ---

A log from the command with the -vv flag

2021/04/16 03:09:49 DEBUG : /Serien/Future Man (2017)/Staffel 1/tvs-future-man-dd51-dl-18p-azhd-x264-113.mkv: >Release: errc=0
2021/04/16 03:09:54 DEBUG : pacer: low level retry 3/10 (error HTTP error 403 (403 Forbidden) returned body: "{\"message\":\"Only 1 location allowed at a time #875\",\"status\":\"KO\"}")
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Opendir:
2021/04/16 03:09:57 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/04/16 03:09:57 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/04/16 03:09:57 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/04/16 03:09:57 DEBUG : /: Statfs:
2021/04/16 03:09:57 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:274877906944 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/04/16 03:09:57 DEBUG : /: Releasedir: fh=0x0
2021/04/16 03:09:57 DEBUG : /: >Releasedir: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Opendir:
2021/04/16 03:09:57 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/04/16 03:09:57 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/04/16 03:09:57 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/04/16 03:09:57 DEBUG : /: Releasedir: fh=0x0
2021/04/16 03:09:57 DEBUG : /: >Releasedir: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Opendir:
2021/04/16 03:09:57 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/04/16 03:09:57 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/04/16 03:09:57 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/04/16 03:09:57 DEBUG : /: Releasedir: fh=0x0
2021/04/16 03:09:57 DEBUG : /: >Releasedir: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Opendir:
2021/04/16 03:09:57 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/04/16 03:09:57 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/04/16 03:09:57 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Releasedir: fh=0x0
2021/04/16 03:09:57 DEBUG : /: >Releasedir: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Opendir:
2021/04/16 03:09:57 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/04/16 03:09:57 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/04/16 03:09:57 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/04/16 03:09:57 DEBUG : /: Releasedir: fh=0x0
2021/04/16 03:09:57 DEBUG : /: >Releasedir: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Opendir:
2021/04/16 03:09:57 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/04/16 03:09:57 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/04/16 03:09:57 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/04/16 03:09:57 DEBUG : /: Releasedir: fh=0x0
2021/04/16 03:09:57 DEBUG : /: >Releasedir: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Opendir:
2021/04/16 03:09:57 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/04/16 03:09:57 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/04/16 03:09:57 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/04/16 03:09:57 DEBUG : /: Releasedir: fh=0x0
2021/04/16 03:09:57 DEBUG : /: >Releasedir: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Opendir:
2021/04/16 03:09:57 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/04/16 03:09:57 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/04/16 03:09:57 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/04/16 03:09:57 DEBUG : /: Releasedir: fh=0x0
2021/04/16 03:09:57 DEBUG : /: >Releasedir: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Opendir:
2021/04/16 03:09:57 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/04/16 03:09:57 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/04/16 03:09:57 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/04/16 03:09:57 DEBUG : /: Releasedir: fh=0x0
2021/04/16 03:09:57 DEBUG : /: >Releasedir: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Opendir:
2021/04/16 03:09:57 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/04/16 03:09:57 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/04/16 03:09:57 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/04/16 03:09:57 DEBUG : /: Releasedir: fh=0x0
2021/04/16 03:09:57 DEBUG : /: >Releasedir: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Opendir:
2021/04/16 03:09:57 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/04/16 03:09:57 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/04/16 03:09:57 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Releasedir: fh=0x0
2021/04/16 03:09:57 DEBUG : /: >Releasedir: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Opendir:
2021/04/16 03:09:57 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/04/16 03:09:57 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/04/16 03:09:57 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/04/16 03:09:57 DEBUG : /: Releasedir: fh=0x0
2021/04/16 03:09:57 DEBUG : /: >Releasedir: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Opendir:
2021/04/16 03:09:57 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/04/16 03:09:57 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/04/16 03:09:57 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/04/16 03:09:57 DEBUG : /: Releasedir: fh=0x0
2021/04/16 03:09:57 DEBUG : /: >Releasedir: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/04/16 03:09:57 DEBUG : /: >Getattr: errc=0
2021/04/16 03:09:57 DEBUG : /: Opendir:
2021/04/16 03:09:57 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/04/16 03:09:57 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/04/16 03:09:57 DEBUG : /: >Opendir: errc=0, fh=0x0
2021/04/16 03:09:57 DEBUG : /: Releasedir: fh=0x0
2021/04/16 03:09:57 DEBUG : /: >Releasedir: errc=0
2021/04/16 03:09:59 DEBUG : pacer: low level retry 4/10 (error HTTP error 403 (403 Forbidden) returned body: "{\"status\":\"KO\",\"message\":\"Only 1 location allowed at a time #875\"}")
The service rclone has been stopped.
2021/04/16 03:10:04 DEBUG : pacer: low level retry 5/10 (error HTTP error 403 (403 Forbidden) returned body: "{\"message\":\"Only 1 location allowed at a time #875\",\"status\":\"KO\"}")
2021/04/16 03:10:09 DEBUG : pacer: low level retry 6/10 (error HTTP error 403 (403 Forbidden) returned body: "{\"status\":\"KO\",\"message\":\"Only 1 location allowed at a time #875\"}")

1fichier have some quite fierce rate limiting which I guess is what is causing that error.

Could your IP address have changed or are you using it from two different IPs?

I'm not sure exactly what this error means: "Only 1 location allowed at a time #875" - can you ask 1fichier support what it means?

Hey, thank you for your reply.
There shouldn't be any different IP. Everything concerning 1fichier happens with the same IP. This mostly appears when Plex scans this folder, mh.

I already contacted 1fichier with this message and they replied that they don't know where this comes from and I should contact the rclone creator..

I think you are tripping their directory read limiting so you could increase the caching... Though you have --dir-cache-time 1000h which should definitely be enough.

Ha!

This string does not exist in the rclone source so I'm pretty sure it is coming from 1fichier.

If you run with -vv --dump responses then you'll be able to find the HTTP request and response in the log that generated the problem, but I'm willing to bet it came back from the directory listing request.

What you can do is set --tpslimit 1 (say) to limit rclone to 1 transaction per second - that might help.

That was my guess too, I think plex is a bit too fast.

100%. I mean you can see that this is a http error lol. The overall contact with them was kinda .. weird. But after all the service is not for mounting in first place, so I'm really happy that rclone supports it! :slight_smile:

I tried that but somehow that crashes the CMD. After I start this and start the scan I can see how incredible fast it scans all folders etc. after I saw a http error I tried to stop it with CTRL + C, but then the console crashes and the only thing I can see is this: https://img.fps.wtf/ei60bm9v2wZRWlw69dTUcg4n26MQacxD.png

that's a great idea! I try around a bit and see if I can raise the number to find the best limit. I started with 5 and started a scan - at this moment - without any errors (yet) :smiley:

1 Like

That is weird! Saving the log to a file is best with --log-file

:crossed_fingers:

So atm I'm at --tpslimit 30 and it seems to run smooth (for now).

I have one more question Is it possible that --poll-interval 15s has no effect on 1fichier mounts? I even tried --vfs-cache-poll-interval 15s but the folder don't get any updates. Do I miss something or is there another way to check for new files?

/EDIT: I saw in the logs poll-interval is not supported by this remote so is there another method to actually refresh without restarting the mount?

Good

Yes you are right, poll interval isn't supported by 1fichier.

You can refresh the mount by using the rc command vfs/refresh

Thank you! I removed the limit and logged out everywhere else from 1fichier and now it works without any issues yet.

Thank you! This works, but if I use recursive=true it sometimes throws the error net/http: timeout awaiting response headers. Is there a limit I could raise?
This is my rclone command rclone mount remote: Z: --vfs-cache-mode full --no-modtime --network-mode --vfs-read-ahead 256M --vfs-cache-max-size 150G --dir-cache-time 1000h --log-file=rclonelog.txt -vv --bind hostname --rc --rc-addr=hostname:5572 --rc-user=xx--rc-pass=xx

Log
2021/04/25 11:27:32 DEBUG : Using config file from "C:\\Users\\Administrator\\.config\\rclone\\rclone.conf" 2021/04/25 11:27:32 DEBUG : rclone: Version "v1.55.0" starting with parameters ["rclone" "rc" "vfs/refresh" "--rc-addr=hostname:5572" "--rc-user=xx" "--rc-pass=xx" "recursive=true" "-vvv"] 2021/04/25 11:32:32 DEBUG : 2 go routines active 2021/04/25 11:32:32 Failed to rc: connection failed: Post "http://hostname:5572/vfs/refresh": net/http: timeout awaiting response headers

You can raise the --timeout flag. You can also set _async=true on your rc command line which will do the refresh in the background.

1 Like

Thank you again! :smiley:

1 Like