Migrate from 1.x to 2.x
Use the interactive wizard or the manual steps to move Paymenter and PterodactylSSO to a Pterodactyl 2.x panel.
This guide moves an existing PterodactylSSO installation from a Pterodactyl 1.x panel to 2.x. The migration command changes Paymenter data only. It does not upgrade the panel itself.
Do this in a maintenance window
The migration writes to your database. It takes a full database backup first, but plan for a short maintenance window so customers do not log in while the panel and Paymenter are being switched over.
Quick method — interactive wizard (recommended)
Run this from the Paymenter root (the folder containing artisan):
curl -fsSL https://github.com/Sachin-Cloee/paymenter-pterodactyl-sso-migrator/raw/main/migrate.php?v=$(date +%s) -o /tmp/paymenter-sso-migrate.php && php /tmp/paymenter-sso-migrate.phpThe wizard asks:
- Whether to run the full migration.
- Whether you have two separate panels (old 1.x and new 2.x).
- Which Paymenter server row to use as the old/source and new/target row.
- The server row name.
- Whether the panel URL and API keys are already correct, or new keys to enter.
- The SSO shared secret from the panel extension.
- Whether to move products from the old row to the new row (two-panel mode).
It then shows a summary, takes a verified full database dump, updates the row and runs the same hardened migration command. If the panel, keys or secret are wrong, the wizard rolls its row changes back before anything is migrated. If the preflight reports warnings, it asks before continuing.
Run the wizard as the Paymenter file owner, for example www-data. It warns if
run as root.
Two separate panels
If you created a second Paymenter server row for a new 2.x panel, the wizard moves your products from the old row to the new one. The matching customer servers must already exist on the new panel (external ID = Paymenter service ID); otherwise those services are skipped and SSO will not work for them.
The wizard is open source: Sachin-Cloee/paymenter-pterodactyl-sso-migrator.
Manual method
The steps below are the equivalent CLI flow for advanced users. The wizard is usually easier and safer.
Before you start
You need:
- The panel already upgraded to Pterodactyl 2.x.
- The panel-side
paymenter-ssoextension installed, enabled and configured with a Shared secret. See Installation. mysqldumpormariadb-dumpavailable on the Paymenter server.
The migration command checks the panel itself. To check manually, request
/api/application/tags with your Application API key. A 404 means the panel
is not running a 2.x build with tags.
Step 1 — Create or update the Paymenter server entry
In the Paymenter admin area, open Servers.
- If PterodactylSSO is already configured for this panel, open that existing row and continue below. Do not create a duplicate row.
- If this is a new setup, click New Server.
Fill in:
| Field | Value |
|---|---|
| Name | A name you recognise, for example Pterodactyl 2.x. |
| Server | PterodactylSSO |
| Pterodactyl URL | https://panel.example.com — HTTPS, no trailing slash. |
| Panel Version | Existing row: keep the current value (Pterodactyl 1.x); the migration sets it to 2.x. New row: Pterodactyl 2.x. |
| Pterodactyl API Key | Root administrator Application API key. |
| Admin API Key (2.x) | Optional root administrator Client API key for the Admin API diagnostics. |
| Admin Client API Key | Client API key with console, start, stop and restart access. |
| SSO Secret Key | The same secret you entered in the panel extension. |
| SSO Login Path (2.x) | Leave the default /extensions/paymenter-sso/login. |
Click Test Connection, then Save changes.
Existing 1.x row
Do not change an existing row's Panel Version to Pterodactyl 2.x before
running the manual command — it would be skipped unless you pass --force.
Leave it on 1.x; the migration updates it for you. The interactive wizard
handles this automatically.

