Skip to content
qgonDEV DOCSSDK 0.3.31
ENKR

Install, update and back up

In the appSettings › Device info·Settings › Update·Settings › BackupAdmin

This page is for server admins. Starting from checking the server with the installer and finishing first-run setup after the first sign-in, it takes you through changing addresses and ports, recovering the admin password, applying signed updates, and making encrypted backups and restoring them to the same server.

Sign in to the server console or over SSH and run ./install.sh from the installer folder. The installer lives in the folder of the current release.

cd <install folder>/releases/current/deploy/installer
./install.sh check
  • Run it as root (sudo) or as the data owner account. Under any other account it suggests sudo ./install.sh and stops. Only uid 1000 is supported for the data owner account.
  • Running commands such as apply-hosts from a copy of the installer kept elsewhere is refused.
  • Commands that change something first show what they will do and stop. After checking, run the same command again with --yes to proceed.
  • The installer does not do work that needs admin rights (sudo) itself. It shows the exact command to copy and run, then stops. Run that command and start the installer again to continue.
  • The installer never prints passwords or keys.
Command What it does
./install.sh check Checks install requirements and current state. Changes nothing
./install.sh Installs. On a server that is already installed it changes nothing and only shows the state
./install.sh --dry-run Shows what it would do as commands only
./install.sh apply-hosts Applies the addresses and ports saved on screen
./install.sh reset-admin Sets a new password for a lost admin account
./install.sh import-model <folder> --name <name> --license <license> Registers a model folder brought in without internet as a published model
./install.sh update-verify, update-apply, update-rollback Check, apply and roll back update files
./install.sh backup, backup-list, restore Make backups, list them, restore

qgon is delivered installed on the server. To install on a blank machine from scratch, follow the qgon team's installation guide. To choose ports at install time, pass --web-port, --ssh-port, --ws-ports and --labeling-port. After installation, change them in first-run setup below or on Settings › Device info and apply them with apply-hosts.

./install.sh check looks at the CPU architecture, OS, docker and compose versions, docker permissions, GPU driver and container toolkit, free disk, ports, kernel settings and the internal network range. At the end it shows the first-run setup state: whether setup is finished, whether an address change is waiting to be applied, and whether the first sign-in file that should be deleted is still there. Problems are marked [실패] (fail) and points to check [주의] (warning).

Dataset mounts and dataset upload from the browser turn on only with Linux kernel 6.12 or later. On older kernels these two features are off.

  1. At the end the installer shows the address and where the first sign-in file is. Sign in at http://<server address>:<web port> with the admin account in that file.

  2. Until first-run setup is finished, any screen an admin opens leads to the setup screen. Go through it in order.

    • Change password (required). The server restarts briefly while it changes. The other steps open only after this one.
    • Your display name (optional)
    • Server name
    • Addresses and ports: public address and LAN address (IPv4 or host name), web, SSH and workspace port range, labeling tool port
    • Check and create the default queues
    • Finish
  3. If you changed an address or a port, it applies only after you run ./install.sh apply-hosts --yes on the server console. The screen has a copy button for this command.

  4. From the finish screen, move on to the next tasks: create member accounts, create teams, copy the access guide. Copy the access guide for users gathers the web address and SSH command to send to users.

  5. Delete the first sign-in file on the server console.

  • The admin who changed the password finishes setup in person. You can change your own password only once every 10 minutes.
  • If the server does not know its LAN address, that field is empty; fill it in. If there is no separate public address, enter the same LAN address in both fields. Access instructions for users use the public address.
  • Members can still sign in during setup. A notice at the top of their home says the admin is running first-run setup.

After first-run setup you can still change the server name, addresses and ports on Settings › Device info. Saving alone does not apply them. You have to run apply-hosts on the server console.

./install.sh apply-hosts # show what changes and which services are rebuilt, then stop
./install.sh apply-hosts --yes # apply. Screens and SSH drop briefly
Port Default Use
Web 2551 qgon screens, REST API, SDK
SSH 2552 SSH into workspaces
Workspace port range 2600-2649 Workspace web IDE and JupyterLab. The size of the range is the number of workspaces that can run at once (up to 200)
Labeling tool 2554 Labeling screens (servers with the labeling tool)

These are the TCP ports to open on the organization firewall. The installer also lists the ports to open at the end.

  • Ports cannot overlap, and ports used by another program on the server are refused. Ports below 1024 often clash with system services, so check that they are free first.
  • The workspace port range cannot shrink below the current number of workspaces. Workspaces that fall outside the range move to a port in the new range and their web address changes.
  • Workspaces that were running must be stopped and started to use the new address.
  • Links to outputs uploaded under an earlier address keep working for the last 3 addresses.
  • Changing the public address also rebuilds the agents, so running jobs are affected. Do it when few jobs are running.
  • Even if you set the web port to 443 or SSH to 22, outgoing traffic on the same port from jobs and workspaces (pip, git and so on) is not blocked.

