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!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...