Troubleshooting
On this page
The usual causes when something doesn't work, and what to do about each. Settings → System, and erlangly status on the server, list anything Erlangly already knows needs looking at, with what to do.
The install stops: a port is in use
Docker says the address or port is already in use, or already allocated: something else on the server answers on port 80 (or 443, with a domain). Often it's a web server that came with the server, or another container.
- See what it is:
sudo ss -ltnp 'sport = :80'(or:443). - Stop it if you don't need it, like
sudo systemctl disable --now apache2. If you do need it, it can be Erlangly's proxy instead: in/etc/erlangly/erlangly.conf(with sudo), put another port inERLANGLY_HTTP_PORT=, the https:// address people will open inERLANGLY_URL=, and leaveTLS_DOMAIN=empty, as in Behind your own proxy. - Run
erlangly restart, thenerlangly setup-linkfor the setup link the install didn't get to print.
HTTPS doesn't work: the certificate
With a domain in TLS_DOMAIN, Erlangly asks Let's Encrypt for a certificate the first time someone opens it. Let's Encrypt checks the domain is yours by reaching the server from the internet, so until it can, browsers can't make a secure connection.
- The domain points somewhere else, or nowhere yet:
dig +short wfm.example.comshould print the server's public address. If the domain also has an IPv6 (AAAA) address, it must be this server's too, or be removed. - Ports 80 and 443 aren't open to the internet: a cloud firewall or security group, or
ufw, has to let both in from anywhere, not only from your office. - A proxy or CDN in front, like Cloudflare's: set the name to DNS only, or let that proxy handle HTTPS and run Erlangly behind it instead.
Once it's put right, run erlangly restart and open Erlangly again. Let's Encrypt allows only a few failed tries an hour for a name, so if it has failed several times, wait an hour first.
Behind your own proxy
- The wallboard doesn't update by itself, or a schedule being generated never says it's done until you reload: the proxy isn't passing on WebSockets, at
/cable. Turn them on (Nginx Proxy Manager: Websockets Support). Caddy and Cloudflare tunnels pass them on as they are. - Signing in fails with “The change you wanted was rejected”, and live updates don't come (
erlangly logssays Request origin not allowed): the proxy changes theHostheader to Erlangly's own address, orERLANGLY_URLin/etc/erlangly/erlangly.confisn't the https:// address people open, so Erlangly thinks they came over plain HTTP. Have the proxy pass on the address people opened, put it inERLANGLY_URL, and runerlangly restart. - Everyone is asked to wait a few minutes when a floor signs in at the start of a shift: Erlangly sees every sign-in coming from the proxy. Have it send
X-Forwarded-For, and if it runs on another machine, put its address inTRUSTED_PROXIES(how). - An import or an API request is refused as too big by the proxy: nginx takes only 1 MB unless told otherwise, and imports can be 5 MB.
For nginx, with Erlangly installed with ERLANGLY_HTTP_PORT=8095 ERLANGLY_URL=https://wfm.example.com:
location / {
proxy_pass http://127.0.0.1:8095;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
client_max_body_size 10m;
}
An upgrade rolled itself back
erlangly upgrade printed the new version's log, said it didn't start, and rolled back. Nothing is lost: you're on the version you had, with your data as it was before the upgrade, and nobody used the new one in between.
- Keep the log lines it printed: they say why the new version didn't start.
- Run
erlangly status: it shows how much disk is free, and anything else that needs looking at. - Send us the log, with the two version numbers, and try again once we've answered or a newer release is out.
Other times an upgrade stops before it starts, and says why:
- there isn't room on the disk for the snapshot it takes first (free some,
docker system pruneremoves old images) - the server can't reach get.erlangly.com or GitHub's registry (see Network)
- or, with a pay-once license, the release came out after your Updates ended (it names the newest release they cover), or Erlangly couldn't be asked for their date (start it with
erlangly restartand try again).
If a rollback can't put your data back, Erlangly stays stopped with its data as it was: free some disk and run erlangly rollback again.
Email isn't sent
Settings → Email shows an email Erlangly couldn't send, who it was for and why (a refusal in the mail server's own words), and Settings → System names the last one for a day. Erlangly tries again by itself for about four hours when the server is busy or can't be reached.
- It couldn't reach the mail server: check its name and port. Some hosting companies, DigitalOcean among them, block outgoing mail ports on new servers until you ask them to unblock one.
- It stopped answering, or a secure connection failed: Security has to match the port: STARTTLS for 587, TLS for 465.
- The sign-in was refused: the username or password is wrong. Microsoft 365 also needs SMTP sign-in turned on for that mailbox, and Gmail needs an app password.
- The sender was refused: the Send from address under Settings → Email has to be one that account may send as.
- It's sent, but people don't get it: look in their spam folder, and check with your mail provider that the Send from address's domain is set up for it (SPF and DKIM).
The license isn't accepted, or won't activate
What Erlangly or store.erlangly.com says, and what to do. Activating says how it works.
- “That isn't a valid Erlangly license key”: copy the whole key from the email, from
ERLANGLYto its end, and paste it again. A key startingERLANGLY2needs Erlangly 0.8.165 or later: upgrade first. - “That license key was revoked, so it can't be activated” (on the store, “This key is revoked”): we revoke a key when its purchase is refunded, or when it leaked or was shared. If you have a newer key from us, paste that one instead; otherwise write to us.
- “That key is from before keys could be activated”: write to hello@erlangly.com, and we'll send you one that can be.
- “This license is in use on another install”: a license runs on one install at a time, and the store says which. On that install, choose Remove the license key under Settings → License, then activate it here. If that server is gone, free it at store.erlangly.com/move first (moving a license).
- “A trial stays on one install”, or “This trial is in use on another install”: a trial can't move. Choose the free plan or a paid license here, or write to us if the trial's server has died.
- “The free plan runs on another install”: your organization has one free install, and an install whose paid license ended, or was removed from it, carries on under the free plan as that one. If its server is gone, say so at store.erlangly.com/move (This server is gone); otherwise start a trial or buy a license for this install.
- “This license has moved as often as it can this year”: a license moves three times a year by itself. Write to us, and we'll allow another.
- The store doesn't open, or can't be reached: the browser you're using has to reach store.erlangly.com. Use typed codes instead, from any device that can reach it, a phone say (how).
- “That code didn't work here”, back from the store, or “That isn't the code for this request”, typed: start again from the activation screen, or check the code against the store's page and type it again (capitals and dashes don't matter). If it keeps happening, write to us.
- “Erlangly is already activated here”: a link back from the store was opened later, or in another browser, on an install that's activated, so nothing changed. To use another license, start from Settings → License.
- Remove the license key didn't finish (the tab was closed before it came back): choose it again, and the store gives the same answer.
- It's activated, but the plan says Free: the key's date has passed, or, with pay once, this release came out after your Updates ended: renew them, or go back to your previous version with
erlangly rollback. Each yearly renewal emails a new key to whoever bought the license: paste the newest. - Agents can't be added: as many agents as the key covers are already active, sample data included. Schedules can't be generated: there are more active agents than the key covers, or a day of the schedule period has more people than it covers: its busiest day counts, so someone who leaves and the person who starts after them take one seat. Settings → License shows the active agents, and the refusal names the day.
“Erlangly isn't activated yet”
An install that isn't activated shows its admins the activation screen, and nothing else; everyone else is told to ask an admin, and the API and AI assistants are refused. Agent states and volumes from your ACD keep coming in meanwhile, so nothing is missing once it's activated.
That's a new install, an install whose trial or test license ended, or one whose free license, trial or test license was removed from it. An install from before activation (before 0.8.165) works as it did for 30 days after it's upgraded, with a line on every admin's page saying when it needs activating by: activate it before then, under Settings → License.
Still stuck? Write to licences@erlangly.com from the address you bought with. More in Your license.
An ACD connection has gone quiet
Settings → System says Erlangly can't connect to a connection, or that no agent states have come from it for half an hour while people are on shift. Until they come back, the wallboard and adherence don't know what agents are doing. Open the connection under Settings → Connections: it shows when the last change came, or, when it can't connect, what the ACD answered.
- The ACD turned the sign-in away: its secret or key was changed, expired or deleted, a permission was taken away, or the user it belongs to was turned off. Choose Change and enter them again; its agents, state codes and queues are kept. Zoom takes an app's admin scopes away when its maker's role changes, and Five9 allows one session per user, so the user made for Erlangly mustn't sign in anywhere else.
- It can't be reached: check the server can reach the ACD's addresses (see Network).
- Amazon Connect says it didn't accept the access key or secret, and they're right: check the server's clock, which has to be within 5 minutes of the right time (
timedatectl). - Another ACD, or a script: the script has stopped, or sends with an old token. The API answers each state it's sent with what it did with it, so the script's log says which.
A connection Erlangly reads from your ACD itself also has a diagnostics file on its page, with people's names and emails masked and nothing secret in it: send it to us if none of these is it.
Locked out
- An admin's password is lost:
erlangly reset-link your@emailon the server prints a link to choose a new one, good once, for 15 minutes. - An admin's phone and recovery codes are lost: another admin who signs in with a code from their own app resets their two-factor authentication on their user page. The last admin:
erlangly two-factor reset your@emailon the server. Codes that never work: check the server's clock (erlangly statussays when it isn't kept in time) and the phone's. - Single sign-on is down or set up wrong: break-glass admins sign in with their password. On the server,
erlangly sso offstops requiring it. - A new install's setup link is lost:
erlangly setup-link.
Asking us for help
Write to hello@erlangly.com with what happened and when, and, from the server:
erlangly status
erlangly logs --tail 200
Look through the log before you send it: it can include people's names and email addresses. For an ACD connection, add its diagnostics file.