osixia / docker-phpLDAPadmin

phpLDAPadmin container image 🐳🌴
MIT License
842 stars 196 forks source link

Error bootstraping: "unterminated `s' command" #97

Open daper opened 2 years ago

daper commented 2 years ago

When I set the variable PHPLDAPADMIN_LDAP_HOSTS like:

PHPLDAPADMIN_LDAP_CLIENT_TLS: "false"
PHPLDAPADMIN_LDAP_HOSTS_FRIENDLY: "true"
PHPLDAPADMIN_LDAP_HOSTS: |
  - server1:
    - server:
      - name: openldap
      - host: example.com 
      - tls: "false"
      - port: 389
    - login:
      - auth_type: session
      - bind_id: "cn=admin,dc=example,dc=com"
      - bind_pass: "admin"

And when the container bootstraps it fails with:

Bootstap phpLDAPadmin...
tr: write error: Broken pipe
tr: write error
sed: -e expression #1, char 94: unterminated `s' command
*** /container/run/startup/phpldapadmin failed with status 1
paulz1 commented 2 years ago

Not sure if it's linked, but I'd like to share. I tried to launch osixia/phpldapadmin:0.9.0 on our test Kubernetes cluster, and it fails with almost same error.

Bootstap phpLDAPadmin...
tr: write error: Broken pipe
tr: write error
sed: cannot rename /container/service/phpldapadmin/assets/config/sedwDYreg: Device or resource busy
*** /container/run/startup/phpldapadmin failed with status 4

In my case I passing conf via file (using configmaps).

paulz1 commented 2 years ago

Sorry... in my case I forgot args: ["--copy-service"]

Using copy-service fix the problem. @daper : could it be the same problem for you ?