SQL server Analysis services getting stopped

  • Hello Pals,

    SQL server analysis service (services)  getting stopped once partitions are processed with PROCESS FULL using XMLA script calling in "Analysis service DDL Task " in ETL package. After verifying Event Viewer log we observed that failure of msmdsrv.exe application is leading to services stop.
    Would like to know possible reasons and fix for the service stop.

    Regards,
    Kranthi

  • Did you check the Msmdsrv.log? Did you check for any dump files if it's enabled? The extension would be .mdmp?
    You would also want to check the Windows event logs. What version of SSAS and are you on the current service pack?

    Sue

  • That screenshot is a little hard to read, but if I am reading it correctly, you are using SQL 11 (ie 2012).
    What is the error right below the one you selected?
    The application error is likely caused by that MSSqlServerOLAPService error.

    But I agree with Sue, checking the Msmdsrv.log file (and any SQL log files you can find) will likely give you better insight to the problem.  msmdsrv.exe is the executable for SQL Server Analysis Services (SSAS).  So saying that that crashing is the cause of the service crashing is like saying that Excel.exe crashing is the cause of your Excel application crashing.
    I'm willing to bet that one of your SQL logs or one of the other windows logs (or events, like the one right below the highlighted one) will have more helpful information in it.

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • kranthi.kumar040 - Sunday, June 25, 2017 12:17 PM

    Hello Pals,

    SQL server analysis service (services)  getting stopped once partitions are processed with PROCESS FULL using XMLA script calling in "Analysis service DDL Task " in ETL package. After verifying Event Viewer log we observed that failure of msmdsrv.exe application is leading to services stop.
    Would like to know possible reasons and fix for the service stop.

    Regards,
    Kranthi

    Hi Sue_Hbmg002
    Thanks for your reply.. below are the answers to your questions.
    1.Yes..Dump file was created SQLDmpr0054.mdmp and SQLDUMPER_ERRORLOG text file was also created. 
    2. We are using sql 2012 version
    3. And have gone through msmdsrv text file under SSAS log folder. But i didn't get much information about crash report. Would like to know any keywords/how to read the log information  to find the exact error.
    I'm attaching the screenshots below for your reference.

  • Thanks for those. Typically the information you need will be in the dump files when you get crashes. And yours is in that last screenshot:
    0xC0000005
    The thread tried to read from or write to a virtual address for which is does not have the appropriate access

    The error code is Access denied. And that is also what the error message is telling you. - it's a permissions error causing the crash.
    Is this server on the lastest patches? SP4 for 2012 just came out but you should be at least at SP3. I haven't gone through the CU to see if any of those address the issue.
    Make sure the permissions are set correctly for the package and however that is being run since that impacts things. And if it's a job, who is the job owner. The service accounts should only be changed through configuration manager.
    If you haven't or don't run the package manually, try doing that and see if it makes a difference.

    Sue

  • Sue_H - Tuesday, June 27, 2017 7:49 AM

    Is this server on the lastest patches? SP4 for 2012 just came out but you should be at least at SP3. I haven't gone through the CU to see if any of those address the issue.

    Sorry, OP, for not answering the question, but I thought 2012 SP4 was out next month in September? I can't see it in my Windows Updates at the moment either.

    Edit: MS moved the date.

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • Thom A - Tuesday, June 27, 2017 8:14 AM

    Sue_H - Tuesday, June 27, 2017 7:49 AM

    Is this server on the lastest patches? SP4 for 2012 just came out but you should be at least at SP3. I haven't gone through the CU to see if any of those address the issue.

    Sorry, OP, for not answering the question, but I thought 2012 SP4 was out next month? I can't see it in my Windows Updates at the moment either.

    My apologies - I forgot this one changed a couple of times and is now later and is suppose to be due out in September.
    I can't find next month though in any of the retractions on the SP so maybe it's next month. Nonetheless, I apologize.

    Sue

  • Sue_H - Tuesday, June 27, 2017 8:22 AM

    My apologies - I forgot this one changed a couple of times and is now later and is suppose to be due out in September.
    I can't find next month though in any of the retractions on the SP so maybe it's next month. Nonetheless, I apologize.

    Sue

    They'd moved it again since I'd read the article (I just grabbed the linked). I've already updated my previous post, but yes, out in September now (pending any further changes :rolleyes:). 🙂

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • Thom A - Tuesday, June 27, 2017 8:26 AM

    They'd moved it again since I'd read the article (I just grabbed the linked). I've already updated my previous post, but yes, out in September now (pending any further changes :rolleyes:). 🙂

    Better than the time they released a bad service pack, broke everyone's maintenance plans, released a fix and never incremented the build. So no one knew which version of service pack they were on. I can't remember which one that was - 2005 or 2008. A total mess.

    Sue

  • Sue_H - Tuesday, June 27, 2017 7:49 AM

    Thanks for those. Typically the information you need will be in the dump files when you get crashes. And yours is in that last screenshot:
    0xC0000005
    The thread tried to read from or write to a virtual address for which is does not have the appropriate access

    The error code is Access denied. And that is also what the error message is telling you. - it's a permissions error causing the crash.
    Is this server on the lastest patches? SP4 for 2012 just came out but you should be at least at SP3. I haven't gone through the CU to see if any of those address the issue.
    Make sure the permissions are set correctly for the package and however that is being run since that impacts things. And if it's a job, who is the job owner. The service accounts should only be changed through configuration manager.
    If you haven't or don't run the package manually, try doing that and see if it makes a difference.

    Sue

    Hi Sue
    Sure.. i'll test the package manually, but the thing is service is getting stopped after successful completion of partition processing and ETL execution.

    Kranthi

  • kranthi.kumar040 - Wednesday, June 28, 2017 12:12 AM

    Sue_H - Tuesday, June 27, 2017 7:49 AM

    Thanks for those. Typically the information you need will be in the dump files when you get crashes. And yours is in that last screenshot:
    0xC0000005
    The thread tried to read from or write to a virtual address for which is does not have the appropriate access

    The error code is Access denied. And that is also what the error message is telling you. - it's a permissions error causing the crash.
    Is this server on the lastest patches? SP4 for 2012 just came out but you should be at least at SP3. I haven't gone through the CU to see if any of those address the issue.
    Make sure the permissions are set correctly for the package and however that is being run since that impacts things. And if it's a job, who is the job owner. The service accounts should only be changed through configuration manager.
    If you haven't or don't run the package manually, try doing that and see if it makes a difference.

    Sue

    Hi Sue
    Sure.. i'll test the package manually, but the thing is service is getting stopped after successful completion of partition processing and ETL execution.

    Kranthi

    Hi Kranthi,

    Were you able to test this and find a solution to the SSAS service abruptly stopping on you? I am sailing in the same boat i guess.

    Please let me know.

    Thanks,
    -Prabh

Viewing 11 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic. Login to reply