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

Toolkit update error #398

Closed
jerryxwu opened this issue Apr 23, 2022 · 3 comments
Closed

Toolkit update error #398

jerryxwu opened this issue Apr 23, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@jerryxwu
Copy link
Contributor

Relevant system information:

  • OS: WSL running Ubuntu 20.04
  • PG: 14.2
  • TimescaleDB: 2.6.1
  • TimescaleDB: 1.5.1 & 1.6.0
  • Installation method: timescaledb-ha docker

Describe the bug
Attempting to update from 1.5.1 to 1.6.0 failed with error message:
ERROR: attempt to redefine parameter "timescaledb_toolkit_acknowledge_auto_drop"

To Reproduce
Steps to reproduce the behavior:

  1. docker run -d --name tsdb -p 5432:5432 -e POSTGRES_PASSWORD=password timescale/timescaledb-ha:pg14.2-ts2.6.1-latest
  2. docker exec -it tsdb psql -U postgres
  3. CREATE EXTENSION timescaledb_toolkit VERSION "1.5.1";
  4. \dx timescaledb_toolkit;
  5. ALTER EXTENSION timescaledb_toolkit UPDATE; should produce the aforementioned error. More importantly, the toolkit version stays at 1.5.1, not 1.6.0.

Expected behavior
timescaledb_toolkit extension should be updated to "1.6.0"

Actual behavior
timescaledb_toolkit extension stays at "1.5.1".

Workaround
Start a new psql session and run ALTER EXTENSION timescaledb_toolkit UPDATE;, the extension may be updated correctly. I've seen this happening twice to me.

@jerryxwu jerryxwu added the bug Something isn't working label Apr 23, 2022
@jerryxwu
Copy link
Contributor Author

jerryxwu commented Apr 27, 2022

I just confirmed the same behaviour on the Timescale cloud.

@jerryxwu
Copy link
Contributor Author

@JLockerman do you think this might be fixed by PR #395 ?

@jerryxwu
Copy link
Contributor Author

Users no longer need to CREATE EXTENSION after starting timescaledb-ha docker. The issue can no longer be reproduced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant