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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...