Question

Photo of Dave Brown

0

Giving Statements "Internal Server Error"

I have pointed the statement generator to our Rock URL & added a custom logo.  When I attempt to navigate "step 1," this is the result...

RockStmt_InternalSrvrErr.jpgRockStmt_Step1.jpg

  • Photo of Jon Edmiston

    0

    Looks like the 'Memorial' account has its parent account set to itself. This is causing a loop in the SQL. You can try changing it in the UI or use this SQL:

    UPDATE [FinancialAccount]
        SET [ParentAccountId] = NULL
        WHERE [Id] = 5

    If you do this in the 'SQL Command' tool be sure to flip the 'Selection Query' to 'No'

  • Photo of Dave Brown

    0

    ADDITIONAL INFORMATION ("Edit Question" button does not actually allow me to edit the question):

    I asked our IT consultant to look at this issue as well.  Here is the full request provided to him:

    "I have the following scenario:
    
    1. Rock contribution statements are generated through an application that is downloaded from Rock's "Power Tools" (ADMIN TOOLS | POWER TOOLS).
    
    2. Prior to "Go Live" in September, I "pointed" the software to the sandbox [ http://rmsdev.lakeside.local/ ] and successfully generated statements from that source.  Today, I can still successfully pull statements from the sandbox.
    
    3. Pointing the software to the current URLs [ http://rockadmin.lakesidechristian.com/ OR https://rockadmin.lakesidechristian.com/ ] results in a software response of "INTERNAL SERVER ERROR."

    He provided the following reply:

    "[I] was able to reproduce, but couldn't figure out any way to get the statement builder into a debug mode to see any detailed error messages.  The fact that it's allowing login, but then blows up when querying the list seems very odd.  That means it can talk to the server to authenticate, but not to run that command.  Make sure you include that information in your bug report.
    
    If you have found any way to put it into debug mode pass it along to me and maybe I can be of further help, but I don't see anything wrong with the webserver configuration."

    Looking forward to this forum's expertise as the reporting deadline is looming.

  • Photo of David Leigh

    0

    What version of Rock are you running in the sandbox and in the live system - are they the same?
    You can check the version by clicking the info icon on the Admin toolbar.

    Also, are you running the same instance of the statement generator (ie. the same .exe) against both Rock instances?

     

  • Photo of Dave Brown

    0

    Sandbox: Rock McKinley 3.2

    Production: Rock McKinley 3.4

    and yes, I'm running the same executable file for both instances.

  • Photo of David Leigh

    0

    Ok, that might be the cause of the problem.

    Try downloading the Statement Generator again from your Rock production site (v3.4) and use that version instead.
    The Statement Generator has had some updates since v3.2, so you need to use the version that is compatible with 3.4.

  • Photo of Dave Brown

    0

    Nope, I get the exact same error after deleting the legacy Statement Generator and installing from our current production site (I repeated the delete-and-install twice to be certain).

  • Photo of Dave Brown

    0

    Bump...URGENT!!!!

  • Photo of Jon Edmiston

    0

    Couple of things to look at:

    1. Do you see anything in your server exception log ('Admin Tools > System Settings > Exception List').
    2. You could try to update to v4 (it's shipping next week). Might try it on your sandbox first. To do so you'd need to follow these instructions: http://www.rockrms.com/page/473?Item=91

    Keep me posted. I'll follow this Q&A over the weekend.

  • Photo of Dave Brown

    0

    Here is the exception:

    Newtonsoft.Json.JsonSerializationException
    Self referencing loop detected with type 'Rock.Model.FinancialAccount'. Path '[4].ChildAccounts'.

    We show the "Everything is shipshape" [McKinley 3.4] under Home | General Settings | Rock Update

    • Jon Edmiston

      Ah OK, can you send me the results of this query (you can run it under 'Admin Tools > Power Tools > SQL Command'):


      SELECT
      *
      FROM
      [FinancialAccount]


      If you could export that to Excel and email it to me jon(at)sparkdevnetwork.org I can send you a SQL fix. Looks like you might have an endless parent/child loop in your account structure.