ubccr / mokey

FreeIPA self-service account management portal
BSD 3-Clause "New" or "Revised" License
190 stars 45 forks source link

Failed reading config file - While parsing config: yaml: line 33: did not find expected key #104

Closed pqvindesland closed 2 years ago

pqvindesland commented 2 years ago

Hi

I am currently running mokey in develop true while testing, but I want to add a ssl and edit cert: "/patch/to/cft" and key: "/path/to/key" it fails with: Failed reading config file - While parsing config: yaml: line 33: did not find expected key

I have also tried to change require_verify_admin: to enable admin verificaition of new account, but it's also failing with a similar error.

Setting developer: false doesn't help either.

Do you have any idea what i am doing wrong?

Regards Per

pqvindesland commented 2 years ago

Does anyone have any suggestions on how to resolve this?

aebruno commented 2 years ago

Check line 33? While parsing config: yaml: line 33: did not find expected key Perhaps you have the wrong path to your key file?

pqvindesland commented 2 years ago

I solvedd it and it was a stupid error, when you enable something like require_verify_email: true and just remove the # it leaves a space to require_verify_email: true which means it read the space as a value, once i removed the space it read only require_verify_email: true so the error was gone.

aebruno commented 2 years ago

@pqvindesland Excellent! Thanks for reporting back and glad you got it sorted out.