[slurm-users] Parse error on starting slurmctld/slurmd

2,478 views
Skip to first unread message

Priya Mishra

unread,
May 26, 2019, 9:01:27 AM5/26/19
to slurm...@lists.schedmd.com
I am using Ubuntu-18.04 on Windows Subsystem for Linux. I have installed slurm using the ubuntu package (slurm-wlm). I get the the following error while starting slurmctld /slurmd:

slurmctld: error: _parse_next_key: Parsing error at unrecognized key: SlurmctldHost slurmctld: error: Parse error in file /etc/slurm-llnl/slurm.conf line 5: "SlurmctldHost=LAPTOP-KKM6C1SN" slurmctld: fatal: Unable to process configuration file
The hostname provided in the configuration file is the output of 'hostname -s' . What maybe causing the problem?

Thanks,
Priya

Chris Samuel

unread,
May 26, 2019, 12:07:23 PM5/26/19
to slurm...@lists.schedmd.com
On Sunday, 26 May 2019 6:01:01 AM PDT Priya Mishra wrote:

> slurmctld: error: _parse_next_key: Parsing error at unrecognized key:
> SlurmctldHost slurmctld: error: Parse error in file
> /etc/slurm-llnl/slurm.conf line 5: "SlurmctldHost=LAPTOP-KKM6C1SN"
> slurmctld: fatal: Unable to process configuration file

You probably will need to post your slurm.conf to get a better idea, a parse
error like that seems unusual. It _might_ be that Slurm doesn't like the
hyphen in the hostname, but I would find that unlikely, could there be extra
characters, or the difference between DOS & Linux line ending conventions?

See this for more on that last point: https://kb.iu.edu/d/acux

All the best,
Chris
--
Chris Samuel : http://www.csamuel.org/ : Berkeley, CA, USA




Priya Mishra

unread,
May 26, 2019, 1:42:20 PM5/26/19
to slurm...@lists.schedmd.com
This is the configuration file :

# slurm.conf file generated by configurator easy.html.
# Put this file on all nodes of your cluster.
# See the slurm.conf man page for more information.
#
SlurmctldHost=LAPTOP-KKM6C1SN

#MailProg=/bin/mail 
MpiDefault=none
#MpiParams=ports=#-# 
ProctrackType=proctrack/pgid
ReturnToService=1
SlurmctldPidFile=/var/run/slurm-llnl/slurmctld.pid
#SlurmctldPort=6817 
SlurmdPidFile=/var/run/slurm-llnl/slurmd.pid
#SlurmdPort=6818 
SlurmdSpoolDir=/var/lib/slurm-llnl/slurmd
SlurmUser=priya
#SlurmdUser=root 
StateSaveLocation=/var/lib/slurm-llnl/slurmctld
SwitchType=switch/none
TaskPlugin=task/none


# TIMERS 
#KillWait=30 
#MinJobAge=300 
#SlurmctldTimeout=120 
#SlurmdTimeout=300 


# SCHEDULING 
FastSchedule=1
SchedulerType=sched/backfill
SelectType=select/cons_res
SelectTypeParameters=CR_Core


# LOGGING AND ACCOUNTING 
AccountingStorageType=accounting_storage/none
ClusterName=cluster
#JobAcctGatherFrequency=30 
JobAcctGatherType=jobacct_gather/none
#SlurmctldDebug=info 
SlurmctldLogFile=/var/log/slurm-llnl/slurmctld.log
#SlurmdDebug=info 
SlurmdLogFile=/var/log/slurm-llnl/slurmd.log


# COMPUTE NODES 
NodeName=LAPTOP-KKM6C1SN CPUs=1 State=UNKNOWN 
PartitionName=debug Nodes=LAPTOP-KKM6C1SN Default=YES MaxTime=INFINITE State=UP  
Reply all
Reply to author
Forward
0 new messages