Author Topic: Server + debian = cant execute server  (Read 1016 times)

0 Members and 1 Guest are viewing this topic.

Offline {[MS]}Pyro

  • Major(1)
  • Posts: 20
Server + debian = cant execute server
« on: December 16, 2007, 12:47:50 pm »
Okey the problem is that i cant start soldatserver with any command at all. ./soldatserver or ./soldatserver with parameters - doesnt matter. All it does is that it just goes to the next line (like ive just typed a random enter).

--------------------
asdf@sserver:/home/user/soldat# ./soldatserver
asdf@sserver:/home/user/soldat#
--------------------

The only way (ive found) to get server working is to put ./soldatserver (with parameters) to the end of
/etc/init.d/rc.local
So it starts with linux. But thats kind of annoying since i cant run any autoserverkillerstartersifbugoccurs.

Any idea why i cant run it or how to fix this?

Offline TheToast

  • Major
  • *
  • Posts: 52
Re: Server + debian = cant execute server
« Reply #1 on: December 16, 2007, 05:55:05 pm »
Rights correct?

Running from init.d looks like it runs with root rights.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Server + debian = cant execute server
« Reply #2 on: December 16, 2007, 05:56:22 pm »
do:

strace ./soldatserver

and paste us the output. This sounds a lot like the UPX problem that Ubuntu Gutsy users are having

Offline {[MS]}Pyro

  • Major(1)
  • Posts: 20
Re: Server + debian = cant execute server
« Reply #3 on: December 16, 2007, 06:24:16 pm »
Code: [Select]
root@sserver:/home/user/soldat# strace ./soldatserver
execve("./soldatserver", ["./soldatserver"], [/* 17 vars */]) = 0
getpid()                                = 5494
open("/proc/5494/exe", O_RDONLY)        = 3
lseek(3, 1488, SEEK_SET)                = 1488
read(3, "\377\217\0\0\260[\17\0\0\0\10\0", 12) = 12
gettimeofday({1197858640, 599554}, NULL) = 0
unlink("/tmp/upxDTV1LYFAFLW")           = -1 ENOENT (No such file or directory)
open("/tmp/upxDTV1LYFAFLW", O_WRONLY|O_CREAT|O_EXCL, 0700) = 4
ftruncate(4, 1006512)                   = 0
old_mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f69000
read(3, "\0\0\10\0\305\202\3\0", 8)     = 8
read(3, "\177?d\371\177ELF\1\0\2\0\3\0\32(@\5\10\376\373e\2674\16"..., 230085) = 230085
write(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\2\0\3\0\1\0\0\0(@\5\010"..., 524288) = 524288
read(3, "\260[\7\0\304\357\2\0", 8)     = 8
read(3, "\375\377\267\313\6\0\272\2\10\213E\374\350\273_\370\377"..., 192452) = 192452
write(4, "\6\0\0\0\272\2\0\0\0\213E\374\350\273_\370\377\213\205"..., 482224) = 482224
read(3, "\0\0\0\0UPX!", 8)              = 8
munmap(0xb7f69000, 528384)              = 0
close(4)                                = 0
close(3)                                = 0
open("/tmp/upxDTV1LYFAFLW", O_RDONLY)   = 3
access("/proc/5494/fd/3", R_OK|X_OK)    = -1 EACCES (Permission denied)
close(3)                                = 0
fork()                                  = 5495
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, NULL, 0)                    = 5495
execve("/tmp/upxDTV1LYFAFLW", ["./soldatserver"], [/* 17 vars */]) = -1 EACCES (Permission denied)
unlink("/tmp/upxDTV1LYFAFLW")           = 0
_exit(127)                              = ?
Process 5494 detached
root@sserver:/home/user/soldat#

thanks for help in irc.

this fixed it:
apt-get install upx-ucl
upx -d soldatserver

aka uncompressing soldatserver
« Last Edit: December 16, 2007, 06:36:00 pm by {[MS]}Pyro »