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.
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.
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.
Hi,
Many thanks for your help!! We deleted the app that appears on the web logs and now everything is working again.
Best .
We are having the same issue when upgrading from 7.3.6 -> 8.0.7.