crazy-max / docker-pure-ftpd

Pure-FTPd Docker image based on Alpine Linux with MySQL, PostgreSQL and LDAP support
MIT License
56 stars 15 forks source link

Logs not working in latest #42

Closed brian-maloney closed 3 years ago

brian-maloney commented 3 years ago

Behaviour

Logs aren't working in latest, which is 1.0.49.

Steps to reproduce this issue

  1. Start the latest container

Expected behaviour

Pure-FTPD logs should be output in the container logs.

Actual behaviour

Pure-FTPD logs are not in container logs

Configuration

I'm running embedded in a mailcow deployment so I can't really show you my entire .env or compose file. Suffice to say everything works fine with 1.0.48.

Docker info

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Build with BuildKit (Docker Inc., v0.5.1-tp-docker)

Server:
 Containers: 62
  Stopped: 1
 Images: 73
 Server Version: 20.10.6
 Storage Driver: zfs
  Zpool: zroot
  Zpool Health: ONLINE
  Parent Dataset: zroot/var/lib/docker
  Space Used By Parent: 24454594560
  Space Available: 97397714944
  Parent Quota: no
  Compression: off
 Logging Driver: journald
 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 logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 12dca9790f4cb6b18a6a7a027ce420145cb98ee7.m
 runc version: 2c7861bc5e1b3e756392236553ec14a78a09f8bf
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 5.10.36-1-lts
WARNING: No kernel memory limit support
WARNING: No oom kill disable support
 Operating System: Arch Linux
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 7.763GiB
 Name: industry
 ID: Z3JZ:E2LR:V42G:L3XM:IN7Y:UN3N:M7KS:C2PL:TYAW:EBAB:IHLE:TCJN
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: true
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Logs

pureftpd_1           | [cont-finish.d] executing container finish scripts...                                                                                              
pureftpd_1           | [cont-finish.d] done.                                                                                                                              
pureftpd_1           | [s6-finish] waiting for services.                                                                                                                  
pureftpd_1           | pure-ftpd exited. code=                                                                                                                            
pureftpd_1           | s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening                                                              
pureftpd_1           | [s6-finish] sending all processes the TERM signal.                                                                                                 
pureftpd_1           | [s6-finish] sending all processes the KILL signal and exiting.                                                                                     
pureftpd_1           | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.                                                                      
pureftpd_1           | [s6-init] ensuring user provided files have correct perms...exited 0.                                                                              
pureftpd_1           | [fix-attrs.d] applying ownership & permissions fixes...       
pureftpd_1           | [fix-attrs.d] done.
pureftpd_1           | [cont-init.d] executing container initialization scripts...
pureftpd_1           | [cont-init.d] 01-config.sh: executing... 
pureftpd_1           | Setting timezone to UTC...
pureftpd_1           | Use MySQL authentication method
pureftpd_1           | Waiting 45s for MySQL database to be ready...
pureftpd_1           | MySQL database ready!
pureftpd_1           | Flags
pureftpd_1           |   Secure: --maxclientsnumber 5 --maxclientsperip 5 --antiwarez --customerproof --dontresolve --norename --prohibitdotfilesread --prohibitdotfileswr
ite
pureftpd_1           |   Additional: --verboselog --verboselog --syslogfacility ftp --altlog clf:/data/pureftpd.log --tls 2 --chrooteveryone --createhomedir --minuid 1000
0 --noanonymous --nochmod
pureftpd_1           |   All: --verboselog --verboselog --syslogfacility ftp --altlog clf:/data/pureftpd.log --tls 2 --chrooteveryone --createhomedir --minuid 10000 --noa
nonymous --nochmod --bind 0.0.0.0,2100 --ipv4only --passiveportrange 30000:30009 --noanonymous --createhomedir --nochmod --syslogfacility ftp --forcepassiveip MYIP --maxclientsnumber 5 --maxclientsperip 5 --antiwarez --customerproof --dontresolve --norename --prohibitdotfilesread --prohibitdotfileswrite --login mysql:/data/puref
tpd-mysql.conf
pureftpd_1           | [cont-init.d] 01-config.sh: exited 0.
pureftpd_1           | [cont-init.d] 02-service.sh: executing... 
pureftpd_1           | [cont-init.d] 02-service.sh: exited 0.
pureftpd_1           | [cont-init.d] 03-uploadscript.sh: executing... 
pureftpd_1           | [cont-init.d] 03-uploadscript.sh: exited 0.
pureftpd_1           | [cont-init.d] ~-socklog: executing... 
pureftpd_1           | [cont-init.d] ~-socklog: exited 0.
pureftpd_1           | [cont-init.d] done.
pureftpd_1           | [services.d] starting services
pureftpd_1           | [services.d] done.
crazy-max commented 3 years ago

@brian-maloney Should be fixed now