tag:help.appveyor.com,2012-11-13:/discussions/problems/270-why-is-the-build-hanging-in-on_successAppVeyor: Discussion 2018-10-19T08:16:32Ztag:help.appveyor.com,2012-11-13:Comment/327553762014-04-29T06:02:06Z2014-04-29T06:02:06ZWhy is the build hanging in 'on_success'?<div><p>I think the script requires an interactive input at some point -
this is the most typical cause of hanging build. Most probably it's
one of git commands. Have you tried this script locally?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/327553762014-04-29T15:51:30Z2014-04-29T15:51:30ZWhy is the build hanging in 'on_success'?<div><p>Thank you, Feodor.</p>
<p>These commands run fine without breaking into interactive mode
when ran locally.</p>
<p>Also, when the build died yesterday taking the maximum 30
minutes, it was stuck at the very last line above - <code>git push
-u origin deploy-v%buildNumber%</code>, which is basically pushing
the local, rebased commits to GitHub.</p>
<p>I had a feeling that the network speed on the VM could be one of
the reasons - because this repo is in the order of 200+ MBs at this
point and maybe that's the root cause.</p>
<p>Also, as an aside, the fact that all the failed/cancelled builds
doesn't show the log anymore is something that is not helping to
troubleshoot the issue either - all builds 1.0.75 to 1.0.80
<a href="https://ci.appveyor.com/project/floydpink/flickr-downloadr-gtk/history">
here</a> does not show anything in the build log (console).</p></div>Hari Menontag:help.appveyor.com,2012-11-13:Comment/327553762014-04-29T19:03:11Z2014-04-29T19:03:11ZWhy is the build hanging in 'on_success'?<div><p>OK, the problem with disappearing cache is a problem. I suspect
it was caused by eviction settings for the app cache. I've
increased TTL - it should be fixed now.</p>
<p>VM is connected to 100MB network, but yes there are lags
sometimes.</p>
<p>I'm wondering if using tagging would make the process
lighter?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/327553762014-04-29T21:56:14Z2014-04-29T21:56:14ZWhy is the build hanging in 'on_success'?<div><p>Good to know that the logs will now be retained - will keep an
eye out for that.</p>
<p>I switched to using Shell scripting instead of CMD - and that
seems to have helped with the git commands working well...</p>
<p>Issues with the reliability of the connection is still there
with some intermittent builds failing to download things - but
guess that is not too bad.</p>
<p>Thank you, as always.</p></div>Hari Menon