Jump to content
fanningert

[Support] Aria2 + WebUI

26 posts in this topic Last Reply

Recommended Posts

This are now three docker container.

  • aria2-daemon = Only the Aria2 daemon
  • aria2webui = Aria2 daemon and webui-aria2
  • aria2-with-ariang = Aria2 daemon and AriaNG

 

Application Name: Aria2 Daemon Only

Docker Container: aria2-daemon

Application Site: https://aria2.github.io/

Docker Hub: https://hub.docker.com/r/fanningert/aria2-daemon/

Github: https://github.com/fanningert/aria2-daemon

Template-Repository: https://github.com/fanningert/unraid-docker-templates

 

Application Name: Aria2 + WebUI

Docker Container: aria2webui

Application Site: https://aria2.github.io/ + https://github.com/ziahamza/webui-aria2

Docker Hub: https://hub.docker.com/r/fanningert/aria2-with-webui/

Github: https://github.com/fanningert/aria2-with-webui

Template-Repository: https://github.com/fanningert/unraid-docker-templates

Configuration after installation: After the first start you need to add your HOST, RPC-Port and SECRET code in the connection settings of the webUI (Settings -> Connection Settings).

image.png.363e0b3d326d27db791ad847587ff722.png 

 

Application Name: Aria2 + AriaNg

Docker Container: aria2-with-ariang

Application Site: https://aria2.github.io/ + https://github.com/mayswind/AriaNg

Docker Hub: https://hub.docker.com/r/fanningert/aria2-with-ariang/

Github: https://github.com/fanningert/aria2-with-ariang

Template-Repository: https://github.com/fanningert/unraid-docker-templates

Configuration after installation: After the first start you need to add your HOST, RPC-Port and SECRET code in the connection settings of the AriaNg (AriaNg Settings -> RPC).

image.png.fd572f0a62cad5aa6660fcefc0bad219.png

 

Features of all three docker containers

  • single files for every hook of aria2, add there you can add your custom code. (on-bt-download-complete.sh, on-download-complete.sh, on-download-error.sh, ...)
  • Many aria2 options are added to the unRaid docker settings page.
  • You can add aria2 options into the file aria2_ext.conf, it will be append to the aria2.conf on the next start. But check first if the option is not already accessible over unRaid docker ui.
  • Add a simple script to download all torrents of a rss feed. Simple add your rss feed urls (one url per line) into the file "rss_feed.txt" (Location config directory). And execute the script /config/rss_downloader.sh in the docker container. Beware currently the script download every torrent of the file and add it to the aria2 queue. There is no check if the torrent already loaded.

 

Hints

  • When you change the secret code, you need to change the secret also in the webui.

 

TODO

  • Execute rss_downloader.sh on startup of the docker, plus option to deactivate this feature.
Edited by fanningert

Share this post


Link to post

Hey Fanningert. I installed this app but it seems im probably missing a step. WebUI keeps throwing an error 

 

Quote

Oh Snap! Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings

 

Is this just the aria2 webui and i still need to install and configure Aria2 separately?

Share this post


Link to post

@robw83 The solution is in my first post of this thread. But you are right, in the package documentation, this step is missing. I will add it. Thanks for the information.

 

The only step you need to do is configure the RPC setting in the connection section (Settings -> Connection Settings) of the webui and enter the host, port and your SECRET.

 

When I find a solution, I will let change this settings over the docker settings.

Edited by fanningert

Share this post


Link to post

Thanks for this! A little confused though, the conf folder in appdata is empty. I'm trying to change the post-download behavior, as the mv process is really slow for some reason. Is it required? There's no option in the web-ui to disable the post-download move that you have in the setup. 

 

root@Tower:~# ls -lah /mnt/user/appdata/aria2webui/
total 0
drwxrwxrwx 1 nobody users  6 Nov  5 06:50 ./
drwxrwxrwx 1 nobody users 89 Nov  5 06:50 ../

 

EDIT: I figured it out. The container settings in unRaid has a map to /config on the container, but the app is actually looking in /conf.  

Edited by dockdock

Share this post


Link to post

@dockdock I will add an option in the next hours. Thank you for finding the bug. I will correct it in the next release.

 

After correction of the conf path issue. There will be a "on-complete.sh" file. Simple clear the content of the file. When you delete the file, on the next start the original file will be copied from /conf-copy of the docker image.

 

New docker image should be visible after next index run of community plugin.

Edited by fanningert

Share this post


Link to post

I am not familiar with aria2 but when I look into it a bit it seems that this may allow you to do multi-segment FTP downloads - is that the case?  It is hard to find user friendly FTP clients that can do multi-segment downloads.

 

I have been using BitKenix on Windows for years as it is one of the few FTP clients that I can find that can do multi-segment downloads.  Using this with a 50 segment download I get speeds of up to 10 MBps on FTPs from Europe to Canada.  Using something like Filezilla I can only get about 2.2MBps.  But BitKenix is seriously obsolete - it would be great to be able to replace it.

 

Can aria2 do the trick?

Share this post


Link to post

I just tested it out and it did segment my download into 5 parts as expected. It was a bit tricky trying to figure out how to get the link because I wanted to grab "file I want.ext" that was in the root of the ftp server directory but the spaces were messing me up. What worked for me was enclosing the whole thing in quotes when I added the URI as such

"ftp://user:pass@ftp.server/file I want.ext"

 

Share this post


Link to post

Is there any way to set PUID and PGID and UMASK such as with other containers?

 

Every file I download is set to root:root with default umask. I'd rather it be set as nobody:users with 000 umask. 

