Etherpad Lite¶
Prefer one command? Try the Etherpad Lite Playbook
Etherpad, formerly Etherpad Lite, is a collaborative text editor. Multiple people can edit a pad at the same time and see each other's changes.
This guide installs the latest stable release in ~/opt/etherpad, stores pads in MariaDB, and runs the service on port 9001. Login is required by default. For an automated installation, use the Etherpad Playbook.
Note
You should be familiar with Node.js, MariaDB, systemd services, and web backends.
Prerequisites¶
Use a fresh Asteroid with an empty document root and port 9001 available. Node.js applications belong in your home directory; their source code must not be served by Apache.
Etherpad requires Node.js 24 or newer and pnpm 12 or newer. Select Node.js 24 and check pnpm. Example output throughout this guide is abbreviated:
[isabell@moondust ~]$ uberspace tool nodejs version set 24
OK: The Node.js version has been changed.
[isabell@moondust ~]$ node --version
v24.22.1
[isabell@moondust ~]$ pnpm --version
12.23.0
The Node.js selection applies to your whole Asteroid.
Installation¶
Resolve the latest stable release, then clone that tag:
[isabell@moondust ~]$ latest=$(curl -fsS --retry 3 https://api.github.com/repos/ether/etherpad/releases/latest | jq -er '.tag_name')
[isabell@moondust ~]$ echo "$latest"
v3.3.22
[isabell@moondust ~]$ mkdir -p ~/opt
[isabell@moondust ~]$ git clone --depth 1 --branch "$latest" https://github.com/ether/etherpad.git ~/opt/etherpad
Cloning into '/home/isabell/opt/etherpad'...
[...]
curl -f fails on HTTP errors, -sS hides progress but shows errors, and --retry 3 retries temporary failures. jq -er extracts the release tag as text and fails if it is missing. --depth 1 downloads only the selected release's history. A detached-HEAD notice from Git is expected. Stop if the lookup fails or latest is empty; do not clone another branch as a fallback.
Install the dependencies from the release's lockfile and build both web interfaces:
[isabell@moondust ~]$ cd ~/opt/etherpad
[isabell@moondust etherpad]$ pnpm install --recursive --frozen-lockfile
[...]
Done in [...]
[isabell@moondust etherpad]$ pnpm run build:etherpad
[...]
✓ built in [...]
Keep development dependencies installed: the frontend build uses them.
Configuration¶
Database and accounts¶
Create a dedicated database:
[isabell@moondust ~]$ mariadb -e "CREATE DATABASE \`${USER}_etherpad\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin"
[isabell@moondust ~]$ mariadb -N -e "SHOW DATABASES LIKE '${USER}_etherpad'"
isabell_etherpad
Create ~/opt/etherpad/settings.json with the following content. Replace isabell with your Asteroid name, copy your MariaDB password from ~/.my.cnf, and choose a separate strong administrator password. Use a text editor so passwords do not enter shell history. Escape double quotes and backslashes in JSON strings.
{
"title": "Etherpad",
"ip": "0.0.0.0",
"port": 9001,
"trustProxy": true,
"dbType": "mysql",
"dbSettings": {
"host": "127.0.0.1",
"port": 3306,
"user": "isabell",
"password": "YOUR_MARIADB_PASSWORD",
"database": "isabell_etherpad",
"charset": "utf8mb4"
},
"requireAuthentication": true,
"showSettingsInAdminPage": false,
"users": {
"isabell": {
"password": "YOUR_ADMIN_PASSWORD",
"is_admin": true
}
},
"updates": {"tier": "off"}
}
Protect the file and validate its JSON without displaying its contents:
[isabell@moondust ~]$ chmod 600 ~/opt/etherpad/settings.json
[isabell@moondust ~]$ jq empty ~/opt/etherpad/settings.json && echo 'JSON is valid'
JSON is valid
The mysql driver also supports MariaDB. trustProxy enables HTTPS-aware cookies behind Uberspace's proxy. Listening on 0.0.0.0 lets the web backend reach Etherpad inside the Asteroid. Automatic update checks and installation are disabled; maintain the installation using the steps below.
Service and web access¶
Create the systemd service:
[isabell@moondust ~]$ uberspace service add etherpad "/usr/bin/pnpm run prod" --workdir "$HOME/opt/etherpad" --env NODE_ENV=production --directive Restart=on-failure --directive RestartSec=5 --directive UMask=0077
OK: Created service file: /home/isabell/.config/systemd/user/etherpad.service
[...]
Use the production command directly so service restarts do not reinstall dependencies. Connect your Asteroid domain to port 9001:
[isabell@moondust ~]$ uberspace web backend add "${USER}.uber.space/" port 9001 --force --wait
[...]
OK: Your webserver configuration has been adapted
Open https://isabell.uber.space/ and log in using the account from settings.json. Create a pad and open its link in a second browser to check collaborative editing. The administration interface is at /admin/.
Additional users and public pads¶
Add entries to the users object with their own passwords and "is_admin": false, then restart the service. These accounts can access shared pads; this is not per-pad access control. Etherpad stores these passwords in clear text, so keep settings.json and its backups private.
To allow anyone to create and edit pads, set requireAuthentication to false. Anyone with a pad link can then read and edit it. The administration interface still requires an administrator login.
Debugging¶
Check the service and its log. Example output:
[isabell@moondust ~]$ systemctl --user is-active etherpad
active
[isabell@moondust ~]$ journalctl --user -u etherpad -n 50
[...]
... Etherpad is running
For database errors, check the database name and credentials. If the editor or admin assets are missing, rerun pnpm run build:etherpad in ~/opt/etherpad. For a gateway error, check the service, port, and web backend. A 401 Unauthorized response before login is expected with this configuration.
Reset a password: Edit that user's password in ~/opt/etherpad/settings.json, validate the JSON with jq empty, and restart Etherpad. There is no email password-reset flow for these static accounts.
[isabell@moondust ~]$ systemctl --user restart etherpad
[isabell@moondust ~]$ systemctl --user is-active etherpad
active
Updates¶
Note
Check the release notes regularly. Review runtime requirements and plugin compatibility before upgrading. Updates are manual; do not rerun the installation playbook.
Back up¶
Stop Etherpad before backing up its database and files. The archive includes private settings, installed plugins, and runtime data. Keep a copy outside your Asteroid too.
[isabell@moondust ~]$ umask 077
[isabell@moondust ~]$ backup="$HOME/etherpad-backup-$(date +%Y%m%d-%H%M%S)"
[isabell@moondust ~]$ mkdir "$backup"
[isabell@moondust ~]$ systemctl --user stop etherpad
[isabell@moondust ~]$ mariadb-dump --single-transaction "${USER}_etherpad" > "$backup/database.sql"
[isabell@moondust ~]$ tar -czf "$backup/etherpad.tar.gz" -C "$HOME/opt" etherpad
[isabell@moondust ~]$ ls "$backup"
database.sql etherpad.tar.gz
Stop if either backup command fails. Restart the service if you are only taking a backup.
Install the latest release¶
With the backup complete and Etherpad stopped, resolve the latest tag again and update the checkout. Stop on any error:
[isabell@moondust ~]$ cd ~/opt/etherpad
[isabell@moondust etherpad]$ latest=$(curl -fsS --retry 3 https://api.github.com/repos/ether/etherpad/releases/latest | jq -er '.tag_name')
[isabell@moondust etherpad]$ echo "$latest"
v3.3.22
[isabell@moondust etherpad]$ git fetch --depth 1 origin tag "$latest"
[...]
[isabell@moondust etherpad]$ git checkout --detach "$latest"
HEAD is now at [...]
[isabell@moondust etherpad]$ pnpm install --recursive --frozen-lockfile
[...]
[isabell@moondust etherpad]$ pnpm run build:etherpad
[...]
✓ built in [...]
[isabell@moondust etherpad]$ systemctl --user restart etherpad
[isabell@moondust etherpad]$ systemctl --user is-active etherpad
active
Verify login, editing, and existing pads in your browser, and check the journal. Keep settings.json; compare it with the new settings.json.template for changed options. If you need to roll back, stop the service and restore both the archived directory and its matching database backup before starting it again. Checking out old code alone does not undo database changes.