Skip to content

Proxmox

Timo Sariwating edited this page Nov 25, 2026 · 4 revisions

The Maker Connect hub in its own container (LXC) on a Proxmox VE server, set up with one line, the way the community-scripts do it. The script comes from this project's own GitHub, and nothing is reported anywhere.

Install

In the Proxmox shell (the node's Shell in the web interface, as root), paste:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/CuriousTimo/Maker-Connect/main/scripts/proxmox-hub.sh)"

It asks a few questions. Press Enter to keep a default:

Question Default
Container ID the next free one
Host name maker-connect-hub
CPU cores 2
Memory 2048 MiB
Disk 16 GB
Network bridge vmbr0
Address DHCP, or a static address with gateway and DNS server (default: the Proxmox host's)
Root password none: the container's console then logs in as root by itself
Storage for the container's disk, and for the Debian template

Then it does the rest by itself, in a few minutes:

  1. It fetches Proxmox's Debian 13 template, if it is not there yet.
  2. It makes an unprivileged container, which starts when Proxmox starts.
  3. Inside it, it installs:
    • PostgreSQL 17 with TimescaleDB 2.32.0. The database only listens inside the container.
    • The database's roles and the database itself.
    • The hub, from the newest hub-v… release. It is used only when the release's signature holds; see Updates.
    • A system service maker-connect-hub, which starts at boot.

At the end it shows the address, such as http://192.168.1.50:8460, and the setup code.

First start

Open the address in a browser. Make the first account with the setup code. That account runs the server and owns the first space. Then add your machines: see Getting Started.

Lost the code? In the container's console:

journalctl -u maker-connect-hub | grep "setup code"

Update

In the container's console (the container's Console in Proxmox), type:

update

That runs the same line as the install. Inside the container it updates instead:

  • Debian's packages. PostgreSQL and TimescaleDB stay at their versions.
  • The hub, to the newest signed release. Before it replaces the hub, it dumps the database to /var/backups/maker-connect/; the last 3 dumps are kept.

The hub can also update itself from its About page (Updates). update covers the rest of the container as well.

Where things are

Inside the container:

What Where
The hub, its files and its nightly dumps /var/lib/maker-connect/
The database's address and password /etc/maker-connect/hub.env (root only)
The service systemctl status maker-connect-hub, its log journalctl -u maker-connect-hub
Dumps made by update /var/backups/maker-connect/

Agents

Machines on USB stay on the computer they are plugged into, with the agent there. On the agent's page, set the hub's address to the container's new address.

Moving an existing hub here

From a hub whose database runs in TimescaleDB's container (as in docs/pi-hub.md). Both must run the same TimescaleDB version (2.32.0).

  1. Stop the old hub, so nothing new comes in while you move it.
  2. On the new container, stop its hub: systemctl stop maker-connect-hub.
  3. A full dump of the old database, straight into the new container (from a computer that can reach both):
    ssh <old> 'docker exec maker-connect-db pg_dump -U postgres -Fc maker_connect' \
      | ssh root@<new> 'cat > /root/maker_connect.dump'
  4. Restore it in the new container, in place of its fresh database. Leave out the extension itself; TimescaleDB's own steps go around the restore:
    cd /root && chmod 644 maker_connect.dump && chmod 755 /root
    pg_restore -l maker_connect.dump | grep -v -E " EXTENSION | COMMENT - EXTENSION " > toc.txt
    P="runuser -u postgres -- psql -X -v ON_ERROR_STOP=1"
    $P -c "DROP DATABASE maker_connect WITH (FORCE)"
    $P -c "CREATE DATABASE maker_connect OWNER maker_connect_owner"
    $P -d maker_connect -c "CREATE EXTENSION timescaledb" -c "SELECT timescaledb_pre_restore()"
    runuser -u postgres -- pg_restore -d maker_connect -L toc.txt --exit-on-error maker_connect.dump
    $P -d maker_connect -c "SELECT timescaledb_post_restore()" -c "ANALYZE"
    chmod 700 /root && rm maker_connect.dump toc.txt
  5. The uploaded files: copy the old hub's maker-connect-files/ to /var/lib/maker-connect/maker-connect-files/ and give it to the hub: chown -R maker-connect:maker-connect /var/lib/maker-connect/maker-connect-files.
  6. Start the hub: systemctl start maker-connect-hub. It asks for no setup code: the accounts came along.
  7. Point the agents and printers at the new address. For an agent, the hostname in each device's prusa_printer_settings.ini; then restart it.

Keep the old database until the new hub has run well for a while.

Uninstall

In the Proxmox shell: pct stop <id> && pct destroy <id>. That removes the container with the hub, its database and its files. Keep a dump first if you want the data.

Clone this wiki locally