Failed to open publish sockets.

21 views (last 30 days)
Michael
Michael on 15 Dec 2025
Edited: Michael on 20 Jan 2026 at 23:39
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
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.
  1 Comment
Michael
Michael on 20 Jan 2026 at 23:39
Edited: Michael on 20 Jan 2026 at 23:39
Thanks for your help. My apologies for the delayed response. The Firewall and SELinux were not the problem in this case. I did a complete un-install and re-install, and now it works. It appears that I corrupted something on the original install. Thanks again.

Sign in to comment.

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!