-
-
Notifications
You must be signed in to change notification settings - Fork 959
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
Handled exception: ValueError: Internal group has more than one project assigned! #7503
Comments
You've probably made some modifications to Weblate internal groups, and the migration does not deal with that. Please fix the project assignment for the |
See also WeblateOrg/docker#1454 |
This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you! |
I'm fairly sure I didn't. But anyway, how do I fix it? |
This issue has been automatically marked as stale because there wasn’t any recent activity. It will be closed soon if no further action occurs. Thank you for your contributions! |
I still think there's at least 3 issues here. |
In case you are not using it to grant access at project level, the easiest solution is to remove it. `weblate shell -c 'from weblate.auth.models import Group; Group.objects.get(name="Dangerous Quest!@administration").delete()' If you are using it, run the interactive shell and fix the projects assignment: from weblate.auth.models import Group;
group = Group.objects.get(name="Dangerous Quest!@Administration")
print(group.projects)
# Remove unwanted one
group.projects.remove(group.projects[0]) |
Thank you. |
This issue has been automatically marked as stale because there wasn’t any recent activity. It will be closed soon if no further action occurs. Thank you for your contributions! |
I faced with the same issue when updating Weblate from 4.10.1-1 to 4.11.2-1. Weblate runs in Docker container. Updated using pull and deploy new image
But there are only one entry and I couldn't find any mention about "trans.Project.None" in any my projects (also we have only two projects). |
So you want to delete or fix? |
First of all, thank you for responding.
Therefore:
If you need any more information, please let me know. |
I think your error says that no projects are assigned. From my experience, it's best to stay away from internal groups. With Weblate's limitations and quirks, they are less than useless. Just define your own and grant permission through those. |
I forgot to say that I originally updated the image from 4.8-1 to 4.10.1-1, the migration of the database was successful. I definitely did not rename the group, maybe someone before me. But the group "web_app_v2@Administration" is present. In the history of the group "web_app_v2@Translations_All" I found a record that it was added through the Weblate administration portal.
I thought so too. In that case, what's the best thing to do first:
|
Describe the issue
Trying upgrade to 4.11.2.
Turns out, I have a group which has no projects assigned. Migrations fail, container doesn't start.
No option to delete the group in UI. Don't see a management command for it, either.
Migration checks for exactly one group, but error message says "more than one".
I already tried
Steps to reproduce the behavior
Standard docker-compose up with new version.
Expected behavior
Screenshots
Screenshots are from previous 4.9 version.
Exception traceback
How do you run Weblate?
Docker container
Weblate versions
Standard 4.11.2-1 Docker.
Weblate deploy checks
Probably not relevant, but if needed, can add.
Additional context
No response
The text was updated successfully, but these errors were encountered: