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

Issue with tanuki wrapper after bamboo was updated to 6.10.3

oilyin January 13, 2020

Hi, after that bamboo agent was updated to 6.10.3 I started get the following error during bamboo agents starting:

 

```Running [/opt/atlassian/bamboo/bin/bamboo-agent.sh, console]
Agent process started, shutdown hook registered, proceeding with log pump...
Running Bamboo Agent...
STATUS | wrapper | 2020/01/13 15:28:24 | --> Wrapper Started as Console
STATUS | wrapper | 2020/01/13 15:28:24 | Java Service Wrapper Standard Edition 64-bit 3.5.39
STATUS | wrapper | 2020/01/13 15:28:24 | Copyright (C) 1999-2019 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper | 2020/01/13 15:28:24 | http://wrapper.tanukisoftware.com
STATUS | wrapper | 2020/01/13 15:28:24 |
ERROR | wrapper | 2020/01/13 15:28:24 | License Error:
ERROR | wrapper | 2020/01/13 15:28:24 | A valid license was not found in the Wrapper configuration file.
ERROR | wrapper | 2020/01/13 15:28:24 |
ERROR | wrapper | 2020/01/13 15:28:24 | The Java Service Wrapper requires a License Key to activate the
ERROR | wrapper | 2020/01/13 15:28:24 | software. Licenses can be purchased on the Java Service Wrapper
ERROR | wrapper | 2020/01/13 15:28:24 | web site:
ERROR | wrapper | 2020/01/13 15:28:24 | http://wrapper.tanukisoftware.com/purchase
ERROR | wrapper | 2020/01/13 15:28:24 |
ERROR | wrapper | 2020/01/13 15:28:24 | You can also immediately obtain a one-month Free trial license:
ERROR | wrapper | 2020/01/13 15:28:24 | http://wrapper.tanukisoftware.com/trial
ERROR | wrapper | 2020/01/13 15:28:24 |
ERROR | wrapper | 2020/01/13 15:28:24 | License Keys can be generated for any of the following HostIds:
ERROR | wrapper | 2020/01/13 15:28:24 | HostId #1 (ens5): 0a319ceb69fa
ERROR | wrapper | 2020/01/13 15:28:24 | HostId #2 (docker0): 02425be137a8
ERROR | wrapper | 2020/01/13 15:28:24 |
ERROR | wrapper | 2020/01/13 15:28:24 | You may include license keys for several servers within a single file by
ERROR | wrapper | 2020/01/13 15:28:24 | prefixing the property names of each key with their respective
ERROR | wrapper | 2020/01/13 15:28:24 | server host name or HostId. Please use the following syntax:
ERROR | wrapper | 2020/01/13 15:28:24 | wrapper.<hostname|hostid>.license.*.
ERROR | wrapper | 2020/01/13 15:28:24 | The host name of this machine is: ip-10-200-161-44
ERROR | wrapper | 2020/01/13 15:28:24 |
STATUS | wrapper | 2020/01/13 15:28:24 | <-- Wrapper Stopped
Waiting for the agent process to finish...
The underlying agent process terminated with a non zero exit code: 1```

 

 

 

 

wrapper.conf

wrapper.java.command=java
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
wrapper.java.classpath.1=../lib/wrapper.jar
wrapper.java.classpath.2=../lib/bamboo-agent-bootstrap.jar
wrapper.java.library.path.1=../lib
wrapper.java.additional.1=-Dbamboo.home=/opt/atlassian/bamboo
wrapper.java.additional.2=-Dbamboo.agent.ignoreServerCertName=false
wrapper.app.parameter.1=com.atlassian.bamboo.agent.bootstrap.AgentBootstrap
wrapper.app.parameter.2=https://bamboo.my.com/agentServer/
wrapper.app.parameter.3=
wrapper.disable_shutdown_hook=TRUE
wrapper.java.initmemory=256
wrapper.java.maxmemory=512
wrapper.ping.timeout=900
wrapper.ping.interval=30
wrapper.working.dir=.
wrapper.console.format=LPTM
wrapper.console.loglevel=INFO
wrapper.console.flush=true
wrapper.logfile=../atlassian-bamboo-agent.log
wrapper.logfile.format=LPTM
wrapper.logfile.loglevel=INFO
wrapper.logfile.maxsize=10m
wrapper.logfile.maxfiles=10
wrapper.syslog.loglevel=INFO
wrapper.successful_invocation_time=3
wrapper.console.title=Bamboo Remote Agent
wrapper.ntservice.name=bamboo-remote-agent
wrapper.ntservice.displayname=Bamboo Remote Agent
wrapper.ntservice.description=A remote agent for building Bamboo build plans.
wrapper.ntservice.starttype=AUTO_START
wrapper.ntservice.interactive=false

 

 

Could you please advice what can be wrong here?

1 answer

1 accepted

2 votes
Answer accepted
Jeyanthan I
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 14, 2020

Hi Oilyin,

This is an expected behavior after upgrading the server to Bamboo 6.10 and above. As stated at the Bamboo 6.10 "Version-specific upgrade notes" section of the Bamboo upgrade guide, after upgrading to this version, there is a small process to follow in at the remote agent side: 

Remote agent wrapper update

To address some knows issues, we updated the Tanuki wrapper used for Bamboo remote agent. Bamboo 6.10 is released with new version of the wrapper. If you're an upgrading user, we strongly recommend that you reinstall the wrapper to benefit from all bug fixes.

To update the wrapper on a remote agent:

  1. Stop the original agent.
  2. Backup the BAMBOO_AGENT_HOME/conf/wrapper.conf file.
  3. Remove the BAMBOO_AGENT_HOME/conf directory.
  4. Download a new Remote Agent JAR from your Bamboo Server: http://<BAMBOO_URL>/admin/agent/addRemoteAgent.action.
  5. Launch the remote agent.
  6. This will create a new wrapper.conf file. If you want to re-enact your custom configuration in that file, you can do it now. 

I'm confident that this problem will be resolved after you follow the above steps. Please confirm here once it works by accepting this answer. Thanks in advance.

Cheers,
Jey

oilyin January 14, 2020

Thank you sir, it works properly!

Like Jeyanthan I likes this
Jeyanthan I
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 15, 2020

Glad to know that. Thanks for confirming :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events