title: Slurm setup: Error connecting slurm stream socket
body: <p>I am trying to setup a new cluster with slurm. I have setup a client and a control machine.  (I am new to this .....)</p>
  
  <ol>
  <li>When I type <strong>sinfo -vvv</strong> from control machine it is telling</li>
  </ol>
  
  <p>" sinfo: debug2: slurm_connect failed: Connection refused
    sinfo: debug2: Error connecting slurm stream socket at 192.168.155.142:6817: Connection refused "</p>
  
  <p>My slurm is configured to use 6817 port (full config is available here <a href="https://pastebin.com/X4yDe99z" rel="nofollow noreferrer">https://pastebin.com/X4yDe99z</a></p>
  
  <p><code>SlurmctldPort=6817</code></p>
  
  <p>The port is open ( I tried with ufw disabled also)</p>
  
  <p><code>6817 (v6)                  ALLOW       Anywhere (v6)</code></p>
  
  <ol start="2">
  <li>When I try <strong>slurmctld -Dvvv</strong> it is showing this error</li>
  </ol>
  
  <p><code>slurmctld: error: this host (xxxx/xxx) not a valid controller (gaia or (null))</code></p>
  
  <p>My /etc/hosts file is
  <code>
  127.0.0.1    localhost
  192.168.155.142 gaia
  </code></p>