adferrand / docker-backuppc

Docker container with BackupPC version 4.x/3.x based on Alpine distribution.
MIT License
72 stars 49 forks source link

lighttpd crashes with ldap enabled in docker image 4.4.0-9 #74

Open wrightsonm opened 2 years ago

wrightsonm commented 2 years ago

When upgrading from 4.4.0-8 to 4.4.0-9 I have found that lighttpd crashes when auth_method = ldap.

2022-03-05 15:53:30,931 INFO Set uid to user 0 succeeded
2022-03-05 15:53:30,956 INFO RPC interface 'supervisor' initialized
2022-03-05 15:53:30,958 INFO supervisord started with pid 1
2022-03-05 15:53:31,965 INFO spawned: 'backuppc' with pid 41
2022-03-05 15:53:31,972 INFO spawned: 'lighttpd' with pid 42
2022-03-05 15:53:31,982 INFO spawned: 'watchmails' with pid 43
2022-03-05 15:53:33,509 INFO success: backuppc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-03-05 15:53:33,510 INFO success: lighttpd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-03-05 15:53:33,510 INFO success: watchmails entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
Assertion failed: lr->lr_refcnt == 0 (request.c: ldap_find_request_by_msgid: 1672)
2022-03-05 15:53:38,812 INFO exited: lighttpd (terminated by SIGABRT (core dumped); not expected)
2022-03-05 15:53:39,819 INFO spawned: 'lighttpd' with pid 47
Assertion failed: lr->lr_refcnt == 0 (request.c: ldap_find_request_by_msgid: 1672)
2022-03-05 15:53:40,039 INFO exited: lighttpd (terminated by SIGABRT (core dumped); not expected)
2022-03-05 15:53:41,046 INFO spawned: 'lighttpd' with pid 48
2022-03-05 15:53:42,051 INFO success: lighttpd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

I have tested versions 4.4.0-7, 4.4.0-8 and 4.4.0-9

versions 7 & 8 work, but unforatunely the latest version does not.

This is my sanitized docker command:

sudo docker run \
    --name backuppc4409 \
    --publish 32701:8080 \
    --volume /volume1/docker/backuppc/etc:/etc/backuppc \
    --volume /volume1/docker/backuppc/home:/home/backuppc \
    --volume /volume1/docker/backuppc/data:/data/backuppc \
    --env 'AUTH_METHOD=ldap' \
    --env 'LDAP_BACKUPPC_ADMIN=user1 user2' \
    --env 'LDAP_BIND_PW=myldappassword' \
    --env 'LDAP_BIND_DN=CN=SomeUser,OU=SomeOU,DC=SomeDomain,DC=LAN' \
    --env 'LDAP_FILTER=(&(objectClass=user)(sAMAccountName=$))' \
    --env 'LDAP_BASE_DN=DC=SomeDomain,DC=lan' \
    --env 'LDAP_HOSTNAME=hostname.domain.lan:389' \
    --env 'BACKUPPC_WEB_PASSWD=adminpassword' \
    --env 'BACKUPPC_WEB_USER =adminuser' \
    --env 'TZ=Europe/London' \
    --env 'BACKUPPC_GUID=65537' \
    --env 'BACKUPPC_UUID=1026' \
    adferrand/backuppc:4.4.0-9      
northriverboats commented 2 years ago

I have rebuilt with 4.4.0-9 locally and I do not have that problem. However if I pull the image from dockerhub, I get the same crash and restart.

pmtek commented 2 years ago

Same issue here.