We’ve all seen it – Service failed to start. I recently had a Printing Tools service on 10.3.1 that refused to start no matter what.
On start up it threw the following error with no additional details in the logs;
Utilities.PrintingTools.GPServer: java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: java.net.SocketException: Connection reset
I recreated the service, same result. I checked Geonet and the only result was about a misconfigured Python install which wasn’t the case for me.
The fix however was pretty simple in the end – a repair of the ArcGIS Server install.