1
votes

I'm new to TeamCity (literally started about 4h ago) and I'm trying to setup my own build server. It's "technically" working, but I can't run a successful build because of some minor issues I think might be related to setting up the server.

The first problem I had was regarding npm, I tried to run the command line npm and it wouldn't work. I fixed that by installing the Node.js NPM plugin for teamcity. Now the problem is related to bzip2:

[20:06:06][npm install] Error extracting archive
[20:06:06][npm install] Phantom installation failed { Error: Command failed: tar jxf /opt/buildagent/temp/buildTmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
[20:06:06][npm install] tar (child): bzip2: Cannot exec: No such file or directory
[20:06:06][npm install] tar (child): Error is not recoverable: exiting now
[20:06:06][npm install] tar: Child returned status 2
[20:06:06][npm install] tar: Error is not recoverable: exiting now

I'd love to get the answer for that problem, but also if there's anything I need to do to setup TeamCity properly. I did some research, but couldn't find anything specific. Actually it even looks like I'm the only one to experience these issues?...

I read the online docs for TeamCity and Google with no luck.

I'm using a professional TeamCity instance running on Azure (TeamCity Professional 2017.2.2 (build 50909))

Before every build I need to run the npm installer (using the plugin). Is there a way to install it globally on the agent?

Thanks!

1

1 Answers

0
votes

It looks like you build-agent, where the command is executing, lacks some dependencies:

bzip2: Cannot exec: No such file or directory

Seems like you need bzip2 and bzip2-libs packages.