How to fix Nextcloud nextcloudcmd CLI "skipped due to earlier error, trying again in ..."
Problem:
Your Nextcloud CLI client fails for some files (upload or download) with an error message like this
error_output.txt
"Server replied "413 Request Entity Too Large" to "PUT https://example.com/remote.php/dav/uploads/username/XXXXXXXX/YYYYYY" (skipped due to earlier error, trying again in 6 hour(s))
PATH/TO/FILE.bmpSolution
The nextcloud CLI client nextcloudcmd stores the sync SQLite database in ~/.local/share/nextcloudcmd/._sync_############.db where ############ is a hex code. If you have multiple such files in ~/.local/share/nextcloudcmd, try out this procedure for each of them:
While nextcloudcmd is not running, use the SQLite3 command line tool to open the database, for example:
open_db.sh
sqlite3 ~/.local/share/nextcloudcmd/._sync_bf15278da518.dbThen run this SQL command:
delete_blacklist.sql
DELETE FROM 'blacklist';and exit using Ctrl-D. Now try re-running nextcloudcmd, it should immediately retry syncing the file.
Check out similar posts by category:
Nextcloud
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow