All Apps and Add-ons

Splunk web service unable to start after upgrade to 8

pbalbasdtt
Path Finder

Hi all,

 

We are in the process of upgrade splunk version from 7.3.3 to 8.0.6. After running the Readiness app and solving all the blocker/warning items, we have proceed to run the upgrade. We are able to start the splunkd service, but the web stucks in waiting for web server forever.

Checking web_service.log, we find this error trace:

2021-01-07 14:30:20,566 ERROR   [5ff70cec707fc132868e50] root:772 - Unable to start splunkweb

2021-01-07 14:30:20,566 ERROR   [5ff70cec707fc132868e50] root:773 - 'dict' object has no attribute 'iteritems'

Traceback (most recent call last):

  File "/opt/splunk/searchhead/lib/python3.7/site-packages/splunk/appserver/mrsparkle/root.py", line 132, in <module>

    from splunk.appserver.mrsparkle.controllers.top import TopController

  File "/opt/splunk/searchhead/lib/python3.7/site-packages/splunk/appserver/mrsparkle/controllers/top.py", line 27, in <module>

    from splunk.appserver.mrsparkle.controllers.admin import AdminController

  File "/opt/splunk/searchhead/lib/python3.7/site-packages/splunk/appserver/mrsparkle/controllers/admin.py", line 17, in <module>

    import formencode

  File "/opt/splunk/searchhead/lib/python3.7/site-packages/formencode/__init__.py", line 9, in <module>

    from formencode import validators

  File "/opt/splunk/searchhead/lib/python3.7/site-packages/formencode/validators.py", line 15, in <module>

    import dns.resolver

  File "/opt/splunk/searchhead/etc/apps/generateblocklist_app/bin/dns/resolver.py", line 32, in <module>

    import dns.flags

  File "/opt/splunk/searchhead/etc/apps/generateblocklist_app/bin/dns/flags.py", line 51, in <module>

    _by_value = dict([(y, x) for x, y in _by_text.iteritems()])

AttributeError: 'dict' object has no attribute 'iteritems'

Does anyone know how to solve this issue? Thanks in advance.

 

Best regards.

Labels (1)
1 Solution

scelikok
SplunkTrust
SplunkTrust

Hi, 

Did you check below document?

To prevent issues starting Splunk Web, revise apps for Python 3 compatibility. If an app cannot be upgraded, it must be removed for Splunk Web to start.

https://docs.splunk.com/Documentation/Splunk/8.0.6/Python3Migration/ChangesEnterprise#Splunk_Web 

If this reply helps you an upvote is appreciated.

If this reply helps you an upvote and "Accept as Solution" is appreciated.

View solution in original post

scelikok
SplunkTrust
SplunkTrust

Hi, 

Did you check below document?

To prevent issues starting Splunk Web, revise apps for Python 3 compatibility. If an app cannot be upgraded, it must be removed for Splunk Web to start.

https://docs.splunk.com/Documentation/Splunk/8.0.6/Python3Migration/ChangesEnterprise#Splunk_Web 

If this reply helps you an upvote is appreciated.

If this reply helps you an upvote and "Accept as Solution" is appreciated.

pbalbasdtt
Path Finder

Hi, 

Many thanks for your help!! We deleted the app that appears on the web logs and now everything is working again. 

Best .

0 Karma

pereiramj
Engager

We are having the same issue when upgrading from 7.3.6 -> 8.0.7. 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...