Describe the bug
In the official Etherpad Lite container image, the migrateDB script described in the documentation is reported as missing.
To Reproduce
Steps to reproduce the behavior:
- Start Etherpad Lite in a container using the official
docker.io/etherpad/etherpad:2.4.2 image.
- Open a shell to the container e.g. using
docker/podman exec -it etherpad bash,
- Create the old and new db config JSON files and run
pnpm run migrateDB --file1 old.json --file2 new.json
- Receive the following error message:
Missing script: migrateDB
Expected behavior
The database migration should start as described in the CLI documentation.
Screenshots
d949719b2397:/opt/etherpad-lite$ pnpm run migrateDB --file1 old.json --file2 new.json
ERR_PNPM_NO_SCRIPT Missing script: migrateDB
Command "migrateDB" not found.
**Server
- Etherpad version: 2.4.2
- OS: Alpine Linux v3.22 (Official container image)
- Node.js version (
node --version): v22.17.1
- npm version (
npm --version): 10.9.2
- Is the server free of plugins: Yes, using the official
docker.io/etherpad/etherpad:2.4.2 image.
Additional context
The script is present in /opt/etherpad-lite/bin/migrateDB.ts, but is missing from the scripts section of /opt/etherpad-lite/package.json. It can still be invoked using pnpm --filter bin run migrateDB --file1 old.json --file2 new.json:
d949719b2397:/opt/etherpad-lite$ pnpm --filter bin run migrateDB --file1 old.json --file2 new.json
> bin@2.4.2 migrateDB /opt/etherpad-lite/bin
> node --import tsx migrateDB.ts --file1 old.json --file2 new.json
...
Describe the bug
In the official Etherpad Lite container image, the
migrateDBscript described in the documentation is reported as missing.To Reproduce
Steps to reproduce the behavior:
docker.io/etherpad/etherpad:2.4.2image.docker/podman exec -it etherpad bash,pnpm run migrateDB --file1 old.json --file2 new.jsonMissing script: migrateDBExpected behavior
The database migration should start as described in the CLI documentation.
Screenshots
**Server
node --version): v22.17.1npm --version): 10.9.2docker.io/etherpad/etherpad:2.4.2image.Additional context
The script is present in
/opt/etherpad-lite/bin/migrateDB.ts, but is missing from thescriptssection of/opt/etherpad-lite/package.json. It can still be invoked usingpnpm --filter bin run migrateDB --file1 old.json --file2 new.json: