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.

Free Resource

Transform incident management with machine learning and analytics to help you maintain optimal performance and availability while keeping pace with the growing demands of digital business with this eBook, brought to you in partnership with BMC.

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.

Evolve your approach to Application Performance Monitoring by adopting five best practices that are outlined and explored in this e-book, brought to you in partnership with BMC.

Topics:
performance ,vsts ,ubuntu ,errors

Published at DZone with permission of Ricci Gian Maria, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}