Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recreating a Plugin with same name and version after deleting fails. #1300

Open
Nanashi-lab opened this issue Feb 8, 2025 · 2 comments
Open
Labels
bug Something isn't working
Milestone

Comments

@Nanashi-lab
Copy link

Nanashi-lab commented Feb 8, 2025

Description:

After deleting a plugin, attempting to create a new plugin with the exact same name and version fails consistently. Workaround is to restart the Golem backend server. I have verified this issue using both the golem-cli and direct POST requests to the backend's plugin endpoint.

Steps to Reproduce:

  1. Create a plugin with a specific name and version using either golem-cli plugin register or a POST request to the backend's plugin endpoint.
  2. Verify that the plugin is successfully created and listed by direct GET request or golem-cli plugin list.
  3. Delete the plugin and verify that the plugin is successfully deleted. (direct GET request)
  4. Attempt to create a new plugin with the same exact name and version as the previously deleted plugin, using either golem-cli plugin register or a POST request to the backend's plugin endpoint.

Workaround:

  • Restarting the Golem backend server resolves the issue. After a restart, the plugin can be created successfully. (In previous version, It did not need a restart of the server, just waiting a few minutes would resolve the issue (Maybe).)

Environment:

  • Golem Backend Server version 1.1.16
  • golem-cli version 1.1.16

Additional Information:

  • This bug is probably due to Golem backend not properly cleaning up or releasing some internal state related to the deleted plugin.
@vigoo vigoo added the bug Something isn't working label Feb 8, 2025
@vigoo vigoo added this to the Golem 1.2 milestone Feb 8, 2025
@itsparser
Copy link
Contributor

working on this fix

@Nanashi-lab
Copy link
Author

The exact error is "Internal Repository Error (Uniqure Key Violation)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants