Site UUID is not unique error

Hi there,

Please advise on the below error (which I think is happening because I first did it on our Moodle test environment): 

An error occurredSite UUID is not unique.This must be fixed by an admin by restoring the hub secret or remove the site uuid and register as a new account with the content hub.

 

This happens when I try to 'Register an account on the H5P Hub here'. Via the 'Plugins overview' > [next to] mod_hvp, click 'Settings' > ...mod/hvp/content_hub_registration.php > input relevant information in mandatory fields

Moodle version number: 4.5.10

H5p version: mod_hvp (1.27.2) - 2024120900

Please let me know if I'm missing any relevant information.

Is there now a permanent solution or should we just use the workarounds from the following forum topic: https://h5p.org/comment/51687#comment-51687

Kind regards,

Ron A

otacke's picture

Hi, Ron!

If I recall correctly, every H5P integration gets a UUID (the site UUID) from the H5P Hub once enabling it. Then, when you register with the H5P OER Hub, you also reveive a site secret. Together they essentially serve as your "username" and "password" and are handled via the database using moodle's API (get_config and set_config). Plugin name is mod_hvp, the respective keys are site_uuid and hub_secret.

When you try to register with the H5P OER Hub and you receive that message, then it means that the H5P OER Hub already has a registered account with that UUID, but your plugin instance does not provide a hub secret.

You will either have to retrieve that hub secret from the instance that you used to register before, or you will need to remove the site_uuid and register again.

Hope that makes sense.

Best,

Oliver