After mounting dropbox or mega cloud disk, turn off the computer agent. After waiting for a few minutes, the system will be stuck and cannot be moved

What is the problem you are having with rclone?

After mounting dropbox or mega cloud disk, turn off the computer agent. After waiting for a few minutes, the system will be stuck and cannot be moved. Is there no timeout set?

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

rclone v1.64.2

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

DropBox、Mega

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

Call the following function:
// Mount the remote at mountpoint
func (m *MountPoint) Mount() (daemon *os.Process, err error) {

	// Ensure sensible defaults
	m.SetVolumeName(m.MountOpt.VolumeName)
	m.SetDeviceName(m.MountOpt.DeviceName)

	// Start background task if --daemon is specified
	if m.MountOpt.Daemon {
		daemon, err = daemonize.StartDaemon(os.Args)
		if daemon != nil || err != nil {
			return daemon, err
		}
	}

	m.VFS = vfs.New(m.Fs, &m.VFSOpt)

	m.ErrChan, m.UnmountFn, err = m.MountFn(m.VFS, m.MountPoint, &m.MountOpt)
	if err != nil {
		return nil, fmt.Errorf("failed to mount FUSE fs: %w", err)
	}
	m.MountedOn = time.Now()
	return nil, nil
}

The rclone config contents with secrets removed.

[dropbox1700557499]
type = dropbox
token = XXXX
token_url = XXXX
org_token_url=XXX

What have you done

Disconnect the computer agent, wait for a few minutes, execute the df command in the background and find that the system is stuck.

Please follow Help and Support template and provide all info. It would also spare you from posting your dropbox access details.

Sorry, I didn't write a log record. I just used the GitHub - rclone/rclone: "rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Yandex Files library to simply implement the mounting function. The debugging code was located at the core code position where it was stuck, as shown in the figure:


Rclone has various timeouts - these are the main ones

  --contimeout Duration                Connect timeout (default 1m0s)
  --timeout Duration                   IO idle timeout (default 5m0s)

Note that these might be retried also

  --low-level-retries int   Number of low level retries to do (default 10)

I have tried setting both the connection timeout and IO idle timeout to 5s, and the number of low level retries to be performed to 0, but it still doesn't work.

Can you locate the problem on the second floor? It does get stuck.

Reproduction steps:

  1. Successfully mount a Dropbox or Mega cloud disk;
  2. Disconnect the computer agent and wait for 5m (5m is the default configuration);
  3. Log in to the Linux system background and execute the df command

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