Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Hudson » syntax error near unexpected token....
syntax error near unexpected token.... [message #1023929] Mon, 25 March 2013 13:33 Go to next message
Alessandro Saracino is currently offline Alessandro SaracinoFriend
Messages: 4
Registered: March 2013
Junior Member
Hi, I've problem with hudson installation.
I've an AWS INSTANCE withs SMALL configuration and Amazon Linux AMI 2012.09.1

I've installed HUDSON with this command:

sudo wget -O /etc/yum.repos.d/hudson.repo http:// hudson-ci.org/redhat/hudson.repo
sudo yum check-update
sudo yum install hudson


After this command, I lunched
service hudson

and it give me this error:
/etc/init.d/hudson: line 120: syntax error near unexpected token `('
/etc/init.d/hudson: line 120: `		echo "${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}"'


Obviously HUDSON not run....

What's my error?

Thanks

[Updated on: Tue, 26 March 2013 14:31]

Report message to a moderator

Re: syntax error near unexpected token.... [message #1024218 is a reply to message #1023929] Tue, 26 March 2013 01:24 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Hi Allesandro, in your posting the command you used to install is not pasted correctly. Please paste it correctly, so that I can use it reproduce it on my side.

Winston Prakash
Eclipse Hudson team
Re: syntax error near unexpected token.... [message #1024239 is a reply to message #1023929] Tue, 26 March 2013 02:09 Go to previous messageGo to next message
Bob Foster is currently offline Bob FosterFriend
Messages: 85
Registered: January 2013
Member
What was that command again? It looks like: s
Re: syntax error near unexpected token.... [message #1027084 is a reply to message #1024239] Tue, 26 March 2013 14:31 Go to previous messageGo to next message
Alessandro Saracino is currently offline Alessandro SaracinoFriend
Messages: 4
Registered: March 2013
Junior Member
I've modify the correct code that I used to install hudson...thanks Wink
Re: syntax error near unexpected token.... [message #1031931 is a reply to message #1027084] Tue, 02 April 2013 11:35 Go to previous messageGo to next message
yannis despotopoulos is currently offline yannis despotopoulosFriend
Messages: 1
Registered: April 2013
Junior Member
Hello, got the same issue
* CentOS release 5.9

$> rpm -ivh hudson-3.0.1-1.1.noarch.rpm
$>service hudson status
/etc/init.d/hudson: line 120: syntax error near unexpected token `('
/etc/init.d/hudson: line 120: `         echo "${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}"'


the issue is probably in line 90
instead of
daemon  --user "$HUDSON_USER" --pidfile "$HUDSON_PID_FILE" "$JAVA_CMD $PARAMS &> /var/tmp/hudson.log &


set it to
daemon  --user "$HUDSON_USER" --pidfile "$HUDSON_PID_FILE" "$JAVA_CMD" "$PARAMS" &> /var/tmp/hudson.log &


then it works fine!
Re: syntax error near unexpected token.... [message #1032199 is a reply to message #1031931] Tue, 02 April 2013 17:43 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Yannis. Thanks. I'll fix this and replace it in the repository

Winston Prakash
Eclipse Hudson team
Re: syntax error near unexpected token.... [message #1033657 is a reply to message #1031931] Thu, 04 April 2013 13:38 Go to previous messageGo to next message
Alessandro Saracino is currently offline Alessandro SaracinoFriend
Messages: 4
Registered: March 2013
Junior Member
Thanks a lot "yannis despotopoulos"....i've solved with your topic Smile
Re: syntax error near unexpected token.... [message #1033823 is a reply to message #1033657] Thu, 04 April 2013 17:27 Go to previous message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Fixed and pushed the new RPM to the repository and verified it on Fedora-17. Thanks again to Yannis for looking in to this. Happy to see community members helping.

Winston Prakash
Eclipse Hudson team
Previous Topic:Deleting Hudson Workspace causes this error before build
Next Topic:Failing the Hudson build in case of Java errors
Goto Forum:
  


Current Time: Thu Mar 28 09:41:09 GMT 2024

Powered by FUDForum. Page generated in 0.02414 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top