Docker Container phpldapadmin startet mit Fehlermeldungen

sharbich

New member
Hallo Ihr Lieben,
ich beschäftige mich noch nicht lange mit Docker. Ich habe 4 Container eingerichtet die stabil laufen. Ein Container läuft als Nginx Proxy Manager. Nun möchte ich ein phpldapadmin als Container installieren. Dazu habe ich folgende Variablen erstellt.
Code:
  phpldapadmin:
    container_name: phpldapadmin
    image: 'phpldapadmin/phpldapadmin:latest'
    restart: unless-stopped
    ports:
      - "8080:8080"
Der Container wird gebaut, aber terminiert beim Start mit Fehlermeldungen:
Code:
  - Starting APP...
{"level":"info","ts":1770560179.9851174,"msg":"maxprocs: Leaving GOMAXPROCS=3: CPU quota undefined"}
{"level":"info","ts":1770560179.9854944,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":121462732800,"previous":9223372036854775807}
{"level":"info","ts":1770560179.985605,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
{"level":"warn","ts":1770560179.9857316,"msg":"No files matching import glob pattern","pattern":"Caddyfile.d/*.caddyfile"}
{"level":"info","ts":1770560179.9866023,"msg":"adapted config to JSON","adapter":"caddyfile"}
{"level":"warn","ts":1770560179.986611,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":5}
{"level":"info","ts":1770560180.0475786,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
{"level":"info","ts":1770560180.047795,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0003bc980"}
{"level":"info","ts":1770560180.0478868,"logger":"pki.ca.local","msg":"root certificate trust store installation disabled; unconfigured clients may show warnings","path":"storage:pki/authorities/local/root.crt"}
{"level":"info","ts":1770560180.054323,"logger":"tls","msg":"cleaning storage unit","storage":"FileStorage:/data/caddy"}
{"level":"info","ts":1770560180.0615058,"logger":"tls","msg":"finished cleaning storage units"}
{"level":"info","ts":1770560180.0656142,"logger":"frankenphp","msg":"FrankenPHP started 🐘","php_version":"8.4.17","num_threads":6,"max_threads":6}
{"level":"warn","ts":1770560180.065759,"logger":"http","msg":"HTTP/2 skipped because it requires TLS","network":"tcp","addr":":8080"}
{"level":"warn","ts":1770560180.0657666,"logger":"http","msg":"HTTP/3 skipped because it requires TLS","network":"tcp","addr":":8080"}
{"level":"info","ts":1770560180.0657694,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
{"level":"info","ts":1770560180.0843484,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"}
{"level":"info","ts":1770560180.084359,"msg":"serving initial configuration"}
{"level":"info","ts":1770560224.4196587,"msg":"shutting down apps, then terminating","signal":"SIGTERM"}
{"level":"warn","ts":1770560224.4196858,"msg":"exiting; byeee!! 👋","signal":"SIGTERM"}
{"level":"info","ts":1770560224.4197574,"logger":"frankenphp","msg":"FrankenPHP stopped 🐘"}
{"level":"info","ts":1770560224.4197645,"logger":"http","msg":"servers shutting down with eternal grace period"}
{"level":"info","ts":1770560224.419927,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
{"level":"info","ts":1770560224.4199398,"msg":"shutdown complete","signal":"SIGTERM","exit_code":0}
* Started with [--config /etc/caddy/Caddyfile --adapter caddyfile]
* Laravel Setup... [app]
[/app] is NOT mount point
[/app] is NOT mount point
  - Caching configuration...

   INFO  Caching framework bootstrap, configuration, and metadata. 

  config ........................................................ 22.57ms DONE
  events ......................................................... 3.23ms DONE
  routes ........................................................ 16.44ms DONE
  views ......................................................... 73.87ms DONE
Ich weiß jetzt nicht ob ich im Container Image noch ein Webserver mit installieren muss? Ich habe ja ein Nginx Proxy Manger als Container am laufen? Ich brauche etwas Unterstützung.
Vorab lieben Dank für Eure Unterstützung
Leiben Gruß von Stefan Harbich
 
Ich weiß jetzt nicht ob ich im Container Image noch ein Webserver mit installieren muss?
Das wäre genau das Gegenteil von dem, was einen Container ausmacht: er sollte "self-contained" sein, sprich er sollte alles mitbringen, was er für seine Arbeit braucht.

Hast Du der Anleitung unter https://github.com/leenooks/phpLDAPadmin/wiki/Docker-Container gefolgt? Muss hier nicht noch mindestens die Verbindung zum LDAP Server angegeben werden?

Darüber hinaus gibt es noch weitere Konfigurations-Variablen: https://github.com/leenooks/phpLDAPadmin/wiki/Configuration-Variables
 
Ja habe ich. Ich hatte vorher den LDAP_HOST & LDAP_PORT angegeben. Ohne Erfolg.
Code:
  phpldapadmin:
    container_name: phpldapadmin
    image: 'phpldapadmin/phpldapadmin:latest'
    restart: unless-stopped
    ports:
      - "8080:8080"
    environment:
      LDAP_HOST: 'ldap.intern.example.com'
      LDAP-PORT: '9009'
Siehe Fehlermeldung:
Code:
  - Starting APP...
{"level":"info","ts":1770565208.2857494,"msg":"maxprocs: Leaving GOMAXPROCS=3: CPU quota undefined"}
{"level":"info","ts":1770565208.286192,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":121462732800,"previous":9223372036854775807}
{"level":"info","ts":1770565208.2863097,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
{"level":"warn","ts":1770565208.2864373,"msg":"No files matching import glob pattern","pattern":"Caddyfile.d/*.caddyfile"}
{"level":"info","ts":1770565208.2874587,"msg":"adapted config to JSON","adapter":"caddyfile"}
{"level":"warn","ts":1770565208.2875106,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":5}
{"level":"info","ts":1770565208.3362951,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
{"level":"info","ts":1770565208.3372538,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0001e7a80"}
{"level":"info","ts":1770565208.3828285,"logger":"frankenphp","msg":"FrankenPHP started 🐘","php_version":"8.4.17","num_threads":6,"max_threads":6}
{"level":"warn","ts":1770565208.3829553,"logger":"http","msg":"HTTP/2 skipped because it requires TLS","network":"tcp","addr":":8080"}
{"level":"warn","ts":1770565208.3829622,"logger":"http","msg":"HTTP/3 skipped because it requires TLS","network":"tcp","addr":":8080"}
{"level":"info","ts":1770565208.3829653,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
{"level":"info","ts":1770565208.3829782,"logger":"pki.ca.local","msg":"root certificate trust store installation disabled; unconfigured clients may show warnings","path":"storage:pki/authorities/local/root.crt"}
{"level":"info","ts":1770565208.3940916,"logger":"tls","msg":"cleaning storage unit","storage":"FileStorage:/data/caddy"}
{"level":"info","ts":1770565208.3998895,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"}
{"level":"info","ts":1770565208.4049094,"msg":"serving initial configuration"}
{"level":"info","ts":1770565208.405968,"logger":"tls","msg":"finished cleaning storage units"}
{"level":"info","ts":1770565404.7197666,"msg":"shutting down apps, then terminating","signal":"SIGTERM"}
{"level":"warn","ts":1770565404.719798,"msg":"exiting; byeee!! 👋","signal":"SIGTERM"}
{"level":"info","ts":1770565404.719843,"logger":"http","msg":"servers shutting down with eternal grace period"}
{"level":"info","ts":1770565404.720006,"logger":"frankenphp","msg":"FrankenPHP stopped 🐘"}
{"level":"info","ts":1770565404.7201467,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
{"level":"info","ts":1770565404.7201562,"msg":"shutdown complete","signal":"SIGTERM","exit_code":0}
* Started with [--config /etc/caddy/Caddyfile --adapter caddyfile]
* Laravel Setup... [app]
[/app] is NOT mount point
[/app] is NOT mount point
  - Caching configuration...

   INFO  Caching framework bootstrap, configuration, and metadata.

  config ........................................................ 20.29ms DONE
  events ......................................................... 3.44ms DONE
  routes ........................................................ 15.47ms DONE
  views ......................................................... 71.06ms DONE
Wenn ich mir das so ansehe dann denke ich das TLS (Verschlüsselung) erforderlich ist. Ich wollte aber ohne Verschlüsselung die Funktionalität testen. Das scheint aber erforderlich zu sein. Kann ich TLS deaktivieren? Wenn ich die Webseite über "http://ip:8080" aufrufe bekomme ich den Fehler "500 SERVERFEHLER" mit einer weißen Seite angezeigt.
 
Zuletzt bearbeitet:
Port 8080 wird seit Jahrzehnten für HTTP verwendet, um Webserver auch als nicht root-user binden zu können.
Es würde mich wundern, wenn hier HTTPS erwartet wird, und dafür ein "500 SERVERFEHLER" geworfen wird.

An Deiner Stelle würde ich in die Issues des GitHub Projekts (siehe Links oben) schauen, und ggf. ein Issue aufmachen.

Update:

Du brauchst wohl auch diese Variablen hier:
LDAP_PASSWORD text undefined Password to ldap server[2], eg: mypassword
LDAP_USERNAME dn undefined Authentication DN to connect to ldap server[2], eg: cn=Admin,dc=Test

Hast Du dir die Hinweise unterhalb der Tabelle mit den Variablen angesehen? https://github.com/leenooks/phpLDAPadmin/wiki/Configuration-Variables

Du willst wohl auch APP_DEBUG: true und LOG_CHANNEL: stderr setzen, damit Du brauchbare Logausgaben bekommst.
 
Zuletzt bearbeitet:
Ich habe die Anpassungen wie folgt vorgenommen:
Code:
  phpldapadmin:
    container_name: phpldapadmin
    image: 'phpldapadmin/phpldapadmin:latest'
    restart: unless-stopped
    ports:
      - "8080:8080"
    environment:
      LDAP_HOST: 'ldap.intern.example.com'
      LDAP-PORT: '9009'
      LDAP_USERNAME: 'cn=admin,dc=harnet,dc=de'
      LDAP_PASSWORD: '#############'
      APP_DEBUG: true
      LOG_CHANNEL: stderr
Ich sehe folgende Meldungen unter Portainer:
Code:
* Started with [--config /etc/caddy/Caddyfile --adapter caddyfile]
* Laravel Setup... [app]
[/app] is NOT mount point
  + Encryption Key auto created, replace with "artisan key:generate --force"
   INFO  Application key set successfully. 
[/app] is NOT mount point
  - Caching configuration...
   INFO  Caching framework bootstrap, configuration, and metadata. 
  config ........................................................ 27.42ms DONE
  events ......................................................... 1.24ms DONE
  routes ........................................................ 12.20ms DONE
  views ........................................................ 122.94ms DONE
  - Starting APP...
INF | ts=1770568898.3154814 msg=maxprocs: Leaving GOMAXPROCS=3: CPU quota undefined
INF | ts=1770568898.315725 msg=GOMEMLIMIT is updated package=github.com/KimMachineGun/automemlimit/memlimit GOMEMLIMIT=121462732800 previous=9223372036854776000
INF | ts=1770568898.3157816 msg=using config from file file=/etc/caddy/Caddyfile
WRN | ts=1770568898.315847 msg=No files matching import glob pattern pattern=Caddyfile.d/*.caddyfile
INF | ts=1770568898.3166525 msg=adapted config to JSON adapter=caddyfile
WRN | ts=1770568898.3166606 msg=Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies adapter=caddyfile file=/etc/caddy/Caddyfile line=5
INF | ts=1770568898.3551493 logger=admin msg=admin endpoint started address=localhost:2019 enforce_origin=false origins=["//127.0.0.1:2019","//localhost:2019","//[::1]:2019"]
INF | ts=1770568898.3553426 logger=tls.cache.maintenance msg=started background certificate maintenance cache=0xc000752980
INF | ts=1770568898.3713956 logger=frankenphp msg=FrankenPHP started 🐘 php_version=8.4.17 num_threads=6 max_threads=6
WRN | ts=1770568898.3714697 logger=http msg=HTTP/2 skipped because it requires TLS network=tcp addr=:8080
WRN | ts=1770568898.3714767 logger=http msg=HTTP/3 skipped because it requires TLS network=tcp addr=:8080
INF | ts=1770568898.3714795 logger=http.log msg=server running name=srv0 protocols=["h1","h2","h3"]
INF | ts=1770568898.3714879 logger=pki.ca.local msg=root certificate trust store installation disabled; unconfigured clients may show warnings path=storage:pki/authorities/local/root.crt
INF | ts=1770568898.3806188 logger=tls msg=cleaning storage unit storage=FileStorage:/data/caddy
INF | ts=1770568898.3845298 msg=autosaved config (load with --resume flag) file=/config/caddy/autosave.json
INF | ts=1770568898.384541 msg=serving initial configuration
INF | ts=1770568898.389126 logger=tls msg=finished cleaning storage units
 

Letzte Anleitungen

Statistik des Forums

Themen
7.755
Beiträge
75.880
Mitglieder
8.357
Neuestes Mitglied
Eolophus
Zurück
Oben