anonaddy / docker

AnonAddy Docker image
MIT License
468 stars 51 forks source link

Flooded by "end-of-input while reading request from tlsmgr socket: Broken pipe" #256

Closed jitbasemartin closed 4 months ago

jitbasemartin commented 4 months ago

Support guidelines

I've found a bug and checked that ...

Description

I am self-hosting adda with docker (compose) and after around 24h the service stop working and when I checked the logs of Addy container, I saw a lot of the following message:

mail postfix/tlsmgr[4907]: warning: end-of-input while reading request from tlsmgr socket: Broken pipe

Expected behaviour

Don't see the previous message and have the service working

Actual behaviour

After 24h the service not forward emails

Steps to reproduce

  1. Start addy with docker compose
  2. wait around 24h
  3. checkout the logs

Docker info

$ docker info
Client: Docker Engine - Community
 Version:    25.0.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.12.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.24.2
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 6
  Running: 4
  Paused: 0
  Stopped: 2
 Images: 5
 Server Version: 25.0.1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: false
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: runc io.containerd.runc.v2
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: a1496014c916f9e62104b33d1bb5bd03b0858e59
 runc version: v1.1.11-0-g4bccb38
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.2.0-1019-azure
 Operating System: Ubuntu 22.04.3 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 1
 Total Memory: 834MiB
 Name: mail-server
 ID: 823507de-0ee0-4e63-a9af-63140c197fd8
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Docker Compose config

No response

Logs

Too much logs

Additional info

No response

jitbasemartin commented 4 months ago

I got better logs before the flooding

crond: user anonaddy: process already running: php /var/www/anonaddy/artisan schedule:run --no-ansi --no-interaction
crond: user anonaddy: process already running: php /var/www/anonaddy/artisan schedule:run --no-ansi --no-interaction
Feb 07 12:32:07 mail postfix/anvil[4966]: statistics: max connection rate 1/60s for (25:50.116.60.189) at Feb  7 12:28:37
Feb 07 12:32:15 mail postfix/anvil[4966]: statistics: max connection count 1 for (25:50.116.60.189) at Feb  7 12:28:37
Feb 07 12:32:40 mail postfix/anvil[4966]: statistics: max cache size 1 at Feb  7 12:28:37
Feb 07 12:42:53 mail postfix/master[4872]: warning: unix_trigger_event: read timeout for service public/pickup
Feb 07 12:45:32 mail postfix/master[4872]: warning: unix_trigger_event: read timeout for service public/pickup
Feb 07 12:45:37 mail postfix/tlsmgr[4907]: warning: end-of-input while reading request from tlsmgr socket: Broken pipe
Feb 07 12:45:37 mail postfix/tlsmgr[4907]: warning: end-of-input while reading request from tlsmgr socket: Broken pipe
Feb 07 12:45:37 mail postfix/tlsmgr[4907]: warning: end-of-input while reading request from tlsmgr socket: Broken pipe
Feb 07 12:45:37 mail postfix/tlsmgr[4907]: warning: end-of-input while reading request from tlsmgr socket: Broken pipe
Feb 07 12:45:37 mail postfix/tlsmgr[4907]: warning: end-of-input while reading request from tlsmgr socket: Broken pipe
Feb 07 12:45:37 mail postfix/tlsmgr[4907]: warning: end-of-input while reading request from tlsmgr socket: Broken pipe
Feb 07 12:45:37 mail postfix/tlsmgr[4907]: warning: end-of-input while reading request from tlsmgr socket: Broken pipe
Feb 07 12:45:48 mail postfix/tlsmgr[4907]: warning: end-of-input while reading request from tlsmgr socket: Broken pipe
Feb 07 12:45:48 mail postfix/tlsmgr[4907]: warning: end-of-input while reading request from tlsmgr socket: Broken pipe
Feb 07 12:45:48 mail postfix/tlsmgr[4907]: warning: end-of-input while reading request from tlsmgr socket: Broken pipe
Feb 07 12:45:48 mail postfix/tlsmgr[4907]: warning: end-of-input while reading request from tlsmgr socket: Broken pipe
Feb 07 12:45:48 mail postfix/tlsmgr[4907]: warning: end-of-input while reading request from tlsmgr socket: Broken pipe
Feb 07 12:45:48 mail postfix/tlsmgr[4907]: warning: end-of-input while reading request from tlsmgr socket: Broken pipe
willbrowningme commented 4 months ago

I found this with a quick search - https://unix.stackexchange.com/questions/734607/postfix-log-flooded-with-warning-end-of-input-while-reading-request-from-tlsmgr

It could simply be your server running out of memory, how much RAM does it have?

Closing as I do not believe this issue is related to the web application itself.

jitbasemartin commented 4 months ago

1 GB what is the minimum requirement ?

willbrowningme commented 4 months ago

I don't know with Docker as I don't use it myself, but you could try scaling the server to 2GB to see if that solves it.

jitbasemartin commented 4 months ago

The issue seems more related to read disk operation, I change for a "premium" disk and that work a little better.

image

Do you know why the process read that much of Data ?

willbrowningme commented 4 months ago

I'm afraid I have no idea, I am not familiar with Docker.