<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: An error occurred while reading the page template. See web_service.log for more details in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29022#M177893</link>
    <description>&lt;P&gt;The above helped me fix my problem as well. The role that the affected user was mapped to is supposed to inherit the base user account and tack on a few extra things. However, the inherited role went missing for reasons I'm still not clear on.&lt;/P&gt;

&lt;P&gt;I had to edit $SPLUNK_HOME/etc/system/local/authorize.conf and re-add "importRoles = user" into the custom role I had, and that seems to have fixed the issue.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2014 19:37:00 GMT</pubDate>
    <dc:creator>mrenfr0</dc:creator>
    <dc:date>2014-02-12T19:37:00Z</dc:date>
    <item>
      <title>An error occurred while reading the page template. See web_service.log for more details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29014#M177885</link>
      <description>&lt;P&gt;How can I solve the problem ?&lt;BR /&gt;
Thank you !&lt;/P&gt;

&lt;P&gt;[root@only144 splunk]# netstat -antpl | grep 8089&lt;BR /&gt;
tcp        0      0 0.0.0.0:8089                0.0.0.0:*                   LISTEN      22068/splunkd&lt;BR /&gt;&lt;BR /&gt;
tcp        0      0 127.0.0.1:8089              127.0.0.1:53208             TIME_WAIT   -&lt;BR /&gt;&lt;BR /&gt;
tcp        0      0 127.0.0.1:8089              127.0.0.1:53206             TIME_WAIT   -&lt;BR /&gt;&lt;BR /&gt;
[root@only144 splunk]# tail -f var/log/splunk/web_service.log &lt;BR /&gt;
2012-08-08 16:54:57,260 INFO    [50222961417fde7c0ccd10] cached:77 - memoized decorator used on function &lt;FUNCTION getentities="" at="" 0x2b03398=""&gt; with non hashable arguments&lt;BR /&gt;
2012-08-08 16:54:58,070 ERROR   [50222961417fde7c0ccd10] config:81 - [HTTP 403] Client is not authorized to perform requested action; &lt;A href="https://127.0.0.1:8089/services/search/timeparser/tz" target="_blank"&gt;https://127.0.0.1:8089/services/search/timeparser/tz&lt;/A&gt;&lt;BR /&gt;
Traceback (most recent call last):&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/config.py", line 79, in getServerZoneInfo&lt;BR /&gt;
    return times.getServerZoneinfo()&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/times.py", line 158, in getServerZoneinfo&lt;BR /&gt;
    serverStatus, serverResp = splunk.rest.simpleRequest('/search/timeparser/tz')&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/rest/&lt;STRONG&gt;init&lt;/STRONG&gt;.py", line 436, in simpleRequest&lt;BR /&gt;
    raise splunk.AuthorizationFailed(extendedMessages=uri)&lt;BR /&gt;
AuthorizationFailed: [HTTP 403] Client is not authorized to perform requested action; &lt;A href="https://127.0.0.1:8089/services/search/timeparser/tz" target="_blank"&gt;https://127.0.0.1:8089/services/search/timeparser/tz&lt;/A&gt;&lt;BR /&gt;
2012-08-08 16:54:58,087 ERROR   [50222961417fde7c0ccd10] &lt;STRONG&gt;init&lt;/STRONG&gt;:267 - Mako failed to render: &lt;/FUNCTION&gt;&lt;/P&gt;

&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/controllers/&lt;STRONG&gt;init&lt;/STRONG&gt;.py", line 265, in render_template&lt;BR /&gt;
    return templateInstance.render(*&lt;EM&gt;template_args)&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/mako/template.py", line 283, in render&lt;BR /&gt;
    return runtime.&lt;EM&gt;render(self, self.callable&lt;/EM&gt;, args, data)&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/mako/runtime.py", line 575, in _render&lt;BR /&gt;
    *&lt;/EM&gt;&lt;EM&gt;kwargs_for_callable(callable&lt;/EM&gt;, data))&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/mako/runtime.py", line 607, in &lt;EM&gt;render_context&lt;BR /&gt;
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/mako/runtime.py", line 633, in _exec_template&lt;BR /&gt;
    callable&lt;/EM&gt;(context, *args, **kwargs)&lt;BR /&gt;
  File "/opt/splunk/share/splunk/search_mrsparkle/templates/layout/base.html", line 10, in render_body&lt;BR /&gt;
    &amp;lt;%self:render/&amp;gt;&lt;BR /&gt;
  File "/opt/splunk/share/splunk/search_mrsparkle/templates/layout/base.html", line 25, in render_render&lt;BR /&gt;
    ##&lt;BR /&gt;
  File "/opt/splunk/share/splunk/search_mrsparkle/templates/layout/base.html", line 67, in render_pagedoc&lt;BR /&gt;
    % else:&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/config.py", line 103, in getConfig&lt;BR /&gt;
    args.update(&lt;EM&gt;get_app_config(namespace))&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/config.py", line 48, in _get_app_config&lt;BR /&gt;
    rawConfig = splunk.bundle.getConf('app', namespace=app)&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/bundle.py", line 39, in getConf&lt;BR /&gt;
    serverResponse, serverContent = rest.simpleRequest(uri, getargs={'fillcontents':1}, sessionKey=sessionKey)&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/rest/&lt;/EM&gt;&lt;EM&gt;init&lt;/EM&gt;_.py", line 436, in simpleRequest&lt;BR /&gt;
    raise splunk.AuthorizationFailed(extendedMessages=uri)&lt;BR /&gt;
AuthorizationFailed: [HTTP 403] Client is not authorized to perform requested action; &lt;A href="https://127.0.0.1:8089/servicesNS/admin/search/properties/app?fillcontents=1" target="_blank"&gt;https://127.0.0.1:8089/servicesNS/admin/search/properties/app?fillcontents=1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;2012-08-08 16:54:58,089 WARNING [50222961417fde7c0ccd10] &lt;STRONG&gt;init&lt;/STRONG&gt;:259 - unable to obtain template=dashboard.html&lt;BR /&gt;
^C&lt;BR /&gt;
[root@only144 splunk]# cat &amp;gt; var/log/splunk/web_service.log&lt;BR /&gt;&lt;BR /&gt;
^C&lt;BR /&gt;
[root@only144 splunk]# tail -f var/log/splunk/web_service.log &lt;BR /&gt;
2012-08-08 16:55:41,046 INFO    [5022298d0b7fde889668d0] cached:77 - memoized decorator used on function &lt;FUNCTION getentities="" at="" 0x2b03398=""&gt; with non hashable arguments&lt;BR /&gt;
2012-08-08 16:55:41,859 ERROR   [5022298d0b7fde889668d0] config:81 - [HTTP 403] Client is not authorized to perform requested action; &lt;A href="https://127.0.0.1:8089/services/search/timeparser/tz" target="_blank"&gt;https://127.0.0.1:8089/services/search/timeparser/tz&lt;/A&gt;&lt;BR /&gt;
Traceback (most recent call last):&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/config.py", line 79, in getServerZoneInfo&lt;BR /&gt;
    return times.getServerZoneinfo()&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/times.py", line 158, in getServerZoneinfo&lt;BR /&gt;
    serverStatus, serverResp = splunk.rest.simpleRequest('/search/timeparser/tz')&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/rest/&lt;STRONG&gt;init&lt;/STRONG&gt;.py", line 436, in simpleRequest&lt;BR /&gt;
    raise splunk.AuthorizationFailed(extendedMessages=uri)&lt;BR /&gt;
AuthorizationFailed: [HTTP 403] Client is not authorized to perform requested action; &lt;A href="https://127.0.0.1:8089/services/search/timeparser/tz" target="_blank"&gt;https://127.0.0.1:8089/services/search/timeparser/tz&lt;/A&gt;&lt;BR /&gt;
2012-08-08 16:55:41,875 ERROR   [5022298d0b7fde889668d0] &lt;STRONG&gt;init&lt;/STRONG&gt;:267 - Mako failed to render: &lt;/FUNCTION&gt;&lt;/P&gt;

&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/controllers/&lt;STRONG&gt;init&lt;/STRONG&gt;.py", line 265, in render_template&lt;BR /&gt;
    return templateInstance.render(*&lt;EM&gt;template_args)&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/mako/template.py", line 283, in render&lt;BR /&gt;
    return runtime.&lt;EM&gt;render(self, self.callable&lt;/EM&gt;, args, data)&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/mako/runtime.py", line 575, in _render&lt;BR /&gt;
    *&lt;/EM&gt;&lt;EM&gt;kwargs_for_callable(callable&lt;/EM&gt;, data))&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/mako/runtime.py", line 607, in &lt;EM&gt;render_context&lt;BR /&gt;
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/mako/runtime.py", line 633, in _exec_template&lt;BR /&gt;
    callable&lt;/EM&gt;(context, *args, **kwargs)&lt;BR /&gt;
  File "/opt/splunk/share/splunk/search_mrsparkle/templates/layout/base.html", line 10, in render_body&lt;BR /&gt;
    &amp;lt;%self:render/&amp;gt;&lt;BR /&gt;
  File "/opt/splunk/share/splunk/search_mrsparkle/templates/layout/base.html", line 25, in render_render&lt;BR /&gt;
    ##&lt;BR /&gt;
  File "/opt/splunk/share/splunk/search_mrsparkle/templates/layout/base.html", line 67, in render_pagedoc&lt;BR /&gt;
    % else:&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/config.py", line 103, in getConfig&lt;BR /&gt;
    args.update(&lt;EM&gt;get_app_config(namespace))&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/config.py", line 48, in _get_app_config&lt;BR /&gt;
    rawConfig = splunk.bundle.getConf('app', namespace=app)&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/bundle.py", line 39, in getConf&lt;BR /&gt;
    serverResponse, serverContent = rest.simpleRequest(uri, getargs={'fillcontents':1}, sessionKey=sessionKey)&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/rest/&lt;/EM&gt;&lt;EM&gt;init&lt;/EM&gt;_.py", line 436, in simpleRequest&lt;BR /&gt;
    raise splunk.AuthorizationFailed(extendedMessages=uri)&lt;BR /&gt;
AuthorizationFailed: [HTTP 403] Client is not authorized to perform requested action; &lt;A href="https://127.0.0.1:8089/servicesNS/admin/search/properties/app?fillcontents=1" target="_blank"&gt;https://127.0.0.1:8089/servicesNS/admin/search/properties/app?fillcontents=1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;2012-08-08 16:55:41,877 WARNING [5022298d0b7fde889668d0] &lt;STRONG&gt;init&lt;/STRONG&gt;:259 - unable to obtain template=dashboard.html&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:13:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29014#M177885</guid>
      <dc:creator>perlish</dc:creator>
      <dc:date>2020-09-28T12:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: An error occurred while reading the page template. See web_service.log for more details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29015#M177886</link>
      <description>&lt;P&gt;Were you able to find the problem? Getting pretty much the same errors here.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2013 13:17:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29015#M177886</guid>
      <dc:creator>sysadminoftheda</dc:creator>
      <dc:date>2013-06-07T13:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: An error occurred while reading the page template. See web_service.log for more details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29016#M177887</link>
      <description>&lt;P&gt;Bump. Having the same errors, and would like to know if there's a resolution.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2013 20:53:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29016#M177887</guid>
      <dc:creator>BenjaminWyatt</dc:creator>
      <dc:date>2013-07-12T20:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: An error occurred while reading the page template. See web_service.log for more details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29017#M177888</link>
      <description>&lt;P&gt;What is the action the triggers this error? Is this error showing up in the user interface or when you go to a certain page or is this only noticed in the logs?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2013 02:25:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29017#M177888</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2013-07-13T02:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: An error occurred while reading the page template. See web_service.log for more details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29018#M177889</link>
      <description>&lt;P&gt;There's a lot of disparate things that can trigger this error,  and I know that at least some of them actually write &lt;EM&gt;nothing relevant&lt;/EM&gt; to web_service.log.     The best advice I can give is to back out changes on that view until it starts working again. &lt;/P&gt;

