如何修复 Nextcloud nextcloudcmd CLI "skipped due to earlier error, trying again in ..."

问题:

你的 Nextcloud CLI 客户端对某些文件(上传或下载)失败,出现类似这样的错误消息

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.bmp

解决方案

Nextcloud CLI 客户端 nextcloudcmd 将同步 SQLite 数据库存储在 ~/.local/share/nextcloudcmd/._sync_############.db 中,其中 ############ 是十六进制代码。如果 ~/.local/share/nextcloudcmd 中有多个这样的文件,请对每个文件尝试此过程:

nextcloudcmd 未运行时,使用 SQLite3 命令行工具打开数据库,例如:

open_db.sh
sqlite3 ~/.local/share/nextcloudcmd/._sync_bf15278da518.db

然后运行此 SQL 命令:

delete_blacklist.sql
DELETE FROM 'blacklist';

并使用 Ctrl-D 退出。现在尝试重新运行 nextcloudcmd,它应该立即重试同步文件。


Check out similar posts by category: Nextcloud