Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- For Joplin, how do I solve error "PUT info.json: “/…/info.json” is locked, existing lock on file"?
- ChatGPT said:
- The error in Joplin:
- PUT info.json: “/…/info.json” is locked, existing lock on file
- means that Joplin tried to write to the info.json file (which is part of its sync metadata), but it’s currently locked by another process — usually another instance of Joplin syncing with the same target (like a cloud provider, WebDAV, or local file system).
- ✅ How to Solve the "info.json is locked" Error
- 1. Wait and Retry
- This is often a temporary lock caused by another sync in progress.
- Wait a minute or two, then try syncing again.
- Do not manually delete any files unless you're sure the process is stuck.
- 2. Check for Another Joplin Instance
- Are you syncing from another device (phone, tablet, laptop)?
- Ensure another Joplin instance isn't actively syncing at the same time.
- If possible, sync one device at a time.
- 3. Force Sync (Advanced)
- If the lock file is stuck and you're confident no other device is syncing:
- 📍 For file system sync (e.g., Dropbox folder, local folder):
- Go to your sync target (e.g., Dropbox folder or local sync directory).
- Locate .sync/lock or info.json.lock (or similar lock-related files).
- If you're sure no other device is syncing:
- Delete the lock file manually.
- Restart Joplin and sync again.
- ⚠️ WARNING: Only delete lock files if you're absolutely certain that no other Joplin client is syncing. Otherwise, you can corrupt the sync state.
- 4. Reboot the Device
- Sometimes the lock is left due to an unexpected crash or improper shutdown. A reboot ensures all processes are cleared.
- 5. Use the "Re-upload local data to sync target" Option
- If sync is consistently broken:
- Go to Joplin → Tools → Options → Synchronisation.
- At the bottom, choose: "Delete local data and re-download from sync target" or "Re-upload local data to sync target", depending on what you want to keep.
- Be cautious — this affects your notes.
- Final Tip
- If you're syncing across devices, always ensure time is synchronized on all systems and Joplin is updated to the latest version — mismatched time or versions can cause sync issues too.
- Would you like help checking your specific sync setup (e.g. Dropbox, Nextcloud, etc.)?
- You said:
- Nextcloud
- ChatGPT said:
- Great — since you're using Nextcloud with Joplin, the info.json is locked error is often caused by one of the following:
- Joplin is trying to sync while another client (Joplin or Nextcloud itself) is still writing to the file.
- Nextcloud's internal file locking system (especially when Redis or database locking is enabled) has left a stale lock.
- Your Nextcloud server has a misconfigured or stuck locking mechanism.
- ✅ Step-by-Step Fix for Joplin + Nextcloud info.json Lock Error
- 🧩 1. Wait a Few Minutes and Retry
- If you just synced from another device, wait at least 5 minutes. Sometimes locks are held briefly.
- 🧰 2. Manually Remove the Lock File on Nextcloud
- ⚠️ Only do this if you’re sure no other Joplin instance is syncing right now.
- Steps:
- Log in to your Nextcloud Web UI or via WebDAV/FTP/SSH.
- Navigate to your Joplin sync directory:
- /remote.php/webdav/Joplin/
- Look for:
- info.json.lock
- Or a .sync/lock directory or file
- Delete the lock file (info.json.lock) or clear the .sync/lock folder.
- Then: Open Joplin again and try syncing.
- ⚙️ 3. Restart Your Nextcloud Server (If Self-Hosted)
- If you’re running your own Nextcloud instance, do this:
- sudo systemctl restart apache2
- # or if you're using nginx:
- sudo systemctl restart php-fpm nginx
- Sometimes restarting clears stale locks.
- 🔧 4. Clear Nextcloud File Locks from the Database (Advanced)
- If locks persist after server restarts, and you're self-hosting with database-level locking:
- Steps for MySQL/MariaDB:
- USE nextcloud;
- DELETE FROM oc_file_locks WHERE 1;
- Replace nextcloud with your actual DB name.
- Then restart your server. This clears all stale file locks.
- 🚫 5. Avoid Multiple Devices Syncing at the Same Time
- Best practice when using Joplin with Nextcloud:
- Sync only one device at a time.
- Don't run Joplin in the background on multiple devices while syncing.
- 🔄 6. Enable Safe Locking in Joplin (if disabled)
- Joplin has an option to avoid sync conflicts by checking for locks properly:
- Go to Tools → Options → Synchronisation
- Enable any options related to "safe sync" or "conflict resolution".
- Make sure you're using the latest Joplin version (desktop and mobile).
- 🧼 Optional: Reset Sync State (If It's Still Broken)
- If the error doesn't go away:
- In Joplin, go to:
- Tools → Options → Synchronisation → Advanced
- Choose: “Re-upload local data to sync target”
- This clears and rebuilds the sync state from your current local notes.
- If you'd like, I can help walk through your Nextcloud setup (e.g., hosted, Docker, Snap, etc.) to check for any deeper config issues. Just let me know.
- You said:
- How I fix this if I am using a managed instance of Nextcloud?
- ChatGPT said:
- If you're using a managed instance of Nextcloud (like from a provider such as Nextcloud.com, Hetzner, IONOS, etc.), you won’t have direct server or database access, so your options are more limited — but the issue is still solvable.
- Here’s what you can do:
- ✅ How to Fix info.json Locked on a Managed Nextcloud Instance
- 🧩 1. Wait a Few Minutes and Retry
- This is usually a temporary lock — Joplin will try again later.
- Wait 3–5 minutes and press Sync again in Joplin.
- If it works afterward, the issue was just a short-lived sync conflict.
- 🧼 2. Clear the Lock via Web Interface (if accessible)
- Some managed Nextcloud providers allow file access through:
- WebDAV (via Joplin's sync URL)
- Web UI (via nextcloud.yourdomain.com or the provider’s portal)
- Steps:
- Log in to your Nextcloud web interface.
- Navigate to the Joplin sync folder (usually just a folder called Joplin in your root directory).
- Look for any file named:
- info.json.lock
- .sync/lock or .lock
- Delete it manually, if possible.
- If you don’t see the .sync folder, enable hidden files (usually with a settings gear icon).
- 📱 3. Ensure No Other Devices Are Syncing Joplin
- Make sure:
- No other device (phone/laptop/tablet) is syncing at the same time.
- Each device completes its sync before another starts.
- Even a background Joplin app can trigger this error — especially on mobile.
- 🔄 4. Use “Re-upload Local Data to Sync Target” (Safe Rebuild)
- In Joplin Desktop:
- Go to Tools → Options → Synchronisation → Advanced.
- Click “Re-upload local data to sync target”.
- This tells Joplin to:
- Clear what’s in the sync target (Nextcloud),
- Push your local notes again,
- Rebuild metadata files like info.json.
- ⚠️ This should only be done on one device to avoid sync conflicts. After syncing, let other devices download the data anew.
- 💬 5. Contact Your Managed Nextcloud Provider (if all else fails)
- If the lock persists for hours or is repeatedly getting stuck, you should:
- Contact your provider's support team.
- Ask them to remove any stale file locks on info.json in your Joplin sync directory.
- Sample message:
- "Hi, I use Joplin with my Nextcloud account. I’m getting a persistent sync error: 'PUT info.json is locked'. Can you help clear the file lock on /Joplin/info.json or check if your system is holding a stale lock?"
- ✅ Summary: What You Can Do on Managed Nextcloud
- Option What to Do Risk
- ✅ Wait and Retry Easiest; usually works None
- ✅ Delete Lock via Web UI If provider allows Low
- ✅ Re-upload Data from Joplin Safe if you're syncing one device Moderate
- ✅ Contact Provider If you're stuck None
- Let me know which managed provider you're using — I can give more specific steps or instructions based on that.
Advertisement
Add Comment
Please, Sign In to add comment