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

[BUG] - Unable to create users / household #4632

Closed
5 of 6 tasks
turbofx opened this issue Nov 30, 2024 · 3 comments · Fixed by #4653
Closed
5 of 6 tasks

[BUG] - Unable to create users / household #4632

turbofx opened this issue Nov 30, 2024 · 3 comments · Fixed by #4653
Labels
bug: confirmed bug Something isn't working

Comments

@turbofx
Copy link

turbofx commented Nov 30, 2024

First Check

  • This is not a feature request.
  • I added a very descriptive title to this issue (title field is above this).
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Mealie documentation, with the integrated search.
  • I already read the docs and didn't find an answer.
  • This issue can be replicated on the demo site (https://demo.mealie.io/).

What is the issue you are experiencing?

I've used both the docker-compose's for SQLLITE and Postgresql and I run into the same problem.
I'm able to login as the Changeme user and create myself as an admin user, I'm unable to add any more users.

Steps to Reproduce

  1. Create a basic docker compose file using the instructions on the web. Start with "up" so you can watch the logs.
  2. Go into the web app, go to the "households" and try to create a new household, get nowhere, but there is a default.
  3. Go to create user and you try to pick group "Family" but the household says "No data found" and goes red.

Please provide relevant logs

When trying to create a household I see this log emitted from the container:
mealie | INFO 2024-11-30T09:37:17 - [172.20.0.1:59302] 422 Unprocessable Entity "POST /api/admin/households HTTP/1.1"

Mealie Version

Version: 2.3.0
Build ID: d6de0d0

Deployment

Docker (Linux)

Additional Deployment Details

I'm using the provided docker-compose yaml for a SQLLITE version.

@turbofx turbofx added bug Something isn't working triage labels Nov 30, 2024
@ryancbutler
Copy link

Seems like the GUID isn't being created when checking with browser tools.

Request

{"groupId":"","name":"test"}

Response

{
    "detail": [
        {
            "type": "uuid_parsing",
            "loc": [
                "body",
                "groupId"
            ],
            "msg": "Input should be a valid UUID, invalid length: expected length 32 for simple format, found 0",
            "input": "",
            "ctx": {
                "error": "invalid length: expected length 32 for simple format, found 0"
            }
        }
    ]
}

@michael-genson
Copy link
Collaborator

Huh, no idea what happened there. I can reproduce this on my instance and on the demo

@michael-genson
Copy link
Collaborator

Oh I see what it is; the UI wants you to choose a group, but it will let you leave it null, thus it fails when it hits the API. Make sure you select the group before trying to create the user/household.

The UI should prevent you from making this mistake, though

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

Successfully merging a pull request may close this issue.

3 participants