Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to specify a name for the Windows service running a Bamboo build agent

I am trying to install a Bamboo 4 build agent as a Windows service onto a machine which is already running a build agent as a service (for a different server). How can I specify a name for the Windows service, so it is guaranteed to be unique? If I install according to the instructions, the service creation fails due to the existing service for the other build agent running on the same machine.

(see last line for error)

PS G:\bamboo-agent-home> java "-Dbamboo.home=G:\bamboo-agent-home" -jar .\atlassian-bamboo-agent-installer-4.0.jar http:

//10.40.227.61:8085/agentServer installntservice

Unzipping /classpath.zip to G:\bamboo-agent-home\classpath

Extracting 'MANIFEST.DAT'

Extracting 'commons-discovery-0.2.jar'

Extracting 'axis-jaxrpc-1.4.jar'

Extracting 'kahadb-5.4.2.jar'

Extracting 'relaxngDatatype-20020414.jar'

Extracting 'guava-10.0.1.jar'

Extracting 'dom4j-1.4.jar'

Extracting 'atlassian-mail-2.3.1.jar'

Extracting 'spring-dao-2.0.7.jar'

Extracting 'exml-7.0.jar'

Extracting 'atlassian-cache-api-1.0.jar'

Extracting 'atlassian-bamboo-plugin-ssh-4.0.jar'

Extracting 'atlassian-user-1.9.jar'

Extracting 'classworlds-1.1.jar'

Extracting 'atlassian-event-2.2.1-20120119.jar'

Extracting 'bamboo-maven-artifact-sharing-plugin-3.3-m4-1.jar'

Extracting 'jsr305-1.3.9.jar'

Extracting 'atlassian-processutils-1.5-rc5.jar'

Extracting 'webwork-2.2.7-atlassian-6.jar'

Extracting 'jsch-0.1.44-1.jar'

Extracting 'atlassian-bamboo-plugin-vcsversion-4.0.jar'

Extracting 'clover-3.1.2.jar'

Extracting 'isorelax-20020414.jar'

Extracting 'atlassian-bamboo-plugin-php-4.0.jar'

Extracting 'maven-settings-2.0.9.jar'

Extracting 'atlassian-plugins-osgi-events-2.11.1.jar'

Extracting 'geronimo-transaction-3.1.jar'

Extracting 'xmlunit-1.3.jar'

Extracting 'slf4j-log4j12-1.5.8.jar'

Extracting 'atlassian-config-0.16.jar'

Extracting 'atlassian-bamboo-agent-elastic-server-4.0.jar'

Extracting 'msv-20020414.jar'

Extracting 'atlassian-bandana-3.1.jar'

Extracting 'quartz-1.6.5.jar'

Extracting 'atlassian-plugins-webfragment-2.11.1.jar'

Extracting 'multitenant-core-1.0-m14.jar'

Extracting 'wagon-ssh-common-1.0-beta-2.jar'

Extracting 'slf4j-api-1.5.8.jar'

Extracting 'hibernate-2.1.8-atlassian-9.jar'

Extracting 'javacvs-atlassian-20080407.jar'

Extracting 'propertyset-1.3-21Nov03.jar'

Extracting 'applinks-api-3.7.0.jar'

Extracting 'wagon-webdav-1.0-beta-2.jar'

Extracting 'jaxen-1.0-FCS.jar'

Extracting 'ldaptemplate-1.0.1.jar'

Extracting 'sqljet-1.0.7.jar'

Extracting 'atlassian-xwork-12-1.13.jar'

Extracting 'bcmail-jdk15-1.44.jar'

Extracting 'maven-plugin-parameter-documenter-2.0.9.jar'

Extracting 'sshd-core-0.6.0.jar'

Extracting 'odmg-3.0.jar'

Extracting 'activemq-protobuf-1.1.jar'

Extracting 'spring-aop-2.0.7.jar'

Extracting 'commons-logging-1.0.4.jar'

Extracting 'atlassian-bamboo-plugin-clover-4.0.jar'

Extracting 'maven-embedder-2.0.4-atlassian-2.jar'

Extracting 'bcprov-jdk15-1.44.jar'

Extracting 'xercesImpl-2.9.1.jar'

