Questions tagged [teamcity]

TeamCity is a user-friendly continuous integration (CI) server for professional developers and build engineers, like ourselves. It is trivial to setup and absolutely free for small teams.

Filter by
Sorted by
Tagged with
1 vote
1 answer
156 views

TeamCity upgrade fails with "Can't take exclusive lock when db lock is not held"

When upgrading to TeamCity 2023.05 (using the Docker image), I received the error "Can't take exclusive lock when db lock is not held" and the detailed instruction: <pre>java.lang....
vpetersson's user avatar
0 votes
1 answer
603 views

How can I move kubernetes ephemeral storage to a different disk?

I'm trying to run dynamic 'cloud' Teamcity Agents containers on an in-house server under K3s, prior to moving to a 'real' k18s installation, but my agents need 21G of ephemeral storage and kubernetes ...
Tim Baverstock's user avatar
0 votes
1 answer
127 views

How do I reset a PowerShell build step script to use the template?

I have a build script template that does all the usual build script things: sets up a bunch of parameters, configures various config values, and runs a PowerShell script to run a build step. This ...
Mason Wheeler's user avatar
1 vote
0 answers
502 views

Teamcity does not clean-up logs when clean-up rules are adjusted

So I have a project with large amount of build logs which previously inherited "delete after 91 days" rule from grandparent project. I am adding the specific "delete after 31 days" ...
alamar's user avatar
  • 69
1 vote
2 answers
3k views

Teamcity Versioned Settings: how to make use of Tokens

When storing configuration in VCS as Kotlin DSL, you're not supposed to hard code passwords and tokens, instead the "Tokens" should be used. The problem is, it's not documented properly. Let'...
alamar's user avatar
  • 69
1 vote
1 answer
435 views

Authorizing docker for TeamCity agent under Windows 10

I have: TeamCity CI TeamCity agent, installed in Windows 10 as a Windows service Some Java projects with integration tests, based on TestContainers framework. Sonatype Nexus instance, configured as ...
skapral's user avatar
  • 113
0 votes
1 answer
1k views

Can Teamcity select agents by regex matching build parameter value?

I have a number of Teamcity Agents, some in a remote location. Both locations have a default app server instance to test clients against, but we also have some experimental app servers that only run ...
Tim Baverstock's user avatar
0 votes
1 answer
342 views

Teamcity doesn't work after restart - Could not initialize class sun.nio.ch.SocketChannelImpl$DefaultOptionsHolder

I just installed teamcity and I was able to create Admin account etc., But as soon as I restart the teamcity service, I can no longer connect to teamcity. Here is the error I see.. Can someone shed ...
user630702's user avatar
0 votes
1 answer
5k views

Teamcity - package javax.servlet does not exist

How do I import javax.servlet in Teamcity? I have the below error message when I try to build the java project through teamcity IntelliJ IDEA runner. This is my first time with teamcity and I'm using ...
user630702's user avatar
1 vote
0 answers
1k views

Configure ssh-agent for TeamCity agent

I have TeamCity agents installed on a CentOS 7.3 server, and am trying to use the "SSH agent" build feature for a script that uses scp. However, it always fails due to a TimeoutException: [12:39:32] ...
Brad Mace's user avatar
  • 1,024
0 votes
1 answer
554 views

Unable to access TeamCity when running under port 80

After completing a fresh install of TeamCity and attempting to run TeamCity on a different port than the default (8111) using the below configuration in the <TeamCity Directory>/conf/server.xml: ...
SaoBiz's user avatar
  • 111
0 votes
1 answer
927 views

Use TeamCity to FTP Upload result of previous Maven Build

I'm using TeamCity to build a Java project with Maven, and there's two Build Steps: Get code from bitbucket with git, build with Maven, then upload it to jfrog with Maven. FTP upload to Azure. The ...
r12's user avatar
  • 101
1 vote
0 answers
358 views

Blue/Green Deployment to IIS via TeamCity (On remote server)

We have a TeamCity instance that sits on an AWS server and then our production machines are on Bare Metal in a data center. If we wanted to get Blue/Green deployment working and needed to run some ...
LiamB's user avatar
  • 270
1 vote
1 answer
321 views

Teamcity 2017.2 with MS-SQL express issue

I am using CIS Microsoft Windows Server 2016 Benchmark 1.0.0 Level 2 on EC2 with Microsoft SQL Server 2016 Express. When coming to setup Teamcity 2017.2 I receive the following error: Login failed ...
Eran Mor's user avatar
0 votes
1 answer
1k views

TeamCity server reports zero available disk space when run inside Kubernetes

I have a strange problem with TeamCity server (and TeamCity agent). I have them running inside Kubernetes. They both report that they have zero disk space available. However, there is enough disk ...
Nikolaos Georgiou's user avatar
-1 votes
1 answer
96 views

TeamCity Upgrade Issue

We are trying to migrate our production TeamCity from version 9.1.4 to version 10.0.5 The upgrade process works well and everything works once I get onto the web UI. The problem is that, after a ...
Nare's user avatar
  • 55
