Skip to content

Troubleshooting

The control CLI (and the app) reach the daemon over a Unix socket. If a command reports it can’t connect:

  • Confirm the daemon is actually running (systemctl --user status proton-syncd, or check your foreground terminal).
  • Confirm both sides use the same socket path. With no --socket-path, both default to $XDG_RUNTIME_DIR/proton-sync.sock (with an OS-temp fallback). If you started the daemon with a custom --socket-path, pass the same one to proton-sync.

In the desktop app this surfaces as the Unreachable state, which offers “Start proton-syncd” and “View journal”.

Only one daemon per user may run, and only one per root. If startup fails with a lock error, another live daemon already holds a lock — because every daemon shells the same proton-drive CLI, whose shared cache isn’t concurrency-safe. Stop the running daemon. Note that --lockfile-path only isolates the per-root lock; the per-user single-instance lock can’t be bypassed by any flag (for a fully isolated test, run under a separate $XDG_STATE_HOME). The daemon fails to start with a clear error naming the locked lockfile — and, for a per-root lock, the folder pair — rather than failing silently.

A lockfile left on disk after the daemon stops is normal and does not mean a daemon is running: the lock is an advisory flock on the file, released when the process exits, and the (empty) file is deliberately kept so every start contends on the same one. Do not delete it to “unstick” a start: deleting it lets a second daemon lock a fresh inode and run alongside the first. Only a start that fails with the lock error above is being refused by the lock — startup failures with any other message have another cause.

A folder pair shows an error and isn’t syncing

Section titled “A folder pair shows an error and isn’t syncing”

