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!

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...