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

Upgrade Windows Agent

I am trying to upgrade an existing Windows Agent that is working with Server 5.7 and moving to Server 5.15.5. The agent will try to start and then error with the horrible error below. I have tried to download the current 6.1 agent version but the .bat file is erroring on a missing home directory that doesnt currently exist. Not sure where to go from here, fix the old agent or try setting up new. The old agent is using the ANT setup script.

Current Agent error:

[java] Exception in thread "main" com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: invalid number or unquoted string near ?_???U??????H? ?n?\?? \G?? ????6?3?P
[java] at com.google.gson.Streams.parse(Streams.java:51)
[java] at com.google.gson.Gson.fromJson(Gson.java:514)
[java] at com.google.gson.Gson.fromJson(Gson.java:484)
[java] at com.google.gson.Gson.fromJson(Gson.java:434)
[java] at com.google.gson.Gson.fromJson(Gson.java:406)
[java] at com.atlassian.aws.ec2.EC2Utils.getUserData(EC2Utils.java:125)
[java] at com.atlassian.bamboo.agent.elastic.installer.ElasticAgentInstaller.<init>(ElasticAgentInstaller.java:41)
[java] at com.atlassian.bamboo.agent.elastic.installer.ElasticAgentInstaller.main(ElasticAgentInstaller.java:61)
[java] Caused by: com.google.gson.stream.MalformedJsonException: invalid number or unquoted string near ?_???U??????H? ?n?\?? \G?? ????6?3?P
[java] at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1110)
[java] at com.google.gson.stream.JsonReader.decodeLiteral(JsonReader.java:1100)
[java] at com.google.gson.stream.JsonReader.peek(JsonReader.java:343)
[java] at com.google.gson.Streams.parse(Streams.java:38)
[java] ... 7 more
BUILD FAILED
C:\bamboo-agent\build.xml:38: Java returned: 1
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:111)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

 

 

New Agent error:

 

JAVA_HOME: C:\Program Files\Java\jdk1.8.0_45
PATH: C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\SlikSvn\bin;C:\Python27\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\Python27\Scripts;C:\apache-ant-1.8.2\bin;C:\Program Files\Java\jdk1.8.0_45\bin;C:\putty;C:\opt\nant-0.92\bin;C:\opt\nantcontrib-0.92\bin;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\nantcontrib-0.92;C:\Program Files (x86)\NSIS
HOME: \Users\bamboo
The system cannot find the path specified.
The system cannot find the path specified

 

1 answer

0 votes

Hi! 

 

I hope was fixed by

https://confluence.atlassian.com/bamboo/bamboo-upgrade-guide-720411366.html

 

BTW, are you on the latest version 6.8.0 or planning?

https://confluence.atlassian.com/bamboo/bamboo-releases-671089224.html

 

 

Cheers,

Gonchik Tsymzhitov

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

116 views 0 10
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you