Chat Java error


If you are a Zammad Support or hosted customer and experience a technical issue, please refer to: using your zammad-hostname / or company contract.

  • Used Zammad version: 2.7
  • Used Zammad installation source: (source, package, …) RPM Package
  • Operating system: Centos 7
  • Browser + version: Chrome 71/Firefox

Expected behavior:

  • Chat Window Opens

Actual behavior:

  • Chat Window fails to open

Steps to reproduce the behavior:

  • Load the page…

I am receiving this error in the debug output of the java script. I don’t believe the WS on port 6042 should be exposed to the internet since it is bound to the localhost only? I did need to update the nginx config to not use localhost hostname but as it seems that the below do not bind to a IPv6 local address on the host and was causing some internal connection timeouts trying to connect to [::1]:6042 The website is being served using HTTPS only. I also picked up that agents do not see any options to choose which chatID they would like to receive chats on… it just displays the form headers but with no content.

upstream zammad-railsserver {

upstream zammad-websocket {

Java Error:
io debug || onMessage [{“event”:“error”,“data”:{“error”:“No connection pool with ‘primary’ found.”,“payload”:{“event”:“chat_status_customer”,“data”:{“session_id”:null,“url”:“","chat_id”:1}}}}]

chat debug || ws:onmessage

1. Object

  1. data: {error: "No connection pool with 'primary' found.", payload: {…}}
  2. event: "error"
  3. __proto__: Object

Hi. Did you find the solution to your problem?
I have the same situation and I have not managed to make the chat open in the browser.


Nope, no luck yet in trying to figure out why its not working. I tried different jquery versions, and tried some other debug ideas, but no luck yet…

I also keep getting this error… :frowning:

io debug || onMessage [{“event”:“error”,“data”:{“error”:“No connection pool with ‘primary’ found.”,“payload”:{“event”:“chat_status_customer”,“data”:{“session_id”:null,“url”:“http://myurl/","chat_id”:1}}}}]

Already tried jQuery 3 and still the same error.

No1 can help with this?

Is there any condition that we can force the session_id to not be null?


that is this bug:

For a hot-fix replace /opt/zammad/lib/sessions/event/base.rb with this file

1 Like

@d-j keep on the good work! :heart_eyes_cat:

1 Like

Hi @InsaneSplash @pbarbosaPT
a fix based upon the issue provied by @d-j is on the way.
CI is running the tests right now, if this succeeds we merge it.

Thanks to @d-j


Update: It’s fixed now in stable (2.7) and develop (upcoming 2.8) now (just update your Zammad package). As reference seed

Thanks and credits to @d-j !

Great! Thanks for the help and fix!

I am just running through some tests, but one of my agents had the chat disabled, but when she clicked on it (due to an alert) she joined the chat…

Looks fine now!

But I have a question, the chat is only for Agent, is there a possibility of the Customer interact before the Agent?

What kind of interaction do you need ?

Just giving the ideia, similar to zendesk for example, the client can open the chat box, place the email and text for question. At the moment, the current chat, requires the Customer to open and wait in line.

Where do you see the difference in our solution?
IMHO we do this ?


Your solution is also great, 5* don’t interpret it in the wrong way! - Zendesk (Customer opening chat) - Zammad (Customer opening chat)

That’s what I meant :slight_smile:

If we can already do this… then I apologize, I’m clueless on how to do it :frowning:

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.