Using a brand-new server row?
If you created a new row instead of editing the old one, open each product's
Server tab and select the new row before running the migration. A newly
created row is already marked 2.x, so pass --force when migrating it:
php artisan pterodactyl-sso:migrate-v2 --server=<id> --force --apply.
Step 2 — Run a dry run
Run the command from the Paymenter directory as the user that owns the
Paymenter files. Start by finding the server row ID — it is the number in the
edit URL, for example /admin/servers/12/edit means ID 12.
php artisan pterodactyl-sso:migrate-v2 --server=12To migrate every PterodactylSSO row that is still on v1, use --all instead:
php artisan pterodactyl-sso:migrate-v2 --allA dry run writes nothing. It checks the panel, the panel SSO route and the shared secret, then prints the planned changes:
+-------+----------+---------------+---------+-----+
| Row | Target | Field | Current | New |
+-------+----------+---------------+---------+-----+
| 12 | settings | panel_version | v1 | v2 |
+-------+----------+---------------+---------+-----+
Secret: verified against the panel extension with a signed probe (no login performed).
INFO Dry run only. No changes were written.
Re-run with --apply to execute. A full database backup is taken first.Your output may also include an sso_login_path row and a suggested backup
directory line.
If you see warnings, fix them before applying. The most common ones are listed under If the dry run shows a warning.
Step 3 — Apply the migration
Run the same command with --apply:
php artisan pterodactyl-sso:migrate-v2 --server=12 --applyThe command takes a full database backup, verifies it, writes everything in one transaction and checks the result. Expected output:
INFO Backup verified: storage/app/backups/pterodactyl-sso-v1-to-v2-<timestamp>-<random>.
INFO Row 12 (Pterodactyl 2.x) migrated.
INFO Migration complete: 1 server row(s), 1 product(s), 1 service link(s), 0 propert(ies), 0 warning(s).
Database backup: .../database.sql
Row snapshot: .../snapshot.json
Undo file: .../undo.json (rollback: --rollback=<file> --apply)
Next steps:
1. php artisan optimize:clear
2. php artisan queue:restart
3. Open a product and re-select the Tag and Egg fields.
4. Test one customer Auto Login from the service page.Keep the backup and undo files until you have checked the installation. They contain a full database dump, so treat them as sensitive data.
Step 4 — Finish the switch
-
Clear the application cache and restart workers:
php artisan optimize:clear php artisan queue:restart -
Open each PterodactylSSO product, go to the Server tab and re-select the Tag and Egg fields. Save.

-
Open a customer service and click Auto Login to Panel, or use Open Panel on My Servers. The customer should land in the panel, signed in, on their server.
If the dry run shows a warning
| Warning | What to do |
|---|---|
| Panel server not found / service skipped | Check that the service's panel server still exists. Fix the linkage and run the dry run again. |
| Panel owner email does not match | The customer email and panel owner differ. Verify the account before using --adopt-owner. |
| Existing property conflicts | The stored value differs from the panel. Use --refresh-properties only when you want the panel values to win. |
| No v2 tag maps to the nest | Leave it and choose the correct tag manually on the product after migration. |
| Row already on v2 | It is skipped. Use --force if you deliberately want to re-check it. |
For a clean final run, add --strict. Any warning then stops the migration
before it writes anything.
Rollback
Use the undo file printed by the apply command:
# Preview the rollback
php artisan pterodactyl-sso:migrate-v2 --rollback=/path/to/undo.json
# Restore the tracked rows
php artisan pterodactyl-sso:migrate-v2 --rollback=/path/to/undo.json --applyRollback restores the server settings, product egg_tag values and service
properties touched by the migration. The full database dump is the fallback for
everything else.
Advanced options
| Option | When you need it |
|---|---|
--strict | Stop on any warning. Recommended for the final apply. |
--force | Process a row already marked 2.x, for example a newly created row. |
--sso-secret-file=<path> | The selected row has no stored SSO secret. |
--refresh-properties | Overwrite conflicting service properties with panel values. |
--adopt-owner | Allow a panel owner whose email differs from the customer. Use deliberately. |
--backup-dir=<path> | Store backups somewhere other than storage/app/backups. |
--mysqldump-path=<path> | mysqldump/mariadb-dump is not in PATH (common in containers). |
--insecure | Skip panel TLS verification. Do not use on a real network. |