Skip to content

Sync gets disabled with "Unable to add filesystem watch." #1050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jmfitzmaurice opened this issue Apr 5, 2025 · 1 comment
Open

Sync gets disabled with "Unable to add filesystem watch." #1050

jmfitzmaurice opened this issue Apr 5, 2025 · 1 comment
Labels

Comments

@jmfitzmaurice
Copy link

MEGAcmd version

2.1.0

Operating System/Platform

Synology

Platform version. In the case of Linux, please enter the Linux distribution you are using.

DSM 7.2.2

Steps

  1. Photos are in Mega and I want synchronized copies on my Synology diskstation.
  2. Issued command "mega-sync /volume1/photo /@OurPhotos"
  3. Eventually, an alert appears: "Your sync /volume1/photo to: /OurPhotos has transitioned to state Disabled. ErrorCode: Unable to add filesystem watch."
  4. Issuing sync-issues says there are no issues.
  5. I cannot determine which files are causing it, let alone why.

Expected behavior

The sync would be established and succeed. Barring that, it would at least indicate which files/folders were causing the problem and causing the sync to be disabled.

Actual behavior

A while after the sync starts, this alert appears: "Your sync /volume1/photo to: /OurPhotos has transitioned to state Disabled. ErrorCode: Unable to add filesystem watch."

@polmr
Copy link
Collaborator

polmr commented Apr 7, 2025

Hello @jmfitzmaurice

From the looks of it, MEGAcmd is unable to add a folder to watch the changes that occur in it.

MEGAcmd logs should have further indications on what's going on. You may want to share ~/.megaCmd/megacmdserver.log file with us (via [email protected], referencing this ticket).

Also, ensure you have a high enough number could help, since this could be one reason for failure:

cat /proc/sys/fs/inotify/max_user_watches

Extra: Have you been using MEGAcmd before 2.1.0 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants