Solved

Centreon upgrade from 22.10.9 to 22.10.11 failed (Impossible to alter metrics table)

  • 31 July 2023
  • 3 replies
  • 577 views

Badge +1

Hello everyone!

My Centreon upgrade failed during the upgrading process, does anyone have any idea about the issue? Would you please help me to solve it? Thank you in advance.

 

icon

Best answer by digitronicguru 31 July 2023, 21:03

View original

3 replies

Badge +3

getting same… any ideas anyone ?

Badge +3

@kmaguey,

I was getting the EXACT error “impossible to alter metrics table”

I found this in the centreon documentation:

https://docs.centreon.com/docs/resources/known-issues/

what worked for me was this: (i have default centreon install, single node)

ALTER TABLE centreon_storage index_data MODIFY id bigint unsigned AUTO_INCREMENT;
ALTER TABLE centreon_storage metrics MODIFY index_id bigint unsigned;

ALTER TABLE centreon.ods_view_details MODIFY index_id bigint unsigned;
ALTER TABLE centreon.virtual_metrics MODIFY index_id bigint unsigned;

then restarted the server, once server came back up, for whatever reason always have to restart the cbd service manually, i just use this command:

systemctl restart cbd centengine centreontrapd gorgoned

Hope this helps someone!

 

Badge +1

It worked! There is a bit of an error within the answer but overall the answer is correct! Thank you very much indeed @digitronicguru for your help!

The corrected answer would be:

ALTER TABLE centreon_storage.index_data MODIFY id bigint unsigned AUTO_INCREMENT;
ALTER TABLE centreon_storage.metrics MODIFY index_id bigint unsigned;

ALTER TABLE centreon.ods_view_details MODIFY index_id bigint unsigned;
ALTER TABLE centreon.virtual_metrics MODIFY index_id bigint unsigned;

Reply