A folder pair whose local folder can’t be used does not stop the daemon: the pair shows the reason (proton-sync status; the desktop app shows the error rather than the first-run wizard), every other pair keeps syncing, and the daemon tries the pair again on its normal cadence. The reason says which of these it is:

  • The folder doesn’t exist — it couldn’t be created when the daemon started, or it went away since (an unplugged or unmounted drive, a deleted folder). Put it back and the next attempt picks it up; if the folder is on a drive, mount the drive. The daemon creates the folder only when it starts, never while it runs. Don’t restart the daemon to fix a missing folder on a drive: a restart creates a missing folder, and a mount point whose drive isn’t mounted would be created as an empty folder on the wrong disk and then treated as your sync folder (#426). Restart only when the folder is truly gone and should be created empty.

  • Replaced by an empty folder — the folder is there, but it is a different, empty directory (or it was emptied together with its .sync state directory) while files are recorded as synced for it. Typically that is an unmounted drive’s empty mount point, or a folder deleted and made again. Reconciled as it stands, that reads as “delete everything”, and starting over in it would download everything into it, so the daemon holds the pair unavailable instead: nothing is deleted, created or downloaded. That holds for every state layout, the default .sync directory inside the folder included. There are two ways out:

    • Mount the drive, or put the folder back. The next attempt picks it up once the folder holds something again. If you restore only part of it (or the folder holds only a stray entry such as a file manager’s .directory or an empty lost+found), the daemon takes it from there, and the first pass withholds every deletion for approval whatever your delete-approval setting says: the files you have not restored yet show up as pending deletions, and nothing is deleted until you approve them, restore the files, or start over — restarting the daemon does not change that, it remembers they are waiting. (With the default .sync layout the index went with the folder, so that pass only downloads and adopts and has nothing to delete.)
    • Start this folder over from Proton with proton-sync reset-index --yes. It downloads everything into the folder and deletes nothing. Don’t restart the daemon to accept an empty folder: the hold lives in the running daemon only, and a restart over an empty mount point either deletes everything remote (delete approval off, index kept outside the folder) or downloads everything into the mount point (default layout) (#426).
  • The Proton folder changed — the reason says the folder “was last synced with the Proton folder” one thing, “but this pair is now set to” another. A pair’s index remembers which Proton folder it was last synced with. Set to a different one (you edited remote_root, or added a folder over an index kept from another Proton folder), everything the old folder had and the new one lacks would read as deleted on Proton, and a Proton folder that does not exist yet would be created and filled from your files. So the daemon holds the pair unavailable: nothing is listed, uploaded, downloaded or deleted on either side. There are two ways out:

    • Keep the old Proton folder. Put remote_root back to the folder the reason names, and restart the daemon. The pair resumes from its old baseline. A restart is safe here, unlike in the cases above: the index remembers the old folder, so a restart with the wrong one is held again.
    • Use the new Proton folder with proton-sync reset-index --yes --pair NAME. It forgets what was recorded about the old folder and starts over from both sides: what matches is adopted, what only your folder has is uploaded to the new Proton folder, what only the new one has is downloaded, what differs is kept as a conflict copy, and nothing is deleted.

    An index written by a version from before this check cannot say which Proton folder it came from, so the daemon takes the one that is configured when it starts and records it. A change made before the upgrade is not caught.

    The check compares folder paths, nothing more. A Proton folder you renamed or moved in the web app and then followed by editing remote_root is held like any other change (the reset-index above is the way through, and is quick because what already matches is adopted). A different Proton account signed in at the same path is not noticed. Running a version of the daemon from before this check against the same index does not update what the index remembers, so the newer one can hold a folder that is fine; the same reset-index releases it. resync and a scheduled full sweep do not release the hold.

    A pair whose files were all deleted on both sides, with the deletions synced, has nothing left to compare. It is not held when you change remote_root: the daemon starts it over from the folder you configured.

    The desktop app does not leave you here when you change a folder’s Proton folder in Settings: it asks once, and on confirmation starts the folder over from both sides before it saves (see Changing a folder’s Proton Drive folder). The hold is for a remote_root changed any other way: editing the file, or adding a folder over a history kept from another Proton folder.

  • Its state was removed along with the folder — the folder was deleted and made again with files in it, and the index and lock inside it went with it. The daemon prepares the pair again from the new folder on its next attempt; you don’t need to do anything. (If the new folder is empty, it is the case above — also if it is emptied before that next attempt, replaced or emptied in place: the daemon remembers how many items the old folder had recorded, assumes there were items if it could not read that, and holds the folder rather than starting over in it. The message then says the number “could not be counted”; the two ways out are the same.)

  • The filesystem names the folder differently on each look (logged once at start) — the filesystem, typically a FUSE mount, reports a different identity for the folder each time it is asked, so a folder replaced while the daemon runs cannot be told from the same one. For that folder the daemon only checks that it is there: nothing is held or withheld for a replacement, and your delete-approval setting applies as it is. Keep delete approval on for such a folder, or move it to a filesystem with stable inode numbers.

  • The folder is not available: an I/O error — a check of the folder failed with something other than “not found” (an Input/output error or a stale handle on a network mount). The daemon cannot tell what folder it would be working on, so the pass ends and is tried again at the pair’s next turn; nothing further is done to the folder, and the adoptions the pass had already worked out are kept, so a large first sync does not start over each time. It clears by itself once the mount answers.

  • Locked by another process — something else holds the folder’s lock (a second proton-syncd, or another account’s daemon syncing the same folder). A daemon that is starting refuses to start, naming the pair; one that is already running leaves that pair unavailable until the lock is free.

  • It overlaps another folder pair — the reason names both pairs and, for every path, what the config says and where it really points. For two folders it explains that “Two pairs may not share a folder or nest” and why, in a sentence that carries on after those words; the other forms say that one pair’s index or lockfile is inside the other’s folder, or that two pairs share a state file. Two pairs’ folders are, on disk, the same folder or one inside the other — usually a symlink, or a folder moved into another pair’s. The daemon refuses to start on it; a pair whose folder appears later stays unavailable; and when two running pairs come to overlap, both stop before their next pass, because the outer one would otherwise upload the inner one’s .sync directory (its lockfile and status files) as ordinary files. A running pair also stops when a pair that is already unavailable (for any other reason) has its folder inside it, but a pair counts only while its folder exists, whatever state it is in: an unplugged or unmounted drive stops nothing. Nothing is deleted. Undo the move or the link, and both resume at their next attempt.

  • Its state could not be opened, or its metrics file could not be written — the .sync directory (or the index path you configured) isn’t usable. Fix the permissions or free the space.

If the daemon can’t watch a folder (usually the inotify watch limit, ENOSPC), the pair is not unavailable: it keeps syncing, but scans the local folder on every pass instead of waiting for change events, and registers the watch again before each pass. Raise fs.inotify.max_user_watches to get the cheap path back.

If uploads, downloads, or listings fail, reproduce the underlying proton-drive call directly to isolate the problem:

Terminal window
proton-drive filesystem list --json /Drive/RemoteFolder

If that fails, fix authentication, permissions, or the remote folder name first — the daemon can only be as healthy as the CLI it shells. Check the daemon’s logs for the structured fields (operation, attempt, exit status, stderr, timeout); see Logging. To check the CLI, its sign-in and the other tools the engine needs in one go, run proton-sync doctor (see Dependency check).

After a reboot the daemon fails every sync until I restart it

Section titled “After a reboot the daemon fails every sync until I restart it”

Symptom: right after boot, journalctl --user -u proton-syncd shows every pass failing — often could not run the proton-drive CLI … No such file or directory (os error 2) — and a manual systemctl --user restart proton-syncd a few minutes later fixes it.

This is a boot-ordering race. A systemd user service can start before your desktop session has (a) imported your login PATH into the user manager and (b) unlocked the desktop keyring. So the daemon can’t find the proton-drive CLI on PATH, and can’t read its keyring session. PATH is captured once at process start, so retries in the same process keep failing the same way — only a fresh process (a restart) picks up the corrected environment.

Fixes:

  • Pin an absolute proton_cli in ~/.config/proton-sync/proton-sync.toml, e.g. proton_cli = "~/.local/bin/proton-drive". This bypasses PATH and is the most reliable fix.
  • The shipped unit already sets a PATH covering ~/.local/bin, ~/.cargo/bin, and ~/bin, and is ordered After=graphical-session.target. If you hand-wrote your unit, re-copy the sample (or re-run setup.sh) and systemctl --user daemon-reload.
  • The keyring side self-heals: the daemon re-checks the keyring every pass and resumes event-driven detection once it’s unlocked — no restart needed. Make sure the keyring is actually unlocked at login (auto-login without a password can leave it locked).
  • proton-sync doctor reports a missing proton-drive, a missing sign-in and a missing secret-tool or session bus; see Dependency check.

Event-driven detection reuses the proton-drive CLI’s keyring session. If the CLI is idle and its token expires, a pass fails auth and is skipped until the CLI refreshes — and the daemon degrades to snapshot scans meanwhile, so sync keeps working, just less cheaply. Keep proton-drive logged in, and keep the desktop keyring unlocked (with DBUS_SESSION_BUS_ADDRESS set) for a service. You can also opt out with --no-events-driven to force snapshot-only detection.

That’s usually the delete-approval guard doing its job: deletions are withheld until approved. Check what’s pending:

Terminal window
proton-sync pending
proton-sync approve <path> # or --all
proton-sync syncnow

If a deletion still doesn’t apply after approval, the entity may have changed since you approved it — approvals are pinned to the exact content/id you saw, so a stale approval is inert. Re-run pending to see the current queue.

Sync behavior looks wrong — inspect safely

Section titled “Sync behavior looks wrong — inspect safely”

Pause the folder pair and look at the local folder and the index before resuming. The pause is remembered across daemon restarts, so it stays in force until you proton-sync resume. The index lives at <local-root>/.sync/sync_index.db (the .sync directory is ignored by scanning, so it’s never uploaded):

Terminal window
proton-sync pause
sqlite3 <local-root>/.sync/sync_index.db 'select * from file_index order by file_path;'

Read the index read-only while the daemon might run — it has no WAL, so a writer and reader can race. Prefer the .status.json / .metrics.json sidecars (or proton-sync status) for live state.

A new remote folder appeared and started filling up

Section titled “A new remote folder appeared and started filling up”

If you point --remote-root at a path that doesn’t exist, the daemon creates it and uploads your local content into it. A typo therefore silently populates a brand-new folder rather than failing. Always confirm the remote root with proton-drive filesystem list --json <remote-root> first, and preview with --dry-run.

Proton Docs and Sheets are reported as skip_unsupported and left untouched on both sides — the proton-drive CLI can’t download those native types as files. Likewise, symlinks under the local root are skipped in both directions. Neither is an error.

proton-sync doctor, the daemon’s start-up log and the desktop app’s first-run screen all report the same checks and link to the matching section below. Find the heading that names your problem.

The engine runs the Proton Drive CLI (proton-drive) for every upload, download and listing. This result means the CLI is not found, or it was found and does not work. The two are told apart: a CLI that is installed but crashes or exits with an error is “doesn’t run”, not “missing”.

Install or reinstall it from Proton’s pages only:

Then run proton-drive auth login to sign in.

  • If it crashes with an illegal instruction, your CPU probably lacks AVX2. Use the linux/x64-baseline build.
  • proton_cli is either a bare name (searched on PATH) or an absolute path. A relative path with a / is a problem, because the service resolves it against its own working directory. A directory is not the program: point it at the file.
  • If it is installed but the service cannot find it, set an absolute proton_cli in ~/.config/proton-sync/proton-sync.toml, e.g. proton_cli = "~/.local/bin/proton-drive". See After a reboot the daemon fails every sync.

The CLI’s sign-in is kept in the desktop keyring. This result means no entry was found, so no pass can work.

Run proton-drive auth login, then check again. If your desktop asked you to unlock the keyring and you dismissed the prompt, unlock it and check again.

Stores other than the desktop keyring (PROTON_DRIVE_CREDENTIALS_STORE set to pass or unsafe_file) cannot be read by this check, so it reports “could not check” instead of a problem. Sync can still work with those stores, but it cannot follow Proton’s change feed, so it walks the whole folder on every pass.

The daemon will not start with a config it cannot parse. The check reports the parser’s own sentence: fix the key it names in ~/.config/proton-sync/proton-sync.toml, or the file you passed with --config, then check again. A missing default file is fine; it only means nothing has been configured yet. With no home directory (neither XDG_CONFIG_HOME nor HOME set to an absolute path) there is no default file to read, so the check reports that it could not be made and proton-drive is looked up on PATH.

Sync still works, but the daemon cannot read the CLI’s session from the keyring, so it cannot follow Proton’s change feed and walks the whole folder on every pass. Install secret-tool (the libsecret-tools package on Debian and Ubuntu, libsecret on Fedora and Arch).

Sync still works, but the daemon fetches Proton’s change feed with curl. Without it, it walks the whole folder on every pass. Install curl with your package manager.

Sync still works, but without a desktop session bus the daemon cannot reach the keyring, so it walks the whole folder on every pass. In a terminal over SSH there is often no bus even though the service has one; check the service’s own log with journalctl --user -u proton-syncd. On a desktop, make sure you are logged in to a graphical session.

The daemon runs without systemd, but the desktop app’s Start button needs the proton-syncd user service. Run setup.sh, or copy the shipped unit to ~/.config/systemd/user/ and run systemctl --user daemon-reload. A masked unit is reported as a problem: unmask it with systemctl --user unmask proton-syncd.service.