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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,467,272
Community Members
 
Community Events
177
Community Groups

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
TAGS

Atlassian Community Events