qgon uses one private range for the container networks inside the server. If it overlaps the company network, users and other servers in that range cannot reach qgon. On a new install the installer picks a range that does not overlap the server's routes and addresses, DNS servers or other docker networks. To choose it yourself pass --net-block, and to tell it the private ranges the company uses pass --lan-cidrs.

./install.sh --net-block 10.200.0.0/13 --lan-cidrs 10.20.0.0/16

check reports [실패] (fail) if the current range overlaps server routes, DNS servers or --lan-cidrs, and [주의] (warning) if a wider route such as a VPN covers it. ./install.sh net-rebase <new range>, which changes the range after installation, is maintenance work that takes every service down and brings it back up. It first shows what will change and which workspaces will stop, then stops. It does not proceed while training jobs or serving are running.

If there is another admin, that admin resets the password on Settings › Users · accounts. If you are the only admin, recover it from the server console.

./install.sh reset-admin # show what it will do, then stop
./install.sh reset-admin --yes # set a new password for the default admin account
./install.sh reset-admin --username <name> --yes # another admin account
  • It sets a random new password for that account. If the account was deleted, it is recreated. If it had been changed to a member, it becomes an admin again. Other accounts are not touched.
  • The new password is not shown on screen. It is saved in the first sign-in file, and the installer tells you where that is.
  • The server restarts once, and screen and SDK requests fail during the restart.
  • On the next sign-in, only that account gets the first-run setup screen, which makes it change the password first. With --no-setup the screen does not appear; change the password in settings yourself. Delete the first sign-in file afterwards.
  • Screens, tokens and workspace web sessions open under that account are all cut off. The account's API keys remain. If the password leaked, add --revoke-keys to revoke all keys of that account. Workspace keys are revoked as well, so run 'Set up access' again in the workspaces you used.
  • If you stop it with Ctrl-C midway, it undoes its changes. If part of the undo fails, you see 'admin check needed' and it ends with exit code 5. Run the same command again.
  • This recovery is recorded in the action log.

LLM fine-tuning runs in an LLM training environment that an administrator registers. This environment is not part of the default installation. You bring the 'LLM training environment' optional bundle onto the server and register it. Until then, Build › LLM fine-tuning shows 'Fine-tuning is not ready on this device' and the reasons at the top.

  1. Copy the bundle file to the server and load the image. The loaded image name is printed at the end.

    zstd -dc <bundle file>.tar.zst | docker load
  2. Register the loaded image.

    docker exec qgon-core python -m app.finetune register-env --image <loaded image>
  3. Open Build › LLM fine-tuning again. If the training environment reason is gone, you are done. If a reason about missing base models remains, follow the base model steps in LLM fine-tuning.

  • Run both commands as root or as an account that can use docker.
  • The registered image becomes a new version of the shared environment llm. Registering the same image again changes nothing.
  • Only an image loaded from this bundle can be registered.
  • If another user already published a shared environment named llm, registration is refused. Delete that shared environment and run the command again. Workspaces and environments shows how to delete it.
  • Register a newer bundle the same way. New training runs and merges use the highest version on the server.

Updates arrive as update files signed by qgon (qgon-update-<version>.qgu). The server never contacts an outside update server. It accepts only files signed with the qgon signing key. Files that are unsigned, signed with an unknown key, changed by even one byte, or that cannot be applied directly on top of the current release are refused with the reasons. If the server is too old, it tells you which release to go through first.

A backup is made automatically before applying, so set the backup passphrase below first.

Only full admins can use Settings › Update. Actions that change something work only from the internal network. Every action is recorded in the action log.

  1. Upload the update file with Upload bundle. If the upload breaks, it resumes from where it stopped. A file copied to <install folder>/updates/incoming on the server console also appears in the list of received bundles.

  2. Press Check. It changes nothing and shows the signature (sale key, fingerprint), file hashes, version rules, disk needed and free, the components that change and the services rebuilt, the expected downtime, and whether the database migration can be undone. Only files that pass verification can be applied.

  3. Press Apply and enter your sign-in password again. There are four modes.

    • Now: starts at once only when no GPU job is running. If jobs are running, it lists them and refuses.
    • When finished: waits until running jobs, workspaces and serving have all ended, up to a set time (default 60 minutes, 1 to 1440 minutes). Meanwhile new GPU jobs wait in line. If they do not end in time, nothing is changed and it stops.
    • Scheduled: starts at the chosen time. Every user is notified 30 minutes before.
    • Force: does not wait. Running jobs keep running and are not stopped.
  4. Follow the steps and percentage on the progress screen. While the qgon server is rebuilt during the update, the screen drops briefly and then continues with the result.

If applying fails, the server rolls back to the previous release automatically and runs a health check. Scheduled or waiting applies can be cancelled, but not once they have started.

Roll back goes only to the one previous release. If the last update changed the database in a way that cannot be undone, the preview says so and asks for the backup passphrase. In that case experiments and records added after the update are lost. The file server and workspace disks stay as they are. History records the release, time, who (screen or console), result and whether an automatic rollback happened.

