Skip to content

Releases

v5.0.5

Choose a tag to compare

@github-actions github-actions released this 20 Nov 15:09
674f038

Marzban migration now asks which database to restore when the backup holds a SQLite file and a SQL dump with different user counts (default after 15 min: the engine declared in .env). Includes the MariaDB dump staging fixes from 5.0.4.

v5.0.4

Choose a tag to compare

@github-actions github-actions released this 20 Nov 15:04
2a5cb36

Fix MariaDB dump import failing with ERROR 1826 (duplicate FK constraint name): FK names are de-duplicated, MariaDB dumps are auto-detected and staged with mariadb:11 even when .env says mysql, and staging retries once with the other engine on failure.

v5.0.3

Choose a tag to compare

@github-actions github-actions released this 20 Nov 11:05
a56f28c

Fix restore stuck at 40% on the PgBouncer auth probe: psql now runs inside the DB container (no image pull), host-TCP fallback only uses locally present images, and a failed probe no longer stalls the restore.

v5.0.2

Choose a tag to compare

@github-actions github-actions released this 19 Nov 23:32
2b09496

v5.0.2

Fix: Marzban backups made by marzban.sh backup (tar.gz, sent to Telegram as backup_part_aa.tar.gz) stayed stuck at Continue in the migration wizard, especially on servers moved from SQLite to MariaDB that still carry the old db.sqlite3. (#199)

  • The migration upload accepts tar.gz / tgz / tar backups, detected by content, so a tar.gz renamed to .zip or re-zipped also works
  • A zip that only wraps one inner archive is unwrapped automatically
  • Single or multiple tar.gz parts are accepted
  • With MariaDB/MySQL in .env, the db_backup.sql dump is used instead of a stale leftover db.sqlite3
  • Tar extraction is guarded: no links or devices, no ../ paths, same size limits as zip

Note

Update until the UI shows v5.0.2.

v5.0.1

Choose a tag to compare

@github-actions github-actions released this 19 Nov 23:17
bec8448

v5.0.1

Fix: the migration wizard got stuck after uploading a split backup (e.g. backup_part_aa.zip). It showed "uploaded", but Continue did nothing and gave no error. (#197)

  • Split-style part names (backup_part_aa.zip, backup.zip.part_ab, …) are now recognized
  • The migration upload zone accepts several files at once; parts are assembled on the server automatically
  • If a backup zip can't be used, the real reason is now shown (only one part, bad zip, no DB found)
  • Added a manual release workflow (#198)

Note

Update until the UI shows v5.0.1.

v5.0.0

Choose a tag to compare

@cursor cursor released this 17 Nov 13:05
9be9c95

v5.0.0

Backup/migration hardening phases 0–3 and PasarGuard v5.6 compatibility, merged onto main as merge commits (#190–#195).

Phase 0 — Hotfixes (#190)

  • Env last-wins source detection (avoids migrating stale sqlite when MySQL URL follows)
  • Safer wizard uninstall (preserve backups / legacy combined installs)
  • Telegram/bot token redaction in logs and errors

Phase 1 — Migration accuracy (#191)

  • Keep usage history via _pgkeep_* side tables
  • Faster MySQL multi-row inserts for history tables
  • Finer value clearing on enum/JSON insert errors
  • UTC offset handling for datetime strings / sessions

Phase 2 — Backup reliability (#192)

  • Telegram retry queue with backoff
  • Custom Telegram API URL support
  • Stale-backup alert and manifest warnings

Phase 3 — Convenience & safety (#193)

  • Fixed daily backup time (run_at)
  • Safer updater rollback

PasarGuard v5.6 (#194, #195)

  • Write subscription url_prefix into the real settings JSON schema
  • Keep WebAuthn passkey bytes intact; copy new v5.6 tables

Note

Code is on main @ 9be9c95. Update until the UI shows v5.0.0.

v4.9.9

Choose a tag to compare

@cursor cursor released this 13 Nov 15:13
b9ba70a

v4.9.9

Fix — Pick the backup source that holds users on every path (#188)

  • Marzban: with several SQLite files, prefer the one with users (newest copy wins). Live migrate detects the real engine from /opt/marzban/.env and dumps MySQL/MariaDB correctly when db.sqlite3 is empty.
  • MySQL staging (→ PostgreSQL/Timescale): keep only the panel section of multi-database dumps; strip /*!40000 DROP DATABASE */ forms.
  • 3x-ui: pick the x-ui DB that has clients; refuse a 0-user result when the source has clients.
  • Hiddify: pick the newest JSON export that has users (was the smallest).
  • PasarGuard restore: among same-shaped dumps/sqlite files, prefer users, then newest.

Note

Code is on main @ b9ba70a. Update until the UI shows v4.9.9.

v4.9.8

Choose a tag to compare

@cursor cursor released this 13 Nov 10:38
fc38e40

v4.9.8

Fix — Pick the backup DB that holds the users (#186)

  • When both db.sqlite3 and a .sql dump are present, count users in each and migrate from the one that actually holds them (logged as Backup sources: sqlite=N users, sql=M users).
  • Analyzer makes the same choice so the wizard pre-selects the right source.
  • SQLite path records the source user count and refuses a core-only post-boot result.

Note

Code is on main @ fc38e40. Update until the UI shows v4.9.8.

v4.9.7

Choose a tag to compare

@cursor cursor released this 13 Nov 09:53
fdfbe8f

v4.9.7

Fix — Marzban MySQL → PasarGuard landing (#184)

  • Dump rewrite strips CREATE/DROP/USE DATABASE (incl. /*!NNNNN */) so rows land in the panel DB, not a side schema.
  • Multi-database dumps keep only the Marzban section; the .sql that actually holds users is preferred over generated fixed_import* files.
  • "marzban" is no longer bulk-replaced inside usernames, admin logins, host addresses, or notes — legacy subscription tokens keep working.
  • After import, if 0 users landed, tables are relocated from the side schema automatically; one import+heal+boot retry runs before failing.
  • Job result includes marzban_landing (users/admins/hosts: landed vs backup).

Note

Code is on main @ fdfbe8f. Update until the UI shows v4.9.7.

v4.9.6

Choose a tag to compare

@cursor cursor released this 29 Oct 02:21
0830de1

v4.9.6

Fix — Upload / parts

  • Multi-GB /api/upload no longer blocks the event loop (run_in_threadpool).
  • Date-stamped names like backup-2025-10-29.zip are not mistaken for Telegram parts; complete panel zips skip useless repack.
  • Concatenated-part heal no longer loads the whole archive into RAM; failed zip/stream uploads clean their dirs.
  • Panel-like zips auto-raise compression-ratio ceiling; clearer ratio error text.

Fix — Server-to-server stream

  • error status no longer burns the receive token; concurrent writers get 409.
  • Push retries network errors (and brief 409) with 2/4/8s backoff by re-PUTting — no auth-gated status probe.
  • Ready listeners live 6h; /api/stream/status/ is public (token is the auth).

Fix — Backup safety around restore/migrate

  • Best-effort pre_restore backup via asyncio.to_thread (opt out: PG_PRE_RESTORE_BACKUP=0).
  • Shared .panel_busy lock; schedule backoff + sparse failure notify; incomplete-job banner in the wizard.
  • Retention never drops the newest verified backup; pre_restore archives kept separately.

Note

Code is on main @ 0830de1. Update until the UI shows v4.9.6.