OpenWrt之Aria2报错
具体报错如下:
Fri Feb 2 13:48:02 2024 daemon.info aria2c[6519]: jail: exec-ing /usr/bin/aria2c
Fri Feb 2 13:48:02 2024 daemon.err aria2c[6519]: Exception caught
Fri Feb 2 13:48:02 2024 daemon.err aria2c[6519]: Exception: [Platform.cc:125] errorCode=1 OSSL_PROVIDER_load 'legacy' failed.
Fri Feb 2 13:48:02 2024 daemon.err aria2c[6519]:
Fri Feb 2 13:48:02 2024 daemon.info aria2c[6519]: jail: jail (6520) exited with exit: 1
Fri Feb 2 13:48:02 2024 daemon.info procd: Instance aria2::aria2.main s in a crash loop 6 crashes, 0 seconds since last crash
解决方法:
-
先选中以下package:
CONFIG_PACKAGE_libopenssl-conf=y CONFIG_PACKAGE_libopenssl-legacy=y
-
再修改
/etc/init.d/aria2
diff --git a/net/aria2/files/aria2.init b/net/aria2/files/aria2.init index deef307..baf0512 100755 --- a/net/aria2/files/aria2.init +++ b/net/aria2/files/aria2.init @@ -341,6 +341,7 @@ aria2_start() { procd_set_param user "$user" procd_add_jail "$NAME.$section" log + procd_add_jail_mount "/usr/lib" #fix "errorCode=1 OSSL_PROVIDER_load 'legacy' failed" procd_add_jail_mount "$ca_certificate" "$certificate" "$rpc_certificate" "$rpc_private_key" procd_add_jail_mount_rw "$dir" "$config_dir" "$log" procd_close_instance
重新编译固件后升级,问题消失:
Fri Feb 2 13:51:28 2024 daemon.info aria2: Aria2 will run with user 'root'.
Fri Feb 2 13:51:29 2024 daemon.info aria2c[6631]: jail: exec-ing /usr/bin/aria2c
标签:daemon,Feb,Fri,13,报错,aria2c,Aria2,aria2,OpenWrt
From: https://www.cnblogs.com/adam-ma/p/18003059