QZ Tray stopped working with scale and printer

772 views
Skip to first unread message

chadm...@gmail.com

unread,
Jul 30, 2019, 3:51:31 PM7/30/19
to qz-print
After we upgraded to 2.0.10, re-added the authcert.override=override.crt to the properties file, and restarted everything, we are no longer able to use our scale or label printer with Qz Tray. Is there something else we need to do to get things working again? Do we need a new private-key or anything? Did the API change a bit?

We are using Chrome. Also, true is returned when firing qz.websocket.isActive() in the browsers console.

Chad

Tres Finocchiaro

unread,
Jul 30, 2019, 5:11:51 PM7/30/19
to chadm...@gmail.com, qz-print
Did you swap out the qz-tray.js file?

-Tres


--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/3cb0178d-8419-4321-a3f6-d10aefc0c8d9%40googlegroups.com.

Grampa

unread,
Jul 31, 2019, 11:07:59 AM7/31/19
to qz-print
No. But now I have! Thanks.

Yet, it still didn't work although qz.websocket.isActive() still returns true. Any ideas on what to look into now? I don't have to make a new private-key?

In case this helps shed some light on what's going on, here's a couple more things I've seen.

1) When firing qz.hid.listDevices in the console, this is returned: {
  id: 19,
  _label: undefined,
  _result: undefined,
  _state: undefined,
  subscribers: []
}

2) In the event label printing goes awry for our users, we included a "Disable/Enable QzTray" toggle button in our UI so they can revert to our old way of printing. But what's weird (to me) is that when Disable QzTray is clicked, [Code Block 1] runs, but then the catch from the earlier ran [Code Block 2] fires. So the catch is some callback that lasts forever?

In this situation, when the catch's console.error(e) is hit, it produces 'Connection closed before response received' in the console.


Code Block 1:
if (qz.websocket.isActive()) {
  qz.websocket.disconnect();
}

Code Block 2:
qz.websocket.connect().then(function() {
    return qz.hid.claimDevice(scaleInfo.vendorId, scaleInfo.productId);
}).then(function() {
     qz.hid.openStream({  // Note: Some hardware such as Fairbanks scales use '6' for byte length. Adjust as needed.
        vendorId: scaleInfo.vendorId,
        productId: scaleInfo.productId,
        responseSize: '6',
        interval: 500
    });
    genericGlobalSpinner.stop();
}).catch(function(e){
    console.error(e);
});

On Tuesday, July 30, 2019 at 4:11:51 PM UTC-5, Tres Finocchiaro wrote:
Did you swap out the qz-tray.js file?

-Tres

On Tue, Jul 30, 2019 at 3:51 PM <chadm...@gmail.com> wrote:
After we upgraded to 2.0.10, re-added the authcert.override=override.crt to the properties file, and restarted everything, we are no longer able to use our scale or label printer with Qz Tray. Is there something else we need to do to get things working again? Do we need a new private-key or anything? Did the API change a bit?

We are using Chrome. Also, true is returned when firing qz.websocket.isActive() in the browsers console.

Chad

--
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-p...@googlegroups.com.

Tres Finocchiaro

unread,
Aug 1, 2019, 11:11:37 AM8/1/19
to Grampa, qz-print
> I don't have to make a new private-key?

No, you can reuse your existing cert and key.  Licensing is identical for 1.9, 2.0 and 2.1 versions.

> if (qz.websocket.isActive()) qz.websocket.disconnect();

I recommend you just wrap the promise to resolve if it's already active.  Disconnecting is overkill and if not in a proper promise chain can cause strange race conditions.

Here's an example:

> qz.hid.openStream

 _label: undefined,
  _result: undefined,
  _state: undefined,
  subscribers: []

Weird.  We unit test with our 2.1 sample.html page (and compat test with our 2.0 sample.html page) so we might have missed something.  I'll test HID streaming from both pages and let you know what happens.

-Tres



To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/dcea944f-8be4-4f93-a660-a9384a3351e2%40googlegroups.com.

Tres Finocchiaro

