Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用alist-aria2镜像(docker)时设置PUID/PGID导致aria2读取不到配置文件 #3681

Closed
4 tasks done
heiheiyoyo opened this issue Mar 2, 2023 · 4 comments
Closed
4 tasks done
Labels
bug Something isn't working

Comments

@heiheiyoyo
Copy link

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure it's due to alist and not something else(such as Dependencies or Operational).
  • I'm sure I'm using the latest version

Alist Version / Alist 版本

latest/v3.12.2

Driver used / 使用的存储驱动

跟存储驱动没关系

Describe the bug / 问题描述

用docker部署alist-aria2镜像时设置PUID/PGID导致aria2读取不到配置文件
主要是想用aria2批量下载,因为挂载的盘的权限是1000的用户,所以设置了PUID和PGID,导致aria2无法启动

/entrypoint.sh

……
exec su-exec ${PUID}:${PGID} nohup aria2c \
  --enable-rpc \
  --rpc-allow-origin-all \
  --conf-path=/root/.aria2/aria2.conf \
  >/dev/null 2>&1 &
……

/root是700的权限

$ ls /
……
drwx------    1 root     root          4096 Mar  2 09:03 root
……

Reproduction / 复现链接

Logs / 日志

No response

@heiheiyoyo heiheiyoyo added the bug Something isn't working label Mar 2, 2023
@welcome
Copy link

welcome bot commented Mar 2, 2023

Thanks for opening your first issue here! Be sure to follow the issue template!

@heiheiyoyo
Copy link
Author

好像重复了 AlistGo/with_aria2#4

@x3669
Copy link

x3669 commented Mar 3, 2023

‘ps - T ’shows that aria2c is running, but cannot connect when alist sets aria2,The following problems, aria2 rejected the connection
Failed get aria2 version: Post "http://*********:6800/jsonrpc": dial tcp *********:6800: connect: connection refused

@x3669
Copy link

x3669 commented Mar 3, 2023

It should be caused by the unavailability of the aria2 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants