diff --git a/docs/src/content/docs/host/proxmox-lxc.md b/docs/src/content/docs/host/proxmox-lxc.md index 5985015..4af0667 100644 --- a/docs/src/content/docs/host/proxmox-lxc.md +++ b/docs/src/content/docs/host/proxmox-lxc.md @@ -331,6 +331,27 @@ Don't do this on an **Unprivileged LXC**. Kasm can't run there. An LXC shares the Proxmox host's kernel. That makes it light, but you work around its limits by hand. Pick a virtual machine if you want to avoid that. A VM has its own kernel, so you don't pass devices by hand for VPN apps, and **SMB Mount** and **NFS Mount** work. Set **System Type** to **Virtual Machine**. For Kasm in a VM, see the workaround in [Kasm](#kasm). The cost is more memory and disk use than an LXC. For background, read [UDMS part 3: when to choose a VM instead](https://www.simplehomelab.com/udms-03-best-home-server-os/#When_to_Choose_VMs_Instead) (manual setup). +### Move Deployrr from an LXC to a VM + +You can't convert a container into a VM. You move Deployrr with a Migration Package. It needs a Pro license on both servers. Without Pro, there is no Deployrr tool for this move. Ask in [Discord](/support/discord/). + +The package holds your Docker folder and Deployrr's settings. It holds nothing outside the Docker folder, so NAS folders you bind mounted into the LXC are not in it. + +1. In Proxmox, create the VM and give it a static IP. See [Proxmox LXC and VM](/host/fixed-ip/#proxmox-lxc-and-vm). +2. Create the same Linux user name the LXC uses, then install Deployrr in the VM. See [Quick start](/getting-started/quick-start/). +3. In the LXC, open **Tools** > **Backups** > **MP Create**. At the restart question, press any key other than `Y`. Don't run the same apps on both servers at once. +4. Copy the package to the VM, then run **MP Restore** there. The restore puts the Docker folder back at the same path it had in the LXC. At "Deployrr will now restart", press `Y`. For these steps, see [Move Deployrr to a new server](/using-deployrr/move-to-new-server/). +5. In **Prerequisites**, choose **System Type** and select **Virtual Machine**. The restore brings back the old setting, so the VM still says an LXC type until you change it. +6. Mount your NAS shares with **System** > **Mounts** > **SMB Mount** or **NFS Mount**. Use the same path the LXC used, such as `/mnt/media`, so your apps' folder paths still match. See [SMB and NFS mounts](/storage/smb-nfs-mounts/). +7. Follow [Fix up the new server](/using-deployrr/move-to-new-server/#fix-up-the-new-server). Run **System Checks** and **Domain Checks** again. If the VM's IP differs from the LXC's, run **Tools** > **Change Server IP** and enter the VM's IP, then the LXC's old IP. If the hostname differs, run **Tools** > **Change Hostname**. Then start your apps with **Tools** > **Stack Manager** > **Up**. +8. Shut down the LXC. + +In a VM, you don't need the `/dev/net/tun` lines or the LXC USB steps. To give a USB stick to a VM, open the VM in Proxmox, then **Hardware** > **Add** > **USB Device**. For a GPU, see [Prepare your server's GPU](/host/gpu-host-prep/). + +:::caution +Shut the LXC down, but don't delete it until the VM works. It is your backup. Don't start both at once. +::: + ## Check it worked - **System Type** shows " is on - " in **Prerequisites**. diff --git a/docs/src/content/docs/networking/cg-nat.md b/docs/src/content/docs/networking/cg-nat.md index 64ca70d..c00f9e8 100644 --- a/docs/src/content/docs/networking/cg-nat.md +++ b/docs/src/content/docs/networking/cg-nat.md @@ -160,7 +160,7 @@ Options B and D differ mainly in who can open your apps. - Pick Tailscale or ZeroTier when only you and your household use the apps. Nothing is public, so an app without its own login stays safe. Both fall back to a relay when two devices can't connect directly, and a relayed link is slower. - Pick Cloudflare Tunnel when people need to open an app without installing anything, such as a shared photo album. Every app you add to the tunnel is public, so give each one a login. -- For Jellyfin, Plex or other media streaming, use Tailscale or ZeroTier. With a tunnel, every stream goes through Cloudflare, and Cloudflare's terms restrict serving a lot of video through its network. +- For Jellyfin, Plex or other media streaming, use Tailscale or ZeroTier. With a tunnel, every stream goes through Cloudflare, and Cloudflare's [CDN terms](https://www.cloudflare.com/service-specific-terms-application-services/) let it limit sites that serve video through it without one of its paid video services. - Between Tailscale and ZeroTier, Tailscale has more help on this site. [Set up Tailscale](/networking/tailscale/) covers it in full, and the [VPS setup below](#traefik-on-a-vps-with-your-apps-at-home) uses it. - You can run more than one. For example, use Tailscale for your own apps and a tunnel for the one app you share. diff --git a/docs/src/content/docs/networking/tailscale.md b/docs/src/content/docs/networking/tailscale.md index a43fe84..0781d9f 100644 --- a/docs/src/content/docs/networking/tailscale.md +++ b/docs/src/content/docs/networking/tailscale.md @@ -29,7 +29,7 @@ videos: start: 1249 title: "Tailscale tutorial: open your apps by Tailscale IP and port" note: "Shows Deployrr v5. Menus and steps differ in v6." -last_reviewed: 2026-11-12 +last_reviewed: 2026-11-14 status: current old_paths: [] sources: [] @@ -170,6 +170,29 @@ To find an app's port, run `sudo docker ps` (or `dps`, which also lists stopped 3. Open the admin console page that lists your devices (usually **Machines**). Your server must be listed and show as connected. This is the check that proves it joined. 4. From another device on your Tailscale account, open `http://TAILSCALE-IP:3050` or another app's address. +## Tailscale and Traefik on the same server + +Traefik needs **Prerequisites** > **Setup Mode** set to **Hybrid**. Tailscale works in Local or Hybrid mode, so you can run both on the same server. Each app then has two kinds of address, and they behave differently. + +| Address | How it reaches the app | Opens over Tailscale | +| --- | --- | --- | +| `http://TAILSCALE-IP:PORT` | Straight to the app's port. Traefik is not involved. | Every app, whatever its Internal or External setting | +| `https://app.YOUR_DOMAIN` | Your domain points to your public IP (or to Cloudflare), so the request goes over the internet to Traefik, not through Tailscale. | Apps set to **External** or **Both**. Apps set to **Internal** don't open. | + +Replace `app` and `YOUR_DOMAIN` with the app's subdomain and your domain. In Simple mode, every app is **Both**. See [Simple vs Advanced mode](/reverse-proxy/simple-vs-advanced-mode/). + +:::caution +`TAILSCALE-IP:PORT` skips Traefik, so it also skips the login you picked for the app in Traefik, such as Authelia or TinyAuth. Anyone on your Tailscale account sees the app's own login screen, or none if the app has no login. Keep your Tailscale account to devices you trust. +::: + +### Open Internal apps by domain over Tailscale + +Traefik counts a request as Internal when it arrives on port 443 of your server. A request to the server's Tailscale IP on port 443 counts too. So an Internal app opens by domain over Tailscale when your device looks up `app.YOUR_DOMAIN` as the server's Tailscale IP. + +Deployrr does not set this up. One way is Tailscale's split DNS: in the Tailscale admin console, on the **DNS** page, add a nameserver used only for your domain, such as Pi-hole on this server, reached at the server's Tailscale IP. That DNS server must answer `app.YOUR_DOMAIN` with the server's Tailscale IP, not its LAN IP. Each device you browse from must have **Use Tailscale DNS settings** turned on. The server itself ignores Tailscale DNS, so this only changes your other devices. If devices at home also use that Pi-hole, they get the Tailscale IP too, and only open the app while Tailscale runs on them. [Set up local DNS rewrites](/networking/local-dns-rewrites/) shows how to add the record. See Tailscale's [DNS documentation](https://tailscale.com/kb/1054/dns). + +Once this works, apps set to **External** only don't open over Tailscale by domain, because the request now arrives on the Internal port. Set them to **Both** if you want them on both paths. If this is more setup than you need, use `http://TAILSCALE-IP:PORT` for Internal apps. + ## Change the auth key later The key is stored as `TS_AUTH_KEY` in the `.env` file in your Docker folder, inside single quotes. Keep the quotes when you change it. diff --git a/docs/src/content/docs/storage/fstab-boot-recovery.md b/docs/src/content/docs/storage/fstab-boot-recovery.md index 7afd5b1..1a32638 100644 --- a/docs/src/content/docs/storage/fstab-boot-recovery.md +++ b/docs/src/content/docs/storage/fstab-boot-recovery.md @@ -27,7 +27,7 @@ further_reading: - title: "UDMS part 08: Test the fstab entry for an NFS mount" url: "https://www.simplehomelab.com/udms-08-mount-remote-folders-using-nfs/#Test_the_fstab_Entry" videos: [] -last_reviewed: 2026-11-12 +last_reviewed: 2026-11-14 status: current old_paths: ["/host/fstab-boot-recovery"] sources: [] @@ -69,7 +69,9 @@ You need a console. SSH does not work in emergency mode. Use one of these: - A keyboard and monitor on the server. - The Proxmox web console, if the server is a virtual machine. -- The web or recovery console of your VPS provider. +- The web or recovery console of your VPS provider. See [If you get locked out](/host/secure-a-vps/#if-you-get-locked-out) for how it works. + +If none of these gives you a shell, use a rescue system ([Fix C](#fix-c-use-a-rescue-system)). :::caution Editing `/etc/fstab` can break boot. Copy the file before every edit. Test your change with `sudo mount -a` and `sudo findmnt --verify` before you reboot. @@ -197,9 +199,58 @@ You can still start the server with a shell and no login. The keys below can dif If the server doesn't go on booting, turn it off and on again. You ran `sync`, so your change is saved. -:::note -On a VPS you may not get the GRUB menu. Use your provider's rescue mode instead. Follow the provider's docs to mount your server's disk, then edit `etc/fstab` on that disk the same way. -::: +### Fix C: use a rescue system + +Use this fix when Fix A and Fix B don't work for you. For example, a VPS console may not show the GRUB menu, or the key to open GRUB may not get through a web console. A rescue system starts from a separate disk or image, so your server's `/etc/fstab` is not used. + +1. Start a rescue system: + - **VPS:** turn on rescue mode in your provider's panel and reboot into it. Your provider's docs tell you how to log in to it. + - **Proxmox virtual machine:** in the Proxmox web interface, select the VM and go to **Hardware**. Edit the **CD/DVD Drive** (if there is none, use **Add** > **CD/DVD Drive**) and pick a live ISO that gives you a shell, such as the Ubuntu desktop ISO. A live ISO runs a full system from the image without installing it. In **Options** > **Boot Order**, move that drive to the top. Start the VM and open its **Console**. For the Ubuntu desktop ISO, choose **Try Ubuntu** and open a terminal. + - **A physical server:** start it from a USB stick with a live ISO. +2. Find your server's main partition: + + ```bash + lsblk -f + ``` + + Look for the large `ext4` or `xfs` partition. On a default Ubuntu install it is `ubuntu--vg-ubuntu--lv`. If you only see `LVM2_member`, run `sudo vgchange -ay` and run `lsblk -f` again. + +3. Mount it. Replace `PARTITION` with the name from step 2, such as `sda2` or `mapper/ubuntu--vg-ubuntu--lv`: + + ```bash + sudo mount /dev/PARTITION /mnt + ``` + +4. Check that you mounted the right disk. You should see your fstab and its copies: + + ```bash + ls -l /mnt/etc/fstab* + ``` + +5. Keep the broken file: + + ```bash + sudo cp /mnt/etc/fstab /mnt/etc/fstab.broken + ``` + +6. Fix the file as in step 5 of Fix A, with `/mnt` in front of each path. Either copy an older file over it with `sudo cp /mnt/etc/COPY_NAME /mnt/etc/fstab`, or open it with `sudo nano /mnt/etc/fstab` and put `#` in front of the bad line. +7. Check that each disk in the file exists. List the disks and their UUIDs: + + ```bash + sudo blkid + ``` + + Every `UUID=` line in `/mnt/etc/fstab` that doesn't start with `#` must match a UUID in this list. If one doesn't, put `#` in front of it. Check lines that start with `LABEL=` or `/dev/` against the same list. + +8. Write your changes and unmount the disk: + + ```bash + sync + sudo umount /mnt + ``` + +9. Leave the rescue system. On a VPS, turn off rescue mode in the panel and reboot. On Proxmox, move the server's disk back to the top of **Boot Order**, set the **CD/DVD Drive** to **Do not use any media**, and restart the VM. +10. When the server is up, run `sudo findmnt --verify` and `sudo mount -a` to test the file before the next reboot. ## Check it worked diff --git a/docs/src/content/docs/using-deployrr/manage-apps.md b/docs/src/content/docs/using-deployrr/manage-apps.md index c2c0558..d9448d0 100644 --- a/docs/src/content/docs/using-deployrr/manage-apps.md +++ b/docs/src/content/docs/using-deployrr/manage-apps.md @@ -29,7 +29,7 @@ videos: start: 1954 title: "Deployrr 5 walkthrough: Stack Manager Safe and Full delete" note: "Shows Deployrr v5. Menus and steps differ in v6." -last_reviewed: 2026-11-11 +last_reviewed: 2026-11-14 status: current old_paths: ["/apps/manage-apps"] sources: [] @@ -53,7 +53,7 @@ Core apps such as Traefik are in neither list. They have their own menus. You need a Basic, Plus or Pro license to install or reinstall an app. Without one you see "License Required" and "Official apps require a paid license." Start, Stop, Restart, Logs and Remove in **Manage Apps** have no license or requirements check. See [Licenses](/getting-started/licenses/). -The **Apps Menu** also lists **ShellInABox** under SYSTEM APPS. It is a web-based SSH terminal. It needs Traefik in production, a login method and a paid license. This page doesn't cover it. See [Install ShellInABox](/apps/shellinabox/). +The **Apps Menu** also lists **ShellInABox** under SYSTEM APPS. It is not a Docker app, so **Manage Apps** doesn't show it. See [Parts that don't run in Docker](#parts-that-dont-run-in-docker). ## Install an app with Browse Apps @@ -243,6 +243,30 @@ In the aliases, replace `APP` with the app's name. See [Bash aliases](/using-dep See [Stack Manager](/using-deployrr/stack-manager/) for every option. +## Parts that don't run in Docker + +A few things Deployrr sets up run on the server itself as system services, not as containers. **Manage Apps** and `docker ps` don't list them, and Docker commands and the Deployrr aliases don't control them. + +| Part | Where you set it up | What its menu line shows | Service name | Page | +| --- | --- | --- | --- | --- | +| ShellInABox | **Apps** > SYSTEM APPS > **ShellInABox** | **RUNNING**, or **STOPPED** when installed but not running | `shellinabox` | [Install ShellInABox](/apps/shellinabox/) | +| CrowdSec Firewall Bouncer | **Security** > **Firewall Bouncer** | **RUNNING** while the service runs, otherwise nothing | `crowdsec-firewall-bouncer` | [Block bad visitors with CrowdSec](/reverse-proxy/crowdsec/) | +| Rclone mount | **System** > **Mounts** > **Rclone** > **Automount** | Your mount folder, then **mounted** or **not mounted**. Before setup: "SMB Share via Rclone" | `rclone-NAME`, where `NAME` is your remote name | [Mount a NAS share with Rclone](/storage/rclone-smb-setup/) | +| Delay Media Apps | **System** > **Mounts** > **Rclone** > **Delay Media Apps** | **DONE** once set up | `start-media-after-boot` | [Apps are stopped after a reboot](/docker/apps-not-starting-after-reboot/) | + +Delay Media Apps runs once at boot. It waits up to 15 minutes for the Rclone mount, starts your media apps, and then exits. `systemctl status` shows it as inactive afterwards. That is normal. If the mount never appears, it stops the media apps instead. To see what happened at the last boot, look in the `logs/HOSTNAME` folder inside your Docker folder: `rclone-NAME-timer.log` says when the media apps started, and `rclone-NAME-timer.err` says when they failed to start. + +To check, stop, start or read the log of one of them, use the general Linux commands below. Replace `SERVICE` with the service name from the table. + +```bash +sudo systemctl status SERVICE +sudo systemctl stop SERVICE +sudo systemctl start SERVICE +sudo journalctl -u SERVICE -n 50 +``` + +To remove the Rclone mount and Delay Media Apps, use **System** > **Mounts** > **Rclone** > **Uninstall**. It unmounts the share and removes Rclone and both services. ShellInABox has no remove option in Deployrr. Remove it by hand as in [Remove it](/apps/shellinabox/#remove-it), including its Traefik rules file and Dashboard entry. Afterwards the **Apps Menu** still shows ShellInABox as **STOPPED**. + ## Next steps - Fix an app that shows **Running** but keeps failing: [A container keeps restarting, is unhealthy or has exited](/docker/container-keeps-restarting/).