Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
daper opened this issue Apr 4, 2022 · 2 comments
Open

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

daper opened this issue Apr 4, 2022 · 2 comments

Comments

@daper
Copy link

daper commented Apr 4, 2022

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 daper changed the title Error when bootstraping: "unterminated `s' command" Error bootstraping: "unterminated `s' command" Apr 4, 2022
@paulz1
Copy link

paulz1 commented May 12, 2022

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
Copy link

paulz1 commented May 12, 2022

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants