1. The problem I’m having:
I’ve been getting this issue recently where the caddy service is running, but after a few hours, its memory will spike up to near 100% and then crash. I’m not sure what’s causing this, this issue started yesterday. I’m not sure where to get the logs, but I do have this screenshot from my server:
2. Error messages and/or full log output:
I don’t have logs of when it crashed :
If you need any other logs I can provide you with it
3. Caddy version:
v2.6.2
4. How I installed and ran Caddy:
Installation:
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
I ran caddy with systemctl start caddy && caddy reload
a. System environment:
root@doge-network
OS: Debian GNU/Linux 12 (bookworm) x86_64
Host: KVM/QEMU (Standard PC (i440FX + PIIX, 1996) pc-i440fx-7.2)
Kernel: 6.1.0-23-amd64
Uptime: 12 days, 2 hours, 36 mins
Packages: 487 (dpkg)
Shell: bash 5.2.15
Resolution: 1280x800
Terminal: node
CPU: AMD EPYC-Milan (4) @ 3.799GHz
GPU: 00:02.0 Vendor 1234 Device 1111
Memory: 2835MiB / 7906MiB
b. Command:
systemctl start caddy && caddy reload
c. Service/unit/compose file:
d. My complete Caddy config:
{
on_demand_tls {
ask http://localhost:3000/check/
}
}
https:// {
reverse_proxy /wisp/* 104.156.150.3
reverse_proxy /bear/* 104.156.150.3
reverse_proxy /epoxy/* 104.156.150.3
reverse_proxy /baremux/* 104.156.150.3
reverse_proxy /uv/* 104.156.150.3
root * /var/lib/caddy/site/public
file_server
rewrite /app /index.html
rewrite /portal /loader.html
rewrite /apps /apps.html
rewrite /gms /gms.html
rewrite /info /info.html
rewrite /edu loading.html
tls {
on_demand
}
encode gzip
}
# cp -r ~/v4/static/* /var/lib/caddy/site/public/
beta.derpman.lol {
reverse_proxy localhost:8001
}