Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Teamcity build agent as a user: failed to install the service. selected account does not have enough rights

Tags:

I want to install a TeamCity BuildAgend as a user. When entering my user credentials here:

enter image description here

I always get this error:

enter image description here

NOTE: My account (user) is Administrator with full permission!

How can I do this?

like image 673
A-Sharabiani Avatar asked Jun 08 '15 20:06

A-Sharabiani


People also ask

How do I install a build agent in TeamCity?

Install from Windows Executable FileOpen the Agents page in TeamCity. Click Install Build Agents and select Windows Installer to download the installer. On the agent machine, run agentInstaller.exe and follow the installation instructions.

How do I enable my TeamCity agent?

Agents can be manually enabled/disabled via the web UI by clicking the status icon (1) next to the agent's name. Optionally, you can tell TeamCity to automatically disable/enable the agent after a period of time and enter your comment. TeamCity will follow the instructions and show the comment icon (2).

How do I add a compatible agent in TeamCity?

Click the Agents and select the desired build agent. Click the Compatible Configurations tab. Select Run selected configurations only and tick the desired build configurations names to run on the build agent.

How do I start TeamCity agent on Windows?

Manual Start Run the following script: on Windows: <installation path>\bin\agent. bat start. on Linux and macOS: <installation path>\bin\agent.sh start.


1 Answers

The error message says it does not have "enough rights to run as a service",
this is slightly different from just being an administrator.

  1. Go to Control Panel> Administrative Tools> Local Security Policy.
  2. Select Local Policies> User Rights Assignment.
  3. Scroll down through the list of policies and look for Log on as a service.
  4. Add the account you're using to the list of accounts with this right.

That should in theory be all you need to allow the service to run under that user.

like image 175
Nanhydrin Avatar answered Oct 14 '22 10:10

Nanhydrin