unread,
Aug 1, 2019, 11:42:03 AM8/1/19
to Grampa, qz-print
I'm using the 2.1 QZ Tray, the 2.1 sample.html with the 2.1 qz-tray.js and HID works fine.
I'm using the 2.1 QZ Tray, the 2.0 sample.html with the 2.0 qz-tray.js and HID works fine.

It sounds like your websocket connection is dying early and that could be certificate related, or something else.

Can you try the following:
  1. Remove %appdata%\qz
  2. Purge C:\Program Files\QZ Tray\
  3. Reinstall QZ Tray 2.1
  4. Test HID with the sample.html that's in our demo folder.
If that works, something else is happening with your code.  I'd recommend you provide your console logs to see if QZ Tray is crashing with your cert.  We don't unit test the community version, so you may have found a bug, and we'd be happy tio fix it.

To get the console logs directly:

java -Xms512M -jar "%PROGRAMFILES%\QZ Tray\qz-tray.jar"

-Tres

Grampa

unread,
Aug 13, 2019, 9:38:02 AM8/13/19
to qz-print
I did remove the disconnecting and re-wrote my code to be like your connectAndPrint example, but still no luck. I did "java -Xms512M -jar "%PROGRAMFILES%\QZ Tray\qz-tray.jar" as you said below (but I think you posted on the wrong thread, we have the premium version), and I got this. Does it tell you anything I should try?

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP
rivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
[DEBUG] 2019-08-12 16:19:20,557 @ qz.auth.Certificate:?
        Using trusted root certificate: CN=qzindustries.com, O=QZ Industries, LL
C (8ef2c0b2fe3f75754245b3fb9d54c0caa1b46bb3)
[INFO] 2019-08-12 16:19:20,557 @ qz.auth.CRL:?
        Loading CRL from https://crl.qz.io
[DEBUG] 2019-08-12 16:19:21,041 @ qz.utils.ShellUtilities:?
        Executing: [C:\windows\system32\reg.exe, query, HKCU\Software\Microsoft\
Windows\CurrentVersion\Run\, /v, QZ Tray]
[WARN] 2019-08-12 16:19:21,712 @ org.eclipse.jetty.util.component.AbstractLifeCy
cle:212
        FAILED ServerConnector@194d431{HTTP/1.1}{0.0.0.0:8182}: java.net.BindExc
eption: Address already in use: bind
java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:32
1)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNet
workConnector.java:80)
        at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java
:236)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
        at org.eclipse.jetty.server.Server.doStart(Server.java:366)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
        at qz.ws.PrintSocketServer.runServer(Unknown Source)
        at qz.ws.PrintSocketServer.main(Unknown Source)
[WARN] 2019-08-12 16:19:21,727 @ org.eclipse.jetty.util.component.AbstractLifeCy
cle:212
        FAILED ServerConnector@67ae56{SSL-HTTP/1.1}{0.0.0.0:8181}: java.net.Bind
Exception: Address already in use: bind
java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:32
1)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNet
workConnector.java:80)
        at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java
:236)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
        at org.eclipse.jetty.server.Server.doStart(Server.java:366)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
        at qz.ws.PrintSocketServer.runServer(Unknown Source)
        at qz.ws.PrintSocketServer.main(Unknown Source)
[WARN] 2019-08-12 16:19:21,727 @ org.eclipse.jetty.util.component.AbstractLifeCy
cle:212
        FAILED org.eclipse.jetty.server.Server@4f30ec: MultiException[java.net.B
indException: Address already in use: bind, java.net.BindException: Address alre
ady in use: bind]
MultiException[java.net.BindException: Address already in use: bind, java.net.Bi
ndException: Address already in use: bind]
        at org.eclipse.jetty.server.Server.doStart(Server.java:329)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
        at qz.ws.PrintSocketServer.runServer(Unknown Source)
        at qz.ws.PrintSocketServer.main(Unknown Source)
        Suppressed: java.net.BindException: Address already in use: bind
                at sun.nio.ch.Net.bind0(Native Method)
                at sun.nio.ch.Net.bind(Unknown Source)
                at sun.nio.ch.Net.bind(Unknown Source)
                at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
                at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
                at org.eclipse.jetty.server.ServerConnector.open(ServerConnector
.java:321)
                at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(Abs
tractNetworkConnector.java:80)
                at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnec
tor.java:236)
                at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Abst
ractLifeCycle.java:68)
                at org.eclipse.jetty.server.Server.doStart(Server.java:366)
                ... 3 more
Caused by: java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:32
1)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNet
workConnector.java:80)
        at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java
:236)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
        at org.eclipse.jetty.server.Server.doStart(Server.java:366)
        ... 3 more
[DEBUG] 2019-08-12 16:19:21,774 @ qz.ws.SingleInstanceChecker:?
        Checking for a running instance of QZ Tray on port 8182
[DEBUG] 2019-08-12 16:19:21,805 @ qz.ws.SingleInstanceChecker:?
        Checking for a running instance of QZ Tray on port 8384
[DEBUG] 2019-08-12 16:19:21,821 @ qz.ws.SingleInstanceChecker:?
        Checking for a running instance of QZ Tray on port 8485
[INFO] 2019-08-12 16:19:21,836 @ qz.ws.PrintSocketServer:?
        Server started on port(s) 8283, 8282
[WARN] 2019-08-12 16:19:21,930 @ qz.ws.SingleInstanceChecker:?
        Connection closed, null
[WARN] 2019-08-12 16:19:21,930 @ qz.ws.SingleInstanceChecker:?
        QZ Tray is already running on localhost/127.0.0.1:8182
[WARN] 2019-08-12 16:19:21,961 @ qz.ws.PrintSocketServer:?
        The web socket server is no longer running
[WARN] 2019-08-12 16:19:24,988 @ org.eclipse.jetty.util.thread.QueuedThreadPool:
178
        WebSocketClient@11398629{STOPPING,8<=8<=200,i=0,q=1} Couldn't stop Threa
d[WebSocketClient@11398629-45,5,main]

C:\Users\OCOMM>java -Xms512M -jar "%PROGRAMFILES%\QZ Tray\qz-tray.jar"
[INFO] 2019-08-12 16:22:58,185 @ qz.ws.PrintSocketServer:?
        QZ Tray version: 2.0.10
[INFO] 2019-08-12 16:22:58,185 @ qz.ws.PrintSocketServer:?
        QZ Tray vendor: QZ Industries, LLC
[INFO] 2019-08-12 16:22:58,185 @ qz.ws.PrintSocketServer:?
        Java version: 1.8.0+202
[INFO] 2019-08-12 16:22:58,185 @ qz.ws.PrintSocketServer:?
        Java vendor: Oracle Corporation
[DEBUG] 2019-08-12 16:22:58,309 @ qz.utils.ShellUtilities:?
        Executing: [C:\windows\system32\reg.exe, query, HKCU\Software\Microsoft\
Windows\CurrentVersion\Themes\Personalize, /v, AppsUseLightTheme]
[DEBUG] 2019-08-12 16:22:59,027 @ qz.utils.ShellUtilities:?
        Executing: [C:\windows\system32\reg.exe, query, HKCU\Software\Microsoft\
Windows\CurrentVersion\Internet Settings\Zones\1, /v, Flags]
[DEBUG] 2019-08-12 16:22:59,136 @ qz.utils.ShellUtilities:?
        Executing: [C:\windows\system32\reg.exe, query, HKCU\Software\Classes\Lo
cal Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\micr
osoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\ExperimentalFeatures, /v, AllowL
ocalhostLoopback]
[INFO] 2019-08-12 16:22:59,370 @ qz.deploy.DeployUtilities:?
        Main properties file C:\Program Files\QZ Tray\qz-tray.properties
java.io.FileNotFoundException: override.crt (The system cannot find the file spe
cified)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at qz.utils.FileUtilities.readLocalFile(Unknown Source)
        at qz.auth.Certificate.<clinit>(Unknown Source)
        at qz.common.TrayManager.addMenuItems(Unknown Source)
        at qz.common.TrayManager.<init>(Unknown Source)
        at qz.ws.PrintSocketServer$1.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP
rivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
[DEBUG] 2019-08-12 16:22:59,448 @ qz.auth.Certificate:?
        Using trusted root certificate: CN=qzindustries.com, O=QZ Industries, LL
C (8ef2c0b2fe3f75754245b3fb9d54c0caa1b46bb3)
[INFO] 2019-08-12 16:22:59,448 @ qz.auth.CRL:?
        Loading CRL from https://crl.qz.io
[DEBUG] 2019-08-12 16:22:59,620 @ qz.utils.ShellUtilities:?
        Executing: [C:\windows\system32\reg.exe, query, HKCU\Software\Microsoft\
Windows\CurrentVersion\Run\, /v, QZ Tray]
[WARN] 2019-08-12 16:23:00,322 @ org.eclipse.jetty.util.component.AbstractLifeCy
cle:212
        FAILED ServerConnector@194d431{HTTP/1.1}{0.0.0.0:8182}: java.net.BindExc
eption: Address already in use: bind
java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:32
1)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNet
workConnector.java:80)
        at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java
:236)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
        at org.eclipse.jetty.server.Server.doStart(Server.java:366)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
        at qz.ws.PrintSocketServer.runServer(Unknown Source)
        at qz.ws.PrintSocketServer.main(Unknown Source)
[WARN] 2019-08-12 16:23:00,322 @ org.eclipse.jetty.util.component.AbstractLifeCy
cle:212
        FAILED ServerConnector@67ae56{SSL-HTTP/1.1}{0.0.0.0:8181}: java.net.Bind
Exception: Address already in use: bind
java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:32
1)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNet
workConnector.java:80)
        at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java
:236)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
        at org.eclipse.jetty.server.Server.doStart(Server.java:366)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
        at qz.ws.PrintSocketServer.runServer(Unknown Source)
        at qz.ws.PrintSocketServer.main(Unknown Source)
[WARN] 2019-08-12 16:23:00,322 @ org.eclipse.jetty.util.component.AbstractLifeCy
cle:212
        FAILED org.eclipse.jetty.server.Server@4f30ec: MultiException[java.net.B
indException: Address already in use: bind, java.net.BindException: Address alre
ady in use: bind]
MultiException[java.net.BindException: Address already in use: bind, java.net.Bi
ndException: Address already in use: bind]
        at org.eclipse.jetty.server.Server.doStart(Server.java:329)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
        at qz.ws.PrintSocketServer.runServer(Unknown Source)
        at qz.ws.PrintSocketServer.main(Unknown Source)
        Suppressed: java.net.BindException: Address already in use: bind
                at sun.nio.ch.Net.bind0(Native Method)
                at sun.nio.ch.Net.bind(Unknown Source)
                at sun.nio.ch.Net.bind(Unknown Source)
                at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
                at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
                at org.eclipse.jetty.server.ServerConnector.open(ServerConnector
.java:321)
                at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(Abs
tractNetworkConnector.java:80)
                at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnec
tor.java:236)
                at org.eclipse.jetty.util.component.AbstractLifeCycle.start(Abst
ractLifeCycle.java:68)
                at org.eclipse.jetty.server.Server.doStart(Server.java:366)
                ... 3 more
Caused by: java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:32
1)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNet
workConnector.java:80)
        at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java
:236)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
        at org.eclipse.jetty.server.Server.doStart(Server.java:366)
        ... 3 more
[DEBUG] 2019-08-12 16:23:00,353 @ qz.ws.SingleInstanceChecker:?
        Checking for a running instance of QZ Tray on port 8182
[DEBUG] 2019-08-12 16:23:00,384 @ qz.ws.SingleInstanceChecker:?
        Checking for a running instance of QZ Tray on port 8384
[DEBUG] 2019-08-12 16:23:00,384 @ qz.ws.SingleInstanceChecker:?
        Checking for a running instance of QZ Tray on port 8485
