Coder Social home page Coder Social logo

Comments (7)

chenhonghe2021 avatar chenhonghe2021 commented on August 15, 2024

指定PGID和PUID后,Aria2无法运行,日志显示Aria2 not ready. 改了一下 entrypoint.sh 输出了一下Aria2的日志,显示找不到配置文件 /root/.aria2/aria2.conf。 可能是无权限访问 /root 导致的?

请问这个Aria2 RPC 密钥 多少,可以怎么查?

from with_aria2.

chenhonghe2021 avatar chenhonghe2021 commented on August 15, 2024

指定PGID和PUID后,Aria2无法运行,日志显示Aria2 not ready. 改了一下 entrypoint.sh 输出了一下Aria2的日志,显示找不到配置文件 /root/.aria2/aria2.conf。 可能是无权限访问 /root 导致的?

请问这个Aria2 RPC 密钥 多少,可以怎么查?

已搞懂了,网络按bridge部署,进入log可以看到密码,在host部署确不用密码~~没法找到配置文件

from with_aria2.

lyqnihao avatar lyqnihao commented on August 15, 2024

指定PGID和PUID后,Aria2无法运行,日志显示Aria2 not ready. 改了一下 entrypoint.sh 输出了一下Aria2的日志,显示 Configuration file /root/.aria2/aria2.conf is not found. 可能是无权限访问 /root 导致的?

在alist里挂载本地硬盘,然后可以从那里边找到aria2.conf文件

from with_aria2.

sjtuross avatar sjtuross commented on August 15, 2024

指定PGID和PUID后Aria2无法运行,从top看貌似变成了僵尸进程,单独挂载/root/.aria2出来也不行

from with_aria2.

cs-richardyao avatar cs-richardyao commented on August 15, 2024

指定PGID和PUID后Aria2无法运行,从top看貌似变成了僵尸进程,单独挂载/root/.aria2出来也不行

me too

from with_aria2.

zlm324 avatar zlm324 commented on August 15, 2024

指定PGID和PUID后Aria2无法运行,从top看貌似变成了僵尸进程,单独挂载/root/.aria2出来也不行

进入容器的shell,在entrypoint.sh文件里面,把exec su-exec ${PUID}:${PGID} nohup aria2c改成exec su-exec 0:0 nohup aria2c,即可顺利启动aria2。
但我是在Truenas里面安装的AList App,修改不会被保存,重启之后entrypoint.sh会被还原,头疼。

from with_aria2.

yvvw avatar yvvw commented on August 15, 2024

我使用覆盖entrypoint结合command参数的方式修改了aria2数据文件路径及权限,这样可以在更改uid gid情况下尽量不修改镜像启动成功

...
  alist:
    image: xhofe/alist-aria2
    entrypoint: "/bin/sh"
    command: |
      -c "\
        mkdir -p /opt/aria2;
        mv /root/.aria2/* /opt/aria2;
        chown -R $$PUID:$$PGID /opt/aria2;
        find /opt/aria2 -type f -exec sed -i 's/\/root\/\.aria2/\/opt\/aria2/g' {} \;
        sed -i 's/\/root\/\.aria2/\/opt\/aria2/g' /entrypoint.sh;
        /entrypoint.sh"
    environment:
      - PUID=$UID
      - PGID=$GID
...

image
image

from with_aria2.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.