# Slurm cluster configuration test

**URL:** <https://discourse.openondemand.org/t/slurm-cluster-configuration-test/2734>\
**Category:** Get Help\
**Created:** [June 6, 2023, 8:59pm UTC](https://discourse.openondemand.org/t/slurm-cluster-configuration-test/2734 "2023-06-06T20:59:59Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![perrymil](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/perrymil/32/1620_2.png) [@perrymil](https://discourse.openondemand.org/u/perrymil)\
**Post date:** [June 20, 2023, 9:11pm UTC](https://discourse.openondemand.org/t/slurm-cluster-configuration-test/2734/7 "2023-06-20T21:11:35Z")

</div>

We ended up going with installing the slurm binaries on the VM, and copying the munge key over.

I am getting an error related to the dex service now.

```auto
 failed to initialize storage: failed to perform migrations: creating migration table: unable to open database file: no such file or directory

```

Which I think means that dex either doesn’t know which database to create the migration table in, or I don’t have a valid database installed?

[https://dexidp.io/docs/storage/](https://dexidp.io/docs/storage/)

Looks like I need to install a sql database. I went ahead and installed and configured mysql 8.0

I suppose I need to tell dex what database to use now?

There is a configuration item in /etc/ood/config/ood\_portal.yml

storage\_file: /etc/ood/dex/dex.db

Which doesn’t currently exist. I created the dex db user and database… I think?

```auto
[root@openondemanddev etc]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.32 Source distribution

Copyright (c) 2000, 2023, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> CREATE DATABASE dex_db;
Query OK, 1 row affected (0.00 sec)

mysql> CREATE USER dex IDENTIFIED BY 'REDACTED';
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON dex_db.* TO dex;
Query OK, 0 rows affected (0.00 sec)

```

But /var/lib/mysql/dex\_db is empty…

---

_[View the full topic](https://discourse.openondemand.org/t/slurm-cluster-configuration-test/2734)._
