Hi,
A couple of weeks ago, I've upgraded from 5.x to 6.x. This implies an upgrading of my postgresql installation from 11 to 13 and timescaledb from 1.7 to 2.6.
This worked fine but I didn't pay attention that housekeeping in no longer working and I finally got an error from zabbix about my database disk that is 90% full.
Looking at zabbix logs, I can see the following:
On postgresql side, I have the following errors:
As I'm not expert on TimescaleDB, I've tried to run again the timescaledb.sql --> it worked fine without errors.
However, as soon as housekeeping run again I got the same errors.
How could I correct the problem please ?
Would it be possible to drop timescaledb from my installation and use a normal postgresql ?
I'm not interested in keeping history and trends so I can drops all data from these tables.
Thank you very much for your help
A couple of weeks ago, I've upgraded from 5.x to 6.x. This implies an upgrading of my postgresql installation from 11 to 13 and timescaledb from 1.7 to 2.6.
This worked fine but I didn't pay attention that housekeeping in no longer working and I finally got an error from zabbix about my database disk that is 90% full.
Looking at zabbix logs, I can see the following:
Code:
10538:20220721:081753.219 executing housekeeper 10538:20220721:081753.227 [Z3005] query failed: [0] PGRES_FATAL_ERROR:ERROR: "history" is not a hypertable or a continuous aggregate HINT: The operation is only possible on a hypertable or continuous aggregate. [select drop_chunks(relation=>'history',older_than=>165708 8273)] 10538:20220721:081753.227 cannot drop chunks for history 10538:20220721:081753.227 [Z3005] query failed: [0] PGRES_FATAL_ERROR:ERROR: "history_str" is not a hypertable or a continuous aggregate HINT: The operation is only possible on a hypertable or continuous aggregate. [select drop_chunks(relation=>'history_str',older_than=>16 57088273)] 10538:20220721:081753.227 cannot drop chunks for history_str 10538:20220721:081753.227 [Z3005] query failed: [0] PGRES_FATAL_ERROR:ERROR: "history_log" is not a hypertable or a continuous aggregate HINT: The operation is only possible on a hypertable or continuous aggregate. [select drop_chunks(relation=>'history_log',older_than=>16 57088273)] 10538:20220721:081753.227 cannot drop chunks for history_log 10538:20220721:081753.228 [Z3005] query failed: [0] PGRES_FATAL_ERROR:ERROR: "history_text" is not a hypertable or a continuous aggregate HINT: The operation is only possible on a hypertable or continuous aggregate. [select drop_chunks(relation=>'history_text',older_than=>1 657088273)] 10538:20220721:081753.228 cannot drop chunks for history_text 10538:20220721:081753.305 housekeeper [deleted 0 hist/trends, 0 items/triggers, 4 events, 3 problems, 0 sessions, 0 alarms, 2087 audit, 0 records in 0.078804 sec, idle for 1 hour(s)]
Code:
2022-07-21 07:17:53.063 CEST [18515] zabbix@zabbix HINT: The operation is only possible on a hypertable or continuous aggregate. 2022-07-21 07:17:53.063 CEST [18515] zabbix@zabbix STATEMENT: select drop_chunks(relation=>'history_log',older_than=>16 57084673) 2022-07-21 07:17:53.063 CEST [18515] zabbix@zabbix ERROR: "history_text" is not a hypertable or a continuous aggregate 2022-07-21 07:17:53.063 CEST [18515] zabbix@zabbix HINT: The operation is only possible on a hypertable or continuous aggregate. 2022-07-21 07:17:53.063 CEST [18515] zabbix@zabbix STATEMENT: select drop_chunks(relation=>'history_text',older_than=>1 657084673) 2022-07-21 08:17:53.227 CEST [24400] zabbix@zabbix ERROR: "history" is not a hypertable or a continuous aggregate 2022-07-21 08:17:53.227 CEST [24400] zabbix@zabbix HINT: The operation is only possible on a hypertable or continuous aggregate. 2022-07-21 08:17:53.227 CEST [24400] zabbix@zabbix STATEMENT: select drop_chunks(relation=>'history',older_than=>165708 8273) 2022-07-21 08:17:53.227 CEST [24400] zabbix@zabbix ERROR: "history_str" is not a hypertable or a continuous aggregate 2022-07-21 08:17:53.227 CEST [24400] zabbix@zabbix HINT: The operation is only possible on a hypertable or continuous aggregate. 2022-07-21 08:17:53.227 CEST [24400] zabbix@zabbix STATEMENT: select drop_chunks(relation=>'history_str',older_than=>16 57088273) 2022-07-21 08:17:53.227 CEST [24400] zabbix@zabbix ERROR: "history_log" is not a hypertable or a continuous aggregate 2022-07-21 08:17:53.227 CEST [24400] zabbix@zabbix HINT: The operation is only possible on a hypertable or continuous aggregate. 2022-07-21 08:17:53.227 CEST [24400] zabbix@zabbix STATEMENT: select drop_chunks(relation=>'history_log',older_than=>16 57088273) 2022-07-21 08:17:53.228 CEST [24400] zabbix@zabbix ERROR: "history_text" is not a hypertable or a continuous aggregate 2022-07-21 08:17:53.228 CEST [24400] zabbix@zabbix HINT: The operation is only possible on a hypertable or continuous aggregate. 2022-07-21 08:17:53.228 CEST [24400] zabbix@zabbix STATEMENT: select drop_chunks(relation=>'history_text',older_than=>1 657088273)
However, as soon as housekeeping run again I got the same errors.
How could I correct the problem please ?
Would it be possible to drop timescaledb from my installation and use a normal postgresql ?
I'm not interested in keeping history and trends so I can drops all data from these tables.
Thank you very much for your help
Comment