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!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...