hudson.util.HudsonFailedToLoad: java.net.SocketException: Permiso denegado

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by Daniil Shevelev

The solution is to run as root using sudo or to set different port in application.properties file, e.g.

server.port=${port:8181}
java.net.SocketException: Permiso denegado
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67)
at hudson.TcpSlaveAgentListener.(TcpSlaveAgentListener.java:92)
at jenkins.model.Jenkins.launchTcpSlaveAgentListener(Jenkins.java:1191)
at jenkins.model.Jenkins.(Jenkins.java:929)
at hudson.model.Hudson.(Hudson.java:85)
at hudson.model.Hudson.(Hudson.java:81)
at hudson.WebAppMain$3.run(WebAppMain.java:227)

Users with the same issue

Once, 1 month ago
2 times, 4 months ago
2 times, 9 months ago
10 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 4 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.