Hi there o/
I follow the guideline from https://www.zabbix.com/documentation.../debian_ubuntu until the point to start zabbix-server and here the issues starts:
First error (on /var/log/zabbix/zabbix_server.log) :
I tried to "fix" this issue by doing :
Then 2nd error :
I tried to "fix" this issue by doing :
Then third error:
I tried to "fix" this issue by doing :
And the upgrade where possible ...
But looking for a host on the frontend, give errors which seems to indicate that the collumn is now empty/not existing :
So i guess removing the column wasn't the best idea (I don't mind, I have a backup) but what's the solution now to fix the 1st error (and likely the other one) ?
I follow the guideline from https://www.zabbix.com/documentation.../debian_ubuntu until the point to start zabbix-server and here the issues starts:
First error (on /var/log/zabbix/zabbix_server.log) :
Code:
4244:20241128:124848.131 starting automatic database upgrade 4244:20241128:124848.140 [Z3005] query failed: [1060] Duplicate column name 'name_upper' [alter table `hosts` add `name_upper` varchar(128) default '' not null] 4244:20241128:124848.141 database upgrade failed on patch 06030064, exiting in 10 seconds
alter table hosts drop column name_upper;
Code:
5232:20241128:145118.660 starting automatic database upgrade 5232:20241128:145119.257 completed 0% of database upgrade 5232:20241128:145123.011 completed 1% of database upgrade 5232:20241128:145123.017 [Z3005] query failed: [1060] Duplicate column name 'name_upper' [alter table `items` add `name_upper` varchar(255) default '' not null] 5232:20241128:145123.018 database upgrade failed on patch 06030069, exiting in 10 seconds
alter table items drop column name_upper;
Code:
5389:20241128:145437.527 starting automatic database upgrade 5389:20241128:145437.529 [Z3005] query failed: [1061] Duplicate key name 'items_9' [create index items_9 on items (hostid,name_upper)] 5389:20241128:145437.530 database upgrade failed on patch 06030070, exiting in 10 seconds
drop index items_9 on items;
But looking for a host on the frontend, give errors which seems to indicate that the collumn is now empty/not existing :
Code:
[LIST][*]Error in query [SELECT h.hostid,h.name,h.status FROM hosts h WHERE h.flags IN (0,4) AND h.status IN (0,1) AND ((h.name_upper LIKE '%ANTH%' ESCAPE '!')) ORDER BY h.name LIMIT 10001] [Unknown column 'h.name_upper' in 'where clause'] [zabbix.php:17 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerHostViewRefresh->doAction() → CControllerHost->getData() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CHost->get() → CApiService->customFetch() → DBselect() → trigger_error() in include/db.inc.php:243][/LIST]
So i guess removing the column wasn't the best idea (I don't mind, I have a backup) but what's the solution now to fix the 1st error (and likely the other one) ?
Comment