coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
31.07k stars 1.57k forks source link

[Bug]: Docker compose project creation states "Duplicate entry found. Please use a different name." #2561

Open scflode opened 2 months ago

scflode commented 2 months ago

Description

When deleting a docker compose based resource and trying to recreate the same an error message stating "Duplicate entry found. Please use a different name." appears. After that "a" resource appears. But when trying to deploy there is the error message Error: SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint "service_applications_fqdn_unique".

Not sure how to completely remove an existing docker compose stack.

Minimal Reproduction (if possible, example repository)

Exception or Error

No response

Version

v4.0.0-beta.297

scflode commented 2 months ago

Maybe a mistake was to not force cleanup containers?

scflode commented 2 months ago

A thing I noticed upon more testing:

The "Duplicate entry found. Please use a different name." message does create the resource / stack every time. Had just some fun cleaning up 🧽 😊

It could also be that my usage of SERVICE_FQDN_SERVICE_NAME is wrong or causing the issues.

scflode commented 2 months ago

Next error happens when trying to edit the docker compose definition: "The docker compose field is required."