&lt;P&gt;The one I can remember offhand, is one I've seen a few times, which is if you forget to have the &lt;CODE&gt;&amp;lt;list&amp;gt;&lt;/CODE&gt; nodes around certain array-valued params,   it'll give you this unhelpful error (and write nothing to web_service.log)&lt;/P&gt;

&lt;P&gt;eg:  In this simple statically defined Pulldown module, I've forgotten to put the little &lt;CODE&gt;&amp;lt;list&amp;gt;&lt;/CODE&gt; nodes around the label and value in the &lt;CODE&gt;staticOptions&lt;/CODE&gt; param.   This will trigger the same error you're seeing. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="Pulldown"&amp;gt;
  &amp;lt;param name="name"&amp;gt;user&amp;lt;/param&amp;gt;
  &amp;lt;param name="label"&amp;gt;User&amp;lt;/param&amp;gt;
  &amp;lt;param name="staticOptions"&amp;gt;
    &amp;lt;param name="label"&amp;gt;Choose...&amp;lt;/param&amp;gt;
    &amp;lt;param name="value"&amp;gt;&amp;lt;/param&amp;gt;
  &amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So while it might have to do with some of the stuff in your log,  it also might just be easier to do 'binary search debugging' on the view itself to figure out what it doesn't like --    delete half the view, but keep the markup valid,  then hit /debug/refresh, then test.  repeat, adding back deleted XML or deleting half of the remaining code as necessary until you get down to one line as the root-cause.    It seems tedious but  it'll give you the definitive cause of your bug in fewer than ten iterations. &lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2013 17:25:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29018#M177889</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-07-13T17:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: An error occurred while reading the page template. See web_service.log for more details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29019#M177890</link>
      <description>&lt;P&gt;It appears the solution Nick posted below might not help in my case - for me, all views work fine unless the user has the "can_delete" permissions. If the user has can_delete, however, ALL views throw this error message. So the best I can guess is that it has something to do with the permissions for that particular role, but I'm not sure where to begin looking.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:21:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29019#M177890</guid>
      <dc:creator>BenjaminWyatt</dc:creator>
      <dc:date>2020-09-28T14:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: An error occurred while reading the page template. See web_service.log for more details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29020#M177891</link>
      <description>&lt;P&gt;Oh. I have seen this error appear when the user is &lt;EM&gt;missing&lt;/EM&gt; a key capability as well.  However I'm pretty sure it had no relation to &lt;CODE&gt;can_delete&lt;/CODE&gt;.  Are you sure there aren't some other capabilities missing from the relevant role?  And that &lt;CODE&gt;can_delete&lt;/CODE&gt; is a red herring?  I actually ran into this a few weeks ago and had to do binary-search debugging, adding half the capabilities back, restarting and testing, etc....   It was something weird like authorize.conf had turned off the &lt;CODE&gt;rest_properties_get&lt;/CODE&gt; capability....&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2013 17:16:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29020#M177891</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-07-16T17:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: An error occurred while reading the page template. See web_service.log for more details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29021#M177892</link>
      <description>&lt;P&gt;This solved the problem. My admin was attempting to login with an account that had ONLY the can_delete role. This role has only the delete_by_keyword permission, which won't be enough to view pages (it's missing the rest_properties_get priv that is mentioned above). We logged in with an account that had both admin and can_delete and everything worked fine.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:21:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29021#M177892</guid>
      <dc:creator>BenjaminWyatt</dc:creator>
      <dc:date>2020-09-28T14:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: An error occurred while reading the page template. See web_service.log for more details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29022#M177893</link>
      <description>&lt;P&gt;The above helped me fix my problem as well. The role that the affected user was mapped to is supposed to inherit the base user account and tack on a few extra things. However, the inherited role went missing for reasons I'm still not clear on.&lt;/P&gt;

&lt;P&gt;I had to edit $SPLUNK_HOME/etc/system/local/authorize.conf and re-add "importRoles = user" into the custom role I had, and that seems to have fixed the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2014 19:37:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/An-error-occurred-while-reading-the-page-template-See-web/m-p/29022#M177893</guid>
      <dc:creator>mrenfr0</dc:creator>
      <dc:date>2014-02-12T19:37:00Z</dc:date>
    </item>
  </channel>
</rss>

