Reporting

Splunk 5.0 Error - An error occurred while rendering the page template. See web_service.log for more details

watsm10
Communicator

I keep getting this error "An error occurred while rendering the page template. See web_service.log for more details" appear when I try to click on a saved search in manager in Splunk Web. After I restart Splunk, I can access that saved search, but after I've made my change and saved it I keep getting the same error message until I've restarted Splunk again.

I can't create, edit or delete saved searches through the GUI.. which is really annoying!

Can anyone help me out?

Thanks.

1 Solution

hexx
Splunk Employee
Splunk Employee

@Drainy is correct.

This problem is caused by a regression in Splunk 5.0 and 5.0.1 which impacts certain methods to list indexes, such as:

  • The eventcount command
  • REST API calls to the /services/data/indexes endpoint

In 5.0 and 5.0.1, these methods fail to use cached assets and end up iterating over the files of your indexes themselves. This results in a much slower execution, which eventually affects whatever consumer calls the method.

In the Manager user interface, this affects some of the pages that need to present a list of indexes such as:

  • The page showing the details of a saved search (Manager > Searches & Reports > $SAVED_SEARCH_NAME)
  • The setup page for most data inputs (Manager > Data Inputs > Files & Directories > Add new)
  • The page where you can list and edit indexes (Manager > Indexes)
  • The page where you can edit roles (Manager > Access controls > Roles)

If the index-listing method takes more than 30s to complete, Splunkweb will time out on it and display a "500 - internal server error" message.

This issue will be fixed in maintenance release 5.0.2, which we are aiming to deliver early in 2013. We are also working on intermediary patch release 5.0.1.1 to specifically address this issue.

For reference, the bugs behind this problem are SPL-57518 and SPL-58650.

View solution in original post

hexx
Splunk Employee
Splunk Employee

@Drainy is correct.

This problem is caused by a regression in Splunk 5.0 and 5.0.1 which impacts certain methods to list indexes, such as:

  • The eventcount command
  • REST API calls to the /services/data/indexes endpoint

In 5.0 and 5.0.1, these methods fail to use cached assets and end up iterating over the files of your indexes themselves. This results in a much slower execution, which eventually affects whatever consumer calls the method.

In the Manager user interface, this affects some of the pages that need to present a list of indexes such as:

  • The page showing the details of a saved search (Manager > Searches & Reports > $SAVED_SEARCH_NAME)
  • The setup page for most data inputs (Manager > Data Inputs > Files & Directories > Add new)
  • The page where you can list and edit indexes (Manager > Indexes)
  • The page where you can edit roles (Manager > Access controls > Roles)

If the index-listing method takes more than 30s to complete, Splunkweb will time out on it and display a "500 - internal server error" message.

This issue will be fixed in maintenance release 5.0.2, which we are aiming to deliver early in 2013. We are also working on intermediary patch release 5.0.1.1 to specifically address this issue.

For reference, the bugs behind this problem are SPL-57518 and SPL-58650.

hexx
Splunk Employee
Splunk Employee

@Loscil: Given that this error can be very generic, I would recommend that you open a support case and indicate under which circumstances exactly you witnessed this error:

  • Which UI page were you accessing?
  • Did the error appear immediately or did it appear after ~30s?
  • Is the error reproducible at will? If yes, what are the steps to follow?

It will also be useful to attach a diag of the instance where that happened right away.

0 Karma

watsm10
Communicator

Try backing up your apps (etc/apps) and data (var/lib/splunk) and re-install splunk?

0 Karma

Loscil
Explorer

I have just encountered this error in version 5.0.3, build 163460

watsm10
Communicator

Good point there @hexx. The issue was with 5.0.1, so Splunk's latest public release of 5.0.2 addressed the problem

0 Karma

mike_lebrun
Explorer

Oddly enough, the issue went away on its own a few hours after it started to appear. Is it possible that this error occurs when a scheduled search is running and one tries to edit it?

0 Karma

hexx
Splunk Employee
Splunk Employee

@mike.lebrun: If you have a distributed search environment, please ensure that all instances (search-heads and indexers) have been upgraded to 5.0.2.

0 Karma

watsm10
Communicator

I spoke to Splunk support, who made some suggestions which didn't work..

We got around it by backing up our apps and settings, then a clean install of Splunk. Haven't had any issues on 5.02 so far...

0 Karma

mike_lebrun
Explorer

Running 5.0.2 here and getting the same error "An error occurred while rendering the page template" when I click on either the saved search itself or try to Clone it.

Any suggestions?

0 Karma

Drainy
Champion

This sounds a lot like bugs, (SPL-57518, SPL-58650)

http://docs.splunk.com/Documentation/Splunk/5.0.1/ReleaseNotes/Knownissues

Best bet is to get in touch with support

Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...