1 vote
1 answer
3k views

Using a specific version of java for teamcity

I've got teamcity 10.1 running on a ubuntu box at work. This box requires java 1.7 to be installed for some of the other tools we have installed there. However teamcity (as of version 10) requires ...
Eric B's user avatar
  • 15
1 vote
2 answers
753 views

Why are all my builds failing with "Configs generator runs longer than 120 seconds"?

We use TeamCity for our CI server, and have recently started using its Kotlin-based DSL to define build configurations in code and commit them to git. Yesterday, we added a new project by creating it ...
Micah R Ledbetter's user avatar
5 votes
0 answers
3k views

How to set TeamCity Command Line Runner default shell?

I'm starting my TeamCity agent on Ubuntu 15.10 via an init.d script like so: #!/bin/sh ### BEGIN INIT INFO # Provides: TeamCity Build Agent # Required-Start: $remote_fs $syslog # Required-...
Mario Tacke's user avatar
1 vote
0 answers
739 views

WebSockets with TeamCity behind Amazon ELB

I'm setting up TeamCity behind a public ELB in Amazon. I am attempting to fix the WebSocket connection issue: Some users cannot use optimized web UI updates via WebSocket protocol. This is a ...
Thomas Farvour's user avatar
1 vote
1 answer
1k views

How can I set an Ansible variable whose value won't be known until after running the playlist?

I'm working on an Ansible script to set up a new TeamCity build agent, and there's one part of the process that I don't know how to automate. After installing a TeamCity build agent, it must be ...
rmunn's user avatar
  • 111
4 votes
1 answer
2k views

TeamCity, nginx, and Websockets - 501 Error

I'm currently setting up TeamCity behind an nginx reverse proxy, but I am getting an error in my browser. The error is as follows: WebSocket connection to 'ws://ci.example.net/app/subscriptions?X-...
mattrick's user avatar
  • 143
2 votes
0 answers
2k views

Teamcity not working with warn messages in logs

I've installed Teamcity v9 on my VPS and I have some trouble with it: it's not working at all. My OS is Debian x64, oracle jdk8 is installed and env variables are ok. Here are parts of log files: ...
Andrey's user avatar
  • 121
8 votes
4 answers
14k views

Windows: How to start docker VM att system boot

I'm in a situation where I need to run docker on a windows based build server (I'm normally working with Arch/Debian Linux) and I can't find a way to have the docker VM to start automatically on ...
tirithen's user avatar
  • 185
2 votes
1 answer
2k views

teamcity, setup vcs root using bitbucket (git) behind proxy server

I've installed TeamCity on a Windows Server 2012 box behind a corporate firewall that requires user authentication via a proxy server to access the internet. I want to connect TeamCity to Bitbucket (...
Mike's user avatar
  • 21
0 votes
1 answer
542 views

Azure website application settings being overwritten after git deploy and deployment slot switch

