`https://caddyserver.com/api/download` times out

1. The problem I’m having:

We (php/php-src) use Caddy server in our CI tasks, and download Caddy from https://caddyserver.com/api/download?os=linux&arch=amd64 on the fly.

It looks like this server is down. I checked from a few vantage points, all returned with the following:

2. Error messages and/or full log output:

sudo curl 'https://caddyserver.com/api/download?os=linux&arch=amd64' -o /usr/bin/caddy
sudo caddy start --config ext/curl/tests/Caddyfile
/usr/bin/caddy: 1: {status_code:400,error:{message:unable to fulfill download request,id:038c34f1-3e5d-4c76-9320-aa38ea940c1b}}: not found
Error: Process completed with exit code 127.

3. Caddy version:

N/A - 2.7.6

4. How I installed and ran Caddy:

a. System environment:

Ubuntu 20.04 LTS, GitHub Actions, amd64

5. Links to relevant resources:

You should download from GitHub instead.

The build server (aka download page) isn’t meant to be used by CI, it’s moreso meant for humans to easily get custom builds.

We cannot guarantee uptime or reliability.

1 Like

Yeah, our build server is just a convenience for users, not intended for production reliance. It goes down sometimes as we don’t have a lot of resources and sometimes builds hang (there’s bugs in the Go tools as well). Like it says at the top of the download page:

this download page comes with no guarantees or SLAs.

Use GitHub releases for the latest binaries, OR, if you need a custom build, use xcaddy. :+1:

1 Like

Awesome, thank you so much. I updated CI tasks to use GitHub Releases instead.

Apologies about unknowingly causing unnecessary load from our build tasks. Thanks a lot for maintaining them :pray:.

3 Likes

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