All Apps and Add-ons

Python Issue: RuntimeError: dictionary changed size during iteration

icanhazlogs
New Member

Trying to setup Website Monitoring on Splunk 8 and after adding an input I get the following error each time it runs.

Traceback (most recent call last):   File "/opt/splunk/etc/apps/website_monitoring/bin/modular_input.zip/modular_input/modular_input_base_class.py", line 1092, in execute
    self.do_run(in_stream, log_exception_and_continue=True)   File "/opt/splunk/etc/apps/website_monitoring/bin/modular_input.zip/modular_input/modular_input_base_class.py", line 973, in do_run
    self.run(stanza, cleaned_params, input_config)   File "/opt/splunk/etc/apps/website_monitoring/bin/web_ping.py", line 884, in run
    for thread_stanza in self.threads.keys(): RuntimeError: dictionary changed size during iteration

Is there a fix for this, or am I missing some part of the setup? Not using a proxy and I have set "*" in the ignore field.

0 Karma

LukeMurphey
Champion

This looks like a bug to me. I opened a bug report and will look into fixing it soon: https://lukemurphey.net/issues/2587

My plan is to release a fix in a maintenance release.

Update:
I have released a fix. The fix is in version 2.9. It is available from Splunkbase here: https://splunkbase.splunk.com/app/1493/

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...