How to manually empty the Kiln queue
Kiln is currently moving away from using the opengrok search engine in the backend. All the work queues will now be handled by the Kiln Queueing Service.
After a little mishap with the WMWare SXI server, the date was thrown into the future, causing problems related to license and certificate expiration. As a result, the Kiln services where not able to talk to the site, and the work queue kept piling up. This state persisted even after the server was brought back from the future.
To run a diagnostic and check you queue status, you can load the diagnostics page under your Kiln installation. (http://yoururl/kiln/diagnostics)
The output will be similar to this:
{“Version”:”2.7.29.0″,”DatabaseVersion”:123,”QueueLength”:16310,”QueueFailures”:[],”OS”:”Microsoft Windows NT 6.1.7601 Service Pack 1″,”Processor”:”AMD64″,”Model”:["VMware Virtual Platform"],”Manufacturer”:["VMware, Inc."],”BIOS”:["INTEL - 6040000"]}
The one to check is QueueLength. It should be 1 at inactive times, and as you can see in my example its way higher. The first thing to check is if anything gets processed at all. So hit refresh in your browser. If the queue length is not decreasing, you will need to manually flush the queue.
How to flush the queue
1. Stop the Kiln Queuing Service in Administrative Tools –> Services
2. Run the service from the commandline in non-service mode
It will output a lot of text about processing and re-enqueuing.
“C:\Program Files\Kiln\queue\QueueService.exe /noservice /verbose 3″
4. When it starts dumping stack traces (but still trying and trying) stop it by hitting control + c
5. Repeat until the queue is empty.
When the queue is empty verify that the Kiln Storage Service is started again. If it’s not running, start it.



March 2, 2012 







Hi Bjørn, thanks for a great and detailed post!
While these steps work in some situations, it may not work for all of them which could leave Kiln in a corrupted state. Please check with a member from Fog Creek Software before running these steps. You may reach us at customer-service@fogcreek.com
Thanks for the warning Derrick