Cant access aria2 webgui. Aria2 is running. Tried accessing http://localhost/aria2 but no luck. Any help?
_Here is the log file aria2 running._
root@DietPi:~# systemctl status aria2 -l
● aria2.service - DietPi Aria2
Loaded: loaded (/etc/systemd/system/aria2.service; disabled; vendor preset: enabled)
Active: active (running) since Sun 2018-02-18 04:01:49 EST; 5min ago
Main PID: 312 (aria2c)
CGroup: /system.slice/aria2.service
└─312 /usr/bin/aria2c --enable-rpc --rpc-listen-all --rpc-secret=** --dir=/mnt/dietpi_userdata/downloads
Feb 18 04:01:49 DietPi systemd[1]: Started DietPi Aria2.
Feb 18 04:01:49 DietPi aria2c[312]: 02/18 04:01:49 [NOTICE] IPv4 RPC: listening on TCP port 6800
Feb 18 04:01:49 DietPi aria2c[312]: 02/18 04:01:49 [NOTICE] IPv6 RPC: listening on TCP port 6800
_Tried enabling this service but could not access webui either.
Also verified lighttpd is running. I also have pihole running fine._
root@DietPi:~# systemctl status lighttpd -l
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; disabled; vendor preset: enabled)
Active: active (running) since Sun 2018-02-18 04:02:02 EST; 16min ago
Main PID: 1371 (lighttpd)
CGroup: /system.slice/lighttpd.service
└─1371 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
Feb 18 04:02:02 DietPi systemd[1]: Starting Lighttpd Daemon...
Feb 18 04:02:02 DietPi lighttpd[1349]: 2018-02-18 04:02:02: (plugin.c.187) Cannot load plugin mod_fastcgi more than once, please fix your config (lighttpd may not accept such configs in future releases)
Feb 18 04:02:02 DietPi lighttpd[1349]: 2018-02-18 04:02:02: (server.c.1295) WARNING: unknown config-key: auth.debug (ignored)
Feb 18 04:02:02 DietPi systemd[1]: Started Lighttpd Daemon.
Feb 18 04:02:02 DietPi lighttpd[1371]: 2018-02-18 04:02:02: (plugin.c.187) Cannot load plugin mod_fastcgi more than once, please fix your config (lighttpd may not accept such configs in future releases)
dietpi-bugreport?@kodirfan
Many thanks for your report. We will investigate and try to help you. Some infos:
systemd, Debian init system, enables it during boot based on its criteria. However we want to make sure, that we start services after our core components are loaded, thus control it ourself, currently via /etc/rc.local (after after v6.3 via new own service).service; disabled as output, but Active: active (running) is the important one.To help you more effectively could you give some more information:
- Could you paste content of your: /var/log/lighttpd/error.log
/etc/lighttpd/lighttpd.conf@kodirfan @Fourdee
Could verify, also found blank Aria2 web ui on Stretch in combination with PiHole. Couldn't find any error, so logs are not necessary any more. However browser console could give some hint:
angular.min.js:6 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.6.0/$injector/modulerr?p0=webui&p1=TypeError%3A%20Cannot%20read%20property%20'Search'%20of%20undefined%0A%20%20%20%20at%20mergeTranslation%20(http%3A%2F%2F192.168.178.31%2Faria2%2Fjs%2Finit.js%3A22%3A19)%0A%20%20%20%20at%20http%3A%2F%2F192.168.178.31%2Faria2%2Fjs%2Finit.js%3A46%3A30%0A%20%20%20%20at%20Object.invoke%20(http%3A%2F%2F192.168.178.31%2Faria2%2Fjs%2Flibs%2Fangular.min.js%3A43%3A175)%0A%20%20%20%20at%20d%20(http%3A%2F%2F192.168.178.31%2Faria2%2Fjs%2Flibs%2Fangular.min.js%3A41%3A64)%0A%20%20%20%20at%20http%3A%2F%2F192.168.178.31%2Faria2%2Fjs%2Flibs%2Fangular.min.js%3A41%3A188%0A%20%20%20%20at%20q%20(http%3A%2F%2F192.168.178.31%2Faria2%2Fjs%2Flibs%2Fangular.min.js%3A7%3A351)%0A%20%20%20%20at%20g%20(http%3A%2F%2F192.168.178.31%2Faria2%2Fjs%2Flibs%2Fangular.min.js%3A40%3A488)%0A%20%20%20%20at%20eb%20(http%3A%2F%2F192.168.178.31%2Faria2%2Fjs%2Flibs%2Fangular.min.js%3A45%3A56)%0A%20%20%20%20at%20c%20(http%3A%2F%2F192.168.178.31%2Faria2%2Fjs%2Flibs%2Fangular.min.js%3A21%3A19)%0A%20%20%20%20at%20Object.Lc%20%5Bas%20bootstrap%5D%20(http%3A%2F%2F192.168.178.31%2Faria2%2Fjs%2Flibs%2Fangular.min.js%3A21%3A332)
at angular.min.js:6
at angular.min.js:41
at q (angular.min.js:7)
at g (angular.min.js:40)
at eb (angular.min.js:45)
at c (angular.min.js:21)
at Object.Lc [as bootstrap] (angular.min.js:21)
at HTMLDocument.<anonymous> (init.js:66)
at i (jquery-2.2.4.min.js:2)
at Object.fireWith [as resolveWith] (jquery-2.2.4.min.js:2)
Will test after uninstalling PiHole...
€: Okay seems to be Aria2 only issue. We have to check the web ui implementation for errors, maybe due to new version (of PiHole server) there is something broken? I also broke my VM now by uninstalling PiHole and one "automated installed" dependency too much. Their uninstaller is a pain: Why not just auto-marking instead of purging, including all possibly important core system packages automatically...
Will revert later and test again just Aria2 on fresh image later.
Hi MichaIng, thanks so much for looking into it and sorry for your VM.
I uninstalled lighttpd and installed nginx as lighttpd was showing some warnings ( I am newbie, do not know much if the error is significant) but it is still the same way. I will look forward to a solution.
Also, I noticed pihole has an update for it webgui but I can not update either by command line or from dietpi software launcher.
Best,
This is the bug of webui-aria2
see this https://github.com/ziahamza/webui-aria2/pull/436
Just fix the file in /var/www/aria2/js/translate/id_ID.js
correct this line that on the first few line
translations.en_US = { // replace en_US to ll_CC, examples: zh_CN, de_AT.
to
translations.id_ID = { // replace en_US to ll_CC, examples: zh_CN, de_AT.
@kodirfan @MichaIng
PR fix from Aira2 is now merged into their master branch. 👍
Quick test of RPi3 install:
Solution for those affected, reinstall aria2:
dietpi-software reinstall 132
Marking as closed.
Most helpful comment
This is the bug of webui-aria2
see this https://github.com/ziahamza/webui-aria2/pull/436
Just fix the file in /var/www/aria2/js/translate/id_ID.js
correct this line that on the first few line
translations.en_US = { // replace en_US to ll_CC, examples: zh_CN, de_AT.
to
translations.id_ID = { // replace en_US to ll_CC, examples: zh_CN, de_AT.