Refine your search:

Hello. I am testing Splunk version 4.3, build 115073 and I have the next error when I want to go to search App

500 Internal Server Error

Return to Splunk home page AttributeError: 'str' object has no attribute 'os_startIndex'

This page was linked to from http://127.0.0.1:8000/en-US/app/launcher/home.

You are using 127.0.0.1:8000, which is connected to splunkd @115073 at https://127.0.0.1:8089 on Tue Jan 10 13:13:23 2012.

asked 10 Jan '12, 08:18

gnazer's gravatar image

gnazer
41112
accept rate: 0%

edited 19 Jan '12, 08:52

araitz's gravatar image

araitz ♦
8.0k31025

What OS are you using?

(11 Jan '12, 18:41) lguinn ♦

He uses a Windows OS. Saved Searches with cron scheduler settings causes this error. See my workaround below.

(19 Jan '12, 05:49) FRoth

Please see my answer below for a workaround.

(19 Jan '12, 18:01) araitz ♦

9 Answers:

Here is a workaround for the issue:

  • From Splunk Web, go to Manager > Your Account
  • In the Time zone setting, change the "default System Timezone" to a specific timezone
  • Save the change. No restart is needed and the error should go away

We hope to have this fixed in an upcoming maintenance release.

link

answered 19 Jan '12, 16:04

araitz's gravatar image

araitz ♦
8.0k31025
accept rate: 46%

This is not possible, when you have switched (downgraded) the licence to the coummunity-version, because the Menu "Your Account" is only available in the enterprise version

(27 Feb '12, 06:15) mietmesplunk

I have similar error, displayed as red warning at the top of the screen

-'str' object has no attribute 'os_startIndex'-

ver 4.3, build 115073, WinXP 32-bit

link

answered 11 Jan '12, 02:09

booraczeq's gravatar image

booraczeq
1
accept rate: 0%

edited 11 Jan '12, 02:10

Me too, WinXP 32-bit after test upgrade:

500 Internal Server Error

Return to Splunk home page

AttributeError: 'str' object has no attribute 'os_startIndex' This page was linked to from https://logsrv:8000/en-US/app/search/dashboard_live.

link

answered 11 Jan '12, 03:30

andrzejwasilewski's gravatar image

andrzejwasil...
292
accept rate: 0%

edited 11 Jan '12, 03:43

Same Problem with Splunk 4.3 on a Win7 64-bit machine when trying to configurate the "Windows" app.

link

answered 12 Jan '12, 04:04

Livia's gravatar image

Livia
211
accept rate: 0%

Same Problem after upgrading from 4.2 to 4.3 on a Win2008 R2 machine when opening the search app.

link

answered 16 Jan '12, 15:27

tortuganetworks's gravatar image

tortuganetworks
211
accept rate: 0%

Same problem here.

Windows 2008 R2 Server 64bit. Upgrade from 4.2.4 to 4.3.

Has anyone resolved this issue somehow?

link

answered 19 Jan '12, 01:58

FRoth's gravatar image

FRoth
1541114
accept rate: 6%

Has anyone tried to downgrade again?

(19 Jan '12, 02:00) FRoth

These are the entries in the web_service.log

2012-01-19 10:58:49,927 ERROR   [4f17e959e732440f0] messages:124 - 'str' object has no attribute 'os_startIndex'
Traceback (most recent call last):
  File "D:\Splunk\Python-2.7\Lib\site-packages\splunk\appserver\mrsparkle\controllers\messages.py", line 81, in index
    entries = splunk.entity.getEntities(uri)
  File "D:\Splunk\Python-2.7\Lib\site-packages\splunk\entity.py", line 159, in getEntities
    offset = int(atomFeed.os_startIndex or -1)
AttributeError: 'str' object has no attribute 'os_startIndex'
link

answered 19 Jan '12, 02:09

FRoth's gravatar image

FRoth
1541114
accept rate: 6%

Problem resides in entity.py and has to do with the used "uri" but I cant figure out how to enable debugging

(19 Jan '12, 04:19) FRoth

Workaround:

Rename savedsearches.conf in Splunketcappssearchlocal to savedsearches.conf.old and restart Splunk.

Error Message still appears in the red top bar saying "'str' object has no attribute 'os_startIndex'" but you can access the search app at least.

link

answered 19 Jan '12, 04:51

FRoth's gravatar image

FRoth
1541114
accept rate: 6%

IMPORTANT: Every saved search containing a line to schedule the search causes the error. So it is recommended to remove the lines like

"cron_schedule = 0 * * " and "enableSched = 1"

(19 Jan '12, 05:27) FRoth

I also noticed that the SAVED SEARCHES did not show correctly in my dashboards. I used "stacked" columns but the graphs did not show up "stacked".

I figured out that I had generate a viewstate for every saved search. I saved a new search and copied the veiwstate for that new and correct chart several times in the file viewstates.conf.

An entry looks like this:

[charting:gvto8fi9] ChartTypeFormatter_0_7_0.default = column ... StackModeFormatter_0_10_0.default = stacked ...

The id after "charting:" is the reference to the actual saved search and had to be adjusted in every block.

(19 Jan '12, 05:48) FRoth

I've got the same error "500 Internal Server Error .. AttributeError..." after installing the WindowsApp. At first, after accessing to the WindowsApp the error was shown. After reboot i can't acces to splunk (same errer)

Renaming the "savedsearches.conf" brought no success.

(Windows 7, 64bit, Splunk 4.3)

link

answered 27 Feb '12, 06:23

mietmesplunk's gravatar image

mietmesplunk
111
accept rate: 0%

Which "savedsearches.conf" did you rename (which directory)? Did you restart the service?

(27 Feb '12, 06:28) FRoth

I've renamed the "savedsearches.conf" in "Splunk/etc/apps/search/local" (as you wrote above). And I've rebootet the system. But without success.

Now i've done the following:

renamed the folder of the app "windows" to "windows-1"

After restart, i had access to the splunk webinterface and splunk seems working well. Of course, the app "windows" is not working.

Do you have any idea, how to get the windows app working?

thanks!

(28 Feb '12, 02:31) mietmesplunk
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×359

Asked: 10 Jan '12, 08:18

Seen: 2,622 times

Last updated: 28 Feb '12, 02:31

Copyright © 2005-2012 Splunk Inc. All rights reserved.