Unable to download (caddy-dns/cloudflare)

1. Caddy version (caddy version):

V2.4.6

2. How I run Caddy:

I run caddy from the digital ocean marketplace

a. System environment:

Ubuntu 18.04

b. Command:

sudo curl -o /usr/bin/caddy -L https://caddyserver.com/api/download?os=linux&arch=amd64&p=github.com%2Fcaddy-dns%2Fcloudflare&idempotency=43093767053855

d. My complete Caddyfile or JSON config:

{
  "admin": {
    "listen": "0.0.0.0:2019"
  },
  "apps": {
    "http": {
      "servers": {
        "srv0": {
          "listen": [
            ":80"
          ],
          "routes": [
            {
              "match": [
                {
                  "host": [
                    "151.260.28.728"
                  ]
                }
              ],
              "handle": [
                {
                  "handler": "subroute",
                  "routes": [
                    {
                      "handle": [
                        {
                          "handler": "reverse_proxy",
                          "upstreams": [
                            {
                              "dial": "www.example.com:80"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ],
              "terminal": true
            }
          ]
        },
        "srv1": {
          "listen": [
            ":443"
          ],
          "routes": [
            {
              "handle": [
                {
                  "handler": "reverse_proxy",
                  "upstreams": [
                    {
                      "dial": "www.example.com:80"
                    }
                  ]
                }
              ]
            }
          ]
        }
      }
    },
    "tls": {
      "automation": {
        "policies": [
          {
            "on_demand": true
          }
        ],
        "on_demand": {
          "ask": "https://example.com/caddy/allowed-domain"
        }
      }
    }
  }
}

3. The problem I’m having:

Hello, I’m new to Caddy and I’m currently running it from the digital ocean marketplace which is great.
I’m having an issue with installing the Caddy-dns Cloudflare module.

Each time I try downloading the module with the command above, it downloads halfway and stops for hours (screenshot attached).

Kindly let me know if there is any other way to install the Cloudflare module or how I can resolve the current issue.

Thank you for your time

4. Error messages and/or full log output:

No error message, it just does not complete download

5. What I already tried:

Google search, and reading the docs

6. Links to relevant resources:

I think you’re the first person I know of who actually uses that image. Unfortunately, due to how their update process works, the image hasn’t been updated in a very long time. Did you manually update Caddy to the latest version v2.4.6 as stated?

AFAIK our services are up; if the download is stalling, it’s probably a networking issue on your host.

There are other ways to install Caddy with plugins:

Thank you for taking the time to assist me.

No, I did not manually update it, I followed Francis recommendation below:

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.