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

--power argument seems to be ignored #17

Open
dkbnz opened this issue May 8, 2020 · 3 comments
Open

--power argument seems to be ignored #17

dkbnz opened this issue May 8, 2020 · 3 comments

Comments

@dkbnz
Copy link

dkbnz commented May 8, 2020

While trying to set the power level using the environment var POWER,
It seems to be ignored.

My compose file:

version: "2.4"

networks:
  proxy:
    external: true

services:

  folding-at-home:
    image: yurinnick/folding-at-home
    container_name: folding-at-home
    networks:
      - proxy
    command: ["--allow=0/0", "--web-allow=0/0"] # Allow connections from non-localhost ip addresses
    volumes:
      - ~/homelab_data/folding:/opt/fahclient/work
    environment:
      - USER=plateofash
      - TEAM=0
      - ENABLE_GPU=false
      - ENABLE_SMP=true
      - POWER=light
    restart: unless-stopped
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.folding-at-home.entrypoints=http"
      - "traefik.http.routers.folding-at-home.rule=Host(`folding.${DOMAIN}`)"
      - "traefik.http.services.folding-at-home.loadbalancer.server.port=7396"

However, after starting and analysing the logs, I see the power passed to FAHClient is "full"

05:01:54:       Args: --user=plateofash --team=0 --passkey= --gpu=false --smp=true
05:01:54:             --power=full --gui-enabled=false --allow=0/0 --web-allow=0/0

From within the container, the env variable is set.

folding@d40eac954e68:/opt/fahclient$ echo $POWER 
light

I've also tried with and without quotations.

If others are having this issue, the built in docker resource limitations work perfectly and is what I have resorted to.

@wandhydrant
Copy link

Very weird. The entrypoint.sh file is very simple:
https://github.com/yurinnick/folding-at-home-docker/blob/master/entrypoint.sh
If POWER is ignored, I'd imagine USER to be ignored, too, but yours is well present...

@dkbnz
Copy link
Author

dkbnz commented May 15, 2020

Yeap, I expected the same. I wonder if it's an issue with FAHClient

@ghost
Copy link

ghost commented Jul 4, 2020

I had the issue as well at one point, but my compose file looked fine. I'm using Portainer and noticed that it doesn't always seem to "take" changes to environment variables. Completely removing the existing Container and running the Compose file from scratch seemed to resolve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants