Question

Photo of Sam Rae

0

Failed update — how do I recover my site?

Hi. I've had an update of RockRMS fail, and I reloaded the page before taking note of the error the updater gave me. It was something to do with a specific file; potentially a permissions issue. I don't have any record of what file it was.

Now all I'm getting from the site is "Server Error in '/' Application."

Any ideas of how I get my site back and running?

  • Photo of David Turner

    1

    Sam, are you able to edit files in your rock install (i.e. can you edit your web.config file at the root of your Rock website)?  If so, if you change the <customErrors mode="On".. /> to <customErrors mode="Off"... /> in the web.config file and then try to go to your site again, you should get a more descriptive error.

  • Photo of Sam Rae

    0

    Thanks, David. Great tip. I've done that and now here are the details:

    Compiler Error Message: CS1061: 'Rock.Model.ContentChannelType' does not contain a definition for 'IncludeTime' and no extension method 'IncludeTime' accepting a first argument of type 'Rock.Model.ContentChannelType' could be found (are you missing a using directive or an assembly reference?)

    Source Error:
     

     
    Line 154:                        if ( channel.ContentChannelType.DateRangeType == ContentChannelDateType.DateRange )
    Line 155:                        {
    Line 156:                            if ( channel.ContentChannelType.IncludeTime )
    Line 157:                            {
    Line 158:                                content = content.Where( c => c.ExpireDateTime >= RockDateTime.Now );


    Source File: d:\home\site\wwwroot\App_Code\GetChannelFeed.cs    Line: 156 
     

  • Photo of David Turner

    0

    Sam, it looks like you may have had an issue during the update that resulted in your database not getting completely migrated. Are you comfortable running some SQL queries in SQL Managment Studio? If so, can you run these two queries and post or send me the results.

    SELECT TOP 10 *
    FROM __MigrationHistory
    ORDER BY MigrationId DESC

    SELECT TOP 50 *
    FROM ExceptionLog
    ORDER BY ID DESC

    You might also consider joining our Slack community (makes a bit easier to help real-time): http://www.rockrms.com/slack