Agent localhost-1 cannot be authorized because there is not enough licenses.

TeamCity Version:

TeamCity Professional 2025.07.3

Build 197398

Steps to reproduce the problem:

download agent zip

upload and rename two same buildAgent to teamcity server , one is buildAgent1 ,other is buildAgent 2, and run them agent.sh

The actual result:

buildAgent1 successfully started the agent, named localhost, connected successfully and passed authentication. buildAgent2

successfully started the agent, named localhost-1, connected successfully but failed authentication. The page displays

“Unauthorized with comment: Agent localhost-1 cannot be authorized because there is not enough licenses.”

The expected result:

default agent、localhost and localhost-1  connected successfully and passed authentication

0
4 comments

Hi Chuanwei,

> “Unauthorized with comment: Agent localhost-1 cannot be authorized because there is not enough licenses.”

The second agent (localhost-1) fails authorization because the TeamCity Professional agent limit is reached. You can upgrade the license  to allow more agents.

0

Tom Sun  hello , I means, I have 3 free buildAgent licenses ,and I have been  install and run  2 buildAgent,when I install and run 3rd buildAgent , it tells me  not enough licenses. How can i  find last one runed buildAgent?

0

Tom Sun Hello ,  I find it, and  fixed ,this  case can close 

0

Hi,

Glad to know you have fixed the issue. 

If it is not a license issue, you can share your solution. This will benefit more people.
 

0

Please sign in to leave a comment.