<div dir="ltr"><div dir="ltr"><br></div><div>Responses inline below ...</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 31, 2020 at 1:11 PM Tomek Mrugalski <<a href="mailto:tomek@isc.org">tomek@isc.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 27/08/2020 03:58, Klaus Steden wrote:<br>
> I'm not sure what to do, but I'm stuck. I was trying to switch over<br>
> to the ISC's 1.6 packages of everything, so after installing, I ran<br>
> through the database upgrade procedure but it only got from 5.0 to<br>
> 6.0.<br>
> <br>
> For some reason, the 6.0 to 7.0 upgrade keeps failing, so I can't<br>
> run the 1.6 software version.<br>
It would help if the "some reason" be a bit more specific. It looks like<br>
the first attempt to upgrade failed half-way with some parts of the<br>
schema being updated, but not all. The follow-up tries to run the update<br>
fails. I have no idea or suspicion why that would happen. The 7.0 schema<br>
was introduced long time ago and I don't remember specific complaints<br>
about it.<br>
<br>
> Anyone else run into this one? Any advice or things I can try to fix <br>
> this issue?<br>
You may try to run the schema update manually. Take a look at the 6.0 to<br>
7.0 update script here:<br>
<br>
<a href="https://gitlab.isc.org/isc-projects/kea/-/blob/master/src/share/database/scripts/mysql/upgrade_6.0_to_7.0.sh.in" rel="noreferrer" target="_blank">https://gitlab.isc.org/isc-projects/kea/-/blob/master/src/share/database/scripts/mysql/upgrade_6.0_to_7.0.sh.in</a><br>
<br>
It should also be available in your system if you installed kea-admin:<br>
/usr/share/kea/scripts/mysql/<a href="http://upgrade_6.0_to_7.0.sh" rel="noreferrer" target="_blank">upgrade_6.0_to_7.0.sh</a></blockquote><div><br></div><div>Yup, I installed 1.6.3 from ISC's repo so the tools are there as expected (I did experiment with different package versions -- 1.6.1, 1.6.2, 1.8.0, etc. of the upgrade script to see if that made a difference, but it did not; diffs indicate no changes between versions so I didn't expect anything different, but I did still think it useful to rule that out as a possibility.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
Copy the actual schema update (everything between <<EOF in line<br>
19 and EOF in line 647) to a file and run this as a script in mysql<br>
and see what happens.<br></blockquote><div><br></div><div>I wrangled someone from our database team, I will take a look at this with his help and see what happens when we try that.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Oh, and you did backup your DB before upgrading, right?<br><br></blockquote><div><br></div><div>Unfortunately not with this one but this is just sandbox so it's not valuable data regardless. I will make sure to do so with our production DBs if they're not already backed up (I believe they are, but as part of a larger SQL cluster backup process).</div><div><br></div><div>cheers,</div><div>KlausĀ </div></div></div>