cruvie
(cruvie)
October 4, 2024, 10:58am
1
1. The problem I’m having:
encountered an error today, works fine before
2. Error messages and/or full log output:
2024-10-04 15:42:56 {"level":"error","ts":1728027776.6026268,"logger":"http.log.error","msg":"EOF","request":{"remote_ip":"192.168.xx.1","remote_port":"55796","client_ip":"192.168.xx.1","proto":"HTTP/1.1","method":"POST","host":"xxx.75.xx.116:9080","uri":"/moment/getMomentList","headers":{"Content-Length":["4"],"Authorizationtoken":["eyJhbGciOiJIUzI1IlVzZXJJZCI6MTYzNzcyMzY2MTU3MTk4NTQwOCwiVXNlcm5hbWUiOiIiLCJQbGF0Zm9ybSI6Mn0sImlzcyI6ImNydXZpZSIsImV4cCI6MTczMTcwNjM5MCwibmJmIjoxNzI2NTIyMzkwLCJpYXQiOjE3MjY1MjIzOTB9.yTQN_lMPUS8h3PcJDoOC3kgPpPJ64-ObqrSgYHB_r6Q"],"User-Agent":["Dart/3.5 (dart:io)"],"Content-Type":["application/protobuf"],"Accept-Encoding":["gzip"]}},"duration":0.009962583,"status":502,"err_id":"37822zh1t","err_trace":"reverseproxy.statusError (reverseproxy.go:1269)"}
3. Caddy version:
v2.8.4 h1:q3pe0wpBj1OcHFZ3n/1nl4V4bxBrYoSoab7rL9BMYNk=
4. How I installed and ran Caddy:
docker-compose
a. System environment:
macos 15
Docker Engine v27.2.0
b. Command:
c. Service/unit/compose file:
ss-caddy:
image: caddy:latest
container_name: ss-caddy
restart: unless-stopped
ports:
- "9080:9080"
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
- ./caddy/caddy_data:/data
- ./caddy/caddy_config:/config
d. My complete Caddy config:
:9080 {
reverse_proxy /xx/* host.docker.internal:8757
reverse_proxy /mxxx/* host.docker.internal:8758
reverse_proxy /daxx/* host.docker.internal:8759
reverse_proxy /tool/* host.docker.internal:8755
reverse_proxy /uxxx/* host.docker.internal:8756
reverse_proxy /msxxx/* host.docker.internal:8754
}
5. Links to relevant resources:
opened 10:35AM - 04 Oct 24 UTC
closed 10:45AM - 04 Oct 24 UTC
question
encountered an error today, works fine before, can anyone tell me what cause the… problem
```sh
2024-10-04 15:42:56 {"level":"error","ts":1728027776.6026268,"logger":"http.log.error","msg":"EOF","request":{"remote_ip":"192.168.xx.1","remote_port":"55796","client_ip":"192.168.xx.1","proto":"HTTP/1.1","method":"POST","host":"xxx.75.xx.116:9080","uri":"/moment/getMomentList","headers":{"Content-Length":["4"],"Authorizationtoken":["eyJhbGciOiJIUzI1IlVzZXJJZCI6MTYzNzcyMzY2MTU3MTk4NTQwOCwiVXNlcm5hbWUiOiIiLCJQbGF0Zm9ybSI6Mn0sImlzcyI6ImNydXZpZSIsImV4cCI6MTczMTcwNjM5MCwibmJmIjoxNzI2NTIyMzkwLCJpYXQiOjE3MjY1MjIzOTB9.yTQN_lMPUS8h3PcJDoOC3kgPpPJ64-ObqrSgYHB_r6Q"],"User-Agent":["Dart/3.5 (dart:io)"],"Content-Type":["application/protobuf"],"Accept-Encoding":["gzip"]}},"duration":0.009962583,"status":502,"err_id":"37822zh1t","err_trace":"reverseproxy.statusError (reverseproxy.go:1269)"}
```
docker-compose
```yml
ss-caddy:
image: caddy:latest
container_name: ss-caddy
restart: unless-stopped
ports:
- "9080:9080"
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
- ./caddy/caddy_data:/data
- ./caddy/caddy_config:/config
```
caddyfile
```
:9080 {
reverse_proxy /xx/* host.docker.internal:8757
reverse_proxy /mxxx/* host.docker.internal:8758
reverse_proxy /daxx/* host.docker.internal:8759
reverse_proxy /tool/* host.docker.internal:8755
reverse_proxy /uxxx/* host.docker.internal:8756
reverse_proxy /msxxx/* host.docker.internal:8754
}
```
version
```sh
/srv # caddy -v
v2.8.4 h1:q3pe0wpBj1OcHFZ3n/1nl4V4bxBrYoSoab7rL9BMYNk=
```
cruvie:
"msg":"EOF"
An EOF error essentially means that either the request body no longer had anything left to read when Caddy was expecting to have something to read, or the response body didn’t have anything to read.
That doesn’t really give us much to go on here. It could be because your upstream app, or the client, was misbehaving.
1 Like
system
(system)
Closed
November 4, 2024, 10:13am
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.