Extracting 'maven-model-2.0.9.jar'

Extracting 'bndlib-1.43.0-atlassian-1.jar'

Extracting 'wagon-file-1.0-beta-2.jar'

Extracting 'jdom-1.0.jar'

Extracting 'commons-io-1.4-backport-IO-168.jar'

Extracting 'gson-1.6.jar'

Extracting 'atlassian-profiling-1.8.1.jar'

Extracting 'maven-artifact-2.0.9.jar'

Extracting 'mina-core-2.0.2.jar'

Extracting 'maven-error-diagnostics-2.0.9.jar'

Extracting 'osuser-1.0-20060106.jar'

Extracting 'maven-core-2.0.9.jar'

Extracting 'spring-web-2.0.7.jar'

Extracting 'xstream-1.4.1.jar'

Extracting 'atlassian-bamboo-plugin-mercurial-4.0.jar'

Extracting 'activemq-core-5.4.2-atlassian-3.jar'

Extracting 'spring-core-2.0.7.jar'

Extracting 'acegi-security-1.0.4.jar'

Extracting 'ehcache-1.6.0-atlassian-3.jar'

Extracting 'jaxb-impl-2.1.10.jar'

Extracting 'commons-httpclient-3.0.1.jar'

Extracting 'sal-spi-2.7.0.jar'

Extracting 'c3p0-0.9.1.2.jar'

Extracting 'log4j-1.2.15.jar'

Extracting 'xbean-spring-3.2.jar'

Extracting 'annotations-6.0.5.jar'

Extracting 'rife-continuations-0.0.2.jar'

Extracting 'filters-2.0.235.jar'

Extracting 'axis-1.4.jar'

Extracting 'atlassian-annotations-0.4.jar'

Extracting 'geronimo-j2ee-connector_1.6_spec-1.0.jar'

Extracting 'atlassian-util-concurrent-2.3.0.jar'

Extracting 'package-scanner-0.9.5.jar'

Extracting 'atlassian-ip-2.0.jar'

Extracting 'saxpath-1.0-FCS.jar'

Extracting 'atlassian-johnson-1.0.jar'

Extracting 'commons-cli-1.0.jar'

Extracting 'joda-time-1.6.jar'

Extracting 'typica-1.6.jar'

Extracting 'atlassian-plugins-spring-2.11.1.jar'

Extracting 'atlassian-bamboo-agent-remote-4.0.jar'

Extracting 'atlassian-bamboo-agent-elastic-installer-4.0-rc2.jar'

Extracting 'plexus-interactivity-api-1.0-alpha-4.jar'

Extracting 'sal-spring-2.7.0.jar'

Extracting 'aspectjweaver-1.6.9.jar'

Extracting 'commons-codec-1.4.jar'

Extracting 'geronimo-j2ee-management_1.1_spec-1.0.1.jar'

Extracting 'atlassian-bamboo-agent-elastic-4.0.jar'

Extracting 'logkit-1.2.jar'

Extracting 'aopalliance-1.0.jar'

Extracting 'atlassian-tunnel-0.15.jar'

Extracting 'maven-plugin-api-2.0.9.jar'

Extracting 'atlassian-extras-2.4.jar'

Extracting 'atlassian-bamboo-plugin-labeller-4.0.jar'

Extracting 'jta-1.0.1B.jar'

Extracting 'jcl-over-slf4j-1.5.8.jar'

Extracting 'atlassian-bucket-0.17.jar'

Extracting 'activeio-core-3.1.2.jar'

Extracting 'annotations-1.0.0.jar'

Extracting 'p4java-0.7.5-atlassian-8.jar'

Extracting 'xpp3_min-1.1.4c.jar'

Extracting 'maven-reporting-api-2.0.9.jar'

Extracting 'oro-2.0.8.jar'

Extracting 'plexus-utils-1.5.9.jar'

Extracting 'commons-digester-1.8.jar'

Extracting 'maven-artifact-manager-2.0.9.jar'

Extracting 'jtds-1.2.2.jar'

Extracting 'axis-wsdl4j-1.5.1.jar'

Extracting 'atlassian-bamboo-web-4.0.jar'

Extracting 'maven-plugin-descriptor-2.0.9.jar'

