Publishing error

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
8/2/2012 12:21:47 AM
kok
Gravatar
Total Posts 47

Publishing error

hi there,

i face publishing error,

when I click Administration Menu > Content Manager > Publishing for,

then click Published green icon, will show error message:


We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.

what problem for this?

Thanks.

8/2/2012 10:02:19 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Publishing error

Try the basic troubleshooting steps. If you can't figure out what's wrong from the detailed error message in the log, post it here and we'll try to help.

Jamie

8/2/2012 9:26:44 PM
kok
Gravatar
Total Posts 47

Re: Publishing error

Below text I copy from system log, is this error?

Thanks all.

2012-08-02 02:07:37,326 ERROR mojoPortal.Business.WebHelpers.IndexWriterTask - System.IO.IOException: Lock obtain timed out: SimpleFSLock@C:\Live\Mojoportal\nsl-new\Data\Sites\1\index\write.lock
   at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
   at Lucene.Net.Index.IndexReader.AquireWriteLock()
   at Lucene.Net.Index.IndexReader.DeleteDocument(Int32 docNum)
   at Lucene.Net.Index.IndexReader.DeleteDocuments(Term term)
   at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessQueue(DataTable q, String indexPath)
2012-08-02 02:07:38,340 ERROR mojoPortal.Business.WebHelpers.IndexWriterTask - System.IO.IOException: Lock obtain timed out: SimpleFSLock@C:\Live\Mojoportal\nsl-new\Data\Sites\1\index\write.lock
   at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
   at Lucene.Net.Index.IndexReader.AquireWriteLock()
   at Lucene.Net.Index.IndexReader.DeleteDocument(Int32 docNum)
   at Lucene.Net.Index.IndexReader.DeleteDocuments(Term term)
   at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessQueue(DataTable q, String indexPath)
2012-08-02 02:07:39,354 ERROR mojoPortal.Business.WebHelpers.IndexWriterTask - System.IO.IOException: Lock obtain timed out: SimpleFSLock@C:\Live\Mojoportal\nsl-new\Data\Sites\1\index\write.lock
   at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
   at Lucene.Net.Index.IndexReader.AquireWriteLock()
   at Lucene.Net.Index.IndexReader.DeleteDocument(Int32 docNum)
   at Lucene.Net.Index.IndexReader.DeleteDocuments(Term term)
   at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessQueue(DataTable q, String indexPath)
2012-08-02 02:07:40,368 ERROR mojoPortal.Business.WebHelpers.IndexWriterTask - System.IO.IOException: Lock obtain timed out: SimpleFSLock@C:\Live\Mojoportal\nsl-new\Data\Sites\1\index\write.lock
   at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
   at Lucene.Net.Index.IndexReader.AquireWriteLock()
   at Lucene.Net.Index.IndexReader.DeleteDocument(Int32 docNum)
   at Lucene.Net.Index.IndexReader.DeleteDocuments(Term term)
   at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessQueue(DataTable q, String indexPath)
2012-08-02 02:07:41,382 ERROR mojoPortal.Business.WebHelpers.IndexWriterTask - System.IO.IOException: Lock obtain timed out: SimpleFSLock@C:\Live\Mojoportal\nsl-new\Data\Sites\1\index\write.lock
   at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
   at Lucene.Net.Index.IndexReader.AquireWriteLock()
   at Lucene.Net.Index.IndexReader.DeleteDocument(Int32 docNum)
   at Lucene.Net.Index.IndexReader.DeleteDocuments(Term term)
   at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessQueue(DataTable q, String indexPath)
2012-08-02 02:07:42,396 ERROR mojoPortal.Business.WebHelpers.IndexWriterTask - System.IO.IOException: Lock obtain timed out: SimpleFSLock@C:\Live\Mojoportal\nsl-new\Data\Sites\1\index\write.lock
   at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
   at Lucene.Net.Index.IndexWriter.Init(Directory d, Analyzer a, Boolean create, Boolean closeDir)
   at Lucene.Net.Index.IndexWriter..ctor(String path, Analyzer a, Boolean create)
   at mojoPortal.Business.WebHelpers.IndexWriterTask.GetWriter(String indexPath)
   at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessQueue(DataTable q, String indexPath)
   at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessIndexingQueue()
2012-08-02 02:07:42,396 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - started IndexWriterTask task
2012-08-02 02:07:56,467 INFO mojoPortal.Web.WebTaskManager - started WebTaskManager task
2012-08-02 02:48:49,556 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2012-08-02 07:20:51,537 INFO mojoPortal.Web.Global - Application Started.
2012-08-02 07:41:51,707 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2012-08-02 18:53:48,074 INFO mojoPortal.Web.Global - Application Started.
2012-08-02 19:15:04,983 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2012-08-02 19:15:04,999 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2012-08-02 19:15:05,202 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - Queued IndexWriterTask on a new thread
2012-08-02 19:15:05,202 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - deserialized IndexWriterTask task

8/3/2012 9:22:27 AM
Gravatar
Total Posts 18439

Re: Publishing error

That error is about the site search index, it fails to get a write lock while trying to update the search index. It could be caused by a permission problem, or it can also happen in a web farm because Lucene.NET does not support multiple processes so if you have more than one web node handling requests you need to disable the internal site search and use either google or bing for site search. 

If it isn't a web famr and file system permissions are corrected you should rebuild the search index.

See also Implementaion Considerations for Web Farms

Hope that helps,

Joe

8/3/2012 9:29:13 PM
kok
Gravatar
Total Posts 47

Re: Publishing error

Thanks Joe,

My colleague show me, we cannot process content manager is below message:

 

2012-08-03 19:21:47,976 ERROR mojoPortal.Web.mojoBasePage - 14.192.210.112-en-MY - /Admin/ContentManager.aspx?mid=10
System.Web.HttpException: The URL-encoded form data is not valid. ---> System.InvalidOperationException: Operation is not valid due to the current state of the object.
   at System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded()
   at System.Web.HttpValueCollection.FillFromEncodedBytes(Byte[] bytes, Encoding encoding)
   at System.Web.HttpRequest.FillInFormCollection()
   --- End of inner exception stack trace ---
   at System.Web.HttpRequest.FillInFormCollection()
   at System.Web.HttpRequest.get_Form()
   at System.Web.HttpRequest.get_HasForm()
   at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
   at System.Web.UI.Page.DeterminePostBackMode()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2012-08-03 19:21:48,054 ERROR mojoPortal.Web.Global - 14.192.210.112-en-MY - /Admin/ContentManager.aspx?mid=10
System.Web.HttpException: The URL-encoded form data is not valid. ---> System.InvalidOperationException: Operation is not valid due to the current state of the object.
   at System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded()
   at System.Web.HttpValueCollection.FillFromEncodedBytes(Byte[] bytes, Encoding encoding)
   at System.Web.HttpRequest.FillInFormCollection()
   --- End of inner exception stack trace ---
   at System.Web.HttpRequest.FillInFormCollection()
   at System.Web.HttpRequest.get_Form()
   at System.Web.HttpRequest.get_HasForm()
   at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
   at System.Web.UI.Page.DeterminePostBackMode()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2012-08-03 19:22:08,287 ERROR mojoPortal.Web.mojoBasePage - 14.192.210.112-en-MY - /Admin/ContentManager.aspx?mid=10
System.Web.HttpException: The URL-encoded form data is not valid. ---> System.InvalidOperationException: Operation is not valid due to the current state of the object.
   at System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded()
   at System.Web.HttpValueCollection.FillFromEncodedBytes(Byte[] bytes, Encoding encoding)
   at System.Web.HttpRequest.FillInFormCollection()
   --- End of inner exception stack trace ---
   at System.Web.HttpRequest.FillInFormCollection()
   at System.Web.HttpRequest.get_Form()
   at System.Web.HttpRequest.get_HasForm()
   at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
   at System.Web.UI.Page.DeterminePostBackMode()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2012-08-03 19:22:08,287 ERROR mojoPortal.Web.Global - 14.192.210.112-en-MY - /Admin/ContentManager.aspx?mid=10
System.Web.HttpException: The URL-encoded form data is not valid. ---> System.InvalidOperationException: Operation is not valid due to the current state of the object.
   at System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded()
   at System.Web.HttpValueCollection.FillFromEncodedBytes(Byte[] bytes, Encoding encoding)
   at System.Web.HttpRequest.FillInFormCollection()
   --- End of inner exception stack trace ---
   at System.Web.HttpRequest.FillInFormCollection()
   at System.Web.HttpRequest.get_Form()
   at System.Web.HttpRequest.get_HasForm()
   at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
   at System.Web.UI.Page.DeterminePostBackMode()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

8/4/2012 6:16:23 AM
Gravatar
Total Posts 18439

Re: Publishing error

Hi,

This error is caused by a change in behavior of ASP.NET after a security update, see this thread for more background info.

However, I think you are not running the latest version of mojoPortal because I made some changes in content manager to solve this problem a few versions ago. If you upgrade to the latest version this problem should be fixed because we changed it so that if there are lots of pages we use a modal dialog to publish to avoid postback of too many form elements.

Hope that helps,

Joe

8/6/2012 10:33:49 PM
kok
Gravatar
Total Posts 47

Re: Publishing error

Thank you very much Joe,

The error solve, Thanks your solution.

Thanks.

You must sign in to post in the forums. This thread is closed to new posts.