Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errNum=13 errorCode=16 #137

Closed
shahram7 opened this issue Sep 3, 2023 · 1 comment
Closed

errNum=13 errorCode=16 #137

shahram7 opened this issue Sep 3, 2023 · 1 comment

Comments

@shahram7
Copy link

shahram7 commented Sep 3, 2023

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
Copy link
Author

shahram7 commented Sep 4, 2023

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)

@shahram7 shahram7 closed this as completed Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant