While running commands with ResponseFiles remote object was disconnected


I'm executing orchard.exe with a @repsonse-file parameter, so that orchard executes a script of commands, all the commands are identical, because I'm working around my inability to do longrunning commands with custom transaction management.

After 5 mins of running, about 10 commands have run, an Error is raised:
Object '/82fcec8d_d87a_478f_bbd5_a093fcb80c59/6bug3evr+ebltq+tvlxjsg+t_22.rem' has been disconnected or does not exist at the server.

I've looked for it and found:

This was too complex for me, specifically because I don't have log files. The log files in App_Data only have logs from the web application, and I couldn't find out how to log to a different file based on the fact that code is running in the CommandHost.


q42jaap wrote Oct 5, 2011 at 6:57 PM

BTW, I've scheduled the orchard.exe command with @response-file parameter, so that it restarts within 1 minute, the error is consistent. I've also seen that progress is made so it is not a faulty record that causes things... Every run of orchard.exe has this error and shutsdown directly after it...

AimOrchard wrote Sep 19, 2012 at 6:47 AM

I ran into the same problem with one of our migration commands (that can take 1hour+ to execute)

Any progress on this yet?

AimOrchard wrote Nov 8, 2012 at 7:42 PM

Could it be because ResponseLine does not override InitializeLifetimeService and return null to create a never ending lease?