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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...