EDIT: Solved. It was a poison message, but for whatever reason it was showing no info like stack track or exception. Just closes which it’s never done before.
I have an NServiceBusHost 3.8 running with MSMQ dumping to SQLServer. The service has been in place and running nearly unchanged since 2013.
This past weekend the service stopped and when starting again, always stops. Running the service host directly to see console output the app starts up normally, processes some message then closes with no errors.
I changed logging to debug and there are no init issues, and no errors.
One odd thing is that it seems to run for almost exactly 5 seconds each time. Processing as many messages as it can, and the process just ends.
Are there any known mechanisms that might cause such behavior? License file is being brought in and active. I don’t know what else might end it automatically each time.
The log cuts off in the middle of processing a message, so it isn’t like it ran out of messages and timed out or something similar (have 600K messages pending at the moment.
Because of the 5 second time, and no changes to the production code or environment, I’m hoping this is gonna ring a bell for someone.