Failed to open publish sockets.

15 views (last 30 days)
Michael
Michael on 15 Dec 2025 at 21:23
Answered: Aditya on 19 Dec 2025 at 4:22
On my RHEL server when I run the
MATALAB_ROOT/toolbox/parallel/bin/startjobmanager
script, I get the error:
"The mjs service on the host <hostname> returned an error.
The cause of the problem is:
failed to open publish sockets. Cannot publish SRV record.
This is causing:
null.
This is causing:
Problem starting the job manager lookup process. "
What does that mean?

Answers (1)

Aditya
Aditya on 19 Dec 2025 at 4:22
Hi Michael,
This error means the MATLAB Job Manager can’t open the network ports it needs to advertise itself.
Most common causes:
  • Firewall is blocking the required ports (27350–27450).
  • Another process is using those ports.
  • SELinux or permissions are blocking socket creation.
  • Network misconfiguration (hostname/IP issue).
Quick fix steps:
1.Open the required ports on your firewall:
sudo firewall-cmd --permanent --add-port=27350-27450/tcp
sudo firewall-cmd --reload
2.Make sure no other process is using those ports.
3.Check SELinux (getenforce) and set to permissive for testing (setenforce 0).
4.Ensure your server has a valid IP address and hostname.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!