Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

VSTS Agent on Ubuntu 16.04: Error in configure.sh

DZone's Guide to

VSTS Agent on Ubuntu 16.04: Error in configure.sh

If you received a "failed to initialize" error when downloading the VSTS build/release agent to install on Ubuntu, check out this solution.

· Performance Zone ·
Free Resource

xMatters delivers integration-driven collaboration that relays data between systems, while engaging the right people to proactively resolve issues. Read the Monitoring in a Connected Enterprise whitepaper and learn about 3 tools for resolving incidents quickly.

I've downloaded the build/release agent from VSTS page to install on my Ubuntu 16.04 system, but when I tried to run the configuration shell script, I got the following error: Failed to initialize CoreCLR, HRESULT: 0x80131500.

This happens because I installed the version for Ubuntu 14.04 and not the one specifically compiled for Ubuntu 16.04. In my situation, the error happened because the download page of my VSTS account does not list the version for Ubuntu 16.04, but only for Ubuntu 14.04, and this incorrectly lead me to the false belief that it works for both versions. The page from where you download the agent is https://myaccount.visualstudio.com/_admin/_AgentQueue and should also list the version for 16.04.

Figure 1: Agent download page in your VSTS account.

To avoid the error, the best way to download the agent is checking the official GitHub account page. (The best place to download and to look for VSTS agent information is the official GitHub page.)

As you can verify from Figure 2, we have a two distinct compiled versions for Ubuntu.

Figure 2:Distinct builds for vsts agents (Ubuntu 14 and 16).

To download the correct version, you can easily go to the release page, where you can download all official versions for all supported operating system/version.

3 Steps to Monitoring in a Connected Enterprise. Check out xMatters.

Topics:
performance ,vsts ,ubuntu ,errors

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}