Repository navigation
Proxmox
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.
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:
- It fetches Proxmox's Debian 13 template, if it is not there yet.
- It makes an unprivileged container, which starts when Proxmox starts.
- Inside it, it installs:
At the end it shows the address, such as http://192.168.1.50:8460, and the setup code.
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"In the container's console (the container's Console in Proxmox), type:
updateThat 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.
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/ |
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.
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).
- Stop the old hub, so nothing new comes in while you move it.
-
On the new container, stop its hub:
systemctl stop maker-connect-hub. -
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'
-
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
-
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. -
Start the hub:
systemctl start maker-connect-hub. It asks for no setup code: the accounts came along. -
Point the agents and printers at the new address. For an agent, the
hostnamein each device'sprusa_printer_settings.ini; then restart it.
Keep the old database until the new hub has run well for a while.
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.
Home · maker-connect.xyz · for makerspaces
Guides
- Getting Started
- Proxmox
- The Agent
- Updates
- Klipper
- Lasers
- Label Printers
- Cameras
- Materials
- Machine Profiles
- Supported Machines
- Hardware
- Similar Projects
Design
- House Style
- Hub Core v2
- Devices in a Tree
- Multi-Tenant Hub
- Consumables and Stock
- Print Farm
- Door Access
- Door Controller
- The Website
- Stream Deck (idea, WIP)
- Roadmap
Code