Dashers 0 Posted July 24, 2004 I have recently re-built one of my servers switching from Redhat 9 to SuSE 9.1. I have an exact copy of my OFP server from the former build. Now I no longer can get the server to start. This is what I get: 18:06:40 Dedicated server created, memory used: 350604 KB Server creation failed : 2302 I have no idea how to extract more information out of the server than the above (is there a debug switch or something?). There is a pause between starting and failing. Kernel: 2.6.5-7.95-default I have NSCD installed and running, is there a list of other requirements so I can check I have everything compiled. Thanks in advance, Dash. Share this post Link to post Share on other sites
Dashers 0 Posted July 24, 2004 To extend to this, I wiped my OFP installation and put a clean one on, and now I am getting a segmentation fault. Does anybody have a 1.96 server running on SuSE 9.1 2.6.5-7.95-default? Share this post Link to post Share on other sites
RN Malboeuf 12 Posted July 25, 2004 please use the search function on this board, the fix has been posted thanks to benu Share this post Link to post Share on other sites
Dashers 0 Posted July 25, 2004 I have searched this forum extensively and have failed to find a fix. Does anybody else run SuSE 9.1? Share this post Link to post Share on other sites
benu 1 Posted July 25, 2004 This error has most probably NOTHING to do with linux version being used. Look here. Did i mention you could have used the search function and gotten this answer much faster? Share this post Link to post Share on other sites
Flo_Wer 0 Posted July 26, 2004 hi. I have the same problem as Dashers, and i think the key is the kernel version. example with exactly the same version, cfg, files .... on kernel 2.4.26 : 11:21:20 Dedicated server created, memory used: 7960 KB Operation Flashpoint Console version 1.96: port 2402 - Sockets 11:21:26 Server identity created on kernel 2.6.7 : 11:17:27 Dedicated server created, memory used: 489244 KB Server creation failed : 2402 Just look at the "memory used" value... So my question is : Does ofp linux server works on a 2.6 kernel ? Share this post Link to post Share on other sites
benu 1 Posted July 26, 2004 Yes, it does. I have used ofp servers with redhat, suse, debian and gentoo, with kernels ranging from 2.4.x to 2.6.7. And i haven't heard from a single case yet where that error has not been network/hostname/dns related. Maybe something is missing or configured wrongly in your new kernel? Did you make it yourself or used a distribution kernel? Share this post Link to post Share on other sites
Flo_Wer 0 Posted July 26, 2004 it's just the default kernel on debian. this one : apt-get install kernel-image-2.6.7-1-k7-smp Edit : Ok. I just edit my hostname files, and i also experiment the problem on the 2.4 kernel with a correct value of memory used (around 7000 KB). I go back to my first values, and it works again on the 2.4, but not on the 2.6. So i think my problem is not network/hostname/dns related. Share this post Link to post Share on other sites
Flo_Wer 0 Posted July 26, 2004 I've just tried the solutions you give in your FAQ with the libs, but it still don't work. So i have no clue to solve the problem. Dashers is it working for you ? Share this post Link to post Share on other sites
benu 1 Posted July 26, 2004 That solution is not for your problem You should really check into your network and dns settings. Share this post Link to post Share on other sites
Flo_Wer 0 Posted July 26, 2004 as i said, i have checked these files. If i switch them to incorrect values, i cannot start with kernel 2.4 (and 2.6 of course). I have the same error message (can't create socket ...), but a correct "memory used" value. So i guess my files are good .... and the problem is linked to the too high "memory used" value. (~489000 KB) Does your kernel 2.6 OFP server used as much memory ? Share this post Link to post Share on other sites
benu 1 Posted July 26, 2004 No, it uses from 3628 KB when run without inofficial addons to 19720 KB. All values are taken from the logfile, the highest value would have to be our addon pack plus finmod, which is about 1.7gb of addons in total. If you did not change anything except the kernel you should check kernel settings. I don't know much about distributor kernels as i build my own kernels for years now, but you should check into anything network related. Maybe iptables. Did debian upgrade additional packets, like mod-utils or a new version of iptables? If you run a netfilter firewall, did you check that all modules were loaded correctly or try to run the server without the firewall? Share this post Link to post Share on other sites
Flo_Wer 0 Posted July 26, 2004 The packets are exactly the same. I switch form 2.4 to 2.6 (and from 2.6 to 2.4) with lilo. Here are the lsmod output : kernel 2.4 : Module Size Used by Not tainted nfsd 75312 8 (autoclean) lockd 52528 1 (autoclean) [nfsd] sunrpc 74016 1 (autoclean) [nfsd lockd] ipt_limit 1016 1 (autoclean) ipt_state 536 1 (autoclean) ip_conntrack 22976 0 (autoclean) [ipt_state] iptable_filter 1772 1 (autoclean) ip_tables 13184 3 [ipt_limit ipt_state iptable_filter] dm-mod 29896 0 (unused) w83781d 19128 0 (unused) i2c-proc 7600 0 [w83781d] i2c-isa 1132 0 (unused) i2c-core 16144 0 [w83781d i2c-proc i2c-isa] 3c59x 26864 1 af_packet 14728 0 (unused) rtc 7752 0 (autoclean) ext3 85128 3 (autoclean) jbd 45976 3 (autoclean) [ext3] ide-detect 288 0 (autoclean) (unused) ide-disk 17120 5 (autoclean) amd74xx 10212 1 (autoclean) ide-core 113180 5 (autoclean) [ide-detect ide-disk amd74xx] unix 17196 9 (autoclean) kernel 2.6 : Module Size Used by nfsd 201024 8 exportfs 7488 1 nfsd lockd 65672 2 nfsd sunrpc 159332 2 nfsd,lockd ipv6 270624 18 ipt_limit 3136 1 ipt_state 2560 1 ip_conntrack 37060 1 ipt_state iptable_filter 3392 1 ip_tables 19520 3 ipt_limit,ipt_state,iptable_filter dm_mod 46048 0 capability 5064 0 commoncap 7808 1 capability w83781d 35200 0 i2c_sensor 3392 1 w83781d i2c_isa 2560 0 i2c_core 24704 3 w83781d,i2c_sensor,i2c_isa 3c59x 39976 0 af_packet 24072 0 rtc 14408 0 ext3 129576 3 jbd 69720 1 ext3 mbcache 10500 1 ext3 ide_disk 19840 6 ide_generic 1920 0 amd74xx 15260 1 ide_core 144208 3 ide_disk,ide_generic,amd74xx sd_mod 22272 0 ata_piix 8452 0 libata 41924 1 ata_piix scsi_mod 127108 2 sd_mod,libata unix 31280 18 font 8896 0 vesafb 7136 0 cfbcopyarea 4224 1 vesafb cfbimgblt 3520 1 vesafb cfbfillrect 4160 1 vesafb Share this post Link to post Share on other sites
Dashers 0 Posted July 26, 2004 I tried various glib's the set in the FAQ hit it spot on though. Think I was going in the wrong direction on the old version numbers. Does your server run on a 2.4 kernel, just not a 2.6? I've found 2.6 far better for game servers generally. Share this post Link to post Share on other sites
RN Malboeuf 12 Posted July 27, 2004 are you running WGL or FIN by chance? Share this post Link to post Share on other sites
benu 1 Posted July 27, 2004 I run on 2.6.7 now, but have been using lots of older versions before. I think debian stable still installs 2.2 if you let it Share this post Link to post Share on other sites
Flo_Wer 0 Posted July 27, 2004 I have both 2.4 and 2.6 available. I switch from one to the other with lilo. Everythings works on the 2.6 except the OFP linux server :/ i have this libc6 : 2.3.2.ds1-13. It don't work also with the lib in the FAQ in my case .... i really don't know what to do... @RN Malboeuf : No, just a normal OFP with few addons. Share this post Link to post Share on other sites
benu 1 Posted July 27, 2004 The symptom when using the wrong glibc is that you get a segmentation fault. The 2302 error is network related. You should really check your /etc/hosts, /etc/resolv.conf, /etc/hostname and the value nslookup (or dig or host) return for your ip. Share this post Link to post Share on other sites
Flo_Wer 0 Posted July 27, 2004 I find out the problem of memory. It's just linked to the missing -nomap option. Kernel 2.6 without -nomap : high Memory used Kernel 2.6 with -nomap : normal Memory used Kernel 2.4 without -nomap : normal Memory used Kernel 2.4 with -nomap : normal Memory used I checked all my dns config. And i don't know where i'm wrong. Here is the config which run on kernel 2.4, but not on kernel 2.6 : Hostname :<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[MYNAME].[MYTLD] [MYNAME] doesn't start by a number. Hosts :<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">127.0.0.1 localhost.localdomain localhost [MYNAME].[MYTLD] quite strange that i need to have [MYNAME].[MYTLD] (the same as the content of hostname) here. But if i remove [MYNAME].[MYTLD] from the first line and add the line : <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">192.168.2.2 [MYNAME].[MYTLD] or <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[MYPUBLICIP] [MYNAME].[MYTLD] The server don't start anymore on kernel 2.4 resolv.conf :<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">search [MYTLD] nameserver 127.0.0.1 (i have my own bind) Quote[/b] ]$nslookup [MYNAME].[MYTLD]Server: 127.0.0.1 Address: 127.0.0.1#53 Name: [MYNAME].[MYTLD] Address: 192.168.2.2 if i change the "nameserver 127.0.0.1" to "nameserver [MYISPDNS]", i'll have this : Quote[/b] ]$nslookup [MYNAME].[MYTLD]Server: [MYISPDNS] Address: [MYISPDNS]#53 Name: [MYNAME].[MYTLD] Address: [MYPUBLICIP] but .... the result is the same. It doesn't work on both 2.4 and 2.6 kernel. I really don't understand why i need to have [MYNAME].[MYTLD] in the 127.0.0.1 line of my /etc/hosts Share this post Link to post Share on other sites
benu 1 Posted July 27, 2004 Actually, you should NOT have your servername in the 127.0.0.1 line. That your server does not work when you leave that out is an indicator that something else in your network setup is broken. Share this post Link to post Share on other sites
Flo_Wer 0 Posted July 28, 2004 Ok, some littles things are corrected : (a firewall problem) I have now : Hostname :<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[MYNAME].[MYTLD] [MYNAME] doesn't start by a number. Hosts :<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">127.0.0.1 localhost.localdomain localhost 192.168.2.2 [MYNAME].[MYTLD] [MYNAME] resolv.conf :<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">search [MYTLD] nameserver 127.0.0.1 (i have my own bind) Quote[/b] ]$nslookup [MYNAME].[MYTLD]Server: 127.0.0.1 Address: 127.0.0.1#53 Name: [MYNAME].[MYTLD] Address: 192.168.2.2 if i remove the <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">192.168.2.2 [MYNAME].[MYTLD] [MYNAME] from hosts, and change the "nameserver 127.0.0.1" to "nameserver [MYISPDNS]", i'll have this : Quote[/b] ]$nslookup [MYNAME].[MYTLD]Server: [MYISPDNS] Address: [MYISPDNS]#53 Name: [MYNAME].[MYTLD] Address: [MYPUBLICIP] In both case, the result is the same. I guess now my network config is good, but it works on kernel 2.4, and still not on 2.6. Share this post Link to post Share on other sites
benu 1 Posted July 29, 2004 Just one question: you are using 192.168.x.y ip? Are you behind nat? Did you try to set the hostname to what it resolves when you resolve your EXTERNAL ip? I did not try to set up a server behind nat so i am not sure if this is possible at all or which kind of extra configuration has to be done, except forwarding the server ports from the nat router and masquerading outgoing traffic. Share this post Link to post Share on other sites
Flo_Wer 0 Posted July 29, 2004 Quote[/b] ]Just one question: you are using 192.168.x.y ip? Are you behind nat? Yup. I'm using NAT. But that's not the problem ..... what if i want to run the serv only in my private network ? It should start anyway.... Quote[/b] ]Did you try to set the hostname to what it resolves when you resolve your EXTERNAL ip? That's what i do when i change my resolv.conf to have my ISP DNS in it. the nslookup work fine. but it don't change anything ... Quote[/b] ]I did not try to set up a server behind nat so i am not sure if this is possible at all or which kind of extra configuration has to be done, except forwarding the server ports from the nat router and masquerading outgoing traffic. That's all. Forewarding work fine with my 2.4 kernel. Share this post Link to post Share on other sites