Aria2 does not download

hi everyone i install aria2 and Aria2 WebUI on OpenWrt 23.05.0 everything is ok but aria2 wont download.
this is aria2 log

Thu Nov 23 12:25:01 2023 daemon.info aria2c[5314]: jail: exec-ing /usr/bin/aria2c
Thu Nov 23 12:25:01 2023 daemon.info aria2c[4808]: jail: jail (4809) exited with exit: 1
Thu Nov 23 12:25:01 2023 daemon.info aria2: Please make sure user 'aria2' has write access to download dir: /overlay/aria2
Thu Nov 23 12:25:01 2023 daemon.info aria2: Aria2 will run with user 'aria2'.
Thu Nov 23 12:19:16 2023 daemon.info aria2c[4808]: jail: exec-ing /usr/bin/aria2c
Thu Nov 23 12:19:15 2023 daemon.info aria2c[2764]: jail: jail (2789) exited with exit: 1
Thu Nov 23 12:19:14 2023 daemon.info aria2: Please make sure user 'aria2' has write access to download dir: /overlay/aria2
Thu Nov 23 12:19:14 2023 daemon.info aria2: Aria2 will run with user 'aria2'.
Thu Nov 23 11:52:18 2023 daemon.info aria2c[2764]: jail: exec-ing /usr/bin/aria2c
Thu Nov 23 11:52:17 2023 daemon.info aria2: Please make sure user 'aria2' has write access to download dir: /overlay/aria2
Thu Nov 23 11:52:17 2023 daemon.info aria2: Aria2 will run with user 'aria2'.

this is Download location

root@OpenWrt:/overlay# ls -l
drwxrwxrwx    2 aria2    aria2         4096 Nov 23 11:50 aria2
drwxr-xr-x    2 root     root          4096 Jan  1  1970 etc
drwx------    2 root     root         16384 Nov 23 10:17 lost+found
drwxr-xr-x    9 root     root          4096 Nov 23 10:18 upper
drwxr-xr-x    3 root     root          4096 Jan  1  1970 work

this is my aria2 config

config aria2 'main'
        option enabled '1'
        option user 'aria2'
        option dir '/overlay/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 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 max_concurrent_downloads '1'

cannot reproduce with 23.05.2, the "warning" is there, but it runs

Thu Nov 23 16:05:51 2023 daemon.info aria2c[6156]: jail: exec-ing /usr/bin/aria2c
Thu Nov 23 16:05:51 2023 daemon.info aria2: Please make sure user 'aria2' has write access to download dir: /overlay/aria2
Thu Nov 23 16:05:51 2023 daemon.info aria2: Aria2 will run with user 'aria2'.
 6156 root      2196 S    {aria2.main} /sbin/ujail -t 5 -n aria2.main -U aria2 -l -w /overlay/aria2 -w /var/etc/aria2 -- /usr/bin/aria2c --conf-path=/var/etc/aria2/aria2
 6158 aria2     9400 S    /usr/bin/aria2c --conf-path=/var/etc/aria2/aria2.conf.main

Hmm even though it seems a user is not needed, what happens if you create a user with opkg useradd-shadow ?

Usually in such case I would follow with the following commands after:

chown -R aria2 /overlay/aria2
chmod 755 /overlay/aria2

Then you can tweak chmod with better rights after success👍

I created mine with aria2:aria2, and 700, no issues starting.

1 Like