Friday, November 05, 2010

Resetting Sitecore Staging Module


Greetings,
A quick troubleshooting post on Friday to wrap up the work week Winking smile

This time about our favorite Staging module. This applies to all pre Sitecore 6.3 installations as the latest version does not require this module.

So I have recently witnessed a problem that our customer was facing. The module being stuck during file upload process, giving out a pretty generic error from the Staging log files:

11/2/2010 1:20:29 PM (ER): Could not Execute file upload: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

It turns out that sometimes the module may not output the most meaningful information to the logs, so the error may not be really helpful here.
For example, this could be caused by missing ACL permissions on the files that the module is synchronizing, etc. By the way, a useful thing to double check – make sure the application pool account has read/write/modify on the folder which are configured to be synchronized.

Here are some quick things you can do fairly to “reset” the module configuration:

1. Delete any files under upload, download and cache sub-folders within the working directory (/sitecore modules/staging/workdir). These are the temp files automatically generated, so it is safe to do this.
2. Clear the value of the “Last updated” field on the appropriate StagingServer item in your master db:

image3. Run any type of publishing to trigger the Staging operation again.
4. Monitor Staging logs which are located within the working directory.

Also, check out this useful troubleshooting resource on Staging module troubleshooting.

2 comments:

.NET Masters said...

I had upgraded sitecore from ver. 6.2 to 6.3 rev.101029. But now I am getting the below mentioned error:

Could not load file or assembly 'Newtonsoft.Json, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I had recompiled by project also after adding reference to new version dll then also problem persists.

I tried a lot but unable to solve. Kindly give some suggestion to solve the problem

Unknown said...

Hello,

Something is still referencing the old version of the Newtonsoft.Json assembly. Sitecore 6.3 is relying on version 3.5 of this DLL.
Make sure that it was not overwritten in /bin folder and also check if you are referencing proper version of it.