SMA – Failed To Save Runbook

You may run into an error when when trying to create a runbook or save an existing runbook in Service Management Automation 2012.  The error on the webpage is very vague (similar to “Failed to save the runbook”).  Clicking the more details button just gives the message “Please try again later”.

I attempted to debug it using IIS tracing.  If you do this, you will find the admin portal throws an error 500 on the url “AutomationAdmin/SaveRunbook”.  Additionally, the SMA app pool throws an error 500 on the put method for the rest api url for the draft you are attempting to save.  Since the error is appearing within SMA as well, it is unlikely that the cause is the Azure Pack installation.

Next, I turned on analytical monitoring in the Event viewer for Service Management Automation.  Unfortunately, this yielded no useful events.

Finally, I used the SMA Authoring toolkit to try to save the runbook.  This gave me a new more useful error: “Error occurred while uploading media resource”.   A quick google search of this error led me to: https://support.microsoft.com/en-us/help/3051345/-error-occurred-while-uploading-media-resource-when-you-try-to-save-or-import-a-runbook-in-sma-2012.  Sure enough, I found 65536 tmp files in C:\Windows\Temp…which I promptly deleted 🙂

Issue resolved!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s