./install.sh update-verify qgon-update-<version>.qgu # check only
./install.sh update-apply qgon-update-<version>.qgu # pre-check, show what it will do, then stop
./install.sh update-apply qgon-update-<version>.qgu --yes # apply
./install.sh update-rollback --yes # roll back to the previous release
./install.sh release-status # current release and integrity

Applying with --yes waits up to 60 minutes by default for running GPU jobs to end (--wait-minutes <minutes>). If they do not end in time, nothing is changed and it stops. To skip waiting, use --force. Jobs then keep running and are not stopped.

The backup you can make today is the quick backup. It holds settings and metadata.

Included Not included
Lists of experiments, models and datasets, users, metrics and logs Files on the file server (artifacts, model weights, dataset bundles)
Workspace, team and serving settings, action log Workspace disks
Labeling projects and annotations Saved environment images
Secret keys, settings, address settings Imported model folders

When restoring the same server, everything not included is still on the server, so a quick backup is enough. It cannot be used to move to another server.

Backups are always encrypted. If you lose both the backup passphrase and the recovery key, the backup cannot be opened. Only your organization holds the keys, so the qgon team cannot open it either.

  1. Under the backup passphrase on Settings › Backup, enter your sign-in password and a new backup passphrase (12 characters or more) twice, and agree to 'If both the passphrase and recovery key are lost, not even the vendor can open it'.

  2. The recovery key is shown only once, in that response. Copy or print it and keep it somewhere other than the server. The server stores neither the passphrase nor the recovery key.

On the console, set it with ./install.sh backup-passphrase. If the connection dropped and you never saw the recovery key, there is no way to show it again on screen. On the console, run ./install.sh backup-passphrase --new-key to make a new server backup key and get a new recovery key.

Scheduled backups use only the public key, so the passphrase never needs to be written down on the server. After you change the passphrase, earlier backups still open with the old passphrase or the recovery key.

Only full admins can use Settings › Backup. Making, deleting and downloading backups, and changing schedule and passphrase settings, work only from the internal network.

  • Back up now: shows steps and a percentage. It does not start before a backup passphrase is set. It also does not start, and says why, if disk usage is over 85% or free space is short.
  • Scheduled backup: on by default and runs once a day within 3 hours from 03:00 (server time zone). If another backup, restore or install job is running, it waits for it. If a scheduled backup fails or is skipped, admins are notified.
  • Retention: scheduled backups keep the last 7 days (one a day) and the 4 weeks before that (one a week). Automatic backups made just before a restore or update keep 3 of each kind, and backups made just before a deploy keep 5. Manual backups made by people are never deleted automatically. Lowering retention or turning off the schedule asks for your sign-in password again.
  • List: shows name, kind, date, size and verification state. The state starts as 'not checked', and the server recalculates it from time to time to 'OK' or 'damaged'. You can verify each row again.
  • Download: downloads one backup, still encrypted, as a .tar file. You must enter your sign-in password again, and the download can be started once, within 1 minute.
  • Delete: asks for your sign-in password again. You can select several manual backups and delete them at once.

During a backup the server API and the file server pause writes briefly. Screens stay up and requests wait a moment.

./install.sh backup # quick backup
./install.sh backup --out <folder> # write to another folder, such as a mounted external drive
./install.sh backup-list # kind, release, size, integrity
./install.sh backup-delete <backup name> # show what will be deleted, then stop. Delete with --yes

Backups written with --out are never deleted by retention rules.

On screen you can go as far as Restore preview. It shows the backup's release and contents, how it relates to the server's release, the result of the restore tool's pre-check, the workspaces and serving that will stop and restart, the number of running jobs and the expected downtime. The actual restore runs on the server console.

./install.sh restore <install folder>/backups/<backup name> # show what it will do, then stop
./install.sh restore <install folder>/backups/<backup name> --yes # ask for the passphrase and restore
./install.sh restore <install folder>/backups/<backup name> --yes --recovery-key # use the recovery key if you forgot the passphrase

The restore runs in the order below. If it fails midway, it goes back automatically to the backup made in step 2.

  1. Checks the integrity and release of the backup. If the backup is from a newer release than the server, it refuses and tells you to update first.
  2. Backs up the current state automatically.
  3. Stops services. Running workspaces and serving are stopped and started again. Web IDE and SSH sessions drop, and notebook kernels and terminal work running inside them end. Files on disk stay.
  4. Replaces the data and checks the counts.
  5. Brings services back up and runs a health check.
  • Experiments, workspace records and labels created after the backup are lost. The file server, workspace disks and environment images are not touched.
  • Secret key files and address settings are not changed. If they differ from the backup, only the file names are reported. If you reissued agent keys after the backup, use --with-secrets to take the backup's copies and rebuild those services with ./install.sh --yes.
  • When it finishes, check that you can sign in as admin and run ./install.sh check.
  • Backups made on another server are not accepted.