Corrupted builds

(Petar Peric) #1

Hello,

All Linux 32bit/64bit builds (with or without plugins) downloaded from the download page end up corrupted - the archive is broken and cannot be extracted. Can anyone fix those builds?

Cheers

(Matt Holt) #2

Works for me. Make sure your download completes successfully.

(Petar Peric) #3

I tried with 3 different browsers and it always ends up corrupted. Around 14.6 MB is the size I get after download, is that correct?

This is what I’m trying to download:
https://caddyserver.com/download/linux/amd64?plugins=http.filebrowser&license=personal&telemetry=off

Also when I run wget https://caddyserver.com/download/linux/amd64?plugins=http.filebrowser&license=personal&telemetry=off it spits error.

Any suggestions?

(Matt Holt) #4

Does the archive signature match? Instructions: https://github.com/mholt/caddy/wiki/Verifying-Archive-Signatures

This archive downloaded and extracted on my machine.

What is the error?

(Magikstm) #5

On which OS are you downloading and what tool do you use to unpack?

I suggest trying a different one to see if it corrects the issue.

(Petar Peric) #6

This is the error I get on ubuntu vps when trying to wget it: https://pastebin.com/NLRWPXc0

I also tried to manually download it on win 10 through FF, Chrome and Brave and every time Winrar reports that archive is corrupted. I then tried to upload it back to VPS and extracting there, it still fails.

(Paul Smith) #7

For the wget. try putting quotes around the url, looks like wget is interpreting as two requests due to the & in the url.

wget “https://caddyserver.com/download/linux/amd64?plugins=http.filebrowser&license=personal&telemetry=off

(Petar Peric) #8

Ok, I finally managed to download it. But now I can’t get it to run as system service in the background, this is the error I get:

[ubuntu ~] sudo systemctl status caddy
● caddy.service - Caddy HTTP/2 web server
Loaded: loaded (/etc/systemd/system/caddy.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2019-02-16 11:53:23 CET; 1h 21min ago
Docs: https://caddyserver.com/docs
Main PID: 28164 (code=exited, status=226/NAMESPACE)

Feb 16 11:53:23 ubuntu systemd[1]: Started Caddy HTTP/2 web server.
Feb 16 11:53:23 ubuntu systemd[28164]: caddy.service: Failed at step NAMESPACE spawning /usr/local/bin/caddy: No such file or directory
Feb 16 11:53:23 ubuntu systemd[1]: caddy.service: Main process exited, code=exited, status=226/NAMESPACE
Feb 16 11:53:23 ubuntu systemd[1]: caddy.service: Unit entered failed state.
Feb 16 11:53:23 ubuntu systemd[1]: caddy.service: Failed with result ‘exit-code’.

I moved caddy binary in /usr/local/bin/ and caddy.service in /etc/systemd/system/.

(Magikstm) #9

Download Caddy 0.11.4 and check: Starting with systemd: Failed at step NAMESPACE spawning /usr/local/bin/caddy: No such file or directory

It may be a permission issue on the caddy file or a related folder.

(Petar Peric) #10

I’ve downloaded the latest version but I still get the same error. I also checked that thread before posting but I don’t understand what is the problem.
What are the correct permissions I need to set?
And what are the absolutely required folders I need to have/create?

Thanks for help.

(Toby Allen) #12

What was causing the error with the corrupted downloads?

(Petar Peric) #13

No idea, they are still corrupted on windows, I managed to download and install with curl.