nateGeorge / slurm_gpu_ubuntu

Instructions for setting up a SLURM cluster using Ubuntu 18.04.3 with GPUs.
MIT License
131 stars 37 forks source link

Can't load accounting_storage/mysql plugin #2

Closed dwschulze closed 4 years ago

dwschulze commented 4 years ago

I did this setup on virtual machines leaving out the anaconda/python and CUDA/GPU steps. I don't have a gres.conf file and in /etc/slurm/slurm.conf I don't have an entry like Gres=gpu:2 on the last line.

The controller gives the following error:

$ sudo slurmdbd -D -vvvv slurmdbd: debug: Log file re-opened slurmdbd: pidfile not locked, assuming no running daemon slurmdbd: debug3: Trying to load plugin /usr/lib/slurm/auth_munge.so slurmdbd: debug: Munge authentication plugin loaded slurmdbd: debug3: Success. slurmdbd: debug3: Trying to load plugin /usr/lib/slurm/accounting_storage_mysql.so slurmdbd: error: Couldn't find the specified plugin name for accounting_storage/mysql looking at all files slurmdbd: error: cannot find accounting_storage plugin for accounting_storage/mysql slurmdbd: error: cannot create accounting_storage context for accounting_storage/mysql slurmdbd: fatal: Unable to initialize accounting_storage/mysql accounting storage plugin

Is there another package I need to install?

nateGeorge commented 4 years ago

Looks like you didn't do the mysql install steps: https://github.com/nateGeorge/slurm_gpu_ubuntu#prepare-db-for-slurm

dwschulze commented 4 years ago

I needed to install libssl-dev

sudo apt-get install libssl-dev

The ./configure script compiles and runs a mysql test program and it takes -lssl and -lcrypto as make command line arguments. That test program wasn't compiling and I think that is what made it omit the mysql plugin.

I also added

sudo apt install build-essential (not sure this is needed) sudo apt-get install libssl-dev

to remove some other ./configure errors that show up in config.log.

nateGeorge commented 4 years ago

Ok, I added those as dependencies just in case. Thanks for debugging!