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

Monitoring integration list throws an exception on migrated installation from v1.1.0 to v1.2.1 #298

Closed
gianlucapiccolo opened this issue Nov 30, 2021 · 0 comments
Assignees
Labels
Milestone

Comments

@gianlucapiccolo
Copy link

Expected Behavior

When a monitoring integration is configured, the page /vspheredb/configuration/monitoring should show the monitoring integration list

Current Behavior

When a monitoring integration is configured, the page /vspheredb/configuration/monitoring throws an exception:
Oops, an error occurred! SQLSTATE[42S22]: Column not found: 1054 Unknown column 'mc.id' in 'field list', query was: SELECT mc.source_type, mc.source_resource_name, mc.id, mc.priority, mc.host_property, mc.monitoring_host_property, mc.vm_property, mc.monitoring_vm_host_property FROM monitoring_connection AS mc ORDER BY priority ASC LIMIT 25 (Pdo.php:225)

Possible Solution

I think that this is caused from the missing id column in monitoring_connection table.
The monitoring_connection table in the schema/schema.sql file contains the id column but there is no alter table to add that column in the schema/mysql-migration/upgrade_*.sql or in the schema/legacy-mysql-changes/upgrade_*.sql files.

Steps to Reproduce (for bugs)

  1. Upgrade from version 1.1.0 to 1.2.1
  2. Add a monitoring integration
  3. Load the /vspheredb/configuration/monitoring page

Your Environment

  • Version/GIT-Hash of this module:
  • Icinga Web 2 version: 2.8.5
  • Operating System and version: 1.2.1
  • Webserver, PHP versions: httpd, 7.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants