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!

Get ready to show some Splunk Certification swagger at .conf24!

Dive into the deep end of data by earning a Splunk Certification at .conf24. We're enticing you again this ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Now On-Demand Join us to learn more about how you can leverage Service Level Objectives (SLOs) and the new ...

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 ...