tag:help.appveyor.com,2012-11-13:/discussions/problems/19572-visual-studio-2017-build-environment-unable-to-switch-to-docker-linux-containersAppVeyor: Discussion 2019-06-21T09:06:25Ztag:help.appveyor.com,2012-11-13:Comment/468608492019-01-23T19:01:22Z2019-01-23T19:01:22ZVisual Studio 2017 build environment unable to switch to Docker Linux containers<div><p>Hi Calvin,</p>
<p>We changed affinity of your builds to a cloud that should be working. Please give it another try and let us know if that worked.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/468608492019-01-24T04:13:58Z2019-01-24T04:13:58ZVisual Studio 2017 build environment unable to switch to Docker Linux containers<div><p>thanks, it works now.</p></div>Calvintag:help.appveyor.com,2012-11-13:Comment/468608492019-04-27T15:13:45Z2019-04-27T16:33:31ZVisual Studio 2017 build environment unable to switch to Docker Linux containers<div><p>Hi, this issue is happening again, for example <a href="https://ci.appveyor.com/project/bazzilic/prismadb-driver-postgres/builds/24143710#L125">https://ci.appveyor.com/project/bazzilic/prismadb-driver-postgres/b...</a> and <a href="https://ci.appveyor.com/project/bazzilic/prismadb-driver-mysql/builds/24143712#L125">https://ci.appveyor.com/project/bazzilic/prismadb-driver-mysql/buil...</a></p></div>Calvintag:help.appveyor.com,2012-11-13:Comment/468608492019-04-28T03:16:06Z2019-04-28T03:16:06ZVisual Studio 2017 build environment unable to switch to Docker Linux containers<div><p>We introduced new Azure VM based <code>Windows Server 2019</code> image specifically for those cases. Please check usage sample <a href="https://ci.appveyor.com/project/appveyor-tests/win2k19-azure/builds/24024378">here</a>. It is basically the same, just shared drive is now <code>D:</code>, not <code>X:</code>.</p>
<p>We discontinue support of Docker for Windows in <code>Windows Server 2017</code> image because it keeps failing when we apply Windows updates to the Hyper-V host machines and VMs. We updated all customers using it over email and it seems that we missed you. Sorry for that.</p>
<p><code>Windows Server 2019</code> image is enabled for you, please give it a try.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/468608492019-04-29T20:33:26Z2019-04-29T20:33:26ZVisual Studio 2017 build environment unable to switch to Docker Linux containers<div><p>Hi, thanks for the update.</p>
<p>For the <code>Windows Server 2019</code> image, we realized that if a docker machine (Digital Ocean) is created, the output from the machine stops/hangs after a period of time, while the containers in the machine continues to execute. Example: <a href="https://ci.appveyor.com/project/bazzilic/prismadb-benchmark/builds/24182561">https://ci.appveyor.com/project/bazzilic/prismadb-benchmark/builds/...</a> vs <a href="https://ci.appveyor.com/project/bazzilic/prismadb-benchmark/builds/23590847">https://ci.appveyor.com/project/bazzilic/prismadb-benchmark/builds/...</a>. We know that the application actually continues to execute as we output to an external database on completion.</p>
<p>Also, networking to Digital Ocean (NYC1 & NYC3) is a lot slower than the <code>Visual Studio 2017</code> image. I understand that this is due to the difference between LiquidWeb (Michigan) vs Azure (Georgia), but geographically the difference is not substantial. Will this be improved in the near future?</p></div>Calvintag:help.appveyor.com,2012-11-13:Comment/468608492019-04-29T20:54:48Z2019-04-29T20:54:48ZVisual Studio 2017 build environment unable to switch to Docker Linux containers<div><p>Sorry for the hassle. Can you try adding <strong>non-blocking</strong> (RDP)(<a href="https://www.appveyor.com/docs/how-to/rdp-to-build-worker/">https://www.appveyor.com/docs/how-to/rdp-to-build-worker/</a>) in the beginning of the build and when build stuck, connect the machine and see if some window pops up and waiting for user input. This does not look very likely, but because it seems stuck on the same step both times in your build history, I still hope this can be something specific to this step and you can root cause it in RDP.</p>
<p>Regarding networking, can you please provide some simple test which I can run and see if we can alternate some setting to help.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/468608492019-04-30T18:21:16Z2019-04-30T18:21:16ZVisual Studio 2017 build environment unable to switch to Docker Linux containers<div><p>Hi, regarding the output issue, we believe that it is an issue with Docker itself; if the output is inactive for a certain period of time, the output stops. We have worked around it by keeping the output alive with extra messages.</p>
<p>Regarding the networking, I have created a simple test here: <a href="https://github.com/cheziyi/DigitalOcean-SpeedTest">https://github.com/cheziyi/DigitalOcean-SpeedTest</a>, with build here: <a href="https://ci.appveyor.com/project/cheziyi/digitalocean-speedtest">https://ci.appveyor.com/project/cheziyi/digitalocean-speedtest</a>. I am unable to run <code>Windows Server 2019</code> images on my personal account, but it should help with your testing. This is not a high priority, but it would be great if speeds can be improved.</p>
<p>Thanks for your help so far, this issue can be considered closed.</p></div>Calvintag:help.appveyor.com,2012-11-13:Comment/468608492019-05-02T23:51:16Z2019-05-02T23:51:16ZVisual Studio 2017 build environment unable to switch to Docker Linux containers<div><p>We enabled <code>Windows Server 2019</code> for your account as well, just in case you need it.</p>
<p>Repro depends on Digital Ocean token, which I cannot use (secure variables are being decrypted only inside account where they were encrypted).</p>
<p>Maybe I can try just to upload to Digital Ocean S3 storage and compare.</p>
<p>We have a slim chances we can improve it though. Obviously we cannot make Azure networking better. But what I will try is to remove Azure load balancer from the lab I will test. We run all VMs behind it so they have a single public IP so people can white list specific IP on firewall for deployments from AppVeyor to private resources. Maybe this part does not perform well, though I do not think so because right now, while <code>Windows Server 2019</code> is in preview, there are not a lot of traffic behind this load balancer.</p></div>Ilya Finkelshteyn