Troubleshooting UP Connector service
Installation problems
In case of problems during installation, it's recommended to check the install log. Default location is <install_dir> \UPConnector\logs\install.log
Service does not work properly
In case of problems with service, it's recommended to check the UP Connector log. Default location is <install_dir> \UPConnector\logs\upconnector.log
Updating or reinstalling the UP Connector
If you want to apply a new version of the UP Connector or reinstall the current one, it is recommended to uninstall the old version first and then install the new one. The default location of the uninstall script is <install_dir> \UPConnector\uninstall-win-service.cmd
Fresh install of the Universal Print Connector
To fully clean data from MS Universal Print that are used by YSoft SafeQ Universal Print Connector service, uninstall the service by uninstallation script and remove the folder C:\Windows\System32\config\systemprofile\.universal-print with all the content. Then you can install it again.
Larger jobs fail to print
The UP Connector can fail to print larger jobs (approximately 35MB+) in specific circumstances. This problem depends on the system and network load, and timeout setting for IPP operations.
You can check if UP Connector logs contain the error "The delegate executed asynchronously through TimeoutPolicy did not complete within the timeout." to verify this is indeed a timeout problem.
It is recommended to increase the default timeout of 5 minutes to a bigger value in order to resolve these problems. To increase the default timeout you will need to:
Open configuration file local.json in the UP Connector directory: <install_dir>\UPConnector\configuration\
Add new configuration value. "UniversalPrintConnectorOptions": { "UPIppConnectionRetryTimeout": "00:10:00" }
We recommend values between 5 and 30 minuteslocal.json example{
"ConnectorHubOptions"
: {
"ConnectorHubUri"
:
"https://upconnectorhuburi.azurewebsites.net"
,
"TenantId"
:
"<TenantGUID>"
,
"ClientId"
:
"<ClientGUID>"
},
"JobDeliveryOptions"
: {
"ForcePrintJobOperation"
:
false
},
"UniversalPrintConnectorOptions"
: {
"UPIppConnectionRetryTimeout"
:
"00:10:00"
}
}
Restart YSoft SafeQ Universal Print Connector service
Retry print operation
No print queue in MS Universal Print
If you don't see your new print queue in MS Universal Print please check for possible error messages in the log file <install_dir> \UPConnector\logs\install.log
This error "Registration failed. Fail reason - User is missing Printer Admin role." signifies that your account lacks MS "Printer Administrator" role.
To fix this situation:
Add MS "Printer Administrator" role to your account.
Delete file C:\Windows\System32\config\systemprofile\.universal-print\tokenCache.enc.
Restart SafeQ Universal Print Connector service.
Open log file C:\SafeQ6\UPConnector\logs\upconnector.log.
Find and use the device code and URL displayed in the log file to authorize the connector with the account that has the MS "Printer Administrator" role.
Your print queue should be registered in MS Universal Print.
Universal Printer Connector asks for device code authentication again due to the Conditional Access policy
There may be a case where you have already deployed UP Connector with default settings but your company has adopted a more strict security policy. To resolve this situation:
Stop SafeQ Universal Print Connector service.
Delete file C:\Windows\System32\config\systemprofile\.universal-print\connectorState.json.
Open file C:\SafeQ6\UPConnector\configuration\local.json. Add the following configuration:
"UseFunctionsKey": true
Final local.json should look like this:
{
"ConnectorHubOptions": {
"ConnectorHubUri": "
https://api.up365.ysoft.cloud
",
"TenantId": "organizations",
"ClientId": "e5eedc46-ba66-44f3-9144-060c86eb5c5e",
"Scopes": [
"e5eedc46-ba66-44f3-9144-060c86eb5c5e/.default"
],
"UseFunctionsKey": true
},
"JobDeliveryOptions": {
"ForcePrintJobOperation": false
}
}
Save changes and close the file.
Restart SafeQ Universal Print Connector service.
Open log file C:\SafeQ6\UPConnector\logs\upconnector.log.
Find and use the device code and URL displayed in the log file to register the connector in case this step is required and confirm it.
USER ACTION REQUIRED:
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code <XXXXXXXXX> to authenticate.
Navigate to the URL for the Microsoft OAuth page: https://microsoft.com/devicelogin and paste there the code from the log above.
Then you need to log in as a user with " Application Administrator " or higher. You can see more permissions in the prerequisites section.