Share this post


Link to post
7 hours ago, Chad Kunsman said:

Is there any way to set PUID and PGID and UMASK such as with other containers?

 

Every file I download is set to root:root with default umask. I'd rather it be set as nobody:users with 000 umask. 

Looking at the source I don't think it is setup that way, no. https://github.com/fanningert/aria2-with-webui

Share this post


Link to post

@Chad Kunsman, @thomas, @pinion

I created two extra docker and updated the current docker container. All three supporting PUID (User-ID) and PGID (Group-ID).

All three docker having the same aria2 configuration structure.

 

Support pages for the new docker container, better icons for this three container and a support page update for this container, are coming later.

 

Extra information:

The docker aria2webui is working, but the current master version of the web app has an error. So you will not see anything. I opended a issue for this problem https://github.com/ziahamza/webui-aria2/issues/437. <- Is corrected

 

Community app entries are updated. So you should see it after the next scan job.

 

TODO:

  • Support of HTTPS for web frontend
Edited by fanningert

Share this post


Link to post
On 18/2/2018 at 2:47 PM, fanningert said:

@Chad Kunsman, @thomas, @pinion

I created two extra docker and updated the current docker container. All three supporting PUID (User-ID) and PGID (Group-ID).

All three docker having the same aria2 configuration structure.

 

Support pages for the new docker container, better icons for this three container and a support page update for this container, are coming later.

 

Extra information:

The docker aria2webui is working, but the current master version of the web app has an error. So you will not see anything. I opended a issue for this problem https://github.com/ziahamza/webui-aria2/issues/437.

 

Community app entries are updated. So you should see it after the next scan job.

 

TODO:

  • Support of HTTPS for web frontend

Many thanks for your dockers, they are really useful :)

 

Have any update upon this issue? It's very annoying...can't wait to use again the GUI!!

Edited by M4st3r

Share this post


Link to post

@M4st3r I created a new Tag for the docker container. The issue is corrected. I also update the first post a little bit.

Edited by fanningert

Share this post


Link to post

For some reason I cannot save any settings. 

 

I really want to turn http pipelining off, but if I turn it off in the GUI, upon next container reload, it's back to TRUE.

 

If I stop the docker, edit the aria2.conf in my appdata folder, then start the container again, it looks like it simply overwrites any changes to my config file and puts it back to defaults. 

Share this post


Link to post

@Chad Kunsman when you want to add some aria2 parameters, what are currently not accesable over docker ui. Add this to the file aria2_ext.conf. This file will be added on every start of the docker to the aria2.conf. And you are right, the aria2.conf will be created on every docker start. (Look on my first post under Features of all three docker containers)

Share this post


Link to post

Thank you. I figured that might have been it, but I wasn't sure.

 

Is there any way in the future to have settings modified within the GUI persist through container restarts?

Share this post


Link to post

@Chad Kunsman no problem. what aria2 config would you like have in the docker web ui configuration page?

 

Note: every arai2 configuration in the aria2_ext.conf file  is persistent on the docker container restart. Like the configuration from the docker web ui.

Share this post


Link to post

@fanningert Actually was wondering if there were technical limitations to having the AriaNg GUI's changes not be able to be persistent. There are a lot of configuration options there, and they are convenient to adjust. But I must assume that there are reasons why setting them there does not 'permanently' change them for the docker container. 

Share this post


Link to post

@Chad Kunsman AriaNg changing the current arai2 session parameter and not the aria2 global config file parameter. So the AraiNg is not persistemt. But you can change every aria2.conf over the docker web ui or aria2_ext.conf.

Share this post


Link to post
On 22/2/2018 at 5:45 PM, fanningert said:

@M4st3r I created a new Tag for the docker container. The issue is corrected. I also update the first post a little bit.

Many thanks, now everything works...keep up this really good work!

Share this post


Link to post

Hi there. First, thank you for making these images and configs.

 

I've been using aria2-with-ariang successfully for a while; however, It seems that the included version of aria2 does not support SFTP downloads. Any SFTP attempt results in a "sftp is not supported yet" message for me, both in the ariang interface, as well as when running directly from inside a container shell.

 

I'm not sure what's necessary to get aria2 to support SFTP - perhaps the Docker images just need to be rebuilt, or perhaps the version of aria2 needs to be compiled with additional libraries.

 

Here is the output from running 'aria2c -v' inside the aria2-with-ariang container:

** Configuration **
Enabled Features: Async DNS, BitTorrent, Firefox3 Cookie, HTTPS, Message Digest, Metalink, XML-RPC
Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5
Libraries: expat/2.2.5 sqlite3/3.23.1 GnuTLS/3.6.2 nettle GMP/6.1.2 c-ares/1.14.0
Compiler: gcc 6.4.0
  built by  x86_64-alpine-linux-musl
  on        May 29 2018 07:41:58
System: Linux 4.18.10-unRAID #2 SMP Wed Sep 26 13:21:57 PDT 2018 x86_64

And the output from aria when trying to use SFTP:

bash-4.4# aria2c sftp://hello.com/what.pdf

10/16 21:21:18 [NOTICE] Downloading 1 item(s)

10/16 21:21:18 [ERROR] CUID#7 - Download aborted. URI=sftp://hello.com/what.pdf
Exception: [AbstractCommand.cc:351] errorCode=1 URI=sftp://hello.com/what.pdf
  -> [InitiateConnectionCommandFactory.cc:88] errorCode=1 sftp is not supported yet.

Thank you!

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.