#9196·rclone

**Bug report: `--daemon` + `--rc` causes "address already in use" regression in v1.73.0**

Author: tycooon33Created Feb 20, 2026Updated Sep 22, 2026

Bug report: --daemon + --rc causes "address already in use" regression in v1.73.0

Reference: This issue was previously reported and supposedly fixed in v1.55.1 (see #5513), but it appears to have regressed in v1.73.0.

Description: When using rclone mount with both --daemon and --rc / --rc-addr, the parent process binds the RC port before forking the daemon child. The child then tries to bind the same port and fails with:

CRITICAL: Failed to start remote control: failed to init server: listen tcp 127.0.0.1:5575: bind: address already in use
ERROR : Daemon timed out. Failed to terminate daemon pid XXXXX: os: process already finished
CRITICAL: Fatal error: daemon exited with error code 1

The command returns exit code 1, even though the mount itself sometimes succeeds.

Steps to reproduce:

bash
rclone mount myremote: /mnt/mypoint \
  --daemon \
  --rc \
  --rc-addr=127.0.0.1:5575 \
  --allow-other

Expected behavior: The daemon starts successfully, binds the RC port, and returns exit code 0.

Actual behavior: The parent process binds the RC port before forking. The child process attempts to bind the same port and fails. Exit code is 1.

Environment:

  • rclone version: v1.73.0
  • OS: Ubuntu 24.04
  • FUSE: fusermount3

Workaround: Removing --daemon and managing the background process manually via shell:

bash
rclone mount myremote: /mnt/mypoint --rc --rc-addr=127.0.0.1:5575 --allow-other &
local pid=$!
disown $pid

This avoids the double-bind issue entirely since bash handles the backgrounding instead of rclone's internal fork mechanism.

Additional notes: The RC server (rc/noop, vfs/forget, vfs/refresh) works correctly with the workaround. The bug is specific to the combination of --daemon and --rc-addr.