kegetys 2 Posted October 15, 2002 I installed the linux server like said in the readme, it starts fine, but when I join the game, select and mission and start the game the server crashes with "Segmentation fault", right after "Reading mission". I tried different missions on different islands but it seems to happen every time... There seems to be no crash report files done so I cannot post anything and therefore I also have no idea whats wrong... I tried it on a Debian system. Edit: It seems to work now, I did a full OFP reinstall on the windows side (1.0, resistance, 1.85) and copied everyting to the linux machine and now it works... no idea what was wrong Share this post Link to post Share on other sites
Fox Mulder 0 Posted October 15, 2002 I tried the linux server on SuSE 7.3 just a few minutes ago and it works great with very good performance for me. I got only one problem, the server executes the missions defined in the server.cfg but when i log in as admin and make "#missions" i got an empty list!?!? I can't select any missions but i got ~90 on the server. Is this some kind of bug or did i something wrong ? I see that after the linux server installation all missions are now lowercase written, but i don't think this is the problem. BIS pls help me a bit. But i think this ded server will increase the number of ofp players in the world a lot and i also waited long for it, so i want to thank BIS for this nice piece of work. Ciao, Fox Share this post Link to post Share on other sites
PRiME 1 Posted October 15, 2002 Shadow Posted on how to fix this in General forums, something about removing all map classes??? I dunno Share this post Link to post Share on other sites
Fox Mulder 0 Posted October 15, 2002 I read shadows post... But the solution is to remove all mission classes in the server.cfg and i don't think that this is a good solution. Share this post Link to post Share on other sites
hugo2020 0 Posted October 15, 2002 hi, what are mission classes? In 1.75 was that sometimes too, but press OK helped, do you tried it? Share this post Link to post Share on other sites
Lobanak 0 Posted October 15, 2002 On my RedHat 7.3 Box the server starts fine and runs fine (also some guys were on as I was testing). The only thing is the "class Mission0x{};" thing that are not working (admin don't see the missions). These are the missions that rotate when no admin logged in. Greets [CiA]Lobanak Share this post Link to post Share on other sites
kegetys 2 Posted October 15, 2002 A little bit more info... it seem that this crashing is caused by some addons, for example after placing "ash realismpack.pbo" into the addons dir all missions crash the server, even those that have nothing to do with this addon... There seem to be alot of addons that cause this, and those work fine on the windows server so there apparently is some sort of bug in the linux server. Share this post Link to post Share on other sites
kegetys 2 Posted October 15, 2002 Edit: Ok its getting more weird all the time, some missions start working when I remove certain addons, some start working after I remove all addons, and some never work... The server seems to eat all the memory available in the system (256MB total) but doesnt use swap at all. When running the windows server with WINE everything works fine no matter what addons are installed. Share this post Link to post Share on other sites
Fox Mulder 0 Posted October 15, 2002 I tried a bit more and after i remove the mission classes in the cfg the server now shows all missions in the selection screen. But therefor it never rotates missions and the players had to select (vote) for them to begin. I tested a few missions like the standard warcry (nogova-coop) and they work fine with good performance (~50% cpu time for it and 50fps server status). I got most of Kegetys/GFX707/DKMM Addons installed on the server but until now don't try a map which uses these addons. The default maps and some custome made maps i tried works all fine for me. Share this post Link to post Share on other sites
benu 1 Posted October 15, 2002 Lol, i can't even get the server installed Error msg is: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> sh server-1.85b.shar Operation Flashpoint Resistance dedicated server 1.85b x - creating lock directory x - extracting server (binary) x - extracting tolower.cpp (binary) Converting OFP directory: /tmp/cciqHbLI.o(.eh_frame+0x11): undefined reference to `gxx_personality_v0' collect2: ld returned 1 exit status <span id='postcolor'> Doesn't seem to work with Gcc3.2. The only part of the script i need to do is: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ./tolower chmod +w * rm -f *.exe *.chm *.dll tolower.cpp exit 0 <span id='postcolor'> Can anyone put that file on a website or something? Share this post Link to post Share on other sites
benu 1 Posted October 15, 2002 And i'm too stupd to post too This section just got cut out of my posting, don't know why... Judging from the tolower.cpp and the temp.o linking a cpp program seems to fail?!? Maybe something to do with me using gcc3.2? If so, why don't the use a statically linked binary instead of letting it compile on the server? I just browsed through the server-185b.shar, all it does afterwards is checking whether tolower.cpp is correct and compile it. I just extracted it by hand and tried to compile it, that is where the error message is from... Share this post Link to post Share on other sites
kegetys 2 Posted October 16, 2002 It seems I fixed this issue by doing a new flashpoint.cfg in the windows preferences program, which uses only 192MB of memory total and then copying the flashpoint.cfg to the linux server, now it runs all maps fine without doing segmentation faults... The previous flashpoint.cfg had 256MB there, which is the real memory amount of the system. It seems the server tires to allocate this, and when there is memory used by other applications it crashes, the weird thing is that it never even tries to use the 500MB swap that is available. Share this post Link to post Share on other sites
benu 1 Posted October 16, 2002 I just compiled it on another box. Seems the setup script really doesn't work with gcc3.2. Would be a nice warning for the readme i think. Also, copying a fresh windows install to linux won't work as the server needs a flashpoint.cfg (lowercase ) which isn't created automatically by the installer. Apart from that my lofp linux server at home is up and running, now i have to think how i get it to my gamehoster... Share this post Link to post Share on other sites
Angry Radish 0 Posted October 16, 2002 Which version of gcc worked for you? having the same issues compiling.... Share this post Link to post Share on other sites
hoz 0 Posted October 16, 2002 What speed is everyones linux server? Trying to determine which machine is best to install linux on. Hoz Share this post Link to post Share on other sites
Angry Radish 0 Posted October 16, 2002 I'm still having some issues compiling this... I've seen others with similar error messages, wondering if anyone can help me in my linux ignorance:-) sh server-1.85b.shar Operation Flashpoint Resistance dedicated server 1.85b x - creating lock directory x - extracting server (binary) x - extracting tolower.cpp (binary) Converting OFP directory: gcc: installation problem, cannot exec `cc1plus': No such file or directory server-1.85b.shar: line 147979: ./tolower: No such file or directory Is there something obvious I'm overlooking? Thanks in advance! Share this post Link to post Share on other sites
Angry Radish 0 Posted October 18, 2002 *bump* since my edit didn't bump the post Share this post Link to post Share on other sites
benu 1 Posted October 18, 2002 As it says: cc1plus is not there, it's part of the compiler. I guess the easiest would be to delete the line "gcc -o tolower tolower.cpp" from the shar and get the compiled from somewhere else. If i had a homepage i would put it there for you, it's only 70kb... Share this post Link to post Share on other sites
Hudson 0 Posted October 18, 2002 maybe you could e-mail it to him. Share this post Link to post Share on other sites
Angry Radish 0 Posted October 18, 2002 He IM'd me Thanks benu! that file worked perfectly. Still trying to find out why it can't find cc1plus, as it's there and installed correctly, but for now the server is working finally:-) Share this post Link to post Share on other sites
benu 1 Posted October 21, 2002 Ok, next problem: I installed the linux server on 4 boxes, 2x on gentoo 1.4, 2x on redhat 7.3, all ran fine. Now i installed the server on the box of my gamehoster and it doesn't work. Disabling firewall doesn't help. Running the server as root doesn't work. Cfgs are all there. Pathname is ok. I can't even recount what settings i tested in the last hours... OS on that server is also redhat 7.3 and i used the same tar.bz2 as for all the working servers. Error message is: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ./server 0:45:30 Dedicated server created Server creation failed : 2302 <span id='postcolor'> I have tried many different things and really don't know what could be different on that system. Diff'ing a strace from a working server and the non working server yields: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> sendto(-1, "\\heartbeat\\0\\gamename\\\\statechan"..., 37, 0, {sin_family=AF_UNSPEC, {sa_family=0, sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 16) = -1 EBADF (Bad file descriptor) <span id='postcolor'> sendto seems to come from /usr/include/sys/socket.h which seems to be the same on all systems... and i don't really know which file descriptor he is talking about Seems to be at least one other guy with this problem but no one with a solution so far. Don't know where to look next, i've spent hours with this one... any ideas anyone? Update: I've checked for all files that are opened by a working server and they are all there on the machine where the server doesn't start. I don't really know where to look next as: 1) all needed files seem to be there 2) it's seems not to be something about privileges (doesn't run as root) 3) doesn't seem to be a network problem (direct connection to the internet with internet ip, all other networking works and server didn't run even when firewall was turned off). Share this post Link to post Share on other sites
suma 8 Posted October 25, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Kegetys @ Oct. 15 2002,15:50)</td></tr><tr><td id="QUOTE">A little bit more info... it seem that this crashing is caused by some addons, for example after placing "ash realismpack.pbo" into the addons dir all missions crash the server, even those that have nothing to do with this addon... There seem to be alot of addons that cause this, and those work fine on the windows server so there apparently is some sort of bug in the linux server.<span id='postcolor'> Can you check if this issue is still present in 1.88? Share this post Link to post Share on other sites
suma 8 Posted October 25, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (benu @ Oct. 22 2002,00:56)</td></tr><tr><td id="QUOTE">Error message is: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ./server 0:45:30 Dedicated server created Server creation failed : 2302 <span id='postcolor'> I have tried many different things and really don't know what could be different on that system. Diff'ing a strace from a working server and the non working server yields: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> sendto(-1, "\\heartbeat\\0\\gamename\\\\statechan"..., 37, 0, {sin_family=AF_UNSPEC, {sa_family=0, sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 16) = -1 EBADF (Bad file descriptor) <span id='postcolor'><span id='postcolor'> Failed sendto(-1, "\\heartbeat\\0\\gamename\\.... .... is part of GameSpy server list reporting. As a temporaty workaround you might try adding reportingIP="" into your Flashpoint.cfg. This way you might be able to get server running, although not visible in igame browser. Share this post Link to post Share on other sites