Troubleshooting
Log file locations
Smart Print Controller log file
The SPC log file is here:
%LocalAppData%\Global Graphics Software Ltd\Smart Print Controller
Harlequin Direct log files
Locations of log files are defined in the PowerShell script; by default they reside in the same folder as the HarlequinDirect.exe
.
In the PowerShell script, they are referred to as StdOutLocation
; the default filenames are HarlequinDirect_StdOut.txt
and MeteorPEM_StdOut.txt
.
Failed to start Harlequin Direct
HarlequinDirect not running
Some Windows installations have a policy that prevents running PowerShell scripts, this results in SPC not starting HD automatically at startup and also an error message in the PowerShell window when starting manually.
This policy can modified by typing the following into an Administrator PowerShell:
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
This only needs to be done once.
HarlequinDirect starts and exits immediately
When first installed, Harlequin Direct may not have any configuration files. The lack of config files means that Harlequin Direct exits immediately.
When you click Apply in Smart Print Controller (SPC), the config files are uploaded and then Harlequin Direct restarts and remains running.
Failed to connect to Harlequin Direct
Check firewall
SPC and the Harlequin Direct PC send control data over a socket (even when installed on the same PC). Windows installations by default have a firewall turned on that can prevent this communication.
If the share is working but Harlequin Direct is not detected by SPC, check your firewall settings and ensure the required ports are open.
Check IPV4 address
You must specify the address and path of the remote PC in IPV4 style (xxx.xxx.xxx.xxx
). Don't use a machine name; change it to an IPV4 address and restart SPC.
Port conflicts
By default SmartDFE uses the following ports:
Port | Application | Process | Notes |
---|---|---|---|
9090 | SmartWorkflow | ||
9100-9120 | Harlequin Direct | clrip | See below: "Change clrip port" |
9990 | Harlequin Direct | SmartPCRemote | |
9997 | Harlequin Direct | ScreenProDirect (Status) | Set in SPC UI, based on "port" set when adding a server |
9998 | ScreenProDirect (Command) | Set in SPC UI, based on "port" set when adding a server | |
9999 | Harlequin Direct | Harlequin Direct | Set in SPC UI, based on "port" set when adding a server |
26542 | SPC | SmartPrintController (OPC) | |
26642 | SPC | SmartPrintController-Meteor (OPC) |
Check for Port conflict
To check for port conflicts, use the Resource Monitor:
- Run Resource Monitor (resmon.exe).
- Under Network, open the "Listening Ports" section.
- Sort by Port, look at the regions SmartDFE uses, as shown above.
- Check for any conflicts.
Change HarlequinDirectPort
The port for Harlequin Direct is defined when a HarlequinDirect instance is created in SPC UI, (Engineer → System → Harlequin Direct Servers).
Change clrip port
- Edit: C:\SPCHD\SW\RIPFarmConfig\ripfarm_global.json.
- Search for "BasePort".
- Change the value to a number where there is a gap in the used ports that are reported by Resource Monitor.
- Copy the ripfarm_global.json to the Harlequin Direct folder: C:\SPCHD.
- Restart servers.
Port "AddressAlreadyInUse" Error
You may encounter the following error in the application log when starting Smart Print Controller:
Error: Failed: Only one usage of each socket address (protocol/network address/port) is normally permitted (SocketErrorCode: AddressAlreadyInUse)
This is caused by Windows locking the port number after the app had been forcefully terminated. Please wait and try again.
This error typically occurs if the application is terminated unexpectedly or forcefully (e.g., due to a crash or being manually ended via Task Manager), and then restarted too quickly. Windows enforces a period of time during which the previously used network port remains reserved (known as the TIME_WAIT state) to ensure proper clean-up and prevent duplicate connections.
If you encounter this error:
Wait for the Port to Be Released:
Windows usually releases the port after a short period (typically a few minutes). Wait and then try starting the application again.Restart Your Computer (Optional):
If waiting isn't feasible or the port remains locked longer than expected, restarting your computer will force the release of all reserved ports.Check for Other Applications Using the Port:
Use tools (see above) to check if another process is using the port. If so, terminate that process or resolve the conflict.
Avoid terminating the application forcefully whenever possible.
Enable SheetCounter
You can enable and disable the SheetCounter
feature; use a key in the Harlequin Direct template file.
You must modify this file on the SPC PC.
In the “Output” section of this file, add the following line before the last line in that section:
"SheetCounterEnabled": 1,