I am deploying multiple sites from a single git repo, which I am achieving by setting an application setting for the website via the azure portal. (The setting is 'Project'='pathtomyproject/myproject....
jcvandan's user avatar
  • 101
0 votes
2 answers
451 views

One SSH Key for multiple Ubuntu servers + Windows + Teamcity

I want to use the same SSH key to access multiple Ubuntu servers. The reason for this is that I want to deploy our application in DEV, STAGING, PROD, LOCAL environments through a CI server. We use ...
JavaDev_007's user avatar
2 votes
0 answers
1k views

TeamCity Connection Timeout

I set up a TeamCity server yesterday, and it was working fine until this morning when I restarted it. I didn't change any settings anywhere, but I keep getting this message in the teamcity-agent log ...
KrazyTraynz's user avatar
1 vote
1 answer
1k views

Find TeamCity Version/Build Number

Is there a way to find out what version (or build number) of TeamCity I'm using from looking at the installed files? I had a quick poke around but couldn't find anything in any of the readme/batch ...
Richard's user avatar
  • 241
2 votes
0 answers
178 views

Why does TeamCity server stop short time after it starts

I use TeamCity with bundled Tomcat server. I start TeamCity server using runAll.sh start command. The server starts and I can access its web interface. However, within a minute or two the server stops....
Max Koretskyi's user avatar
1 vote
5 answers
3k views

automatically authorize teamcity agents

We have some TeamCity build agents running and I'd like to destroy and rebuild all agents over night automatically to have a clean set of agents in the morning. Destroying and provisioning the agent ...
hennr's user avatar
  • 143
6 votes
2 answers
4k views

Teamcity Build Agent gets killed by systemd when upgrading

On our centos system we have configured a teamcity agent as a systemd service. The service works fine except when the agent performs an upgrade. Then it gets killed while performing the upgrade. I ...
Daniel Schröter's user avatar
4 votes
1 answer
2k views

Scripting out the installation of Team City agents

We have a reasonable-sized Team City installation and currently I am planning to add another 25 agents, 5 agents per machine. So far I was doing the installation manually: Log into the server ...
Grzenio's user avatar
  • 271
0 votes
1 answer
401 views

WinSSHD, GIT over SSH Team City Fetch Url - Does not appear to be a git repo

We used to work with windows network paths to connect to git, but starting to use team city we want to use SSH. I'm having trouble testing a connection to a git repo on a server here at 192.168.X.XXX ...
Mvision's user avatar
  • 101
0 votes
0 answers
720 views

Make Azure Powershell cmdlet's available to team city

I have installed the Azure powershell cmdlet's via the web platform installer on my build server that is running TeamCity. However, when I setup a powershell build step I get an error: [19:16:00][...
jcvandan's user avatar
  • 101
1 vote
1 answer
1k views

Failed to stop TeamCity build agent service via net.exe. Failed to start process. Return code was 2 not equal to zero.

I installed TeamCity locally on my Windows 8 machine. When I open TeamCity via my browser it shows 0 agents. When I look at the agents, I see 1 agent disconnected with a message that it unregistered ...
Luis Perez's user avatar
0 votes
2 answers
7k views

TeamCity, SVN and SSL connection problems

Within our network we have a server which runs the Subversion Edge server. I have configured Edge to use SSL on port 8443. We have been happily connecting to SVN via clients such as Tortoise SVN, both ...
dotdev's user avatar
  • 123
0 votes
1 answer
3k views

Teamcity, Error collecting changes

Created a brand new TeamCity build project and configuration along w/ a new VCS root and receive the following errors on the first check for revisions TeamCity 8.0.6 (build 27767) running on CentOS 6....
Anthony Shaw's user avatar
0 votes
1 answer
3k views

Can't synchronize the user group in TeamCity

0 user and group synchronized Below are my ldap log and settings. All I want to do is: 1. map the AD group "ccusers" to a group in TeamCity and create all users in that group. 2. Or add all users in ...
user2784896's user avatar
4 votes
0 answers
2k views

TeamCity - Error - Found a TeamCity internal database when no system directory or an empty system directory is expected

Our TeamCiity server was restarted the other day and it is coming up with no projects listed. There should be a total of 3. I did not configure this machine and any help is appreciated. output of ...
sbjustin's user avatar
2 votes
0 answers
1k views

TeamCity (or Jenkins) with Cluster/Replicated servers

We use Team City 7 for Continuous Intergration. Sometimes I need to bring down the server for maintenance which stirs up complaints. Is anyone using a cluster for these types of servers where there ...
user avatar
1 vote
0 answers
75 views

Does anyone know how to use a Bazaar repository with TeamCity?

I am using Bazaar for some projects and generally like it. I recently started looking into integrating it with TeamCity and thought it would be quite easy until I found that it wasn't supported out of ...
Alan Spark's user avatar
0 votes
1 answer
2k views

Teamcity buildagent on mac, environment variable not visible to Teamcity?

Having problems setting up a Mac as a buildagent for TeamCity. It works for basic builds, but I'm unable to meet build requirements for our main build. Unmet requirements shown in Teamcity: env....
JohnnyS's user avatar
0 votes
1 answer
900 views

java.lang.OutOfMemoryError: GC overhead limit exceeded TeamCity 7.0

I am getting this error suddenly. Running teamcity 7.0 on a Windows Server 2008. How do I add more memory via passing options to the JVM? I don't understand how to pass the xmx option when using ...
user avatar
4 votes
2 answers
5k views

TeamCity: 'git fetch' command failed. stderr: Socket Closed

We have been working for years with TeamCity and for several weeks with git as version control system. I have set up integration with TeamCity and that has been working fine. We have four different ...
Klas Mellbourn's user avatar
0 votes
1 answer
156 views

VMware Converter conversion of Windows TeamCity Server

I have a VM: Windows Server 2008 running TeamCity with a local MSSQL database, virtualized using Hyper-V. I want to migrate this VM to ESXi (free version) using VMware Converter. The VM has a ...
user avatar
0 votes
1 answer
245 views

Teamcity 7.1.4a working SVN roots failing

I just installed TeamCity 7.1.4a over a working 7.1.2 installation. All of my SVN roots are now failing with 403 forbidden errors. SVN is logging that attempts from TC are now anon(ymous) and not ...
AlG's user avatar
  • 107
7 votes
1 answer
13k views

How to execute bat file remotely using Psexec from team city inside the powershell command

I have a powershell command which runs in TeamCity. When I try to run a batch file remotely using psexec from this .ps file, I see once the remote execution started, nothing happens. I tried several ...
user158537's user avatar
0 votes
1 answer
5k views

TeamCity port 80 is already in use, I think [closed]

I have no clue what other program might be using port 80, but after checking the TeamCity log file, it appears to be in use already: The following is from catalina.2012-12-03.log: SEVERE: Failed to ...
xofz's user avatar
  • 129
2 votes
1 answer
2k views

GITBLIT Using Cert for SSL

I'm currently running GITBLIT on Windows Server 2012 to centrally host our GIT repos. I have been using a self-signed cert as per setup instructions on Gitblit but I want to use an SSL Cert from ...
chrisLawrence's user avatar