Note: Moving Files Off Baidu Netdisk (Failed Attempt)

Published on

Original language: Chinese . AI translations: English , Japanese .


Planning to ditch Baidu Netdisk and migrate files to Google Drive.

2019/12/24 update: downloading from Baidu Netdisk failed, so I used money power.

Aria2 + Rclone

P3TERX has an Aria2 + Rclone setup, with a whole series of tutorials:

Rclone 安装配置教程 - 连接 OneDrive 和 Google Drive
Rclone 进阶使用教程 - 常用命令参数详解

Aria2 入门使用教程 - 玩转最强 BT、磁力、HTTP、FTP、离线下载工具
Aria2 + Rclone 实现 OneDrive、Google Drive 等网盘离线下载
Aria2 前端面板(GUI) AriaNg 使用教程
Aria2 相关项目常见问题及解决方案(FAQ)

百度网盘转存到 OneDrive 、Google Drive 等其他网盘


I’ve already installed and configured Aria2 and Rclone, but got stuck on using Aria2…
VPS: Ubuntu 18.04. I used the “Aria2 perfect config” from the tutorial. AriaNG Native can connect to the VPS.
But Aria2 can’t download normally. When downloading from the command line, I get:

Terminal window
12/15 22:11:31 [ERROR] IPv4 RPC: failed to bind TCP port 6800
Exception: [SocketCore.cc:312] errorCode=1 Failed to bind a socket, cause: Address already in use
12/15 22:11:31 [ERROR] IPv6 RPC: failed to bind TCP port 6800
Exception: [SocketCore.cc:312] errorCode=1 Failed to bind a socket, cause: Address already in use
12/15 22:11:31 [ERROR] Exception caught
Exception: [DownloadEngineFactory.cc:219] errorCode=1 Failed to setup RPC server.

I searched around and saw many explanations: change port, wrong startup args, multiple instances, etc. This post: aria2端口问题
But I tried several ports, still no luck.
Checked processes with netstat -ntlp, restarted, still broken.
Some people suggested switching to Debian; not considering that.

Look at the log again:

Terminal window
12/15 23:17:31 [NOTICE] Serialized session to '/root/.aria2/aria2.session' successfully.
12/15 23:17:31 [ERROR] CUID#29 - Exception caught while allocating file space.
Exception: [AbstractDiskWriter.cc:561] errNum=95 errorCode=17 fallocate failed. cause: Operation not supported
12/15 23:17:31 [ERROR] CUID#29 - Download not complete: /root/Download/Beastars - Arc 04
12/15 23:17:31 [NOTICE] Download GID#a0132bd3b81c8046 not complete: /root/Download/Beastars - Arc 04
removed '/root/Download/Beastars - Arc 04.aria2'
removed '/root/Download/Beastars - Arc 04/Beastars - Vol. 07.cbz'
removed '/root/Download/Beastars - Arc 04/Beastars - Vol. 08.cbz'
removed '/root/Download/Beastars - Arc 04/Beastars - Vol. 10.cbz'
removed '/root/Download/Beastars - Arc 04/Beastars - Vol. 11.cbz'
removed '/root/Download/Beastars - Arc 04/Beastars - Vol. 09.cbz'
removed directory '/root/Download/Beastars - Arc 04'
12/15 23:17:38 [NOTICE] Serialized session to '/root/.aria2/aria2.session' successfully.

Stuck here. (I’m bad at this…)

2019/12/19 update
Remembered the Aria2 stuff I was looking at the other day. I wasn’t convinced, so I opened AriaNG again, and somehow it worked.
Mysticism. (These two days I installed Trojan and did a lot of VPS operations. Did that affect it? No idea.)


BaiduPCS-Go

2019/12/19 update

I kept poking at Baidu Netdisk today and tried BaiduPCS-Go. Not bad, but unstable; speed is luck-based. When it’s fast it can max out bandwidth.
Some people in the discussions say it might get your account banned; use with caution.

BaiduPCS-Go docs:


GoIndex

2019/12/24 update

GoIndex stands for Google Drive Directory Index. It’s a serverless (Cloudflare Workers) program to index Google Drive as a browsable directory. It can provide direct-download links, and if the video is MP4 it can also be watched online. Since traffic is proxied via Cloudflare, you can use it freely even under restricted networks.

Quoted from P3TERX’s post GoIndex - 无服务器架构 Google Drive 目录索引程序
The tutorial is good; I got it up in one try by following it.


OndDrive Index

2020/04/11 update

Similar to GoIndex, this is also based on Cloudflare Workers and can index OneDrive files.

Project: Github - OneDrive Index ( Cloudflare Worker )
Video walkthrough by the author: bilibili - Cloudflare Worker + OneDrive = ☆
If you run into issues, check this issue thread: 没有api权限的教育版5T帐号,是不是无法用这个啊?


More *index

2020/05/09 update

GoIndex started having some weird little issues. I switched to GDIndex, also had issues. Try more JS scripts, one of them will work eventually.
maple3142- GDIndex
kulokenci - goindex-drive