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]: Undefined column: 7 ERROR: column "uuid" of relation "environment_variables" does not exist #4718

Closed
insaneadinesia opened this issue Jan 1, 2025 · 4 comments

Comments

@insaneadinesia
Copy link

Error Message and Logs

I got this error when try to add new env after upgrade the coolify from beta 306 to beta 380

SQLSTATE[42703]: Undefined column: 7 ERROR:  column "uuid" of relation "environment_variables" does not exist
LINE 1: ...ne", "is_preview", "application_id", "is_shared", "uuid", "u...
                                                             ^ (Connection: pgsql, SQL: insert into "environment_variables" ("key", "value", "is_build_time", "is_multiline", "is_preview", "application_id", "is_shared", "uuid", "updated_at", "created_at") values (TEST, eyJpdiI6Imx1YzhmTDVJeHZCYThScDlEbEczZlE9PSIsInZhbHVlIjoiWVYvSGZheVFYQStCV1ppbVEvVEQ3dz09IiwibWFjIjoiN2U2YTcxYjg3M2RhMGE5MGFkNTU4MTRjYjNiMDBhOWEwNzQ3N2M2MzIzZmEyNWJkNGMwNzQxNTRmMmVhMmVhYiIsInRhZyI6IiJ9, 0, 0, 0, 17, 0, rowo80gg8k8so8kkgso8k0gk, 2025-01-01 16:00:03, 2025-01-01 16:00:03) returning "id")

The issue just appear when i try to add new env, it runs normally when i just update the current value

Steps to Reproduce

  1. upgrade from v4.0.0-beta.306 to v4.0.0-beta.380
  2. just add new env to current resources
  3. then the error happen

Example Repository URL

No response

Coolify Version

v4.0.0-beta.380

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 22.04.2 LTS

Additional Information

No response

@insaneadinesia insaneadinesia added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Jan 1, 2025
@Cinzya
Copy link

Cinzya commented Jan 3, 2025

Have you tried adding the missing column manually to the db as outlined here? This usually fixed it for most people.
#4574 (comment)

@insaneadinesia
Copy link
Author

Have you tried adding the missing column manually to the db as outlined here? This usually fixed it for most people. #4574 (comment)

how can i run query manually? can you give me the steps?

@Cinzya
Copy link

Cinzya commented Jan 3, 2025

You can access the coolify-db terminal in Coolify when you go to Terminal on the left menu. There you select localhost -> coolify-db and run:

psql -U coolify -d coolify -c "ALTER TABLE environment_variables ADD COLUMN uuid VARCHAR(255);"

If you need more help with that, then it would be good if you join the coolLabs Discord Server and we continue the conversation there.

@insaneadinesia
Copy link
Author

wow, it works, thankyou @Cinzya

@github-actions github-actions bot removed 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants