P3TERX / Aria2-Pro-Docker

Aria2 Pro | A perfect Aria2 Docker image | 更好用的 Aria2 Docker 容器镜像
https://hub.docker.com/r/p3terx/aria2-pro
MIT License
3.19k stars 375 forks source link

errNum=13 errorCode=16 #137

Closed shahram7 closed 1 year ago

shahram7 commented 1 year ago

Hi there,

I have both aria2-pro and aria-NG with a gluetun VPN connection inside a docker stack and everything was working fine. (it was a great experience, so thank you first of all.)

But I'm not able to download anything with my Aria2 downloader anymore and I have no idea why.

here is the Log.

09/03 14:27:45 [NOTICE] Serialized session to '/config/aria2.session' successfully.

09/03 14:27:45 [ERROR] CUID#66 - Download aborted. URI=https://url.that.i.want.to.download/download/2/3/35324/1408468/308754/2606:40:8bf7:19::62:3552/1696333985/308cff971183ea6b1d115c51bbff104e68030994b7/movies/b/movie.that.I.want.to.download.mkv

Exception: [AbstractCommand.cc:403] errorCode=16 URI=https://url.that.i.want.to.download/download/2/3/35324/1408468/308754/2606:40:8bf7:19::62:3552/1696333985/308cff971183ea6b1d115c51bbff104e68030994b7/movies/b/movie.that.I.want.to.download.mkv

-> [RequestGroup.cc:761] errorCode=16 Download aborted.

-> [AbstractDiskWriter.cc:221] errNum=13 errorCode=16 Failed to open the file /downloads/movie.that.I.want.to.download.mkv, cause: Permission denied

09/03 14:27:45 [NOTICE] Download GID#885feb9b2f3e444d not complete: /downloads/movie.that.I.want.to.download.mkv

09/03 14:27:46 [WARRING] Skip delete. File does not exist: /downloads/movie.that.I.want.to.download.mkv

09/03 14:27:46 [INFO] General download task, skipped delete .torrent file.

09/03 14:27:46 [INFO] Deleting empty directory ...

[#932007 0B/0B CN:1 DL:0B]

09/03 14:28:46 [NOTICE] Serialized session to '/config/aria2.session' successfully.

09/03 14:28:47 [ERROR] CUID#68 - Download aborted. URI=https://url.that.i.want.to.download/download/2/3/35324/1408468/308754/2606:40:8bf7:19::62:3552/1696333985/308cff971183ea6b1d115c51bbff104e68030994b7/movies/b/movie.that.I.want.to.download.mkv

Exception: [AbstractCommand.cc:403] errorCode=16 URI=https://url.that.i.want.to.download/download/2/3/35324/1408468/308754/2606:40:8bf7:19::62:3552/1696333985/308cff971183ea6b1d115c51bbff104e68030994b7/movies/b/movie.that.I.want.to.download.mkv

-> [RequestGroup.cc:761] errorCode=16 Download aborted.

-> [AbstractDiskWriter.cc:221] errNum=13 errorCode=16 Failed to open the file /downloads/movie.that.I.want.to.download.mkv, cause: Permission denied

09/03 14:28:47 [NOTICE] Download GID#93200743c060fee3 not complete: /downloads/movie.that.I.want.to.download.mkv

09/03 14:28:47 [WARRING] Skip delete. File does not exist: /downloads/movie.that.I.want.to.download.mkv

09/03 14:28:47 [INFO] General download task, skipped delete .torrent file.

09/03 14:28:47 [INFO] Deleting empty directory ...

I guess the container has no permission to write to my hard disk, is that right?

It is mounted as a Samba share and Samba is still working and available on the machine running the Docker engine.

Why would this happen all of a sudden? :((

shahram7 commented 1 year ago

the owner of the download directory was changed to root and that caused the problem. Since the containers are deployed with uid and gid 1000 (not root)