SuperNG6 / docker-aria2

Docker Aria2的最佳实践
https://hub.docker.com/r/superng6/aria2
418 stars 45 forks source link

下载任何类型文件出现: 发生错误(17) fallocate failed. cause: Operation not supported #31

Closed zhk0603 closed 4 years ago

zhk0603 commented 4 years ago

部署在树莓派。下载路径挂载在了外接磁盘上。 docker 命令

docker create \
  --name=aria2 \
  -e PUID=0 \
  -e PGID=0 \
  -e TZ=Asia/Shanghai \
  -e SECRET=ariasecret \
  -e CACHE=512M \
  -e UpdateTracker=true \
  -e QUIET=true \
  -e RECYCLE=true \
  -e MOVE=true \
  -e SMD=false \
  -e ANIDIR=ani \
  -e MOVDIR=movies \
  -e TVDIR=tv \
  -e CUSDIR=cusdir \
  -p 6881:6881 \
  -p 6881:6881/udp \
  -p 6800:6800 \
  -p 9002:80 \
  -v /mnt/disk/aria2/config:/config \
  -v /mnt/disk/aria2/downloads:/downloads \
  --restart unless-stopped \
  superng6/aria2:webui-latest

下载磁力链接,跟普通链接都出现: 发生错误(17) fallocate failed. cause: Operation not supported

image

SuperNG6 commented 4 years ago

看上去好像是不支持falloc,修改配置文件file-allocation=fallocfile-allocation=none看看 在 2020年6月17日 +0800 PM8:59,赵坤 notifications@github.com,写道:

部署在树莓派。下载路径挂载在了外接磁盘上。 docker 命令 docker create \

--name=aria2 \

-e PUID=0 \

-e PGID=0 \

-e TZ=Asia/Shanghai \

-e SECRET=ariasecret \

-e CACHE=512M \

-e UpdateTracker=true \

-e QUIET=true \

-e RECYCLE=true \

-e MOVE=true \

-e SMD=false \

-e ANIDIR=ani \

-e MOVDIR=movies \

-e TVDIR=tv \

-e CUSDIR=cusdir \

-p 6881:6881 \

-p 6881:6881/udp \

-p 6800:6800 \

-p 9002:80 \

-v /mnt/disk/aria2/config:/config \

-v /mnt/disk/aria2/downloads:/downloads \

--restart unless-stopped \

superng6/aria2:webui-latest

下载磁力链接,跟普通链接都出现: 发生错误(17) fallocate failed. cause: Operation not supported — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

zhk0603 commented 4 years ago

哈哈。可以了。感谢!!! image

image

SuperNG6 commented 4 years ago

刚刚更新了一下,添加了磁盘预分配模式的选择,-e FA=none