Extracting 'commons-collections-3.2.1.jar'

Extracting 'activemq-pool-5.4.2.jar'

Extracting 'atlassian-bamboo-agent-elastic-shared-4.0.jar'

Extracting 'atlassian-aws-1.0.14.jar'

Extracting 'botocss-1.3.jar'

Extracting 'atlassian-spring-2.0.0.jar'

Extracting 'icu4j-3.8.jar'

Extracting 'atlassian-plugins-osgi-2.11.1.jar'

Extracting 'jna-3.2.7.jar'

Extracting 'sal-api-2.7.0.jar'

Extracting 'wagon-provider-api-1.0-beta-2.jar'

Extracting 'atlassian-bamboo-plugin-vcs-4.0.jar'

Extracting 'servlet-api-2.5.jar'

Extracting 'applinks-spi-3.7.0.jar'

Extracting 'lucene-core-2.3.2.jar'

Extracting 'commons-jxpath-1.2.jar'

Extracting 'atlassian-plugins-webresource-2.11.1.jar'

Extracting 'atlassian-bamboo-plugin-fisheyecommitviewer-4.0.jar'

Extracting 'spring-mock-2.0.7.jar'

Extracting 'winp-1.15-atlassian-1.jar'

Extracting 'geronimo-jms_1.1_spec-1.1.1.jar'

Extracting 'bcprov-jdk15-140.jar'

Extracting 'atlassian-bamboo-plugin-testresultparser-4.0.jar'

Extracting 'aspectjrt-1.6.9.jar'

Extracting 'svnkit-1.3.7.jar'

Extracting 'atlassian-bamboo-plugin-git-1.8.14.jar'

Extracting 'stax-api-1.0-2.jar'

Extracting 'xml-im-exporter-1.1.jar'

Extracting 'activemq-ra-5.4.2.jar'

Extracting 'bcprov-jdk16-1.46.jar'

Extracting 'commons-compress-1.2.jar'

Extracting 'sshd-pam-0.6.0.jar'

Extracting 'woodstox-core-asl-4.1.2.jar'

Extracting 'oracle-jdbc15-11.2.0.1.0.jar'

Extracting 'ognl-2.7.3-atlassian-3.jar'

Extracting 'atlassian-xwork-core-1.13.jar'

Extracting 'atlassian-bamboo-plugin-jira-4.0.jar'

Extracting 'commons-configuration-1.4.jar'

Extracting 'freemarker-2.3.16-atlassian-11.jar'

Extracting 'spring-support-2.0.7.jar'

Extracting 'jmock-1.0.1.jar'

Extracting 'atlassian-bamboo-plugin-scripttask-4.0.jar'

Extracting 'spring-hibernate2-2.0.7.jar'

Extracting 'atlassian-bamboo-plugin-grails-4.0.jar'

Extracting 'atlassian-plugins-core-2.11.1.jar'

Extracting 'jira-soapclient-4.0.jar'

Extracting 'atlassian-bamboo-agent-core-4.0.jar'

Extracting 'wagon-http-shared-1.0-beta-2.jar'

Extracting 'bamboo-log4j-config.jar'

Extracting 'spring-remoting-2.0.7.jar'

Extracting 'atlassian-secure-random-2.2.jar'

Extracting 'javarebel-sdk-1.2.2.jar'

Extracting 'antlr-runtime-3.4.jar'

Extracting 'wagon-ssh-external-1.0-beta-2.jar'

Extracting 'applinks-host-3.7.0.jar'

Extracting 'spring-context-2.0.7.jar'

Extracting 'atlassian-bamboo-agent-local-4.0.jar'

Extracting 'wagon-http-lightweight-1.0-beta-2.jar'

Extracting 'tomcat-apr-5.5.23.jar'

Extracting 'javassist-3.6.ga.jar'

Extracting 'maven-plugin-registry-2.0.9.jar'

Extracting 'atlassian-bamboo-plugin-triggercondition-4.0.jar'

Extracting 'atlassian-plugins-servlet-2.11.1.jar'

Extracting 'xmlpull-1.1.3.1.jar'

Extracting 'jms-1.1.jar'

Extracting 'commons-beanutils-1.8.3.jar'

Extracting 'spring-beans-2.0.7.jar'

