Shows download was unsuccessful error in webui.
I'm running current snapshot on Raspberry Pi4. I've installed necessary packages of aria2
aria2 1.36.0-2
luci-app-aria2 git-21.321.27401-9dda104
webui-aria2 2018-12-09-fb9d758d-1
Following command works perfectly
aria2c -x5 -d /tmp/aria2/ https://example/file.txt
BUT
in it's webui http://openwrt.lan/webui-aria2/ it shows download error:
Yes, I'm using the same download dir with max-connection-per-server=1 to be safe
/etc/config/aria2:
config aria2 'main'
option user 'aria2'
option config_dir '/var/etc/aria2'
option bt_enable_lpd 'true'
option enable_dht 'true'
option follow_torrent 'true'
option file_allocation 'none'
option save_session_interval '30'
option enabled '1'
option enable_logging '0'
option rpc_auth_method 'none'
option rpc_secure 'false'
option enable_proxy '0'
option check_certificate 'true'
option enable_dht6 'false'
option enable_peer_exchange 'true'
option dir '/tmp/aria2'
/var/etc/aria2/aria2.conf.main :
# Auto generated file, changes to this file will be lost.
dir=/tmp/aria2
enable-rpc=true
rpc-allow-origin-all=true
rpc-listen-all=true
quiet=true
continue=true
input-file=/var/etc/aria2/aria2.session.main
save-session=/var/etc/aria2/aria2.session.main
check-certificate=true
enable-dht=true
dht-file-path=/var/etc/aria2/dht.dat.main
bt-enable-lpd=true
enable-peer-exchange=true
file-allocation=none
follow-torrent=true
save-session-interval=30
So please help
Okay I found the problem after enabling the log to debug level
2022-10-15 17:39:33.423552 [DEBUG] [AbstractCommand.cc:181] CUID#14 - socket: read:0, write:1, hup:0, err:0
2022-10-15 17:39:33.423606 [DEBUG] [SocketCore.cc:926] Creating TLS session
2022-10-15 17:39:33.423736 [DEBUG] [SocketCore.cc:946] TLS Handshaking
2022-10-15 17:39:33.430250 [DEBUG] [AbstractCommand.cc:181] CUID#14 - socket: read:1, write:0, hup:0, err:0
2022-10-15 17:39:33.435280 [ERROR] [AbstractCommand.cc:349] CUID#14 - Download aborted. URI=https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances.txt
Exception: [AbstractCommand.cc:351] errorCode=1 URI=https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances.txt
-> [SocketCore.cc:1018] errorCode=1 SSL/TLS handshake failure: unable to get local issuer certificate
2022-10-15 17:39:33.435385 [DEBUG] [AbstractCommand.cc:479] CUID#14 - Aborting download
2022-10-15 17:39:33.435442 [DEBUG] [AbstractCommand.cc:423] CUID#14 - Not trying next request. No reserved/pooled request is remaining and total length is still unknown.
2022-10-15 17:39:33.435523 [DEBUG] [RequestGroup.cc:983] GID#3e09bbb02dd3382d - Request queue check
2022-10-15 17:39:33.436194 [NOTICE] [RequestGroupMan.cc:424] Download GID#3e09bbb02dd3382d not complete:
2022-10-15 17:39:33.436264 [DEBUG] [RequestGroup.cc:1173] GID#3e09bbb02dd3382d - Creating DownloadResult.
2022-10-15 17:39:33.436422 [DEBUG] [RequestGroupMan.cc:481] 1 RequestGroup(s) deleted.
2022-10-15 17:39:34.420758 [INFO] [rpc_helper.cc:103] Executing RPC method system.multicall
errorCode=1 SSL/TLS handshake failure: unable to get local issuer certificate \
So I had to do two things to solve the problem
Disable "Check certificate" in aria2>configuration>HTTP/FTP/SFTP Options solved the problem.
(Needed) Set download dir permission to 0777
mkdir -m 0777 /tmp/aria2 && chown -R aria2:root /tmp/aria2
I just found another fix if you guys want Check Certificate option to be enabled.
Install ca-certificates
package
Go to Luci services> Aria2 > Configuration > HTTP/FTP/SFTP Options . Enable Check certificate option if not.
Paste /etc/ssl/certs/ca-certificates.crt
in CA certificate textbox. Save & Apply.
Don't forget to create and set download Directory with permission 0777.
2 Likes
system
Closed
October 25, 2022, 6:10pm
3
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.