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
[dev.icinga.com #13009] Schema migration is not working #533
Comments
Updated by tuxifier on 2016-10-30 21:29:45 +00:00 Just figured out - the missing table should have been created by mysql upgrade_77.sql. Apparently this did not work. I tried to manually execute the CREATE statements for icinga_notification_var. |
Updated by tgelf on 2016-10-31 13:40:36 +00:00
tuxifier wrote:
I do not see how you could manage it to reach migration 110 with a failing migration 77. Did you tweak other things manually?
This is then probably MySQL 5.7, however also other parts of the schema should then have failed at the time being. This has been fixed in the regular schema file with migration 92. But I still do not see how you managed it to get where you currently are. Could you please tell me more details regarding the history of your installation? Involved software versions, upgrade steps etc. Thanks, |
Updated by tgelf on 2016-11-02 16:48:41 +00:00 ping :-) |
Updated by tuxifier on 2016-12-03 22:03:51 +00:00 Hi Tom, sorry for the late response - living on the street too much at the moment (you know that ;)) consider that closed. |
Updated by tgelf on 2016-12-05 08:55:11 +00:00
Thanks! |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/13009
Created by tuxifier on 2016-10-30 20:57:53 +00:00
Assignee: (none)
Status: Closed (closed on 2016-12-05 08:55:11 +00:00)
Target Version: (none)
Last Update: 2016-12-05 08:55:11 +00:00 (in Redmine)
Icingaweb2 - Apply schema migrations results in:
Migration 110 failed (SQLSTATE[42S02]: Base table or view not found: 1146 Table 'director.icinga_notification_var' doesn't exist) while running UPDATE icinga_notification_var SET varvalue = 'false', format = 'json' WHERE varvalue = 'n' AND varname IN ( SELECT DISTINCT varname FROM director_datafield WHERE datatype LIKE '%DataTypeBoolean' )
icingacli director migration pending --verbose
There are 9 pending migrations
icingacli director migration run --verbose
ERROR: Icinga\Exception\IcingaException in /usr/share/icingaweb2/modules/director/library/Director/Db/Migration.php:52 with message: Migration 110 failed (SQLSTATE[42S02]: Base table or view not found: 1146 Table 'director.icinga_notification_var' doesn't exist) while running UPDATE icinga_notification_var
SET varvalue = 'false',
format = 'json'
WHERE varvalue = 'n'
AND varname IN (
SELECT DISTINCT varname
FROM director_datafield
WHERE datatype LIKE '%DataTypeBoolean'
)
The text was updated successfully, but these errors were encountered: