Can't establish connection to QZ with Firefox 57.0.1 (64-bit) but still works in Chrome?

804 views
Skip to first unread message

Bernie

unread,
Dec 3, 2017, 6:49:28 PM12/3/17
to qz-print
Hi,

For some reason QZ just stopped working in Firefox for me, I'm using version 57.0.1 (64-bit).  It use to work fine but now it doesn't; however, it still works properly in Chrome.

Are there any issues with QZ not working in the new Firefox?  Is there a way I can further debug this to see what the issue is?

Firefox can’t establish a connection to the server at wss://localhost:8181/. - qz-tray.js:105:51
Firefox can’t establish a connection to the server at wss://localhost:8282/. - qz-tray.js:105:51
Firefox can’t establish a connection to the server at wss://localhost:8383/. - qz-tray.js:105:51
Firefox can’t establish a connection to the server at wss://localhost:8484/. - qz-tray.js:105:51
Firefox can’t establish a connection to the server at wss://localhost.qz.io:8181/. - qz-tray.js:105:51
Firefox can’t establish a connection to the server at wss://localhost.qz.io:8282/. - qz-tray.js:105:51
Firefox can’t establish a connection to the server at wss://localhost.qz.io:8383/. - qz-tray.js:105:51
Firefox can’t establish a connection to the server at wss://localhost.qz.io:8484/. - qz-tray.js:105:51

Error
columnNumber: 40
fileName: "https://www.domain.com/qz/js/qz-tray.js"
lineNumber: 84
message: "Unable to establish connection with QZ"
stack: "deeper@https://www.domain.com/qz/js/qz-tray.js:84:40\nfindConnection/_qz.websocket.connection.onerror@https://www.domain.com/qz/js/qz-tray.js:146:29\n"
__proto__: Object { … }

Thank you!

Tres Finocchiaro

unread,
Dec 3, 2017, 10:03:56 PM12/3/17
to olimits7, qz-print
Quantum (on Windows) switched to 64-bit and I don't think the configurations were migrated 100% from the 32-bit when Mozilla did this.

Can you double check you're now running from Program Files, without x86 in the path.

If this is true, can you see if reinstalling finds the 64-bit?  If Mozilla properly uninstalled the 32-bit our installer should take care of the rest.

In the mean time we'll do some unit tests and see if we can reproduce.

--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bernie

unread,
Dec 3, 2017, 10:37:37 PM12/3/17
to qz-print
Thanks for the quick reply!

I actually checked both the "Program Files" and "Program Files (x86)" folders and I see Firefox installed in both locations.  I then opened the *.exe that's in each folder and they both open up the 57.0.1 (64-bit) Firefox version.

The shortcut that I have on my desktop opens up the 57.0.1 (64-bit) Firefox *.exe that's in the "Program Files (x86)" folder.

Should I uninstall Firefox and install it again and then run the QZ Tray installer again? 

Thank you!
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.

Tres Finocchiaro

unread,
Dec 3, 2017, 11:03:49 PM12/3/17
to Bernie, qz-print
No, simply reinstalling QZ Tray seems to fix it.  This is a bad upgrade from the Firefox team.  They should have ported over the certificate database from 56.  Reinstalling it fixed it on my machine just now (I was still on 56).  Can you confirm that reinstalling QZ Tray fixes this for you too?

If a user that experiences this doesn't have admin rights but needs to use QZ Tray, a temporary solution is to visit https://localhost:8181 and add the exception.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+unsubscribe@googlegroups.com.

Bernie

unread,
Dec 4, 2017, 12:30:48 AM12/4/17
to qz-print
I tried reinstalling QZ Tray but I still had the same issue.

I then tried the https://localhost:8181 add exception workaround and this seemed to work and it prints on Firefox now; not sure why reinstalling QZ Tray didn't work.

Thank you!

Tres Finocchiaro

unread,
Dec 4, 2017, 12:48:13 AM12/4/17
to Bernie, qz-print
not sure why reinstalling QZ Tray didn't work.

Me neither and it's concerning as others will have the same issue as well.  Currently our installers looks in the 32-bit registry as well as the 64-bit registry for Firefox installations and uses the first location for installing the certificate.  On my machine, I opened Firefox, it automatically upgraded itself to 57, and it broke QZ Tray.

Next, I reinstalled QZ Tray and it properly found Firefox in "C:\Program Files\Mozilla Firefox\firefox.exe" and installed the certificate.

My old Firefox folder still exists at C:\Program Files (x86)\Mozilla Firefox but it does not contain the Firefox executable.  Does yours?


To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+unsubscribe@googlegroups.com.

Tres Finocchiaro

unread,
Dec 4, 2017, 12:48:53 AM12/4/17
to Bernie, qz-print
Note also, reinstalling QZ Tray will regenerate a brand new cert, so you can unit-test this simply by reinstalling, it should break (or work) each time.

Bernie

unread,
Dec 4, 2017, 10:08:54 AM12/4/17
to qz-print

Yeah, my Firefox executable still exists in the "C:\Program Files (x86)\Mozilla Firefox\" folder and if I click on this executable it still opens the 64-bit version instead of the 32-bit version.

I'm not sure maybe the 32-bit registry doesn't exist anymore?  Where exactly are the 32-bit and 64-bit located in the registry?  I'll try looking to see if the 32-bit registry doesn't exist anymore.

Thank you!

Tres Finocchiaro

unread,
Dec 4, 2017, 10:32:32 AM12/4/17
to Bernie, qz-print
HKLM\Software\Mozilla\Mozilla Firefox\CurrentVersion(e.g. "57.0")

Then we read HKLM\Software\Mozilla\Mozilla Firefox 57.0\PathToExe

We use the path inside that registry key to install the certificate.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+unsubscribe@googlegroups.com.

Bernie

unread,
Dec 5, 2017, 10:55:56 AM12/5/17
to qz-print
I checked my registry and see my Firefox installation is pointing to the "Program Files" copy.  I noticed the shortcut I have on my desktop pointed to the "Program Files (x86)" version, so I ended up switching this to the "Program Files" version.

I then installed "QZ Tray v2.0.5", removed the exception, and it now works properly in Firefox; however, a new issue occurred.  I print to a Zebra label printer where I print labels that are 3x5, and I set these values in the "page width" / "page length" parameters of QZ Tray.  I've been running "QZ Tray v2.0.2" and it has worked fine printing in this version but when I upgraded to "QZ Tray v2.0.5" I noticed when I print to my Zebra labels the text is extremely small.

I ended up reinstalling "QZ Tray v2.0.2" again and my Zebra label text prints correctly, but then I have that Firefox issue again and need to add the exception to Firefox.

Why does "QZ Tray v2.0.5" cause my Zebra label text to print so small if I'm still using the "page width" / "page length" parameters?

Thank you!

Tres Finocchiaro

unread,
Dec 5, 2017, 1:27:49 PM12/5/17
to Bernie, qz-print
Just to confirm the original issue, there seems to be something wrong with the Firefox upgrade on this machine where it had two versions installed. We only support one version of Firefox currently.  We plan to add support for multiple versions in the future and we're tracking that here:


The second issue (page size) has a new dedicated topic here: https://groups.google.com/forum/#!topic/qz-print/kpUaDvWNrks

Thanks for confirming that Firefox is working. :)
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+unsubscribe@googlegroups.com.

Bernie

unread,
Dec 5, 2017, 2:01:30 PM12/5/17
to qz-print
Yes, that's correct.  When I install QZ Tray v2.0.5 and open up the Firefox executable that is listed in the registry it connects properly in Firefox without needing to add an exception.

Thank you!
Reply all
Reply to author
Forward
0 new messages