All Apps and Add-ons

Error in Shuttl log port bind error

nawneel
Communicator

Hello

I have following error in my shuttl.log.

ERROR ShuttlServer: Error during startup java.net.BindException: Address already in use

which port/address is shuttlserver looking for ?

Tags (2)
0 Karma

Petter_Eriksson
Splunk Employee
Splunk Employee

The problem is that Splunk doesn't terminate all of its scripted inputs on all OS'es (i.e. ubunto or more specifically OS'es where /bin/sh points to dash or other shells where the command in shell -c "exec command" doesn't take over the process id of the shell which it was started with).
This is a known issue ( http://splunk-base.splunk.com/answers/28733/scripted-input-without-a-shell ) and should be resolved soon.

What's happening in your case:

Shuttl is trying to bind its own server to the host and port that you can configure in shuttl/conf/splunk.xml. Since the Shuttl server from an old Splunk process is still running, this cannot happen.

What you can do about it:

After each restart of Splunk, kill the Shuttl process. You'll be killing the Shuttl process that started for your last Splunk process.
Killing Shuttl is "safe". Shuttl is designed to fail and can always resume/recover from whatever state it was in.

How you do it [unix]:

  1. Get the Shuttl process id with either ( ps -ef | grep shuttl ) or ( lsof -i :9099 ) where 9099 is the default port for shuttl.
  2. Kill the process id (pid) with (kill shuttl_pid).

I hope this helps and I'll update Shuttl as soon as Splunk has fixed the issue of not killing scripted inputs.

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...