Skip to content

mount/listmounts return mountpoint which is already unmounted #4860

Open

Description

@dimitrov-adrian

What is the problem you are having with rclone?

mount/listmounts return mountpoint which is already unmounted externaly (via eject or unmount)

What is your rclone version (output from rclone version)

Tried on
rclone v1.53.3

  • os/arch: darwin/amd64
  • go version: go1.15.4

and
rclone v1.54.0-beta.4966.6ab6c8eef

  • os/arch: darwin/amd64
  • go version: go1.15.5

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

macOS big sur

Which cloud storage system are you using? (e.g. Google Drive)

sftp

The command you were trying to run (e.g. rclone copy /tmp remote:tmp)

mounting via remote json api without any options

Activity

  1. ncw commented on Dec 13, 2020

    @ncw
    Member

    Is the mount shut down in the OS?

    You can't shut a mount down if it is in-use in various ways.

    Can you give a series of rclone rc commands to replicate?

    Thanks

  2. dimitrov-adrian commented on Dec 13, 2020

    @dimitrov-adrian
    Author

    There is, umount command, as well as right click eject menu

    rclone rcd --rc-no-auth -vv
    curl -XPOST http://127.0.0.1:5572/mount/mount?fs=server1&mountPoint=/Users/adrian/testpoint&mountType=cmount
    curl -XPOST http://127.0.0.1:5572/mount/listmounts
    umount /Users/adrian/testpoint
    curl -XPOST http://127.0.0.1:5572/mount/listmounts
    

    When doint umount in the rclone output got

     DEBUG : Local file system at /Users/adrian/testpoint: Destroy:
    

    so it seems rclone is aware with the external unmounting

  3. added this to the v1.54 milestone on Dec 18, 2020
  4. ncw commented on Dec 18, 2020

    @ncw
    Member

    Oh, I see! You unmounted the mountpoint externally.

    Hmm, yes that will lead to the problem you've described.

    If you unmount with the rc so use mount/unmount you won't have that problem.

    I guess that listmounts should probably check each mount is still mounted and remove it from the list if not.

  5. modified the milestones: v1.54, v1.55 on Feb 3, 2021
  6. modified the milestones: v1.55, v1.56 on Apr 3, 2021
  7. modified the milestones: v1.56, v1.57 on Jul 20, 2021
  8. modified the milestones: v1.57, Known Problem on Nov 1, 2021
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