tag:help.appveyor.com,2012-11-13:/discussions/problems/27815-build-failing-due-to-key-errorAppVeyor: Discussion 2020-09-06T16:44:39Ztag:help.appveyor.com,2012-11-13:Comment/484936502020-07-28T18:04:59Z2020-07-28T18:05:00ZBuild failing due to key error<div><p>Had the same issue. For the time until this gets fixed you could implement the workaround from Msys2.org</p>
<p>see <a href="https://www.msys2.org/news/#2020-06-29-new-packagers">https://www.msys2.org/news/#2020-06-29-new-packagers</a></p></div>Stephantag:help.appveyor.com,2012-11-13:Comment/484936502020-07-28T21:42:49Z2020-07-28T21:42:49ZBuild failing due to key error<div><p>Thanks for the solution. It's definitely upstream changes as the image hasn't been changed recently.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/484936502020-07-29T07:48:02Z2020-07-29T07:48:04ZBuild failing due to key error<div><p>Well, the image seems to be very outdated in terms of the actual status of MSYS2. This made a lot of workarounds necessary in the past couple of month. Maybe you could consider upgrading the image with a new snapshot of an actual MSYS2 environment</p>
<p>Thanks in advance</p></div>Stephantag:help.appveyor.com,2012-11-13:Comment/484936502020-07-29T13:16:34Z2020-07-29T13:16:35ZBuild failing due to key error<div><p>We have also had troubles recently because of this. An updated image would do wonders.</p></div>Alexander Ftag:help.appveyor.com,2012-11-13:Comment/484936502020-07-29T17:56:16Z2020-07-29T17:56:16ZBuild failing due to key error<div><p>Use <code>Visual Studio 2019</code> image with the most recent MSYS.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/484936502020-07-29T19:15:59Z2020-07-29T19:16:03ZBuild failing due to key error<div><p>Well we do use this image</p></div>Stephantag:help.appveyor.com,2012-11-13:Comment/484936502020-07-30T02:14:51Z2020-07-30T02:14:51ZBuild failing due to key error<div><p><code>Visual Studio 2019</code> image has been <a href="https://www.appveyor.com/updates/2020/07/29/">just updated</a>. <a href="https://github.com/appveyor/build-images/blob/master/scripts/Windows/install_msys64.ps1">This script</a> is used to install MSYS on the image. Image as baked on July 26th. I'd say MSYS there is quite "recent". If you can spot what's missing we could update the script by the next image update.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/484936502020-07-30T07:35:24Z2020-07-30T07:35:26ZBuild failing due to key error<div><p>Hi,<br>
The script looks ok except that update of pacman-mirrors is commented out.<br>
However from what I see on the logs and console It seems not to have worked. could you provide the console output from the script to see what will be generated</p></div>Stephantag:help.appveyor.com,2012-11-13:Comment/484936502020-07-31T04:43:42Z2020-07-31T04:43:42ZBuild failing due to key error<div><p>We are not collecting pacman logs during msys installation. However, you can use the same script and call it during your build - it will remove existing C:\msys64 folder and start over - you'll be able to observe the installation. Also, feel free to modify script for logs collection.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/484936502020-07-31T12:11:03Z2020-07-31T12:11:03ZBuild failing due to key error<div><p>Hi Feodor,</p>
<p>I did run the script in my project.<br>
it worked fine and it delivered an actual build.<br>
I inserted a pacman -Q command in the chain as well and it does not deliver the same or at least mostly similar results befor or after the script. So it seems this has not been run for the 29 July update of the Visual Studio 2019 update (it isn't mentioned an MSYS2 upgrade for this update in the changelog neither)</p></div>Stephantag:help.appveyor.com,2012-11-13:Comment/484936502020-09-06T16:44:36Z2020-09-06T16:44:39ZBuild failing due to key error<div><p>The script hasn't been run for the latest update of VS2019 again.<br>
Please run the script and provide an actual build of MSYS2 in the next image</p></div>Stephan