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

Postgres syncer has incorrect local defaults #99

Closed
rocketeerbkw opened this issue Sep 27, 2023 · 0 comments · Fixed by #101
Closed

Postgres syncer has incorrect local defaults #99

rocketeerbkw opened this issue Sep 27, 2023 · 0 comments · Fixed by #101

Comments

@rocketeerbkw
Copy link
Member

Attempting to sync postgres with a config file that doesn't include local will fallback to environment variables that are not valid:

[DEBUG] 2023/09/27 16:42:34 github.com/uselagoon/lagoon-sync/utils.LogDebugInfo:logs.go:62 Config that will be used for sync {
  "Config": {
    "DbHostname": "${POSTGRES_HOST:-postgres}",
    "DbUsername": "${POSTGRES_USERNAME:-drupal}",
    "DbPassword": "${POSTGRES_PASSWORD:-drupal}",
    "DbPort": "${POSTGRES_PORT:-5432}",
    "DbDatabase": "${POSTGRES_DATABASE:-drupal}",
    "ExcludeTable": null,
    "ExcludeTableData": null,
    "OutputDirectory": ""
  },
  "LocalOverrides": {
    "Config": {
      "DbHostname": "$AMAZEEIO_DB_HOST",
      "DbUsername": "$AMAZEEIO_DB_USERNAME",
      "DbPassword": "$AMAZEEIO_DB_PASSWORD",
      "DbPort": "$AMAZEEIO_DB_PORT",
      "DbDatabase": "$POSTGRES_DATABASE",
      "ExcludeTable": null,
      "ExcludeTableData": null,
      "OutputDirectory": ""
    }
  },
  "TransferId": ""
}

This causes the sync to fail on the target environment.

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 a pull request may close this issue.

1 participant