Extracting 'atlassian-bamboo-agent-bootstrap-4.0.jar'

Extracting 'jaxb-api-2.1.jar'

Extracting 'stax2-api-3.0.4.jar'

Extracting 'atlassian-bamboo-core-4.0.jar'

Extracting 'cglib-nodep-2.1_3.jar'

Extracting 'aws-java-sdk-1.1.5.jar'

Extracting 'lucene-analyzers-2.3.2.jar'

Extracting 'atlassian-bamboo-plugin-buildnumberstamper-4.0.jar'

Extracting 'axis-saaj-1.4.jar'

Extracting 'jsoup-1.6.1.jar'

Extracting 'xml-apis-1.3.03.jar'

Extracting 'jasypt-1.6.jar'

Extracting 'hsqldb-1.8.0.7.jar'

Extracting 'oscore-2.2.7.jar'

Extracting 'bamboo-artifactory-plugin-1.5.3.jar'

Extracting 'maven-repository-metadata-2.0.9.jar'

Extracting 'org.apache.felix.framework-3.0.2.jar'

Extracting 'smack-3.2.1.jar'

Extracting 'slide-webdavlib-2.1.jar'

Extracting 'commons-lang-2.5.jar'

Extracting 'commons-pool-1.4-RC2-atlassian-1.jar'

Extracting 'atlassian-bamboo-api-4.0.jar'

Extracting 'geronimo-jta_1.1_spec-1.1.1.jar'

Extracting 'wagon-ssh-1.0-beta-2.jar'

Extracting 'ant-1.8.2.jar'

Extracting 'atlassian-bamboo-license-4.0.jar'

Extracting 'maven-profile-2.0.9.jar'

Extracting 'geronimo-j2ee-connector_1.5_spec-2.0.0.jar'

Extracting 'maven-project-2.0.9.jar'

Extracting 'atlassian-bamboo-plugin-dotnet-3.5.jar'

Extracting 'fage-1.0-rc2.jar'

Extracting 'activation-1.1.1.jar'

Extracting 'lingo-1.3.jar'

Extracting 'atlassian-bamboo-language-4.0.jar'

Extracting 'mail-1.4.1.jar'

Extracting 'smackx-3.2.1.jar'

Extracting 'plexus-container-default-1.0-alpha-9-stable-1.jar'

Extracting 'trilead-ssh2-1.0.0-build214.jar'

Extracting 'backport-util-concurrent-2.1.jar'

Extracting 'atlassian-cookie-tools-2.0.jar'

Extracting 'jcip-annotations-1.0.jar'

Extracting 'sitemesh-2.2.1.jar'

Extracting 'spring-jms-2.0.7.jar'

Extracting 'atlassian-core-4.5.3.jar'

Extracting 'atlassian-velocity-0.5.jar'

Extracting 'xwork-1.2.5-atlassian-5.jar'

Extracting 'sequence-library-1.0.0.jar'

Extracting 'atlassian-bamboo-plugin-ant-4.0.jar'

Extracting 'doxia-sink-api-1.0-alpha-10.jar'

Extracting 'ant-launcher-1.8.2.jar'

Extracting 'spring-jdbc-2.0.7.jar'

Extracting 'maven-monitor-2.0.9.jar'

Installing file: G:\bamboo-agent-home\conf\wrapper.conf

Installing file: /generic/lib/wrapper.jar to: G:\bamboo-agent-home\lib\wrapper.jar

Installing file: /generic/lib/bamboo-agent-bootstrap-jar-with-dependencies.jar to: G:\bamboo-agent-home\lib\bamboo-agent

-bootstrap.jar

Installing file: /generic/bin/BambooAgent.bat to: G:\bamboo-agent-home\bin\BambooAgent.bat

Installing file: /generic/bin/InstallBambooAgent-NT.bat to: G:\bamboo-agent-home\bin\InstallBambooAgent-NT.bat

Installing file: /generic/bin/StartBambooAgent-NT.bat to: G:\bamboo-agent-home\bin\StartBambooAgent-NT.bat

Installing file: /generic/bin/StopBambooAgent-NT.bat to: G:\bamboo-agent-home\bin\StopBambooAgent-NT.bat

