Ondemand-dex database problem

Hi All

I’m running ondemand 3.1 on Rocky 8.9 and trying to setup dex.

When trying to run the ondemand-dex service it exits with this message:

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

Thinking it may be a problem with the database location in /etc/ood/dex/config.yaml,
I modified the file location to /var/dex/dex.db. Then made the ondemand-dex the owner of the folder.

However i now get a different error message:

failed to initialize storage: failed to perform migrations: creating migration table: unable to open database file: permission denied

Next i manually created the dex.db file, but still the service failed.

Any suggestions on what to try next?

I tried out ondemand a year ago and can’t remember encountering these problems.

Should have taken another look before i posted.
I changed the database location to /etc/ood/dex/dex_db.db and it’s now working

1 Like

Hi and welcome!

That’s good to hear you fixed it, sorry I couldn’t reply sooner.