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
[v1.0.0b] - Unable to create new or update receipes - Recipe already exists #2049
Comments
Nevermind. Looks like it was a fluke that one worked... |
I am having the same issue and it's a completely breaking bug for 1.0.0 beta 4 as well as 1.0.0 beta 5 when using postgres as a db. I've tested this on both and are running into the issue with both. Along with "SQL Integrity Error on recipe controller action" coming from the api, looking into the postgres database it is finding a duplicate recipe ingredient when creating or importing a recipe:
@alexrasmussendk - can you look into the postgres logs and see if you are having the same error? |
Thanks @hay-kot for that relation. I attempted the migrations listed by nkringle and those did fix the issue in my v1.0.0b4. I am pretty sure it will work for Beta 5/nightly as well. A couple of those SETVAL commands didn't work on certain tables (ingredient_food_extras, shopping_list_extras, and shopping_list_item_extras) due to my instance not utilizing those parts of the app yet. Is this something that can be corrected on the frontend or api? Otherwise I'm not sure if this is a migration issue from one version to the next using Postgres as a backend. |
This should only happen for backup/restore and not regular updates to the container. I believe we could automatically perform the SETVAL operations during the migration process so this would happen without user intervention. |
I do think it would be a good idea to have the operations run automatically during the migration to ensure there are no issues from the backup and restore. At least for Postrgres backends. I don't know if this issue would exist or need those same migrations with sqlite. |
@ZeroGravitas23 - Yes, I have the exactly the same error messages in the PostgreSQL Database container logs.
|
@alexrasmussendk If you run the database commands that nkringle lists in the related issue below, it will solve solve your problems for now. These commands need to be run in the database container.
|
Thanks @ZeroGravitas23 The workaround from @nkringle worked! I can now create new and update existing receipes. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
First Check
What is the issue you are experiencing?
I have added 114 recipes in Mealie and now I can no longer add new ones or change my existing recipes.
It fails with the error message: Recipe already exists in Mealie Frontend even if neither the recipe nor the recipe name already exists.
In Docker logs for Mealie API it fails with the error message: SQL Integrity Error on recipe controller action
I have tried to restart the Docker containers and download the Docker images again without any luck.
Deployment
Docker (Linux)
Deployment Details
Deployed with Docker Compose file:
mealie-frontend:
image: hkotel/mealie:frontend-nightly
mealie-api:
image: hkotel/mealie:api-nightly
postgres:
image: postgres
The text was updated successfully, but these errors were encountered: