Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForum:-(Urgent Now) Host Disabled Database :-(:-(Urgent Now) Host Disabled Database :-(
Previous
 
Next
New Post
9/28/2007 12:54 PM
 

With regard PortalId -1. This means that the problem is at the Host level, not the individual portal level. The schedule is a host level function, therefore PortalId = -1. You need to look at the rest of the error to get a clue.

I'll see if I can do some digging.

Roger


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
9/28/2007 1:12 PM
 

The troublesome query 'DotNetNuke.Services.Scheduling.DNNScheduling.SqlDataProvider.GetSchedule' is retrieving from the Schedule and ScheduleHistory table. Now the Schedule table should be pretty small, so that shouldn't be the problem, however depending on how the schedule is set up to keep history, the ScheduleHistory table could be quite large, especially if it keeps 'All' items. You can tell how this is configured in Host/Schedule, then  edit each item and check the value in Retain Schedule History.

If they look OK, check that they 'DotNetNuke.Services.Scheduling.PurgeScheduleHistory' schedule item has run successfully. If is has not run at all, enable it and make it run (set the Frequency to 1 minute or something). If it is timing out, then you are going to need to edit the database.

Put the following into Host/SQL

Delete from dbo.schedulehistory where (startdate< convert(datetime, '2007-09-19 00:00:00', 102))

Tick Run as Script, then Execute.

Change the date if you don't like the one shown....

Roger


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
9/29/2007 4:00 AM
 

Hi Roger

Thank you very much for that. Greatly appreciated and the problem is now 'disabled'.

There was a problem with at least one of the schedule items... 'DotNetNuke.Services.Scheduling.PurgeScheduleHistory'

It says:

Schedule history purge failed.System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Services.Scheduling.DNNScheduling.SqlDataProvider.PurgeScheduleHistory() at DotNetNuke.Services.Scheduling.DNNScheduling.DNNScheduler.PurgeScheduleHistory() at DotNetNuke.Services.Scheduling.PurgeScheduleHistory.DoWork()

 

Has happened on occassions, although usually working... it seems to do this every few days.  Any ideas of what in the database might need editing?

I have kept all Schedule history etc... is it worth keeping it though until the problem is resolved?  Also, the schedule items that are running successfuly each time, I take it these could be enabled again?

Thanks again.

David

 
New Post
9/29/2007 5:15 PM
 

It is likely that the schedule history you are keeping is exactly what is causing the problem. In my opinion, knowing what happened to eachg schedule item run passed the last 4 or 5 is meaningless. Certainly for those items that run every minute.

If you re-enable the schedule, you are likely to get the same error as the one I referred to last time, because the query that is being run on the databse, to find out when a schedule item should be run next, is looking at the schedule history.

My recommedndation is run run the SQL I specified in my last response. Then cut down the amount of history you keep. Then  you should be able to restart the schedule, but your will definitely need the PurgeScheduleHistory item, because that does what it says on the tin, it keeps the schedule history under control.

I would also make sure you aren't keeping too much Site Log information as well, I think the default is 60 days, set somewhere in Host/Host Settings. If your site is hit a lot, you will want to shorten this period, since a large site log seems to slow down the site.

Cheers
Roger


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
9/30/2007 5:09 AM
 

Thanks Roger

Used the SQL Server Managment Studio Express... easier for me as I didn't realise it was dbo.identifierschedule...  Was 4307 items there so I have removed most of them.

Just getting all Site Log info too into a spreadsheet as I find it a useful way to analyse the use of the site... then deleting it all too.

The site is still low use really... as we are only just starting to get going now (hence my concern) but as you mention... it is not worth keeping in the database info if it can only slow the site down.

Cheers

David

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForum:-(Urgent Now) Host Disabled Database :-(:-(Urgent Now) Host Disabled Database :-(


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out