Skip to content

Mount: Windows mount produces four instances of "new folder" when requested to make one in explorer. #2187

Closed

Description

@danielloader

What is the problem you are having with rclone?

Creation of 4 instances of a new folder.
https://i.imgur.com/jgFnwdX.png

What is your rclone version (eg output from rclone -V)

rclone v1.40-028-ga8267d16

  • os/arch: windows/amd64
  • go version: go1.10

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

Win 10 64bit

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

Google drive

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

mount media: y: --config "C:\Users\spicypixel\rclone.conf" --dir-cache-time=1m --cache-chunk-size=32M --cache-info-age=672h --buffer-size=16M --rc --cache-tmp-upload-path="C:\Users\spicypixel\AppData\Local\Temp\rclone\cache-upload" -v

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

Activity

  1. changed the title [-]Mount: Windows mount produces 4 instances of "new folder" when requested in explorer.[/-] [+]Mount: Windows mount produces four instances of "new folder" when requested to make one in explorer.[/+] on Mar 30, 2018
  2. ncw commented on Mar 30, 2018

    @ncw
    Member

    What did you do to create the new folders? How can I reproduce the problem?

    Thanks

  3. danielloader commented on Mar 30, 2018

    @danielloader
    ContributorAuthor

    Right clicked in an empty folder in Windows Explorer, clicked New > Folder, like a regular filesystem.

    It then hesitates a little and comes back with the ones in the screenshot above.

  4. ncw commented on Apr 5, 2018

    @ncw
    Member

    I tried to replicate this with Windows server 2016 but it resolutely only makes one folder!

    Can you run with -vv --log-file mount.log and make the new folder then stop the mount and attach the log here? That should hopefully give a bit more idea as to what is going on.

  5. danielloader commented on Apr 5, 2018

    @danielloader
    ContributorAuthor

    Will do as soon as I get a chance. Thanks!

  6. ncw commented on Apr 16, 2018

    @ncw
    Member

    Thank you for that - nice video :-)

    Everything looks normal in the log... I wonder if the New Folder is just taking too long to appear.

    Can you try this for me?

    • Try the same experiment but with the underlying remote gdrive without the cache
    • Try the same experiment just with rclone mount c:\path\to\localdir Q:

    Thanks!

  7. 03c commented on Jul 4, 2018

    @03c

    I would just like to confirm this behaviour on my server. I can provide my details/logs if you would like.

  8. ncw commented on Jul 5, 2018

    @ncw
    Member

    @christoefar are you using cache? Can you try the experiments In the comment just above your first comment?

  9. 03c commented on Jul 5, 2018

    @03c

    @Daniel-Loader I notice you have passed the location of the conf file like I do. Is this because you are running it as a windows service using NSSM?

    I ask because my command will run fine until I run it as service at which point I get the problem.

    I have run the tests and attached the log files,

    Problem Command & Log

    Log: https://pastebin.com/ivEJ2Mj9
    You can see in this log the references to all 4 of the files.

    Steps:

    1. Mount
    2. Create new folder (which produces 4 new folders).
    3. Unmount

    Try the same experiment but with the underlying remote gdrive without the cache

    Try the same experiment just with rclone mount c:\path\to\localdir Q:

  10. danielloader commented on Jul 5, 2018

    @danielloader
    ContributorAuthor

    Can confirm using the cache and nssm for service. Seems suspect then if it's not possible to recreate it when you run it manually.

  11. added a commit that references this issue on Jul 6, 2018
  12. ncw commented on Jul 6, 2018

    @ncw
    Member

    @christoefar thanks for the logs. As far as I can see everything looks normal in the problem case. rclone doesn't report any errors, none of the FUSE calls return errors (except for the initial query to see if the directory is there before creating it).

    The difference seems to be that in the problem case, things run the same until the OS decides to do this quite a few times

    2018/07/05 13:11:20 DEBUG : /New folder: Getattr: fh=0xFFFFFFFFFFFFFFFF
    2018/07/05 13:11:20 DEBUG : /New folder: >Getattr: errc=0
    2018/07/05 13:11:20 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
    2018/07/05 13:11:20 DEBUG : /: >Getattr: errc=0
    

    So that is as if it is looking for the directory. Rclone returned errc=0 so it found it, but we don't know exactly what rclone returned at that point.

    I made a test binary which will print exactly what rclone returns in those Getattr calls. Could you repeat your first two tests with this and we'll see exactly what the problem is hopefully. Thank you :-)

    https://beta.rclone.org/branch/v1.42-026-g6f86549c-fix-2187/ (uploaded in 15-30 mins)

  13. added this to the Known Problem milestone on Aug 30, 2018
  14. ncw commented on May 7, 2020

    @ncw
    Member

    Note there is more discussion of this here: #3216

    The conclusion seems to be that it is running on the SYSTEM account which is the problem.

  15. ivandeex commented on Feb 9, 2021

    @ivandeex
    Member

    @danielloader @christopherchild This problem is reported against obsolete rclone version. Can you reproduce it with rclone 1.54?

  16. ivandeex commented on Mar 12, 2021

    @ivandeex
    Member

    Closing stale requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions