osixia / docker-phpLDAPadmin

phpLDAPadmin container image 🐳🌴
MIT License
844 stars 197 forks source link

Docker-compose file descriptor 1 issue #56

Open Mindavi opened 5 years ago

Mindavi commented 5 years ago

Using the following docker-compose file results in ./run: 4: ./run: cannot create /proc/1/fd/1: Permission denied errors, which keep popping up about every second. I'm not sure what causes it, but I don't want big logs containing only these errors.

Expected behaviour: only logging when needed Seen behaviour: logging a warning/error roughly every second

It doesn't seem to affect the server whatsoever, but I don't think it should happen.

Any idea what might be causing this and maybe how to suppress these warnings?

Compose file:

version: '3'

services:
  ldap:
    image: osixia/openldap:1.2.3
    environment:
      LDAP_ORGANISATION: test
      LDAP_DOMAIN: example.org
      # login with cn=admin,dc=example,dc=org
      LDAP_ADMIN_PASSWORD: admin
      LDAP_CONFIG_PASSWORD: config
  ldapadmin:
    image: osixia/phpldapadmin:0.7.2
    environment:
      PHPLDAPADMIN_LDAP_HOSTS: ldap
    ports:
      - "6443:443"
    depends_on:
      - ldap

Server error log:

ldap_1       | *** CONTAINER_LOG_LEVEL = 3 (info)
ldap_1       | *** Set environment for startup files
ldap_1       | *** Environment files will be proccessed in this order : 
ldap_1       | Caution: previously defined variables will not be overriden.
ldap_1       | /container/environment/99-default/default.yaml
ldap_1       | 
ldap_1       | To see how this files are processed and environment variables values,
ldap_1       | run this container with '--loglevel debug'
ldap_1       | *** Running /container/run/startup/:ssl-tools...
ldap_1       | *** Running /container/run/startup/slapd...
ldap_1       | 1024
ldap_1       | *** Set environment for container process
ldap_1       | *** Environment files will be proccessed in this order : 
ldap_1       | Caution: previously defined variables will not be overriden.
ldap_1       | /container/environment/99-default/default.yaml
ldap_1       | 
ldap_1       | To see how this files are processed and environment variables values,
ldap_1       | run this container with '--loglevel debug'
ldap_1       | *** Running /container/run/process/slapd/run...
ldap_1       | 1024
ldap_1       | 5c61bbd2 @(#) $OpenLDAP: slapd  (Dec 30 2018 18:24:00) $
ldap_1       |  Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
ldap_1       | 5c61bbd2 slapd starting
ldapadmin_1  | *** CONTAINER_LOG_LEVEL = 3 (info)
ldapadmin_1  | *** Set environment for startup files
ldapadmin_1  | *** Environment files will be proccessed in this order : 
ldapadmin_1  | Caution: previously defined variables will not be overriden.
ldapadmin_1  | /container/environment/99-default/default.yaml
ldapadmin_1  | 
ldapadmin_1  | To see how this files are processed and environment variables values,
ldapadmin_1  | run this container with '--loglevel debug'
ldapadmin_1  | *** Running /container/run/startup/:apache2...
ldapadmin_1  | *** Running /container/run/startup/:cron...
ldapadmin_1  | *** Running /container/run/startup/:logrotate...
ldapadmin_1  | *** Running /container/run/startup/:php7.0-fpm...
ldapadmin_1  | *** Running /container/run/startup/:ssl-tools...
ldapadmin_1  | *** Running /container/run/startup/:syslog-ng-core...
ldapadmin_1  | *** Running /container/run/startup/ldap-client...
ldapadmin_1  | *** Running /container/run/startup/phpldapadmin...
ldapadmin_1  | Set apache2 https config...
ldapadmin_1  | *** Set environment for container process
ldapadmin_1  | *** Environment files will be proccessed in this order : 
ldapadmin_1  | Caution: previously defined variables will not be overriden.
ldapadmin_1  | /container/environment/99-default/default.yaml
ldapadmin_1  | 
ldapadmin_1  | To see how this files are processed and environment variables values,
ldapadmin_1  | run this container with '--loglevel debug'
ldapadmin_1  | *** Running runit daemon...
ldapadmin_1  | ./run: 4: ./run: cannot create /proc/1/fd/1: Permission denied
ldapadmin_1  | /usr/sbin/apache2ctl: 99: ulimit: error setting limit (Operation not permitted)
ldapadmin_1  | Setting ulimit failed. See README.Debian for more information.
ldapadmin_1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.24.0.3. Set the 'ServerName' directive globally to suppress this message
ldapadmin_1  | [Mon Feb 11 18:15:48.237825 2019] [ssl:error] [pid -:tid -] AH02218: ssl_stapling_init_cert: no OCSP URI in certificate and no SSLStaplingForceURL set [subject: CN=81b177abe497,OU=Information Technology Dep.,O=A1A Car Wash,L=Albuquerque,ST=New Mexico,C=US / issuer: CN=docker-light-baseimage,ST=New Mexico,L=Albuquerque,OU=Information Technology Dep.,O=A1A Car Wash,C=US / serial: - / notbefore: Feb 11 18:07:00 2019 GMT / notafter: Feb 11 18:07:00 2020 GMT]
ldapadmin_1  | [Mon Feb 11 18:15:48.237864 2019] [ssl:error] [pid -:tid -] AH02604: Unable to configure certificate -:443:0 for stapling
ldapadmin_1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.24.0.3. Set the 'ServerName' directive globally to suppress this message
ldapadmin_1  | [Mon Feb 11 18:15:48.244883 2019] [ssl:error] [pid -:tid -] AH02218: ssl_stapling_init_cert: no OCSP URI in certificate and no SSLStaplingForceURL set [subject: CN=81b177abe497,OU=Information Technology Dep.,O=A1A Car Wash,L=Albuquerque,ST=New Mexico,C=US / issuer: CN=docker-light-baseimage,ST=New Mexico,L=Albuquerque,OU=Information Technology Dep.,O=A1A Car Wash,C=US / serial: - / notbefore: Feb 11 18:07:00 2019 GMT / notafter: Feb 11 18:07:00 2020 GMT]
ldapadmin_1  | [Mon Feb 11 18:15:48.244889 2019] [ssl:error] [pid -:tid -] AH02604: Unable to configure certificate -:443:0 for stapling
ldapadmin_1  | [Mon Feb 11 18:15:48.245160 2019] [core:warn] [pid -:tid -] AH00098: pid file /var/run/apache2/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
ldapadmin_1  | [Mon Feb 11 18:15:48.245620 2019] [mpm_event:notice] [pid 793:tid 140653048505536] AH00489: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations
ldapadmin_1  | [Mon Feb 11 18:15:48.245630 2019] [core:notice] [pid 793:- -] AH00094: Command line: '/usr/sbin/apache2 -D FOREGROUND'
ldapadmin_1  | [11-Feb-2019 18:15:48] NOTICE: fpm is running, pid 781
ldapadmin_1  | [11-Feb-2019 18:15:48] NOTICE: ready to handle connections
ldapadmin_1  | [11-Feb-2019 18:15:48] NOTICE: systemd monitor interval set to 10000ms
ldapadmin_1  | ./run: 4: ./run: cannot create /proc/1/fd/1: Permission denied
ldapadmin_1  | ./run: 4: ./run: cannot create /proc/1/fd/1: Permission denied
ldapadmin_1  | ./run: 4: ./run: cannot create /proc/1/fd/1: Permission denied
BertrandGouny commented 5 years ago

thanks fr reporting this issue, i have already fixed this on other images, will do the same on this one on the next release :)

skwokie commented 5 years ago

Awesome! I think I've run into the same issue. Would there be any workaround for now? Thanks!

Mindavi commented 5 years ago

I'm not sure, have not tried since 0.8.0