Your first deploy¶
Your cluster shows provisioned in the console (install guide).
This page puts an app on the cluster and explains what the console shows while
that happens.
1. Select an app¶
Open Catalog. Each tile is an app that Mesopod packages. The home page also shows the same catalog below your apps. Click a tile to open the deploy form of the app.
2. Complete the form¶
-
Where it runs: the first panel of the form. It has 3 choices:
- Try it free on Mesopod Cloud: the app runs on Mesopod Cloud for a free trial.
- Run it on Mesopod Cloud: the app runs on Mesopod Cloud with no time limit. The choice shows the price.
- Run it on your own server: the app runs on one of your clusters. This choice is free.
The 2 Cloud choices show only if Mesopod Cloud is available to you. The paid choice also does not show if your plan or grant cannot take another app and has no unused place.
If you choose a paid option and your plan has no unused place, click Pay and deploy. A dialog opens. If you have a plan, the dialog adds the app to your plan. If you do not have a plan, the payment page opens in a new window. The app deploys when the payment lands.
With more than one cluster, the third choice lists your clusters by name. A cluster that is not ready is greyed out, with the reason:
not provisioned yet,still provisioning,provisioning failed,being removedorwaiting for its node's encryption key. The cluster is not hidden, so you know what to correct. If the cluster cannot take the deploy, the form also shows the reason as a line under the button:Can't deploy to <name>: <reason>.If the VPN checkbox of the app is selected, a cluster that cannot run a VPN app is greyed out in the same way. The reasons are
VPN apps are off on this cluster,re-run the install on this cluster to enable VPNandthis cluster's outpost has not reported its network ranges yet. The VPN guide says what to do for each reason. - Name (optional): a label for your app list. It is useful when you run the same app twice, for example "Family photos" and "Work notes". You can change it at any time. - Subdomain: the first label of the address of the app. The form shows the rest of the address while you type. - Volumes: only for apps that store data. See Volumes below.
Then click the deploy button. The button names the app and the destination, for example Deploy Memos to Mesopod Cloud or Deploy Memos to homelab.
3. Watch the app start¶
The console shows a Deploying panel with a live timer, then the row of the app. The status words have these meanings:
| Status | Meaning |
|---|---|
| pending, rendered, dispatched | Mesopod has the request and sends it to your machine. |
| deploying | Your machine creates the workloads. |
| running | The app is up, and its services report healthy. |
| degraded | The app is up, but at least 1 service is unhealthy. Check its logs. |
| render failed | Mesopod could not turn your form into a deployable app. The request never reached your machine. This is our problem. Tell us. |
| apply failed | Your machine rejected the deploy. The reason is on the app page. |
| stopping, stopped | You stopped the app. Its data is kept. If you cancel a queued start, the app goes back to stopped. |
| stop stalled, stop failed | The stop did not complete. The reason is on the app page. |
| upgrading | You moved the app to a newer version, and your machine applies it. |
| upgraded, not healthy | The new version runs, but at least 1 service is unhealthy. Check its logs. |
| upgrade stalled, upgrade failed | The upgrade did not complete. The reason is on the app page. |
| destroying, removed | You uninstalled the app. The record stays in the ledger. |
| removal stalled, removal failed | The uninstall did not complete. The reason is on the app page. |
| cancelled, abandoned | You cancelled the first deploy of the app before it left the queue, or gave up on an app that never deployed. |
| vanished | The workloads disappeared without a command. That is drift. Tell us. |
A first deploy takes as long as the pull of the images of the app. 2 minutes is normal. A large app on a slow connection can take longer.
If your machine is offline, the deploy is still accepted and waits in a queue. It runs when the machine connects again.
When the app runs, its page has a Logs panel. Click Start to watch. The panel states its limits in these words: "Logs stream live from your server, starting with each container's last 100 lines. Mesopod keeps only a short buffer (about 1,000 lines, gone 10 minutes after the last one) so a reopened panel can catch up, and stores no history."
4. Open the app¶
Apps have addresses of this form:
https://<subdomain>.<cluster-slug>.mesopod.app
For example, photos on the cluster that you named basement-nuc is
https://photos.basement-nuc.mesopod.app. The certificate is a real public
one. The name resolves to the address of your own machine, so the traffic
never leaves your network.
The app page shows the URL as soon as there is one, with a link beside it.
If the name does not resolve at home, the cause is almost always the DNS rebind protection of your router. The solution is in the install guide. For access from outside your home, see Reach your apps from outside your home.
Exposed ports¶
Some apps use a port on your network as well as their HTTPS address. A DNS
server answers on 53. Syncthing accepts its peers on 22000. The catalog
page lists these ports, for example Exposes 53/tcp, 53/udp on your network.
The app page shows each port under the HTTPS address:
Exposed 192.168.1.10:53/udp DNS
Only private addresses reach the port. Your home network and Tailscale are private. A port forward from the internet on your router does not reach it.
One app on a cluster can hold a port. If another app on the cluster holds the port, the deploy form names that app. You can deploy without the port. Click Deploy without exposing. The new app then answers on that port inside the cluster only, on this and every later version.
If the line shows re-run the install on this cluster, then stop and start
this app, your install is older than the port. Run the install command
again on that machine (install.md).
Then click Stop and Start on the app. The app runs without the port
until then.
If the line shows this cluster's outpost has not reported its network
ranges yet, wait 1 minute. The outpost sends the network ranges soon after
it connects. Then click Stop and Start on the app.
On a Mac or a Windows PC, the cluster runs behind the machine. A port
reaches other devices only after the install command publishes it on the
machine. The app page then shows a notice under the status, with the exact
command and a Copy button. If the line shows run the install command
again on this cluster's machine to put it on your network, run that command
on the Mac or PC (install.md). The
command publishes the ports that your apps use, and nothing else.
The deploy form tells you before the deploy when a cluster is like this, with the same command. On a Linux server nothing extra runs.
If the line shows the install could not publish it on this cluster's
machine, a program on that machine holds the port. The notice is red. Find
the program with lsof -nP -iTCP:<port> -iUDP:<port> on a Mac, or with
netstat -ano | findstr ":<port> " in PowerShell. Stop that program. Then
run the install command again.
If the line shows not published on this cluster's machine — its install was
run with --no-port-publish, that is a choice that the install made on that
machine. The port answers at the address of the cluster node only. To change
it, run the install command again without the flag.
The cluster's page lists every exposed port on the cluster, with the app
that holds it. Each port has 1 of 4 words: on your network, awaiting the
install, not published, or not published by choice. The command is on
that page too.
On a Mac or a Windows PC, the port of a removed app stays published until
the install command runs again. The cluster node refuses connections to that
port, but other programs on the machine cannot use it. The cluster's page
shows the port with no app and still published. To free the port, run the
install command again on that machine. The run removes only the ports that no
app on the cluster uses.
Volumes, and why your data survives¶
An app that stores data declares one disk per volume slot. On the deploy form, you create a new volume or attach one that you already have. Mesopod tracks the volume as an object of its own, not as a detail of the app.
That separation makes the lifecycle safe:
- Stop an app, and its volumes are kept and stay attached to it.
- Uninstall an app, and its data is kept. You can attach the data to a future instance. The confirmation has two checkboxes, Also delete its volumes and Also delete its secrets. Both are off. The data is deleted only if you select the first one.
- A restart of the machine or of the app changes nothing about the data.
Where your data is. Open the page of the cluster. Setup shows the data directory that you asked for and the one that the cluster recorded. It also shows each directory that you named, and what the machine made of it: registered, with its path, or refused, with the reason.
Where app volumes go. On the same page, Storage shows where app
volumes go. Under App data, the folder line shows a path or
in the cluster's own storage. The row of the cluster on the Clusters
page shows the same in its volumes column. If it shows a path, for example
/…/volumes/<cluster-slug>, the install moved app storage into your data
directory (How the install works). Each app volume
is then a directory under that path on the machine, and the volume's page in
the console names the exact directory.
If it shows in the cluster's own storage, the cluster is one that you already
ran. App data then stays in the cluster, and the volume's page names no
directory. In both cases, the deploy form offers the registered directories
under Use a shared directory.
To bring in data that you already have, for example a Nextcloud directory or a photo library, use a host directory volume. If the install registered the directory, it is already under Use a shared directory.
For a new directory, add it on the Volumes page as a Node Directory volume. Then run the install command again on that machine. The console shows the command. The chip beside the directory changes to Verified when your machine confirms the directory. Then attach the volume. Mesopod mounts what is already on the disk.
Kept is not the same as backed up. Before you depend on an app, read the snapshot guide.
Stop, start and uninstall¶
On the app page, Stop frees the compute and keeps everything else. Start brings the app back with its data. Uninstall removes the app and its services from your machine. The data and the secrets are kept, if you do not select the two delete checkboxes in the confirmation.
Change the settings of an app¶
On the app page, click Configure in the Manage panel. The panel shows the inputs of the installed version with their current values, and the secret of each slot. If the app has no inputs and no secrets, the panel says so. The settings of that app live inside the app.
- Change the inputs you want.
- If you want another secret in a slot, click Replace.
- Type a value, or select a secret you have.
- If you want to empty an optional slot, click Remove.
- Click Apply changes.
- The panel tells you that the app restarts. Click Restart and apply.
The app restarts with the new settings. The data and the address stay. The
History list on the page shows the change as settings changed.
If the app is stopped, the button shows Save for next start. The console saves the settings, and Start applies them.
You set the admin username, email and password when you open the app. The panel shows them, and you change them from Access. If a teammate changed the app while your panel was open, the console refuses the change. Click Reload. Then apply your change again.
When it does not go this way¶
See Troubleshooting. It is organized by the message that you see.