Troubleshooting
Find what you're seeing, then work through the cause and the fix. Commands assume EchoNod; on GateNod, use np-origin-agent-sp wherever you see np-origin-agent.
Quick checks first (EchoNod and GateNod)
EchoNod and GateNod: these four commands, run on your origin server, answer most questions:
sudo systemctl status np-origin-agent --no-pager
sudo journalctl -u np-origin-agent -n 50 --no-pager
sudo systemctl status 'vxnode-tls-client@*' --no-pager
grep -E '^NODPULSE_(LOCAL_SITE|RELAY_PUBLIC)=' /etc/nodpulse-agent/agent.conf
A healthy agent is active (running), logs connected to ..., and has no [FATAL] lines.
The browser says "too many redirects"
- Symptom
Your site fails with
ERR_TOO_MANY_REDIRECTS(or "redirected you too many times").curl -sI https://your-domain/shows a301or302whoseLocationis the same https address.- Cause
The agent forwards requests to your web server over plain HTTP, at the address in
NODPULSE_LOCAL_SITE(defaulthttp://127.0.0.1:80). If that port only redirects to HTTPS, every request gets told "go to https://", comes back through NodPulse, and gets the same answer forever.This often appears right after the first install on a server whose port 80 redirects to HTTPS, because the agent starts with the default address
http://127.0.0.1:80. Re-running the installer keeps the address already set.- Fix
Point the agent at a plain-HTTP site on the loopback address that serves your pages without redirecting. For example, if your web server serves the site over HTTP on
127.0.0.1:8080:# check it serves the page, not a redirect curl -sI -H 'Host: your-domain' http://127.0.0.1:8080/ # then point the agent at it sudo sed -i 's|^NODPULSE_LOCAL_SITE=.*|NODPULSE_LOCAL_SITE=http://127.0.0.1:8080|' /etc/nodpulse-agent/agent.conf sudo systemctl restart np-origin-agentIf you don't have such a site yet, add one to your web server: listen on
127.0.0.1:8080for your domain name and serve the site normally, with no HTTPS redirect. See Site not on port 80?
The agent can't read its token ("bad-token")
- Symptom
The agent won't stay connected and the dashboard never shows Connected. The log shows one of:
[FATAL] cannot read token file /etc/nodpulse-agent/agent.token: ... [FATAL] token file /etc/nodpulse-agent/agent.token is empty. ...or repeated
connected to .../disconnected from ...pairs. NodPulse support may tell you the relay rejected your agent with "bad-token".- Cause
The agent runs as the
nodpulseuser, not root. Ifagent.tokenwas replaced or edited as root (for example copied in from a backup), it can end up owned by root and unreadable to the agent, which then sends an empty or invalid token. A token that has expired, for example because the refresh timer was disabled for weeks, is rejected the same way.- Fix
Give the files back to the agent's user, then restart it:
sudo chown -R nodpulse:nodpulse /etc/nodpulse-agent sudo chmod 600 /etc/nodpulse-agent/agent.token sudo -u nodpulse test -s /etc/nodpulse-agent/agent.token && echo readable sudo systemctl restart np-origin-agentIf it's readable but still rejected, the token may have expired. Make sure the refresh timer is on and force a refresh:
sudo systemctl enable --now np-agent-refresh.timer sudo FORCE_REFRESH=1 /usr/local/lib/nodpulse-agent/np-agent-refresh.shIf that says the refresh failed or was denied, run a fresh install command from the dashboard (see Re-running the installer).
The agent can't reach the relays
- Symptom
The agent is running but never logs
connected to ..., or thevxnode-tls-client@...services keep restarting. The dashboard shows the agent as not connected or offline.- Cause
The agent only makes outbound connections: TCP 9444 to the NodPulse relays (GateNod also uses TCP 9446), plus HTTPS to
api.nodpulse.comfor installs and daily token renewal. A firewall that blocks outbound traffic by default, or a cloud provider's outbound rules (security group, network ACL), will stop it.- Fix
Find the relay addresses your agent uses and test each one:
grep '^NODPULSE_RELAY_PUBLIC=' /etc/nodpulse-agent/agent.conf # for each host:port listed, e.g. timeout 5 bash -c '</dev/tcp/RELAY_HOST/9444' && echo open || echo blockedAllow outbound TCP 9444 (and 9446 for GateNod) to those addresses, and outbound TCP 443 to
api.nodpulse.com, in your server firewall and your cloud provider's rules. You do not need to open any inbound port. Then restart:sudo systemctl restart 'vxnode-tls-client@*' np-origin-agent.
The TXT record isn't verifying
- Symptom
The domain stays on Verify ownership in the dashboard.
- Cause
NodPulse looks up the TXT record through public DNS resolvers every minute. Usually the record has a slightly different name or value, is in the wrong DNS zone, or hasn't spread to public resolvers yet. A common slip is the name getting doubled to
_nodpulse.example.com.example.com, because the DNS provider adds the domain automatically.- Fix
Check what public DNS sees:
dig +short TXT _nodpulse.example.com @1.1.1.1 # or, without dig: nslookup -type=TXT _nodpulse.example.com 1.1.1.1You should see
"nodpulse-verify=..."with exactly the value from the dashboard. If you see nothing:- at your DNS provider, enter the name as just
_nodpulseif it appends the domain itself; - make sure you edited the zone that is actually live for the domain (check its nameservers with
dig +short NS example.com); - copy the value again from the dashboard, with no extra spaces or quote marks;
- give it time: new records usually appear within minutes, but some providers take longer.
Unverified domains are released after 7 days. If yours was, add it again and publish the new value.
- at your DNS provider, enter the name as just
DNS hasn't updated yet
- Symptom
The domain stays on Provisioning, or the dashboard shows a problem saying the A record does not point at the address given, or that the certificate couldn't be issued yet. Visitors may still reach your old server.
- Cause
DNS changes take time to spread, depending on the old record's TTL. NodPulse can only issue your HTTPS certificate once public DNS points your domain at the NodPulse address. An extra A record or an AAAA record pointing at your server, or a DNS provider proxy left switched on, also gets in the way.
- Fix
Check what public DNS returns:
dig +short A example.com @1.1.1.1 dig +short AAAA example.com @1.1.1.1The A lookup should return only the address the dashboard shows. The AAAA lookup should not return your server's IPv6 address. If the answer is still old, wait for the old TTL to run out; NodPulse retries automatically. If your own computer still shows the old site, its DNS cache may be stale: try another network or a phone on mobile data.
502 Bad Gateway from NodPulse
On Shield, NodPulse reaches your server at its public address. If NodPulse shows an error instead of your site, check that your web server is running and that its web ports are open to the internet, then try again.
- Symptom
The site returns
502 Bad Gateway. On EchoNod and GateNod, the short response body tells you which side failed:tunnel down: the gateway couldn't reach your agent.origin reset: the agent got the request but couldn't get an answer from your web server.
See it with
curl -s https://your-domain/. A504means your web server took longer than 30 seconds to start answering.- Cause
tunnel down: the agent is stopped, can't connect to the relays (see outbound access), or was rejected (see token).
origin reset: nothing is listening at
NODPULSE_LOCAL_SITE, your web server is down, or the address is wrong.- Fix
For tunnel down, run the quick checks at the top of this page and restart the agent:
sudo systemctl restart 'vxnode-tls-client@*' np-origin-agent sudo journalctl -u np-origin-agent -fRestarting also helps if the agent shows as running but the dashboard says it's offline: the agent may not have reconnected after a NodPulse-side restart.
For origin reset, test the local site from the server itself, using the address from
agent.conf:curl -sI -H 'Host: your-domain' http://127.0.0.1:80/If that fails, start or fix your web server, or point
NODPULSE_LOCAL_SITEat the right address and restart the agent (see the redirect loop fix for the commands).
The server's clock is wrong
- Symptom
The installer fails to download with a certificate error such as
SSL certificate problem: certificate is not yet valid; thevxnode-tls-client@...logs show certificate verification failures; or the agent's token stops being accepted even though the refresh timer runs.- Cause
HTTPS certificates are only valid between two dates, so a clock that is far off makes valid certificates look expired or not yet valid. The daily token refresh also uses the local clock to decide when to renew. The installer checks the clock and stops if it is more than 5 minutes out; after that, nothing checks it for you.
- Fix
Turn on time sync and confirm it:
sudo timedatectl set-ntp true timedatectl # look for "System clock synchronized: yes"If
set-ntpfails, install a time service such assystemd-timesyncdorchrony. Once the time is right, restart the services, or re-run the installer with a fresh command if it was the install that failed.
Re-running the installer
- Symptom
You want to reinstall (new server, broken install, expired token), or running the install command again does nothing, or prints
curl: (22) The requested URL returned error: 410or404. The installer may also have stopped withconfig fetch failed.- Cause
Each install command contains a one-time enrolment code. It works once and expires 24 hours after the dashboard showed it. A used or expired code returns an error, and because the command uses
curl -f, nothing runs.- Fix
Reload the Cloaking tab in the dashboard to get a new command, and run that. Re-running is safe on a server that already has the agent: it replaces the configuration and restarts the services, and your agent keeps the same account identity.
Two things to remember:
- A re-run keeps the local site address already set on the server. To change it, add it to the command:
curl -fsSL https://api.nodpulse.com/api/tunnel/install/<new-code> | sudo NODPULSE_LOCAL_SITE=http://127.0.0.1:8080 bash - If the installer stopped part-way (for example a download failed), it may say your enrol code is still valid. Fix the cause, then use a new command from the dashboard anyway, since the original command can't be fetched a second time.
Other installer errors are plain about the cause:
run as root(addsudo),systemd is required,curl is required,sha256sum/shasum not found(install coreutils), andsha256 mismatch(the download didn't match its fingerprint; don't work around it, contact support).- A re-run keeps the local site address already set on the server. To change it, add it to the command:
Contacting support
Email support@nodpulse.com. To help us answer in one go, include:
- the domain, and your account email;
- what you see (the error message, or a screenshot) and when it started, in UTC if you can;
- which step of the setup guide you're on;
- the output of these commands from your origin server:
sudo systemctl status np-origin-agent --no-pager sudo journalctl -u np-origin-agent -n 100 --no-pager sudo systemctl status 'vxnode-tls-client@*' --no-pager sudo cat /etc/nodpulse-agent/agent.conf timedatectl - the last lines the installer printed, if the install failed.
Do not send the contents of agent.token, refresh.secret or lens.conf from /etc/nodpulse-agent/, an unused install command, your dashboard password, or card details. NodPulse support will never ask for them. If you think one has been exposed, tell us and we'll help you replace it.