[INFO] 2019-08-12 16:23:00,400 @ qz.ws.PrintSocketServer:?
        Server started on port(s) 8283, 8282
[WARN] 2019-08-12 16:23:00,431 @ qz.ws.SingleInstanceChecker:?
        Connection closed, null
[WARN] 2019-08-12 16:23:00,431 @ qz.ws.SingleInstanceChecker:?
        QZ Tray is already running on localhost/127.0.0.1:8182
[WARN] 2019-08-12 16:23:00,447 @ qz.ws.PrintSocketServer:?
        The web socket server is no longer running
[WARN] 2019-08-12 16:23:03,473 @ org.eclipse.jetty.util.thread.QueuedThreadPool:
178
        WebSocketClient@11398629{STOPPING,8<=8<=200,i=0,q=1} Couldn't stop Threa
d[WebSocketClient@11398629-45,5,main]

Tres Finocchiaro

unread,
Aug 13, 2019, 9:39:59 AM8/13/19
to Grampa, qz-print
The log suggest you already have something running on 8181 when you're testing.

Perhaps you still had the desktop version running when you were running your tests?


--
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+u...@googlegroups.com.

Grampa

unread,
Aug 13, 2019, 9:43:48 AM8/13/19
to qz-print
I don't know what you mean by desktop version. We only have 1 QzTray installed on that computer.

Tres Finocchiaro

unread,
Aug 13, 2019, 9:46:05 AM8/13/19
to Grampa, qz-print
Sorry for any confusion.  QZ Tray runs on port 8181, 8182.

The debugging procedure (run from terminal/console) requires you to first close QZ Tray if it's already running.  If you do not, QZ Tray will complain that something is already running on ports 8181, 8282.

Furthemore, if another application is using these ports, it can cause problems.




On Tue, Aug 13, 2019 at 9:43 AM Grampa <chadm...@gmail.com> wrote:
I don't know what you mean by desktop version. We only have 1 QzTray installed on that computer.

--
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+u...@googlegroups.com.

Grampa

unread,
Nov 7, 2019, 2:07:16 PM11/7/19
to qz-print
Finally getting back to this project. I never did get it to work.

Continuing where we left off, the logs said "FileNotFoundException: override.crt", and, indeed, override.crt is not in the QZ Tray/Auth folder. root-ca.crt is, but not override.crt. Where does this override.crt file come from? I see a lot of instruction about digital-certificate.txt and private-key.pem, but nowhere do I see override.crt referred to other than the type authcert.override=override.crt into qz-tray.properties step.

Tres Finocchiaro

unread,
Nov 7, 2019, 2:08:55 PM11/7/19
to Grampa, qz-print
Where does this override.crt file come from?

The official installers never offer this file.  It's a site-specific file to replace the "licensing" component used to validate a "trusted" site.

On Thu, Nov 7, 2019 at 2:07 PM Grampa <chadm...@gmail.com> wrote:
Finally getting back to this project. I never did get it to work.

Continuing where we left off, the logs said "FileNotFoundException: override.crt", and, indeed, override.crt is not in the QZ Tray/Auth folder. root-ca.crt is, but not override.crt. Where does this override.crt file come from? I see a lot of instruction about digital-certificate.txt and private-key.pem, but nowhere do I see override.crt referred to other than the type authcert.override=override.crt into qz-tray.properties step.

--
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+u...@googlegroups.com.

Grampa

unread,
Nov 7, 2019, 2:13:55 PM11/7/19
to qz-print
I'm sorry I'm still lost, but, so what do I need to do to move forward?


On Thursday, November 7, 2019 at 1:08:55 PM UTC-6, Tres Finocchiaro wrote:
Where does this override.crt file come from?

The official installers never offer this file.  It's a site-specific file to replace the "licensing" component used to validate a "trusted" site.
On Thu, Nov 7, 2019 at 2:07 PM Grampa <chadm...@gmail.com> wrote:
Finally getting back to this project. I never did get it to work.

