docker-phpLDAPadmin icon indicating copy to clipboard operation
docker-phpLDAPadmin copied to clipboard

Error bootstraping: "unterminated `s' command"

Open daper opened this issue 3 years ago • 2 comments

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

daper avatar Apr 04 '22 16:04 daper

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 avatar May 12 '22 15:05 paulz1

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

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

paulz1 avatar May 12 '22 15:05 paulz1