[Reso] Server won't start: ./lshttpd: 1: Syntax error: "(" unexpected (expecting ")")

#1
I've just installed the free version of lightspeed on my DNS-323 NAS which is runnng a hacked firmware and fun_plug linux distro. I'm trying to replace lighttpd.

The install went smoothly, but when I try to start the server, I get:

root@IN07:~# /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lswsctrl start
./lshttpd: 1: Syntax error: "(" unexpected (expecting ")")
[ERROR] Failed to start lshttpd!
killall: lshttpd: no process killed
./lshttpd: 1: Syntax error: "(" unexpected (expecting ")")
[ERROR] Failed to start lshttpd!
I don't know where to start looking to trouble shoot this. Any help would be great.

Thanks,

peter
 
Last edited by a moderator:

mistwang

LiteSpeed Staff
#2
The shell script is not compatible with the shell of the linux in your NAS, can you install bash?
You can ignore the lswsctrl script, just run lshttpd directly.
 
#3
Thanks mistwang. I've installed bash and tried again, I get the same result :(

I echoed the bash version for you.

root@IN07:~# echo $BASH_VERSION
3.2.33(1)-release
root@IN07:~# /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lswsctrl start
./lshttpd: line 1: syntax error: "(" unexpected (expecting ")")
[ERROR] Failed to start lshttpd!
killall: lshttpd: no process killed
./lshttpd: line 1: syntax error: "(" unexpected (expecting ")")
[ERROR] Failed to start lshttpd!
Any more ideas please?

Thanks!
 
#5
Thanks mistwang for your replies. Sorry I forgot to add what happened when I ran lshttpd directly. This is what happened:

root@IN07:~# /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lshttpd start
-bash: /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lshttpd: cannot execute binary file
I checked /mnt/HD_a2/ffp/installed-programs/lightspeed/logs/ and the directory is empty.

Thanks for helping me.

peter
 
#7
Thanks Nitewave.

I ran the command you said:

root@IN07:~# ls -al /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lshttpd
lrwxrwxrwx 1 root root 16 May 9 13:33 /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lshttpd ->
./lshttpd.4.0.14
Is that right?

peter
 
#8
One other thing, I checked the permissions on /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lshttpd.4.0.14 which is what lshttpd points to. They are 555.

The permissions on the /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/ directory are 755 as is the lightspeed directory.
 
#12
root@IN07:~# uname -a
Linux IN07 2.6.12.6-arm1 #31 Thu Mar 26 18:20:41 CST 2009 armv5tejl GNU/Linux
root@IN07:~# file /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lshttpd.4.0.14
/mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lshttpd.4.0.14: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux
2.2.5, dynamically linked (uses shared libs), not stripped
Thanks :)
 
#14
Oh! That's a shame. Thanks for your help identifying the problem anyway. I'd never of figured that out myself.

Maybe I'll stop back here next year and see if you support my processor then. Many thanks anyway.

peter
 
Top