Rclone Onedrive unauthenticated
省流:更新到最新版,1.69.1即可解决。
备份的时候发现上传到Onedrive失败了。单独挂载时发现有以下报错。
root@l7:~/scripts# rclone mount od_my365:/ /mnt/o365 --copy-links --allow-other --allow-non-empty --umask 000
2025/03/06 08:38:33 NOTICE: One drive root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream
2025/03/06 09:00:48 NOTICE: Backups/.1.tar.1iRCTQ: Failed to cancel multipart upload: unauthenticated: Unauthenticated
2025/03/06 09:00:49 ERROR : Backups/.1.tar.1iRCTQ: Failed to copy: unauthenticated: Unauthenticated
2025/03/06 09:00:49 ERROR : Backups/.1.tar.1iRCTQ: WriteFileHandle.New Rcat failed: unauthenticated: Unauthenticated
2025/03/06 09:00:49 ERROR : Backups/.1.tar.1iRCTQ: WriteFileHandle.Flush error: unauthenticated: Unauthenticated
写文件报错,读文件没问题。试了重新连接reconnect,删除重建远端配置,都不行。换了一台机器也一样。Bing,百度搜了半天搜不到解决方法。结果上Google限定最近一个月的搜索结果,马上就找到了这个帖子。
先卸载旧版,再安装新版。sudo -v ; curl https://rclone.org/install.sh | sudo bash
配置文件还在,不用重新配置远端。
如果出现这个报错,运行一下这个命令。ln -s /bin/fusermount /bin/fusermount3
2025/03/06 09:20:25 CRITICAL: Fatal error: failed to mount FUSE fs: fusermount: exec: "fusermount3": executable file not found in $PATH
或者安装一下fuser3apt install fuse3 libfuse3-dev
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。