Continuing where we left off, the logs said "FileNotFoundException: override.crt", and, indeed, override.crt is not in the QZ Tray/Auth folder. root-ca.crt is, but not override.crt. Where does this override.crt file come from? I see a lot of instruction about digital-certificate.txt and private-key.pem, but nowhere do I see override.crt referred to other than the type authcert.override=override.crt into qz-tray.properties step.

--
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-p...@googlegroups.com.

Tres Finocchiaro

unread,
Nov 7, 2019, 2:26:27 PM11/7/19
to Grampa, qz-print
Well, if someone gave you a desktop installer that create an entry for "override.crt", you'd have to talk to the person that gave you that installer.

QZ Industries, LLC, the company that makes the official installers from https://qz.io/download as well as the installers hosted at https://github.com/tresf/tray/releases will wipe out the qz-tray.properties file on install, so this "override.crt" shouldn't even exist in the properties file if you're using an official version.

If you're a premium customer (or prospecting) and would like assistance, we'd be happy to take the conversation private and remote into your machine.

Note, we do not help with version of the software that have been modified, it needs to be our installer from one of the above locations.

-Tres


To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/cb960d98-8d95-4ce2-8177-144de1921986%40googlegroups.com.

Grampa

unread,
Nov 7, 2019, 3:22:34 PM11/7/19
to qz-print
Na, I added authcert.override=override.crt the properties file myself because I thought I was supposed to. I have reversed this now. And we are a premium customer.

So after reverting the properties file and trying to print again, I looked at the logs, and they stop at "...qz.ws.PrintSocketClient:? Received new certificate from connection through 49740". Also, I have a bunch of console logs in my javascript to see where things stop, and it seems to be right when qz.printers.getDefault() is called, then nothing happens, no resolve, no catch/fail.

Any ideas? Or should we instead make an appointment somehow for someone to remote in and debug?

Tres Finocchiaro

unread,
Nov 7, 2019, 3:57:44 PM11/7/19
to Grampa, qz-print
It sounds like the function qz.security.setSignaturePromise is dying.  You can add an empty "resolve()" like in our sample to at least get the dialogs back, but ultimately, you'll need to configure the cert and private key to get them to disappear.

We have made a few YouTube tutorials for configuring licensing:
If you're using a different back-end let us know.  Furthermore, we'd be happy to setup a call.

--
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+u...@googlegroups.com.

Grampa

unread,
Nov 7, 2019, 4:13:26 PM11/7/19
to qz-print
We are using Java backend, I'll look at this more tomorrow, and cool, we may have to do that call.




On Thursday, November 7, 2019 at 2:57:44 PM UTC-6, Tres Finocchiaro wrote:
It sounds like the function qz.security.setSignaturePromise is dying.  You can add an empty "resolve()" like in our sample to at least get the dialogs back, but ultimately, you'll need to configure the cert and private key to get them to disappear.

We have made a few YouTube tutorials for configuring licensing:
If you're using a different back-end let us know.  Furthermore, we'd be happy to setup a call.
On Thu, Nov 7, 2019 at 3:22 PM Grampa <chadm...@gmail.com> wrote:
Na, I added authcert.override=override.crt the properties file myself because I thought I was supposed to. I have reversed this now. And we are a premium customer.

So after reverting the properties file and trying to print again, I looked at the logs, and they stop at "...qz.ws.PrintSocketClient:? Received new certificate from connection through 49740". Also, I have a bunch of console logs in my javascript to see where things stop, and it seems to be right when qz.printers.getDefault() is called, then nothing happens, no resolve, no catch/fail.

Any ideas? Or should we instead make an appointment somehow for someone to remote in and debug?

--
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-p...@googlegroups.com.

Tres Finocchiaro

unread,
Nov 7, 2019, 4:34:53 PM11/7/19
to Grampa, qz-print
Java back-end is a tricky one to setup.

We have a generic Java code snippet, but we haven't made a comprehebnsive tutorial yet (e.g. websphere/tomcat/jboss) yet.

To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/9ac8c120-fe2e-4599-8200-142d89ceebad%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages