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

Add superadmin script throws error in DO deployments #538

Open
dorthrithil opened this issue Dec 16, 2024 · 0 comments
Open

Add superadmin script throws error in DO deployments #538

dorthrithil opened this issue Dec 16, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@dorthrithil
Copy link
Contributor

[2024-12-16 22:00:28] The above exception was the direct cause of the following exception:
[2024-12-16 22:00:28]
[2024-12-16 22:00:28] Traceback (most recent call last):
[2024-12-16 22:00:28] File "/workspace/server/src/util/scripts/database_setup.py", line 22, in
[2024-12-16 22:00:28] setup_database()
[2024-12-16 22:00:28] File "/workspace/server/src/util/scripts/database_setup.py", line 18, in setup_database
[2024-12-16 22:00:28] script()
[2024-12-16 22:00:28] File "/workspace/server/src/util/scripts/add_superadmin.py", line 20, in add_superadmin
[2024-12-16 22:00:28] user = create_user(user_data)
[2024-12-16 22:00:28] ^^^^^^^^^^^^^^^^^^^^^^
[2024-12-16 22:00:28] File "/workspace/server/src/helpers/user_helpers.py", line 26, in create_user
[2024-12-16 22:00:28] db.session.commit()
...
[2024-12-16 22:00:28] sqlalchemy.exc.IntegrityError: (psycopg2.errors.NotNullViolation) null value in column "slug" of relation "users" violates not-null constraint
[2024-12-16 22:00:28] DETAIL: Failing row contains (a62ce..., ....
[2024-12-16 22:00:28]

@dorthrithil dorthrithil added the bug Something isn't working label Dec 16, 2024
@dorthrithil dorthrithil added this to the v1.10.0 milestone Dec 16, 2024
@dorthrithil dorthrithil modified the milestones: v1.10.0, v1.11.0 Jan 11, 2025
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

1 participant