Firstly, a bit of a peek behind-the-scenes. Here is what happens when you attempt to connect to your Cloud Print instance:
- A user utilizes the Mobility Print Cloud link that their administrator provides them from their Cloud Print location; i.e. Manage existing links
- The user follows step 1; Download and run Mobility Print.
- The user follows step 2, which is to ‘Connect and get my printers’.
- The client workstation then communicates via Google APIs, STUN, & TURN to create the P2P connection (using ports 443, 3478 & 8883).
- The Mobility Print server receives a notification for the pending P2P connection and replies with the necessary information back to the client for adding the printer to the system’s local printers.
“Error occurred during printer discovery”
This message suggests that the client was not able to connect to the server. For Cloud printing, we rely on a few network infrastructure requirements in order for the client system to create a secure internet connection to the Mobility Print server.
Quite often, there is a firewall (e.g. Windows Defender), security device, or Antivirus software preventing access to the required ports & end-point URLs used by Mobility Print Cloud Print to communicate successfully with our Cloud services. Please take a look at the requirements here .
You can also run a quick Twilio network test on the Mobility server and one of the clients to confirm that both can communicate successfully with the Cloud service we use to establish the p2p connection: Twilio Network Test (note that you do not need to pass the voice or video tests, you can stop the test before these complete).
“All printers failed to install”
This error message “All printers failed to install” is seen specifically on Windows Mobility Print clients. It occurs when the client is able to reach the Mobility Print server successfully to fetch printers, but has a problem creating a print queue on the printer on the Windows operating system.
To name a few causes, this can happen if the Internet Printing Client feature is disabled in Windows, if the printer port is too long, or if the hostname on the Mobility Print client is greater than 15 characters.
Troubleshooting is discussed in full detail in our article Printers disappear after running the Windows Mobility Print installer .
Unable to reach print server: error creating client offer: 502 Bad Gateway"
The Windows or macOS Mobility Print client might display a notification that says “Print job failed” followed by “Unable to reach the print server: error creating client offer: 502 Bad Gateway.”
A 502 error indicates that the client has not received a valid response from the Mobility server or that the connection ended prematurely.
Potential causes:
-
The Mobility Print server might be offline. Verify that the Mobility server is powered up & online, i.e. not in sleep/hibernation mode.
-
The token is invalid due to:
- Cloud print invite link has expired.
- Cloud print invite link was deleted or changed.
-
The serverID on the client does not match the serverID on the Mobility server. This might occur if there is an old instance of Mobility Print installed that the client is still referencing. Since the serverID is uniquely generated upon installation, you will need to uninstalling & reinstall Mobility Print from scratch, create new invite link(s) then deploy the clients again to ensure everything matches up.
-
Less common but this error will sometimes be seen when migrating from a Mobility Print server without copying the
\data
folder from the previous server. Please refer to our article here .
An existing connection was forcibly closed
The exact error message seen in the Mobility Cloud Print client logs might appear as follows:
mobility-print-client.exe: STDOUT|turnc ERROR: 2021/01/0100:00:00 fail to refresh permissions: write tcp4 x.x.x.x:port→ x.x.x.x:443: wsasend: An existing connection was forcibly closed by the remote host.
Potential causes:
-
Check required ports are open for outbound communication ; 443 - TCP & 3478 UDP/TCP.
-
Check that antivirus, workstation or a physical site firewall isn’t terminating your port connections.
Timed out connecting to iot-core
The exact error message seen in the Mobility Cloud Print client logs might appear as follows:
`mobility-print.exe: STDOUT|DEV: Connecting... [ broker=tls:*//`mqtt.notifications.cloud.papercut.com`:8883 ]*
`
...
mobility-print.exe: STDOUT|DEV: Timed out connecting to iot-core. [ broker=tls:*//mqtt.notifications.cloud.papercut.com:8883 ]*
Potential causes:
This indicates the Mobility server is timing out when attempting to contact the required registration address for Cloud Print: tls://mqtt.notifications.cloud.papercut.com:8883
Check your ports are open for communication , particularly 443 & 8833. You will also need to check for each network card if the server machine has more than one NIC.
Reset the Cloud Print auth token
When troubleshooting a problem with Cloud Printing and authentication, it might be helpful to try removing the authorization token before re-testing.
To reset an existing Cloud Print client token on a workstation, you need to remove the auth.toml file and then restart the Mobility Print client.
The file locations are as follows:
- Windows:
%USERPROFILE%\AppData\Local\PaperCutMobilityPrintClient\auth.toml
- macOS:
~/Library/Application\ Support/PaperCutMobilityPrintClient/auth.toml
Comments