Skip to main content

ERROR Main - Abnormal exit: java.lang.RuntimeException: java.net.SocketException: Permission denied

  • November 26, 2021
  • 0 replies
  • 183 views

AkshayJadhav
StreamSets Employee
Forum|alt.badge.img

Issue:-

When using ports range lower than 1024 for SDC/Transformer/Control Hub following error occurs:-

ERROR Main - Abnormal exit: java.lang.RuntimeException: java.net.SocketException: Permission denied

Solution:-

Scenario A:-

  • If we are starting service manually then make sure that we are starting the service using root user.

Scenario B:-

  • If we are starting the service using systemctl, then make sure following lines are commented in /etc/systemd/system/sdc.service, /etc/systemd/system/dpm.service, /etc/systemd/system/transformer.service
#User=sdc
#Group=sdc

Scenario C:-

  • Set the port number higher than 1024

Scenario D:-

  • If we can not make any of the above changes, then we would have to make changes from the linux end.

Root Cause:-

  • On Unix-based systems, including Red Hat Enterprise Linux, it is not possible to bind to ports under 1024 from applications that are not run by root due to security reasons.
Did this topic help you find an answer to your question?
This topic has been closed for comments