ข้ามไปยังเนื้อหา

Update the framework

หมายเหตุ: บทความนี้ยังเป็นภาษาอังกฤษ เนื่องจากคำแปลภาษาไทยกำลังอยู่ระหว่างจัดทำ

Install the latest stable GitHub Release while preserving apps and databases.

Framework administrators and deployment operators.

flowchart TD
A[Verified backup] --> B[Check release and compatibility]
B --> C[Download Windows files or Docker image]
C --> D[Replace framework container/files]
D --> E[Health check]
E -->|Pass| F[Verify login, apps, and records]
E -->|Fail| G[Restore previous framework version]
G --> H[Inspect logs and recovery backup]
F --> I[Keep pre-update backup until verified]
  1. Sign in as a Framework Administrator.
  2. Open System Maintenance and choose Check for updates.
  3. Review the version and release notes.
  4. Choose Update to latest stable and confirm downtime.
  5. Keep the page open while it reconnects and verify the final status.

The system creates and validates a .emubackup before starting. Windows verifies release SHA-256; Docker pulls the immutable GHCR version tag and restores the previous container if health checks fail.

For Docker, the app contacts the internal updater service using EMU_UPDATER_URL and EMU_UPDATER_TOKEN. The updater controls Docker through the mounted Docker socket, pulls the target app image, replaces the app container, and checks its health. The updater itself does not need a published host port.

The persistent emu-data volume is reused by the replacement container. Container rollback does not roll back database contents; keep the pre-update .emubackup until the new version has been verified.

When upgrading to v0.1.0.2, complete Administrator setup if the server detects the legacy admin / admin credentials or no enabled user with FW_SystemAdminRole. The automatic .emubackup does not include .emu-secret.key: preserve that key separately, verify administrator role assignments, and test SMTP after the update.

When upgrading to v0.1.1.0, review the deny-by-default migration before opening production:

  1. Back up data.db, designer.db, and .emu-secret.key separately.
  2. Confirm at least one enabled account holds FW_SystemAdminRole.
  3. Review each user’s Role and App Access. Existing FW_FrameworkUser accounts gain Customize only for business Apps present during the upgrade; Open is not added.
  4. Verify legacy artifacts received a valid Model and that no new App receives a name-based default Model.
  5. Test password change/reset, direct API denial, View/Chart privileges, and any Power BI token scopes.

Migrations run once in a transaction and are recorded in the migration ledger. Restarting the upgraded version must not grant additional App Access or repeat legacy Model materialization.

  • Windows: run Update.cmd.
  • Docker: set EMU_VERSION to the required stable version, then run docker compose pull app && docker compose up -d app.

If the app was created manually rather than through Compose, recreate it with EMU_DEPLOYMENT_MODE=docker, EMU_UPDATER_URL=http://updater:3400, the matching token, the same user-defined network as the updater, and the existing named /data volume.

Updates support only forward movement to the latest stable version. Database rollback is never automatic.

Backup · Recovery