<< Back to previous view

[QB-564] Syntax error: ")" u8nexpected in buildagent.tar.gz for linux x86_64 on Ubuntu
Created: 07/May/10  Updated: 11/May/10

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Blocker
Reporter: Jason McSwain Assigned To: Robin Shen
Resolution: Won't Fix Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: Server:
PMEase QuickBuild, 2.1.29, 2010-04-28, Community License
Client box: Ubuntu 8.04 (hardy)
buildagent.tar.gz


 Description   
Description:
it seems that i am unable to get a build agent running on a client box.

i have a box (std desktop server with AMD Athlon X2 processor, currently running Ubuntu 8.04(hardy). I downloaded the buildagent from the list on my quickbuild server. unzipped it, attempted to start the server, and it failed with an error.

downloaded to home dir
cd /opt
sudo tar -xvvzf ~/buildagent.tar.gz
cd /opt/buildagent/bin
sudo ./agent.sh start
-> got error see below.
i then went into /opt/buildagent/conf and edited all log levels down to DEBUG, and tried again. i saw no differences in output.

===============
Actual Result:
===============
1. /opt/buildagent/logs/console.log is empty.
2. Command line output from calling start:
"Starting QuickBuild Build Agent.../opt/buildagent/bin/./wrapper-linux-x86-64: 2: Syntax error: ")" unexpected"
------------NEXT-------------
I then tried running with console option instead of start. it still failed with the same error, yet slightly different format
root@warx1:/opt/buildagent/bin# ./agent.sh console
Running QuickBuild Build Agent...
/opt/buildagent/bin/./wrapper-linux-x86-64: 2: Syntax error: ")" unexpected


----------------------
Other Env info:
----------------------
root@warx1:~# java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)

----------
Note:
----------
I'm currently doing a POC of QuickBuild for my company, and this is a blocking issue for us. If the POC is a success then we will likely purchase a site license for our company. Let me know if there is anything more that you need from me.

-----------------------------------------------
Jason McSwain
Sr. Software Quality Engineer
Caringo, Inc.
[email protected]
[email protected]
(512) 554-3652
-----------------------------------------------

 Comments   
Comment by Robin Shen [ 08/May/10 01:06 AM ]
Looks like JSW (Java Service Wrapper) used by QuickBuild is not running well on this CPU arch. To verify this, please download JSW latest package:
http://wrapper.tanukisoftware.org/download/3.4.0/wrapper-linux-x86-64-3.4.0.tar.gz

Extract and run "bin/testwrapper" to see if it works. If yes, we will upgrade to this version to fix the problem; otherwise, we will contact JSW support to see if there is any workaround.
Comment by Jason McSwain [ 10/May/10 03:08 PM ]
Hello Robin, i tried your recommendation and had the same problem:

casgate@warx1:/opt$ sudo tar -xvvzf ~/wrapper-linux-x86-64-3.4.0.tar.gz
casgate@warx1:/opt$ cd wrapper-linux-x86-64-3.4.0/bin
casgate@warx1:/opt/wrapper-linux-x86-64-3.4.0/bin$ ./testwrapper start
Starting Test Wrapper Sample Application with test action: .../opt/wrapper-linux-x86-64-3.4.0/bin/./wrapper: 1: Syntax error: "(" unexpected
Waiting for Test Wrapper Sample Application..................
Test Wrapper Sample Application started.
casgate@warx1:/opt/wrapper-linux-x86-64-3.4.0/bin$ ./testwrapper status
Test Wrapper Sample Application is not running.

I will try some other linux environments to see if the problem is consistent. What versions of Ubuntu and RHEL do you officially support?

Thank you,
-Jason-

Comment by Robin Shen [ 10/May/10 11:14 PM ]
Thanks for the testing, we will contact JSW support to see if there is any workaround.

We've tested QuickBuild on Fedora Linux and Ubuntu for Intel based CPUs and it works fine. And we have many customers running QuickBuild on RHEL, SuSe and other variants of linux. As long as JDK5 is available, any linux version should be OK.
Comment by Robin Shen [ 11/May/10 04:09 AM ]
Below is answer from JSW support:

I haven't heard of any problems on Ubuntu 8 using the wrapper, so I guess it should be working there as well.
From the output you are seeing, that means there is something wrong with the wrapper binary file.

This could be due to 2 reasons

First please run
file <wrapper binary>


1. If you get some output like this:
bin/wrapper: data
how did you transfer the files to the machine? in case you ftp'ed the file please make sure you sent the file in binary mode (not text/ascii mode)

2. otherwise you should get some output like this:
bin/wrapper: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.0, not stripped

this could mean that you are running not the correct wrapper binary for your plattform.
Could you please verify the binary is the right one for your OS
please confirm this by checking the output of "uname -a"

If you think everything is correct and should be working, would you please send us the output of the "file" and "uname" command.

Comment by Jason McSwain [ 11/May/10 10:16 PM ]
Ok, so the problem was that the client box that i was attempting to use was a 32bit OS instead of a 64bit OS. (OS had been switched without my knowning.)

Sorry for the inconvenience.

I have now successfully installed a client on both a 32 node & a 64 bit node.

Feel free to mark this bug as "invalid"
Generated at Sat Sep 27 22:58:59 UTC 2025 using JIRA 189.