Rclone mount service taking too long to restart

talking abou that. when restart the service.

if restart the service after a day production and it takes 5 minutes. (here stuck 5 minutes on "Creating backend with remote")
after 2 minutes that I restarted it again and takes 10 seconds. (here do not get stuck on "Creating backend with remote")

Why?

The why would be in the log file. If you can recreate, share the full log and we can see what's going on.

2021/05/25 00:41:39 DEBUG : Using config file from "/etc/gcloud/rclone.conf"
2021/05/25 00:41:39 DEBUG : rclone: Version "v1.55.1" starting with parameters ["/usr/bin/rclone" "mount" "gcloud:bucket" "/gcloud" "--umask=0002" "--allow-other" "--default-permissions" "-vv"]
2021/05/25 00:41:39 DEBUG : Creating backend with remote "gcloud:bucket"
2021/05/25 00:41:39 INFO : bucket: poll-interval is not supported by this remote
2021/05/25 00:41:39 DEBUG : vfs cache: root is "/var/cache/gcloud/vfs/gcloud/bucket"
2021/05/25 00:41:39 DEBUG : vfs cache: metadata root is "/var/cache/gcloud/vfs/gcloud/bucket"
2021/05/25 00:41:39 DEBUG : Creating backend with remote "/var/cache/gcloud/vfs/gcloud/bucket"
2021/05/25 00:52:10 DEBUG : bucket: Mounting on "/gcloud"

here is the full log. look the hour. 00:41:39 to 00:52:10.
the second time, is just few seconds.....

This is probably scanning your cache for files. The second time is much quicker because the OS has cached the files.

Are you running on HDD? How many files are there in the cache?

1 Like

Check your server for disk IO while it's starting as it's scanning things as I'd guess you have a slow disk/lots of files.

1 Like

find /var/cache/gcloud/ -type f | wc -l
370600
du -sh /var/cache/gcloud/
32G /var/cache/animati/gcloud/

Is there a way to increase only this data in OS cache?

I'm studying the union. I think it could help a lot.

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