FlareSolverr rock-on

I’m trying to write json for FlareSolverr, but the created docker constantly reboots.

What could be the problem?

{
  "FlareSolverr": {
    "description": "FlareSolverr is a proxy server to bypass Cloudflare and DDoS-GUARD protection.",
    "version": "2.1",
    "website": "https://github.com/FlareSolverr/FlareSolverr",
    "volume_add_support": true,
    "containers": {
      "flaresolverr": {
        "image": "ghcr.io/flaresolverr/flaresolverr",
        "ports": {
          "8191": {
            "description": "FlareSolverr WebUI port.",
            "label": "WebUI port [e.g. 8191]",
            "host_default": 8191,
            "protocol": "tcp",
            "ui": true
          }
        },
        "volumes": {
          "/var/lib/flaresolver": {
            "description": "Share for FlareSolverr configuration.",
            "label": "Config Storage [e.g. flaresolverr-config]"
          }
        },
        "environment": {
          "PGID": {
            "description": "GID to use along with the above UID. It(or the above UID) must have full permissions to all Shares mapped in the previous step.",
            "label": "GID to run flaresolverr as.",
            "index": 2
          },
          "PUID": {
            "description": "UID to run jackett as. It must have full permissions to all Shares mapped in the previous step.",
            "label": "UID to run flaresolverr as.",
            "index": 1
          }
        }
      }
    }
  }
}

@littleyo Just a note that I’ve done a minor formatting only edit on your original post here to help with showing the json as-is. This should help with folk advising on what the problem may be.

1 Like

@littleyo
Looking at the github repo and the dockerfile, I can’t see the PGID/PUID environment variables (doesn’t mean they’re not there). If those are not exposed and you want to run it as a non-root user (if the docker container doesn’t have any special requirements for running as root) you can set those with the tag uid:

Have you checked the rockstor log after trying to install, whether something is posted there? Or does the ‘docker logs flaresolverr’ give you any hints (assuming that you can get any, because the container keeps restarting)?

Try to run it as is, i.e. get rid of PGID/PUID tags and see whether that will address it. I’ve see now at least one PR inside that repo that used those environment variables, but I also found this issue (still unanswered):

so I’d suggest to run it as a root container to see whether that’s the root cause, or whether any other settings in your file are causing this issue. If I get some time I might try your file, but don’t wait for me, please.

3 Likes