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

fix: wipe PostgreSQL data to ensure unique deployment IDs #210

Closed
wants to merge 1 commit into from

Conversation

matifali
Copy link
Member

Summary

  • Stops the Coder service in the cleanup script
  • Wipes the PostgreSQL data directory and reinitializes it
  • Ensures each marketplace installation gets a unique deployment ID

Test plan

  • Build a GCP Marketplace image with these changes
  • Verify the PostgreSQL data directory is properly cleaned up
  • Check that deployments have unique IDs in telemetry

Fixes #180

🤖 Generated with Claude Code

The GCP Marketplace VM images were all showing the same deployment ID
(68aaf8cf-de7f-452f-8f23-32a9ba7fa864) because Coder was started during
the image build process, which generated and saved a deployment ID in
the PostgreSQL database.

This change:
1. Stops the Coder service in the cleanup script
2. Wipes the PostgreSQL data directory
3. Reinitializes the database structure
4. Ensures PostgreSQL is stopped before image creation

Fixes #180

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@matifali
Copy link
Member Author

Closing in favor of #211

@matifali matifali closed this Mar 17, 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

Successfully merging this pull request may close these issues.

Wipe deployment ID and any other Coder-specific information before imaging
1 participant