title: Slurm Standalone system ubuntu 16.04.3 (compiled) not working: Authentication
body: <p>So I have been fighting with Installing slurm for a while now and am really at a loss. <strong>My Goal is to install Slurm on a single machine and submit jobs to it from the same machine.(via sbatch or srun)</strong></p>
  
  <p>Initially I attempted to install via <code>apt install slurm-llnl</code> but the version is too far behind to work with Ubuntu 16.04.3.</p>
  
  <p>So the next step was to compile Slurm from source. Downloading and extracting the tarball I ran </p>
  
  <p><code>./configure --prefix=/etc/init.d/ --sysconfdir=/etc/slurm-llnl/
  make
  make install
  </code></p>
  
  <p>I then added the following /etc/ld.so.conf.d/SlurmLib.conf </p>
  
  <pre><code>/etc/init.d/lib
  /etc/init.d/lib/slurm
  </code></pre>
  
  <p>I then created my cgroup.conf, slurm.conf, and slurmdb.conf.</p>
  
  <p>[cgroup.conf]</p>
  
  <pre><code>CgroupAutomount=yes
  ConstrainCores=no
  ConstrainRAMSpace=no
  </code></pre>
  
  <p>[slurm.conf]</p>
  
  <pre><code>ControlMachine=arroyavelab15
  AuthType=auth/none
  CryptoType=crypto/munge
  MpiDefault=none
  ProctrackType=proctrack/cgroup
  ReturnToService=1
  SlurmctldPidFile=/var/slurm_dir/slurmctld.pid
  SlurmctldPort=6817
  SlurmdPidFile=/var/slurm_dir/slurmd.pid
  SlurmdPort=6818
  SlurmdSpoolDir=/var/slurm_dir/spool/slurmd/
  SlurmUser=danielsauceda
  SlurmdUser=danielsauceda
  StateSaveLocation=/var/slurm_dir/spool
  SwitchType=switch/none
  TaskPlugin=task/none
  InactiveLimit=0
  KillWait=30
  MinJobAge=300
  SlurmctldTimeout=120
  SlurmdTimeout=300
  Waittime=0
  FastSchedule=1
  SchedulerType=sched/backfill
  SelectType=select/linear
  AccountingStorageType=accounting_storage/none
  AccountingStoreJobComment=YES
  ClusterName=cluster
  JobCompType=jobcomp/none
  JobAcctGatherFrequency=30
  JobAcctGatherType=jobacct_gather/none
  SlurmctldDebug=5
  SlurmctldLogFile=/var/slurm_dir/slurmctld.log
  SlurmdDebug=3
  NodeName=arroyavelab15 NodeAddr=xxx.xxx.xxx.xxx.xx CPUs=1 CoresPerSocket=1 ThreadsPerCore=1 State=UNKNOWN RealMemory=8000
  PartitionName=debug Nodes=arroyavelab15 Default=YES MaxTime=INFINITE State=UP
  </code></pre>
  
  <p>[slurmdb.conf]</p>
  
  <pre><code># slurmDBD info                                                                           
  DbdAddr=localhost
  DbdHost=localhost
  SlurmUser=danielsauceda
  DebugLevel=4
  PidFile=/var/run/slurmdbd.pid
  #                                                                                         
  # Database info                                                                           
  StorageType=accounting_storage/mysql
  StoragePass=slurm
  StorageUser=slurm
  </code></pre>
  
  <p>Finally after etecuting</p>
  
  <pre><code>./slurmctld -D
  ./slurmd -D
  ./slurmdbd -Dv
  </code></pre>
  
  <p>They all appear to be running (in there own separate terminals)</p>
  
  <p>However when exectuting</p>
  
  <p><code>srun -N3 --nodes=1 --ntasks-per-node=1 hostname</code></p>
  
  <p>I get the following</p>
  
  <pre><code>srun: error: Couldn't find the specified plugin name for auth/munge looking at all files
  srun: error: cannot find auth plugin for auth/munge
  srun: error: cannot create auth context for auth/munge
  srun: error: Couldn't find the specified plugin name for auth/munge looking at all files
  srun: error: cannot find auth plugin for auth/munge
  srun: error: cannot create auth context for auth/munge
  srun: error: Couldn't find the specified plugin name for auth/munge looking at all files
  srun: error: cannot find auth plugin for auth/munge
  srun: error: cannot create auth context for auth/munge
  srun: error: authentication: authentication initialization failure
  srun: error: Srun communication socket apparently being written to by something other than Slurm
  srun: error: Unable to allocate resources: Protocol authentication error
  </code></pre>
  
  <p>I don't know what the problem is and online research has not been much help.</p>