Installing file: /generic/bin/UninstallBambooAgent-NT.bat to: G:\bamboo-agent-home\bin\UninstallBambooAgent-NT.bat

Installing file: /arch/windows/64/wrapper.exe to: G:\bamboo-agent-home\bin\wrapper.exe

Installing file: /arch/windows/64/wrapper.dll to: G:\bamboo-agent-home\lib\wrapper.dll

ProgramData: C:\ProgramData

USERPROFILE: C:\Users\psdev

PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

ORACLE_HOME: G:\oracle\product\11.2.0\dbhome_1

JAVA_HOME: C:\Program Files (x86)\Java\jdk1.6.0_27

ORACLE_BASE: G:\oracle\product\11.2.0

ProgramFiles(x86): C:\Program Files (x86)

SystemDrive: C:

TEMP: C:\Users\psdev\AppData\Local\Temp

M2: C:\Program Files\Apache Software Foundation\apache-maven-2.2.1\bin

ProgramFiles: C:\Program Files

Path: C:\Windows\system32\WindowsPowerShell\v1.0\;G:\oracle\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C

:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Perforce;C:\Program Files\Apache So

ftware Foundation\apache-maven-2.2.1\bin;C:\Program Files\Apache Software Foundation\apache-ant-1.8.2\bin;C:\Program Fil

es (x86)\Java\jdk1.6.0_27\bin;C:\cygwin\bin

BAMBOO_AGENT_HOME: "G:\bamboo-agent-home"

HOMEDRIVE: C:

PROCESSOR_REVISION: 1a04

USERDOMAIN: USRANCA-AS-022

BAMBOO_SERVER: http://10.40.227.61:8085/agentServer

ALLUSERSPROFILE: C:\ProgramData

ORACLE_HOSTNAME: 10.40.227.132

ProgramW6432: C:\Program Files

PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 26 Stepping 4, GenuineIntel

IGNORE_SERVER_CERT_NAME: false

TMP: C:\Users\psdev\AppData\Local\Temp

MAVEN_OPTS: -Xms256m -Xmx1024m -XX:MaxPermSize=512m

M2_HOME: C:\Program Files\Apache Software Foundation\apache-maven-2.2.1

LOGONSERVER: \\USRANCA-AS-022

=::: ::\

CommonProgramFiles: C:\Program Files\Common Files

PROCESSOR_ARCHITECTURE: AMD64

OS: Windows_NT

FP_NO_HOST_CHECK: NO

HOMEPATH: \Users\psdev

PROCESSOR_LEVEL: 6

CommonProgramW6432: C:\Program Files\Common Files

ANT_HOME: C:\Program Files\Apache Software Foundation\apache-ant-1.8.2

LOCALAPPDATA: C:\Users\psdev\AppData\Local

ORACLE_SID: PSPRODDB

COMPUTERNAME: USRANCA-AS-022

SystemRoot: C:\Windows

windir: C:\Windows

NUMBER_OF_PROCESSORS: 1

PSModulePath: C:\Users\psdev\Documents\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

PUBLIC: C:\Users\Public

USERNAME: psdev

CommonProgramFiles(x86): C:\Program Files (x86)\Common Files

ComSpec: C:\Windows\system32\cmd.exe

APPDATA: C:\Users\psdev\AppData\Roaming

Running [G:\bamboo-agent-home\bin\InstallBambooAgent-NT.bat]

Agent process started, shutdown hook registered, proceeding with log pump...

ERROR | wrapper | 2012/04/10 10:46:03 | CreateService failed - The specified service already exists. (0x431)

1 answer

1 accepted

0 votes
Answer accepted

First, use the BAT file to uninstall the service. Then in the wrapper.conf file modify the fields :

wrapper.ntservice.name and wrapper.ntservice.displayname

to have unique names (other than the defaults), then reinstall the service. Then install the second agent. After initial install, use the BAT to again uninstall the 2nd service edit the fields in wrapper.conf to be unique and reinstall the service.

Note, depending on the version of Windows you're on, you may need to right-click the BAT files when installing and uninstalling the service and select RUN AS ADMINISTRATOR.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Happy New Year and Welcome New Marketplace Partner Program Partners!

Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...

440 views 5 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you