tag:help.appveyor.com,2012-11-13:/discussions/problems/19659-intermittent-hanging-buildsAppVeyor: Discussion 2019-07-14T06:44:59Ztag:help.appveyor.com,2012-11-13:Comment/468745202019-01-26T01:35:55Z2019-07-14T06:44:58ZIntermittent hanging builds<div><p>Hi there,<br>
We're having troubles with intermittently hanging builds in Git Extensions project.<br>
<a href="https://github.com/gitextensions/gitextensions/issues/6172">https://github.com/gitextensions/gitextensions/issues/6172</a></p>
<p>Any help in tracking and fixing the issue would be highly appreciated.</p>
<p>Thank you,<br>
Igor</p></div>russkietag:help.appveyor.com,2012-11-13:Comment/468745202019-01-26T04:01:08Z2019-01-26T04:01:08ZIntermittent hanging builds<div><p>Hi Igor,</p>
<p>Set up <strong>non-blocking</strong> <a href="https://www.appveyor.com/docs/how-to/rdp-to-build-worker/">RDP</a>. When it hung next time connect to build VM and see what happens. It seems like GUI test issue, so you hopefully will see the problem (some dialog box waiting for input or similar) right away.</p>
<p>Ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/468745202019-01-28T04:08:39Z2019-07-14T06:44:59ZIntermittent hanging builds<div><p>Thank you, but I couldn't get it to work for some reason.</p>
<p>I followed the steps outlined on the page, however I was unable to login.</p>
<p>I tried the following:</p>
<ul>
<li>I used 1Password to generate a 16 char long password with 3 numbers (A-Za-z0-9)</li>
<li>On <a href="https://ci.appveyor.com/project/gitextensions/gitextensions/settings/environment">https://ci.appveyor.com/project/gitextensions/gitextensions/setting...</a><br>
page added a new variable APPVEYOR_RDP_PASSWORD with the generated password<br></li>
<li>Added the PS script at the "init" stage to get RDP info The above resulted in login failed.<br>
[image: image.png]</li>
</ul>
<p>Then I tried:<br>
* Remove the above env variable * I encrypted the password on <a href="https://ci.appveyor.com/account/gitextensions/tools/encrypt">https://ci.appveyor.com/account/gitextensions/tools/encrypt</a> page<br>
* Added APPVEYOR_RDP_PASSWORD variable with encrypted password to appveyor.yml<br>
[image: image.png] This did not work either.</p>
<p>What am I doing wrong?</p>
<p>Thank you<br>
Igor</p></div>russkietag:help.appveyor.com,2012-11-13:Comment/468745202019-01-28T20:22:23Z2019-01-28T20:22:23ZIntermittent hanging builds<div><p>I do not see any issues with your steps, other than copy-paste errors which is not very probable. I would try with simpler manually set password for beginning. But actually, if you are in hurry to fix your problem with stuck test you can skip <code>APPVEYOR_RDP_PASSWORD</code> completely -- AppVeyor we generate and display randomly created password.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/468745202019-01-28T21:16:45Z2019-07-14T06:44:59ZIntermittent hanging builds<div><p>Thank you Ilya, that worked.<br>
I guess my password was the culprit, though I believe it should have met<br>
the requirements: fuu48sZA6nUQwvaf</p>
<p>I'll try to generate a new password and try again.</p>
<p>Regards, Igor</p></div>russkietag:help.appveyor.com,2012-11-13:Comment/468745202019-01-29T06:29:16Z2019-07-14T06:44:59ZIntermittent hanging builds<div><p>It is actually quite bizarre.</p>
<p>I set the password as per the guidelines:<br>
[image: image.png] I tried both upper and lower cased vars, as the guidelines are<br>
inconsistent. As expected it is the same variable.</p>
<p>I see that the password variable is set:<br>
[image: image.png]</p>
<p>However trying to connect to the RD the password is rejected...</p>
<p>I'm starting to think something under the hood in Appveyor isn't quite<br>
working.</p>
<p>Igor</p></div>russkietag:help.appveyor.com,2012-11-13:Comment/468745202019-01-30T00:30:20Z2019-01-30T00:30:20ZIntermittent hanging builds<div><p>Looking into it. Can you please send a links to those builds?</p>
<p>And also did you find the root cause for the original problem with stuck test?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/468745202019-01-30T00:43:52Z2019-07-14T06:44:59ZIntermittent hanging builds<div><p>Here's the link to our builds - <a href="https://ci.appveyor.com/project/gitextensions/gitextensions/history">https://ci.appveyor.com/project/gitextensions/gitextensions/history</a></p>
<p>This is the last build I tried from "Add_appveyor_non_blocking_rdp" branch: <a href="https://ci.appveyor.com/project/gitextensions/gitextensions/builds/21959504">https://ci.appveyor.com/project/gitextensions/gitextensions/builds/...</a><br>
I have changed passwords since though.</p>
<p>I haven't found a root cause for the hanging builds, the issue is quite intermittent.<br>
I don't feel comfortable exposing RDP details for an unknown period of time.<br>
When I would be in a position to set a password I could share it with the rest of the core team to jump on a box when we see the issue.</p>
<p>Thank you,<br>
Igor</p></div>russkietag:help.appveyor.com,2012-11-13:Comment/468745202019-01-30T01:32:34Z2019-01-30T01:32:34ZIntermittent hanging builds<div><p>What are you risking with open source project? Variables, including secure ones, are not available in RDP session.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/468745202019-01-30T03:25:59Z2019-07-14T06:44:59ZIntermittent hanging builds<div><p>I don't like exposing a compute resource.</p></div>russkietag:help.appveyor.com,2012-11-13:Comment/468745202019-01-30T11:01:11Z2019-01-30T11:01:11ZIntermittent hanging builds<div><p>Please try now.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/468745202019-01-30T20:57:51Z2019-07-14T06:44:59ZIntermittent hanging builds<div><p>I am afraid the result is the same - my credentials (u: appveyor, p:<br>
specified via envvar) get rejected.<br>
Here's the last build<br>
<a href="https://ci.appveyor.com/project/gitextensions/gitextensions/builds/22009613">https://ci.appveyor.com/project/gitextensions/gitextensions/builds/...</a>,<br>
password is unchanged, if you wish to try.</p></div>russkietag:help.appveyor.com,2012-11-13:Comment/468745202019-01-30T21:02:54Z2019-01-30T21:02:54ZIntermittent hanging builds<div><p>Are you sure you are trying to RDP when build is still running?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/468745202019-01-30T21:33:48Z2019-07-14T06:44:59ZIntermittent hanging builds<div><p>Yes, I am<br>
It fails at credentials negotiation stage</p></div>russkietag:help.appveyor.com,2012-11-13:Comment/468745202019-01-30T21:35:03Z2019-07-14T06:44:59ZIntermittent hanging builds<div><p>I'll do a screen grab in my evening to show</p></div>russkietag:help.appveyor.com,2012-11-13:Comment/468745202019-01-30T22:41:11Z2019-01-30T22:41:11ZIntermittent hanging builds<div><p>Try blocking RDP to ensure build is not finished and VM is not destroyed by the time you connect.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/468745202019-02-01T11:03:41Z2019-07-14T06:44:59ZIntermittent hanging builds<div><p>Here's an animation.<br>
The password is setup as per the screenshot above.</p></div>russkietag:help.appveyor.com,2012-11-13:Comment/468745202019-02-02T01:30:17Z2019-02-02T01:30:17ZIntermittent hanging builds<div><p>Thanks a lot for your persistence. Try now :)</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/468745202019-02-02T04:11:34Z2019-07-14T06:44:59ZIntermittent hanging builds<div><p>It worked! Thank you for your help</p></div>russkietag:help.appveyor.com,2012-11-13:Comment/468745202019-02-02T21:46:57Z2019-02-02T21:46:57ZIntermittent hanging builds<div><p>Note that because of some tricky race condition it takes longer at <code>init</code> stage now. If you put RDP script later, but still before your tests (at <code>install</code> stage for example), you will save a little bit of build time.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/468745202019-02-03T12:26:56Z2019-07-14T06:44:59ZIntermittent hanging builds<div><p>Thank you, noted.</p></div>russkie