SDL Web - How to cleanup files left over by publishing
Article written for SDL Tridion 2013, but should be applicable to Web 8 and later product versions as well.
State files are not being removed from incoming folder even though the cleanup param value is set to true. This eventually causes content publishing to fail with error such as the below
Transport failed: Could not transport TCMID.Content.zip using HTTPS
By default, files that are generated during the publishing process are automatically deleted / removed. In some cases, this might not happen due to various reasons such as services/applications that are down unexpectedly and the files might not get removed as it should.
The below steps should be performed to ensure the publishing and/or deployer processes run efficiently as leftover files could impede the process. Steps:
First, ensure there is no outstanding publishing job in the publishing queue. Outstanding publishing jobs are jobs that are not Success or Failed. In other word, jobs that have status such as Waiting for publishing, Rendering, Deploying, Committing deployment. If those outstanding jobs remained stuck, go ahead and remove them from queue. (will need to re-submit the item for publishing again once the cleanup is completed)
On the Content Manager server (or publisher server), look into the folder called transactions under the ..Tridion\bin folder and remove all files under that folder:
NOTE: The transactions folder is defined in the cd_transport_conf.xml. If you have modified this folder to be a different folder, then go to that folder and remove files.
On the deployer application, look in the incoming folder and remove all files seen there (except the file called meta.xml and folders, if any) NOTE: The incoming folder is defined in the cd_deployer_conf.xml
On the Content Manager server (or publisher server), restart the Transport and Publisher service
On the deployer server, restart the deployer application (either by restarting IIS, or by restarting the deployer application pool)
That’s it. The cleanup process is completed. Re-submit items for publishing if they have been removed from publishing queue earlier.