View Full Version : Linux Server not writing logs
Athon
11-28-2003, 07:52 PM
Please help, I feel as I may go insane.
I have tried all the various tips, and tricks listed on this forum re: logging, linux etc.
The sucker just is not creating a log file.
set logfile "1"
set g_log "game_mp.log"
is my in my current config.
What am I doing wrong (hitting the server with a bat WAS justified)?
Thanks,
Athon
OldandSlow
11-29-2003, 12:01 AM
Where are you looking for the log file?
I found mine in the "home" directory - ~/.callofduty/main - not where I expected since I run from ~/COD. There was a log file in ~/COD/main but it was 2 days old. The one in the .callofduty directory was current...
Athon
11-29-2003, 12:18 AM
Looked every where, just not producing logs.
Any ideas?
imported_Spive
11-29-2003, 01:52 PM
I'm having the same problem with my linux server. I have the same server settings and its just not writing any logs.
Also, I've read that when you launch the server, it writes a file called "config_mp.cfg". I don't see that file either.
The server is running fine.... its just not writing these files.
imported_notorius
11-29-2003, 05:16 PM
set dedicated 2
set developer 0
set sv_pure 0
set g_log "cod_tdm.log"
set g_logsync "0"
now you take a look in ur main folder.
NOTE:
if u start the server as root you will find the config in ur /root/.callofdutyhomedir
so long
notorius
Athon
11-29-2003, 05:50 PM
Tried and failed, crashed and burned.
Killed server and restart. Modified *.cfg
Have players on it (50+) no logs. Have other servers running different configs, no logs. I want to run away and hide.
If anyone has a similar problem, on Linux (specifically Redhat 9) can you pipe up. Better yet, if somone has a fix (allready tried the large hammer bit) it would be greatly apreciated.
Note: I have been browsing about 8 forums looking for a fix to the logs, and no dice. Maybe a better aproach would be for me to ask, how did you get your logfile working on Linux?
Thanks,
Athon
OldandSlow
11-30-2003, 05:41 PM
Look at you directory ownership and permissions vs. the user you use to run the server. I didn't do anything special using RH 7.3 to get it running. Here is my directory structure from the login directory ($HOME):
>>>ll .callofduty/
total 4
drwxr-xr-x 2 gibke users 4096 Nov 28 09:04 main/
[gibke@Linux2 gibke]$ ll .callofduty/main/
total 664
-rw-r--r-- 1 gibke users 654 Nov 30 12:19 config_mp_server.cfg
-rw-r--r-- 1 gibke users 667668 Nov 30 16:32 games_mp.log
>>> ll COD
total 1216
-rw-r--r-- 1 gibke users 3881 Nov 20 11:59 README
-rw-r--r-- 1 gibke users 259756 Nov 23 07:23 cod.bmp
-rwxr-xr-x 1 gibke users 724648 Nov 13 15:03 cod_lnxded*
-rwxr-xr-x 1 gibke users 423 Nov 26 14:46 codser*
drwxrwxrwx 2 gibke users 4096 Nov 26 10:59 install/
-rw-r--r-- 1 gibke users 2069 Nov 23 07:23 localization.txt
drwxrwxrwx 2 gibke users 4096 Nov 28 09:16 main/
drwxrwxrwx 2 gibke users 4096 Nov 25 06:35 miles/
-rw------- 1 gibke users 210967 Nov 30 16:34 nohup.out
-rwxr-xr-x 1 gibke users 455 Nov 28 13:39 run_cod*
drwxrwxrwx 2 gibke users 4096 Nov 26 14:27 xfer/
My run script looks like this:
nohup ./cod_lnxded +set dedicated 2 +set net_ip 12.96.166.226 +set net_port 28960 +exec dedicated.cfg +map_rotate &
My problem is that the server runs but it doesn't show up on the browser or on GameSpy - you have to connect via the console. :?
But it *DOES* seem to generate logs... :smile:
Cobra
12-04-2003, 06:32 PM
your server dont show in browsers becase of this command in your startup line.
+set net_ip 12.96.166.226
take that command away and it will work in the browsers
OldandSlow
12-05-2003, 01:33 AM
OK - did that - results are the same - I can manually connect to 12.96.166.226:28960 but it does not appear in the CoD browser or in GameSpy.
This is very frustrating...
Mistical
12-05-2003, 04:09 PM
I am sure you have this set... but just incase, make sure that this line:
set sv_master1 "codmaster.activision.com"
is in your config
OldandSlow
12-06-2003, 11:12 AM
OK - it is working now - both the browser and GameSpy show the server.
Here is what was needed - My server is co-located at my ISP who has a firewall in place. It blocks ports both coming and going. I had previously requested port 28960 opened both ways for UDP and TCP - we found that both protocols are required to even connect.
Last night I had him open ports 20500 and 20510 for outgoing traffic and now the server is visible to the world.
Hope that helps someone else, too...
Hurray!
Staley
12-07-2003, 05:56 AM
Tried and failed, crashed and burned.
Killed server and restart. Modified *.cfg
Have players on it (50+) no logs. Have other servers running different configs, no logs. I want to run away and hide.
If anyone has a similar problem, on Linux (specifically Redhat 9) can you pipe up. Better yet, if somone has a fix (allready tried the large hammer bit) it would be greatly apreciated.
Note: I have been browsing about 8 forums looking for a fix to the logs, and no dice. Maybe a better aproach would be for me to ask, how did you get your logfile working on Linux?
Thanks,
Athon
Same here, looked for everything, tried everything. Finally the log showed up...It was empty, didnt change anything in the config file . Restarted the server later on. Now it doesn't generate logs any more...o_O
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.