Troubleshooting
The failures this tool actually has, in roughly the order a new install meets them. Each entry names the symptom, the cause that is usually behind it, and the check that tells them apart. Three of these the guide's own lab met and kept; they are marked with their transcripts.
"Invalid or missing setup token" — lab-met, t02
Symptom: Creating the first
administrator is refused with a 403
and that message.
Cause: You are knocking on the
setup door without the token — or
with a stale one from an earlier
start of the container.
Check: docker logs portainer,
and copy the current instance's
setup_token exactly. Every start
with no administrator mints a fresh
one; yesterday's printout opens
nothing.
Someone else took the first login
Symptom: Setup is closed, and the
administrator is not you.
Cause: A fresh console on a
reachable network is claimed by the
first arrival. It has happened to
real installations in the minutes
between docker run and sitting
down with coffee.
Fix: There is no un-claiming.
Stop the container, delete its data
volume, start again, and do chapter 4
first this time — the containers
Portainer managed are unharmed by
the wipe (chapter 2). Then ask
yourself how the stranger arrived:
that door should not have been open
to them at all.
The administrator password is lost
Symptom: Setup is long closed;
nobody can sign in as administrator.
Fix: The project ships a rescue
tool for exactly this — a helper
image (portainer/helper-reset-password)
run once against the stopped
console's data volume, which resets
the administrator's password to a
value it prints. Described, not run,
in this guide; the documentation
walks it. Prevention is cheaper:
a password manager is chapter 4's
unstated co-author.
An environment shows "down"
Symptom: The picker lists the
environment as down, or its page
will not load.
Causes, in order of likelihood:
the engine on that machine is stopped
or restarting; the socket path in
the environment's record is not the
socket the engine is actually on
(Podman sockets move between
/run/podman/podman.sock and user
sessions); an agent is down or its
secret no longer matches; the
network between console and engine
is doing something new.
Check: On the machine itself,
ask the engine directly (docker
ps). If the engine answers there,
the break is in the path — socket,
agent, network — and the environment
record's address is the next thing
to read.
A stack deploys halfway and sulks
Symptom: Stack creation errors, or the stack exists with containers missing, exited, or restarting. Causes: A Compose file the validator would have caught (run chapter 6's check first); an image name or tag that does not exist; a published port already in use on the host; a volume or network left behind by a previous stack of the same name, disagreeing with the new file. Check: The stack's containers' own logs (chapter 7) carry the specific refusal. Engines are blunt; let them be.
The template catalogue is empty — lab-met, t11
Symptom: App templates shows nothing, or an error about fetching. Cause: The catalogue is fetched live, as one file, from the Templates URL — no internet, a proxy that interferes with TLS, or a certificate the console cannot verify all starve it (transcript t11 is the lab's own refusal, verbatim). Fix: Ordinary internet access, or point the Templates URL at a mirror you trust. Nothing about your stacks depends on it meanwhile.
The browser swears the site is unsafe
Symptom: A full-page warning at
https://…:9443.
Cause: Portainer's self-signed
certificate, doing what self-signed
certificates do (chapter 3).
Proper fixes, in order: Put a
real certificate on it (your own
authority, or a public name with a
public certificate), or reach it
over plain HTTP on a network you
trust at :9000 knowing that
"trust" now includes everyone on
that network hearing the session.
The improper fix — teaching everyone
to click through warnings — trains
exactly the habit chapter 4's lock
exists to defeat.