{"action":"created","issue":{"url":"https://api.github.com/repos/osixia/docker-openldap/issues/198","repository_url":"https://api.github.com/repos/osixia/docker-openldap","labels_url":"https://api.github.com/repos/osixia/docker-openldap/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/osixia/docker-openldap/issues/198/comments","events_url":"https://api.github.com/repos/osixia/docker-openldap/issues/198/events","html_url":"https://github.com/osixia/docker-openldap/issues/198","id":303634827,"node_id":"MDU6SXNzdWUzMDM2MzQ4Mjc=","number":198,"title":"slapd fails to start - daemon: listen(ldap://ldap, 5) failed errno=98 (Address already in use)","user":{"login":"macgregor","id":2407678,"node_id":"MDQ6VXNlcjI0MDc2Nzg=","avatar_url":"https://avatars2.githubusercontent.com/u/2407678?v=4","gravatar_id":"","url":"https://api.github.com/users/macgregor","html_url":"https://github.com/macgregor","followers_url":"https://api.github.com/users/macgregor/followers","following_url":"https://api.github.com/users/macgregor/following{/other_user}","gists_url":"https://api.github.com/users/macgregor/gists{/gist_id}","starred_url":"https://api.github.com/users/macgregor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macgregor/subscriptions","organizations_url":"https://api.github.com/users/macgregor/orgs","repos_url":"https://api.github.com/users/macgregor/repos","events_url":"https://api.github.com/users/macgregor/events{/privacy}","received_events_url":"https://api.github.com/users/macgregor/received_events","type":"User","site_admin":false},"labels":[{"id":475395560,"node_id":"MDU6TGFiZWw0NzUzOTU1NjA=","url":"https://api.github.com/repos/osixia/docker-openldap/labels/Docker%20Image","name":"Docker Image","color":"d4c5f9","default":false},{"id":94808652,"node_id":"MDU6TGFiZWw5NDgwODY1Mg==","url":"https://api.github.com/repos/osixia/docker-openldap/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-08T21:17:24Z","updated_at":"2018-06-26T23:13:42Z","closed_at":null,"author_association":"NONE","body":"Been working on this all afternoon, Im hoping I have something obviously misconfigured. I got it to work once and then on a restart I get this error when slapd tries to start and I havent been able to make it go away except by manual intervention.\r\n\r\n```\r\nversion: '2.0'\r\nservices:\r\n    ldap:\r\n        image: osixia/openldap:1.2.0\r\n        container_name: openldap\r\n        restart: always\r\n        command: --loglevel trace --copy-service\r\n        volumes:\r\n          - ./ldap/ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom\r\n          - ./ldap/slapd/database:/var/lib/ldap\r\n          - ./ldap/slapd/config:/etc/ldap/slapd.d\r\n        environment:\r\n          LDAP_ADMIN_PASSWORD: \"admin\"\r\n          LDAP_ORGANISATION: \"Redhat Inc.\"\r\n          LDAP_DOMAIN: \"redhat.com\"\r\n          LDAP_TLS: \"false\"\r\n          LDAP_TLS_ENFORCE: \"false\"\r\n          LDAP_TLS_VERIFY_CLIENT: \"never\"\r\n          LDAP_REMOVE_CONFIG_AFTER_SETUP: \"false\"\r\n          LDAP_BACKEND: \"hdb\"\r\n        hostname: ldap.redhat.com\r\n        ports:\r\n          -  \"127.0.0.1:389:389\"\r\n          -  \"127.0.0.1:636:636\"\r\n```\r\n\r\n[openldap_slapd_failed_to_start_1_debug.txt](https://github.com/osixia/docker-openldap/files/1794800/openldap_slapd_failed_to_start_1_debug.txt)\r\n[openldap_slapd_failed_to_start_2_trace.txt](https://github.com/osixia/docker-openldap/files/1794801/openldap_slapd_failed_to_start_2_trace.txt)\r\n[openldap_slapd_failed_to_start_3_trace_manual_start.txt](https://github.com/osixia/docker-openldap/files/1794802/openldap_slapd_failed_to_start_3_trace_manual_start.txt)\r\n[openldap_slapd_failed_to_start_4_docker_info.txt](https://github.com/osixia/docker-openldap/files/1794804/openldap_slapd_failed_to_start_4_docker_info.txt)\r\n\r\nThings I've tried:\r\n- rm -rf ./ldap/slapd/database ./ldap/slapd/config, no effect\r\n- try osixia/openldap:1.1.11, no effect\r\n- change LDAP_BACKEND to \"hdb\", no effect\r\n- remove \"127.0.0.1\" from port ranges, no effect\r\n- clean up a bunch of docker images and containers, no effect\r\n- attach to the running docker container and manually run the slapd command after it fails:\r\n```\r\n>docker exec -it 3308e177dd1b bash\r\nslapd -h 'ldap://ldap  ldap://localhost ldapi:///' -u openldap -g openldap -d 256\r\n5aa1a38e daemon: bind(9) failed errno=99 (Cannot assign requested address)\r\n5aa1a38f slapd starting\r\n5aa1a38f daemon: listen(ldap://ldap, 5) failed errno=98 (Address already in use)\r\n5aa1a38f slapd stopped.\r\n```\r\nso it fails in the interactive shell but over in the running docker-compose shell I see [openldap_slapd_failed_to_start_3_trace_manual_start.txt](https://github.com/osixia/docker-openldap/files/1794802/openldap_slapd_failed_to_start_3_trace_manual_start.txt) (look after all the sleeps while I was connecint bash and executing the slapd command). So it appears to work, though i haven't spent much time verifying functionality. Its complaining about my ldif syntax for some reason.\r\n\r\nWhat am I doing wrong?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/osixia/docker-openldap/issues/comments/400491938","html_url":"https://github.com/osixia/docker-openldap/issues/198#issuecomment-400491938","issue_url":"https://api.github.com/repos/osixia/docker-openldap/issues/198","id":400491938,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDQ5MTkzOA==","user":{"login":"maheshjc","id":36678111,"node_id":"MDQ6VXNlcjM2Njc4MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/36678111?v=4","gravatar_id":"","url":"https://api.github.com/users/maheshjc","html_url":"https://github.com/maheshjc","followers_url":"https://api.github.com/users/maheshjc/followers","following_url":"https://api.github.com/users/maheshjc/following{/other_user}","gists_url":"https://api.github.com/users/maheshjc/gists{/gist_id}","starred_url":"https://api.github.com/users/maheshjc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maheshjc/subscriptions","organizations_url":"https://api.github.com/users/maheshjc/orgs","repos_url":"https://api.github.com/users/maheshjc/repos","events_url":"https://api.github.com/users/maheshjc/events{/privacy}","received_events_url":"https://api.github.com/users/maheshjc/received_events","type":"User","site_admin":false},"created_at":"2018-06-26T23:13:42Z","updated_at":"2018-06-26T23:13:42Z","author_association":"NONE","body":"Anyone got this to work? I cannot get it work even after removing host name."}}
{"actor":{"display_login":"maheshjc"}}