Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agent gets stuck and hangs if automatic upgrade fails #1840

Closed
melezhik opened this issue Sep 20, 2018 · 4 comments
Closed

Agent gets stuck and hangs if automatic upgrade fails #1840

melezhik opened this issue Sep 20, 2018 · 4 comments

Comments

@melezhik
Copy link

Have you tried trouble shooting?

yes

Agent Version and Platform

any version before 2.140.0 , have not tested yet for this version

Windows OS

VSTS Type and Version

VisualStudio.com

What's not working?

Based on #1696, especially #1696 (comment)

Agent gets stuck and hangs without EASY way to roll it back to the previous version ( unless manual cleanup and reinstall ) if for some reasons agents fails to autoupdate.

@bryanmacfarlane
Copy link
Collaborator

Updating an agent (copying down files, updating the service, etc...) is not an atomic operation. We have as many efforts to retry and absorb failures but if something fails in the script to run those sequence of steps fail, there isn't many options.

I'm afraid this issue is not actionable.

We do have a way to rollback, it's an xcopy copy extract and run config.

@melezhik
Copy link
Author

We do have a way to rollback, it's an xcopy copy extract and run config.

It would be nice if agent handle this

I have around 6-7 agents get stuck every 2-3 weeks due autoupdate failure , and manual rollback is real chore.

@TingluoHuang
Copy link
Contributor

@melezhik do you happen to know what is causing the auto-update failure? proxy/firewall?

@melezhik
Copy link
Author

yeah, our build servers are under firewall, I am awaiting when maintainers add "vsts download url" to the white list. However the issue is not about it.

Imagine someone have many agents up and running, then at the moment ( when new version is released ) all those agents fail to autoupdate due to whatever reasons ... Well this automatic update breaks all the build infrastructure ... And even though manual fix is not that hard, if we have a dozens of agents it is an effort to recover.

In all the mature package managing system, software updates failures never lead to breakage of the system, because they are atomic ... - success or automatic rall back to the old state ( see linux examples - apt , yum so on )

Just to think about. Today it is only me who care about this, tomorrow other customer might complain ...

IMHO for now autoupdate operation is not safe and not transnational which might cause many issue to vsts users ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants