Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Slack grey banner "Last updated less than a minute ago": WebSocket trouble

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

Slack sometimes shows a grey banner that starts with the words "Last updated less than a minute ago". Slack's troubleshooting page lists it as WebSocket trouble and says what it costs: "you won’t automatically receive any new messages from your channels or direct messages (DMs)."

Slack's pages point at the network or security software: a proxy, a firewall or software on the computer. The sections below show how to test the connection, which addresses to allow, and how to change the network side safely. Nothing before the Fix section changes anything.

What the error means

Slack's page on connection issues gives a table of common issues and the message each one shows:

Issue Message
Connectivity failure "Slack cannot connect."
Loading trouble "For some reason, Slack couldn’t load"
Server error "Sorry! Something went wrong, but we’re looking into it"
WebSocket trouble "Last updated less than a minute ago…" (the error appears in a grey banner)
Browser errors An error message in the browser used to reach Slack

The grey banner is the WebSocket row. Slack's page for network administrators says "Slack must have a persistent connection between our messaging server and members’ apps or browsers. To do so, Slack uses WebSockets over port 443." The page on common issues describes the banner as WebSocket trouble: when Slack has trouble maintaining WebSocket connections, new messages stop arriving automatically.

The page for network administrators says proxies and firewalls "can sometimes interrupt this connection." The proof steps below find which one.

Likely causes

Slack's pages name these:

Cause What Slack's page says
A proxy or firewall closes the WebSocket connection Proxies and firewalls can sometimes interrupt it, and an admin needs to adjust the proxy or firewall to keep the connection to Slack open
A proxy that decrypts SSL does not support WebSockets The proxy must support WebSockets, or the domains wss-primary.slack.com, wss-backup.slack.com and wss-mobile.slack.com must be exempted from decryption
Slack's addresses are not on the allowlist Slack asks admins to add all URLs listed at https://my.slack.com/help/urls to the allowlist
Security or ad-blocking software on the computer Slack's list includes Avira Browser Safety, Browser Guard, Pokki, Smart Panel, spyware and adware, Visual Discovery by Superfish, and antivirus or ad-blocking products such as Avast, McAfee, Norton, AVG and AdBlock Plus
An old desktop app Older versions of the desktop app can cause connection issues and broken features

Prove the cause before changing anything

All of these steps only read, apart from the one that opens a test page.

  1. Work out the scope. Does the banner appear for everyone at one site, for one person anywhere, or for everyone? Slack's page for admins says that if someone "can’t connect from a specific location, or if there’s a WebSocket failure in our Slack connection test", the proxy or firewall needs adjusting.

  2. Run Slack's connection test. Slack's page for admins says to sign in to the Slack workspace and visit https://my.slack.com/help/test. Under the WebSockets section, note the results for "WebSocket (Flannel [Primary])" and "WebSocket (Flannel [Backup])". A successful test shows a ticked circle icon and a failed test shows a warning icon. The page for users gives the address slack.com/help/test.

  3. Read the list of required addresses. Visit https://my.slack.com/help/urls and compare it with the allowlist in your proxy or firewall. Slack says that if your environment needs access to several workspaces or organisations, visit that page from each one.

  4. Find out whether the proxy is running SSL decryption. If it is, check whether the proxy supports WebSockets, and whether the three wss domains are exempt.

  5. Check the computer. Check that the desktop app is up to date. If Slack is deployed on several Windows machines, Slack's page says the app can update automatically through the MSI installer.

Fix

Choose the step that matches the proof. Changes to a proxy or firewall are made in that product's own settings.

Allow Slack's addresses

Write down the time and the current allowlist entries in your proxy or firewall that mention slack.com, with the name of the rule or policy they sit in.

Risk: the next step changes what your proxy or firewall allows for every user behind it, not just the person who saw the banner. A wrong entry can open more than intended or leave the problem in place.

Visit https://my.slack.com/help/urls and add all the URLs it specifies to the allowlist. If people need several workspaces or organisations, visit that page from each one.

To undo it: set the allowlist back to the entries you wrote down, using your proxy or firewall's own interface.

Exempt the WebSocket domains from SSL decryption

This step applies when the proxy decrypts SSL and does not support WebSockets. Write down the time and the current exemption (bypass) list for SSL decryption in your proxy.

Risk: the next step stops the proxy inspecting traffic to three Slack domains for every user behind it. Slack's page gives it as the alternative when the proxy does not support WebSockets. Your security policy may need to approve it first.

Exempt these domains from SSL decryption:

wss-primary.slack.com
wss-backup.slack.com
wss-mobile.slack.com

To undo it: set the exemption list back to the entries you wrote down.

Check client security and browser rules

If Slack works on a comparable, approved browser or device, check access rules with the team that manages security software. Ask them to check Slack’s allowed domains rather than disabling endpoint protection on a working computer.

Collect a net log for Slack

If the banner stays after the network side is corrected, Slack's page says to collect a net log and send it to Slack. Write down the time and the workspace you are signed in to.

Disruptive step: the next step restarts the Slack desktop app and starts recording a net log. The app is unavailable while it restarts. A restart cannot be reversed. The log is a file that you send to Slack, so decide who may send it first.

In the Slack desktop app, click Help in the menu bar (on Windows 10, click the three lines icon at the upper left of the Slack app), select Troubleshooting, then click Restart and collect net logs. When the app restarts, a pop-up shows "Your log is in progress". Use Slack as you would at other times. When the banner appears, go back to the pop-up window and click Stop logging. The zip file is in the Downloads folder.

To undo it: click Stop logging to end the recording. The restart itself is not reversed.

Slack's page gives a second route for Google Chrome. Write down the time before you start.

Disruptive step: the next step starts a recording in Chrome that writes a log file to disk, and the file is one you send to Slack, so decide who may send it first.

Go to chrome://net-export/, click Start logging to disk, save the file as slackNetlog, open the workspace in a new tab, and when the issue occurs return to the chrome://net-export/ tab and click Stop logging.

To undo it: return to the chrome://net-export/ tab and click Stop logging. The file already written stays on disk.

Confirm the fix

  • The banner no longer appears and new messages arrive without a reload.
  • In Slack's connection test, "WebSocket (Flannel [Primary])" and "WebSocket (Flannel [Backup])" both show the ticked circle.
  • The result holds for other people on the same network, not only the person who tested.

What to watch afterwards

  • The list at https://my.slack.com/help/urls. Slack asks admins to add everything on it, and the list is the thing to compare after a firewall or proxy change.
  • Proxy or firewall upgrades and policy changes. Our own advice: a new SSL decryption policy is worth checking against Slack's requirement that the proxy supports WebSockets or exempts the three domains.
  • New security software on desktops, from the families Slack names.
  • Desktop app versions. Slack says older versions can cause connection issues.

Risks and limits

Slack publishes the port (443), the three domains and the list of URLs; the changes themselves are made through the proxy or firewall product's own interface. Slack's page says a WebSocket failure in its connection test means the proxy or firewall needs adjusting. Disabling antivirus is a temporary test, not a fix. If the network is correct and the banner stays, Slack's page says to send a net log.

Sources