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

Etherpad: Settings.json malformed when environment variable contains double quote #20

Open
pawohl opened this issue Feb 24, 2017 · 1 comment

Comments

@pawohl
Copy link

pawohl commented Feb 24, 2017

There was an error processing your settings.json file: Unexpected string

is what you get when starting with, e.g.

docker run -d \
    --network ep_network \
    -e ETHERPAD_TITLE="The \"Etherpad" \
    -e ETHERPAD_DB_HOST=ep_mysql \
    -e ETHERPAD_DB_PASSWORD=password \
    -p 9001:9001 \
    tvelocity/etherpad-lite

A simple workaround is to double escape the quotes, however isn't yet documented and feels unintuitive. #19 has code delegating JSON formatting to nodejs. Attempting to JSON-encode in bash directly isn't working that well.

Additionally an extra comma is left in some situations right after the dbSettings, which isn't allowed by the JSON specification (etherpad works with them).

@pawohl pawohl changed the title Settings.json malformed when environment variable contains double quote Etherpad: Settings.json malformed when environment variable contains double quote Feb 24, 2017
@lupa18
Copy link

lupa18 commented Aug 24, 2018

Maybe a simple advice: "All environment variable must be without quotes". Example of env file:

ETHERPAD_TITLE=your title without wuotes
ETHERPAD_DB_HOST=the-db-host
ETHERPAD_DB_USER=your-db-user
ETHERPAD_DB_PASSWORD=your-db-password
ETHERPAD_ADMIN_PASSWORD=your-password
ETHERPAD_ADMIN_USER=adminuser
ETHERPAD_API_KEY=whateveryouneedtoputhere

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