The setup steps
When you connect a server, its page lists eleven steps and marks each one as it runs: waiting, running, done (with what it did) or failed (with why). The same list stays on the page of a ready server, under Setup.
The steps at a glance
| # | Step in the console | What it does | Time limit |
|---|---|---|---|
| 1 | Sign in over SSH | Signs in with your username and password, and records the server's host key. | 20 seconds to answer |
| 2 | Check the system | Checks the system, root rights and memory, and reads the server's size. | |
| 3 | Create the OpenPanel user and key | Creates openpanel with a key only OpenPanel holds, and signs in with it. | 1 minute |
| 4 | Install updates and security tools | Installs updates, ufw, fail2ban and automatic security updates. | 30 minutes |
| 5 | Move SSH to a new port, keys only | Moves SSH to a random port from 20000 to 59999, with key sign-in only, and checks it there. | 1 minute |
| 6 | Turn on the firewall and ban brute force | Turns on the firewall and fail2ban, closes the ports Docker publishes, and checks that SSH still answers. | 2 minutes |
| 7 | Install Docker | Installs Docker with log rotation, and checks that the firewall covers its ports. | 15 minutes |
| 8 | Join the organization's private network | Installs Tiltas and joins the private network. Never stops the setup. | 10 minutes to install, 2 to get an address |
| 9 | Install the OpenPanel agent | Installs the signed agent, which connects out to OpenPanel. Never stops the setup. | 15 minutes |
| 10 | Keep logs and rotate them | Keeps the system log across restarts, at most 500 MB. | 1 minute |
| 11 | Change the passwords and finish | Sets one new console password and marks the server as set up. | 1 minute |
A step that runs past its time limit is stopped with "A step took longer than … minutes and was stopped." Every change is listed in What OpenPanel changes on your server.
When a step fails
The setup stops at the failed step, marked in red with the reason, and the server shows Setup failed. Nothing after that step was done. The Owner or an Admin sees two buttons:
- Try again opens the connect form with the name and address filled in.
- Remove forgets the server in OpenPanel without signing in to it. What the setup already changed stays on the machine.
Whether you can try again on the same machine depends on how far the setup got:
| Failed at | Try again without reinstalling? |
|---|---|
| Steps 1 to 5 | Yes, once you have fixed the cause. SSH still accepts your password on the old port (step 5 puts the old settings back when it fails). |
| Steps 6 to 11 | No. SSH has already moved and accepts only OpenPanel's key, so your password no longer signs in. Reinstall the server, then connect it again. |
A setup that makes no progress for 30 minutes, for example because OpenPanel restarted during it, shows Setup failed with "The setup stopped without finishing. Start it again." It does not resume by itself.
Each step
1. Sign in over SSH
OpenPanel signs in with the username and password you entered, and records the server's host key fingerprint. From then on it refuses a server that answers with another key.
| The console says | What to do |
|---|---|
| The server did not answer. Check the address, the port, and that the port is open to the internet. | Check the address and SSH port, and that your provider's firewall or your router lets the port in. At home, see Port forwarding and CGNAT. |
| The server refused the connection on that port. | SSH does not listen on that port. Check the port, and that SSH is installed and running. |
| The username or password was not accepted. | Check them by signing in yourself. A server created with an SSH key refuses passwords: see Servers created with an SSH key. |
| That host name does not resolve. | Check the spelling, or enter the IP address. |
Before this step starts, the form itself can refuse with "That address is private or reserved", "This server is already connected to the organization" or "Too many connection attempts". See A server does not connect.
2. Check the system
Reads /etc/os-release, runs a command with root rights, looks for OpenPanel's marker file, and reads the CPU count, memory, disk, kernel and architecture. When it is done it shows, for example, "Ubuntu 24.04.1 LTS, 2 CPU, 4 GB memory, 75 GB disk".
| The console says | What to do |
|---|---|
| OpenPanel sets up Ubuntu Server 22.04 or 24.04 LTS. This server runs … | Reinstall the server with Ubuntu Server 24.04 LTS and connect it again. |
| The user … cannot run commands as root (sudo). | Use root, or a user in the sudo group. |
| This server is already set up by OpenPanel. | Disconnect it where it is connected, or reinstall it. |
| The server has … MB of memory; OpenPanel needs at least 1 GB. | Use a server with at least 1 GB of memory. |
3. Create the OpenPanel user and key
Creates openpanel, gives it root rights without a password, installs OpenPanel's new Ed25519 key, then signs in as openpanel with that key. When it is done: "User openpanel signs in with an Ed25519 key".
This step fails if SSH on the server does not accept the new key, for example because of settings someone added on the server. Such a server is not fresh: reinstall it, then connect it again.
4. Install updates and security tools
Installs every pending update and the security tools. This is usually the longest step. It waits up to 10 minutes for another package installation to finish, such as the automatic updates a new server runs at its first boot.
If it fails, the console shows the last lines of the package manager's output. Common causes are a full disk or a package mirror that does not answer. Try again; the step can run again safely.
5. Move SSH to a new port, keys only
Writes OpenPanel's SSH settings, restarts SSH and signs in on the new port. When it is done: "SSH on port …; passwords and root sign-in are off".
| The console says | What to do |
|---|---|
| SSH could not be reached on the new port …, so the old settings were put back. | Open TCP ports 20000 to 60000 to the server in your provider's firewall or your router, then connect it again. |
6. Turn on the firewall and ban brute force
Resets and turns on the firewall with SSH, 80 and 443 open, adds the rules that keep ports Docker publishes closed from outside, starts fail2ban, then signs in once more through the firewall. When it is done: "Open: SSH …, HTTP 80, HTTPS 443. Everything else is closed, ports Docker publishes included; repeated failed sign-ins are banned for an hour".
| The console says | What to do |
|---|---|
| The firewall blocked SSH, so it was switched off again. | Write to us with the server's address. |
7. Install Docker
Installs Docker, writes its settings and starts it, then checks that the firewall's rules for Docker's ports are in place. When it is done: "Docker …; container logs rotate at 10 MB; ports it publishes stay behind the firewall". If it fails, the console shows the last lines of the output.
| The console says | What to do |
|---|---|
| Docker started, but the firewall could not close the ports it publishes. Write to us with the server's address. | Write to us with the server's address. |
8. Join the organization's private network
Installs Tiltas and joins the organization's private network with a one-time key. This step never stops the setup. It ends with one of:
| The console says | What it means |
|---|---|
| Private address 100.64.…: the organization's other servers and devices reach it there | The server is in the network. |
| Not joined (…). Join it later on the server's page. | Joining failed for the reason given. Use Join on the server's Overview later. |
| The private network is not available on this OpenPanel yet | The network service is not set up for this OpenPanel. |
9. Install the OpenPanel agent
Downloads the agent's signed release, checks its signature and the installer's checksum, and runs the installer with a one-time token made for this server. The agent enrolls and connects out to OpenPanel. See The OpenPanel agent.
This step never stops the setup. It ends with one of:
| The console says | What it means |
|---|---|
| Agent … installed; it connects to gateway.openpanel.sh on its own, and nothing connects in | The agent runs and is connected. |
| Not installed (…). Install it later on the server's page. | Installing failed for the reason given, for example because the gateway did not answer. The server is set up without the agent. The server's page does not offer to install it again yet. |
10. Keep logs and rotate them
Keeps the system log across restarts and caps it at 500 MB. When it is done: "System logs kept across restarts, at most 500 MB".
11. Change the passwords and finish
Sets one new random password for root, openpanel and the user you connected with, writes the marker file, and marks the server Ready. When it is done: "New password set for root, openpanel (console only)". The password is under Console access on the server's page.
What OpenPanel changes on your server
Every change the setup makes to a server, from the openpanel user and SSH settings to the firewall, Docker, the private network, the agent, logs and passwords.
Server status and journal
A server's states in the console, and what each part of its page shows, from the live reading and security to the system log and console access.