I tried to restore a partial backup to version 1.1.6 but that failed with 'BackupManager.do_restore_partial' blocked from execution, system is not running - CoreState.FREEZE
Just restart the 2.0.1 addon when you moved your postgres12 folder to postgres.
It will just try the upgrade again. Make sure you have listed all timescale capable databases in the config before starting the addon.
Second attempt to try to update from 1.6
AGain, failures
Checking for presence of required libraries fatal
Your installation references loadable libraries that are missing from the
new installation. You can add these libraries to the new installation,
or remove the functions using them from the old installation. A list of
problem libraries is in the file:
loadable_libraries.txt
Failure, exiting
[12:42:31] ERROR: PostgreSQL could not upgrade! Please inspect any errors in the lines above!
[12:42:31] ERROR: Upgrade was not succesfull.
[cont-init.d] init.sh: exited 1.
[cont-finish.d] executing container finish scripts…
[cont-finish.d] 99-message.sh: executing…
Oops! Something went wrong.
We are so sorry, but something went terribly wrong when
starting or running this add-on.
Be sure to check the log above, line by line, for hints.
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
Just installed the add-on and also pgAdmin4, and configured it in HA for recorder.
All seems to work fine, except lost energy dashboard, so thanks for this great job !
Altough I have some questions
I changed pw of postrges user, but isn’t it better to create additional users for homeassistant,…? But which rights should they get ?
Concerning backup, is this taken into account in the standard snapshots, or anything else needed ?
I see following warning, is this an issue
[12:17:12] INFO: Upgrading PostGIS for database: 'dsmrreader'
2022-05-03 10:17:12.658 UTC [497] ERROR: function postgis_extensions_upgrade() does not exist at character 8
2022-05-03 10:17:12.658 UTC [497] HINT: No function matches the given name and argument types. You might need to add explicit type casts.
2022-05-03 10:17:12.658 UTC [497] STATEMENT: SELECT PostGIS_Extensions_Upgrade();
ERROR: function postgis_extensions_upgrade() does not exist
LINE 1: SELECT PostGIS_Extensions_Upgrade();
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
The old db file can be deleted ?
Now I’ll dive into LTSS
I would really appreciate if anybody could share a backup & restore process with pgAdmin or pg_dump. I spent hours and hours without succeeding. If I want to restore a backup, I always end up with errors like this:
pg_restore: creating CONSTRAINT “public.ltss ltss_pkey”
pg_restore: from TOC entry 4566; 2606 18792 CONSTRAINT ltss ltss_pkey postgres
pg_restore: error: could not execute query: ERROR: ONLY option not supported on hypertable operations
Is there a way to export or backup a timescaledB that can be imported into a normal postgresdB?
I want move my dB from timescaleDB to PosrgresdB on my NAS.
Backup is ok, but when import it I get errors that some
thanks alot for the addon! I would like to use the statistic functions from the TimescaleDB Toolkit, is this included in the image? if not do you have any hints how to install it?
Thanks! I tried to add the toolbox-build to your Dockerfile but faced many issues.
Had to resolve many dependency issues with the current Dockerfile (e.g. timescaledb-tune didn’t work anymore, some conflicts with pg versions and so on)
When I finally got the rust compiler to run within the container I faced issues with the timescaledb-toolbox build itself and gave up.
Thanks for the try! Yes, maintaining this dockerfile isn’t always smooth sailing…
It’s multi-arch, and sometimes the complete dependency-hell keeps me busy for days!