All Apps and Add-ons

Error when running /Splunk/etc/apps/alexa/bin/alexa.py

ccampbell_splun
Splunk Employee
Splunk Employee

I installed the Alexa app, and ran through the setup steps to connect it to my Dev account. When testing the new skill, I get this error:

There was an error calling the remote endpoint, which returned HTTP 303 : See Other

From the splunkd.log I see the following errors:

10-10-2016 22:00:07.818 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py" SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
10-10-2016 22:00:07.819 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py" SLF4J: Defaulting to no-operation (NOP) logger implementation
10-10-2016 22:00:07.819 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py" SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
10-10-2016 22:00:08.200 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py" Error executing modular input : Permission denied : java.net.SocketException: Permission denied
10-10-2016 22:00:08.200 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py"  at sun.nio.ch.Net.bind0(Native Method)
10-10-2016 22:00:08.200 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py"  at sun.nio.ch.Net.bind(Net.java:433)
10-10-2016 22:00:08.200 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py"  at sun.nio.ch.Net.bind(Net.java:425)
10-10-2016 22:00:08.200 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py"  at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
10-10-2016 22:00:08.200 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py"  at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
10-10-2016 22:00:08.200 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py"  at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:264)
10-10-2016 22:00:08.200 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py"  at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
10-10-2016 22:00:08.200 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py"  at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
10-10-2016 22:00:08.200 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py"  at org.eclipse.jetty.server.Server.doStart(Server.java:303)
10-10-2016 22:00:08.200 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py"  at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
10-10-2016 22:00:08.200 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py"  at com.splunk.modinput.alexa.AlexaWebService.startWebServer(Unknown Source)
10-10-2016 22:00:08.200 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py"  at com.splunk.modinput.alexa.AlexaWebService.doRun(Unknown Source)
10-10-2016 22:00:08.200 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py"  at com.splunk.modinput.ModularInput.init(Unknown Source)
10-10-2016 22:00:08.200 -0700 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/alexa/bin/alexa.py"  at com.splunk.modinput.alexa.AlexaWebService.main(Unknown Source)

I'm not sure these are related but am not sure what else to try. Thanks!

0 Karma
1 Solution

Damien_Dallimor
Ultra Champion

Error executing modular input :
Permission denied :
java.net.SocketException: Permission
denied

This would imply that you are trying to open an HTTPs port that the user owning the splunkd process does not have OS permissions to open. ie: a port lower than 1024 such as 443.

This is all covered in the documentation

Please read the docs thoroughly, the troubleshooting section is also useful.

View solution in original post

Damien_Dallimor
Ultra Champion

Error executing modular input :
Permission denied :
java.net.SocketException: Permission
denied

This would imply that you are trying to open an HTTPs port that the user owning the splunkd process does not have OS permissions to open. ie: a port lower than 1024 such as 443.

This is all covered in the documentation

Please read the docs thoroughly, the troubleshooting section is also useful.

ccampbell_splun
Splunk Employee
Splunk Employee

Thanks, I assumed my user had enough permissions to do this task but apparently not 🙂
After running splunk under the root user I no longer get these errors and can run the tests!

0 Karma

Damien_Dallimor
Ultra Champion

Correct.
I run my Splunk instance for my Alexa work like : sudo splunk start

0 Karma
Get Updates on the Splunk Community!

Database Performance Sidebar Panel Now on APM Database Query Performance & Service ...

We’ve streamlined the troubleshooting experience for database-related service issues by adding a database ...

IM Landing Page Filter - Now Available

We’ve added the capability for you to filter across the summary details on the main Infrastructure Monitoring ...

Dynamic Links from Alerts to IM Navigators - New in Observability Cloud

Splunk continues to improve the troubleshooting experience in Observability Cloud with this latest enhancement ...