All Apps and Add-ons

TypeError: %d format: a number is required, not str

Lazarix
Communicator

I'm getting the error:
TypeError: %d format: a number is required, not str
from cmdPortlookup.py and loadImData.py when I tail splunkd.log:

11-17-2014 15:41:30.726 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/cmdPortlookup.py" Traceback (most recent call last):
11-17-2014 15:41:30.726 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/cmdPortlookup.py"   File "/opt/splunk/lib/python2.7/logging/handlers.py", line 76, in emit
11-17-2014 15:41:30.727 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/cmdPortlookup.py"     if self.shouldRollover(record):
11-17-2014 15:41:30.727 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/cmdPortlookup.py"   File "/opt/splunk/lib/python2.7/logging/handlers.py", line 154, in shouldRollover
11-17-2014 15:41:30.727 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/cmdPortlookup.py"     msg = "%s\n" % self.format(record)
11-17-2014 15:41:30.727 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/cmdPortlookup.py"   File "/opt/splunk/lib/python2.7/logging/__init__.py", line 724, in format
11-17-2014 15:41:30.727 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/cmdPortlookup.py"     return fmt.format(record)
11-17-2014 15:41:30.727 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/cmdPortlookup.py"   File "/opt/splunk/lib/python2.7/logging/__init__.py", line 464, in format
11-17-2014 15:41:30.727 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/cmdPortlookup.py"     record.message = record.getMessage()
11-17-2014 15:41:30.727 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/cmdPortlookup.py"   File "/opt/splunk/lib/python2.7/logging/__init__.py", line 328, in getMessage
11-17-2014 15:41:30.727 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/cmdPortlookup.py"     msg = msg % self.args
11-17-2014 15:41:30.727 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/cmdPortlookup.py" TypeError: %d format: a number is required, not str
11-17-2014 15:41:30.727 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/cmdPortlookup.py" Logged from file exitHandler.py, line 88
11-17-2014 15:41:36.490 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/loadImData.py" Traceback (most recent call last):
11-17-2014 15:41:36.490 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/loadImData.py"   File "/opt/splunk/lib/python2.7/logging/handlers.py", line 76, in emit
11-17-2014 15:41:36.491 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/loadImData.py"     if self.shouldRollover(record):
11-17-2014 15:41:36.491 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/loadImData.py"   File "/opt/splunk/lib/python2.7/logging/handlers.py", line 154, in shouldRollover
11-17-2014 15:41:36.491 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/loadImData.py"     msg = "%s\n" % self.format(record)
11-17-2014 15:41:36.491 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/loadImData.py"   File "/opt/splunk/lib/python2.7/logging/__init__.py", line 724, in format
11-17-2014 15:41:36.491 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/loadImData.py"     return fmt.format(record)
11-17-2014 15:41:36.491 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/loadImData.py"   File "/opt/splunk/lib/python2.7/logging/__init__.py", line 464, in format
11-17-2014 15:41:36.491 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/loadImData.py"     record.message = record.getMessage()
11-17-2014 15:41:36.491 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/loadImData.py"   File "/opt/splunk/lib/python2.7/logging/__init__.py", line 328, in getMessage
11-17-2014 15:41:36.491 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/loadImData.py"     msg = msg % self.args
11-17-2014 15:41:36.491 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/loadImData.py" TypeError: %d format: a number is required, not str
11-17-2014 15:41:36.491 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/InterMapper/bin/loadImData.py" Logged from file exitHandler.py, line 88

Ideas on a postcard!

0 Karma
1 Solution

InterMapper
Explorer

What versions are you using? Please include splunk, intermapper, and intermapper app.,Lazarix,

What version are splunk, intermapper server, and intermapper app?

View solution in original post

InterMapper
Explorer

What versions are you using? Please include splunk, intermapper, and intermapper app.,Lazarix,

What version are splunk, intermapper server, and intermapper app?

Lazarix
Communicator

Apologies, it's totally my fault. I hadn't configured it to connect to the App.

Duh!

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In November, the Splunk Threat Research Team had one release of new security content via the Enterprise ...

Index This | Divide 100 by half. What do you get?

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

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...