Page 1 of 2

TS Problem

Posted: Sun Oct 09, 2005 8:36 pm
by cculha
[23:32] -ren.geyik.net- *** Server=ren.geyik.net TStime=1128868132 time()=1128889912 TSoffset=-21778
-
[23:32] -super.geyik.net- *** Server=super.geyik.net TStime=1128868135 time()=1128868135 TSoffset=0


it has written from my links /tsctl alltime


the server sometimes says me the classic u:line tstime timediff -21778 msg.

and always the users in the other link sometimes (once for a day) all the users ping timeouted and reconnect.

how can i fix the problem. how can i sync the clocks.... please tell me the RIGHT resolving!

Posted: Sun Oct 09, 2005 11:48 pm
by Jason
You have a couple options. Heres the best one.

Sync your server's clocks! The time on your computer is today. The time on the other computer is yesterday. Or something like this.

Posted: Mon Oct 10, 2005 12:59 am
by Moogey
I think unreal should support a clock offset option for servers so the clocks don't need to be changed but they can have an 'offset' so they match. Don't think this exists...

Posted: Mon Oct 10, 2005 1:46 am
by Stealth
Moogey wrote:I think unreal should support a clock offset option for servers so the clocks don't need to be changed but they can have an 'offset' so they match. Don't think this exists...
You need to read some docs :)
The command is TSCTL, but should not be used by people who do not know what they are doing. It should also not be used for large time differences.

Posted: Mon Oct 10, 2005 7:38 am
by cculha
ok thats please tell me how can i sync my clocks.??? everytime the links are disconnected. how can i do that.. i don't have the dedicated. i have only shell.

Posted: Mon Oct 10, 2005 8:09 am
by Psadi
Are both shell acounts?

Then I think they are doing a poor job keeping the server running nicly.

You need to ask the server owners if they are updating the systemclock by running NTP. For this large offset they probly need to do a ntpdate first though to set the time correctly. (presume they are running unix/linux)

Posted: Mon Oct 10, 2005 8:35 am
by cculha
ok i has given the root access. and this happened




d80-237-140-181:~ # ntpdate
10 Oct 10:32:26 ntpdate[15936]: no servers can be used, exiting
d80-237-140-181:~ #


????????

Posted: Mon Oct 10, 2005 9:11 am
by Psadi
try this

ntpdate pool.ntp.org

you need to provide a server to be used. Pool is a pool of ntp servers that you can zync against.

Posted: Mon Oct 10, 2005 9:45 am
by Dukat
You should really use NTPd, not ntpdate.
The deamon keeps checking and updating the clocks so that they won't drift again.

Posted: Mon Oct 10, 2005 10:17 am
by Psadi
True Dukat but he was so off in times that ntpd woudnt have fixed it.

Posted: Mon Oct 10, 2005 10:36 am
by Dukat
Yes, you're right... but usually the init.d script for ntpd executes a ntpdate first :wink:

Posted: Mon Oct 10, 2005 12:17 pm
by w00t
Uh, guys.. they are already synched.

Look at time() and add/subtrack the offset as necessary to get TSTime, as TSTime on both servers is nice and close together, you're ok.

Posted: Mon Oct 10, 2005 2:40 pm
by cculha
oh men oh men!

d80-237-140-181:~ # ntpdate pool.ntp.org
10 Oct 16:37:14 ntpdate[4759]: Can't set time of day: Operation not permitted
d80-237-140-181:~ # NTPd
-bash: NTPd: command not found
d80-237-140-181:~ #



please tell me the certain way...


the system is linux...

Posted: Mon Oct 10, 2005 3:58 pm
by Psadi
read up on
man ntp
you must be root to be able to set the time and date. If you are root. Then i´m lost :) since I run FreeBSD

NTPd is probly ntpd as command on your machin Dukat typed it that way to make it stand out (i guess)

Posted: Mon Oct 10, 2005 4:02 pm
by cculha
i had two machines . and i linked 2 server on them. but the time is incorrect in linux machine /tsctl alltime


[18:59] -ren.geyik.net- *** Server=ren.geyik.net TStime=1128938190 time()=1128959969 TSoffset=-21778
-
[18:59] -super.geyik.net- *** Server=super.geyik.net TStime=1128938194 time()=1128938194 TSoffset=0

ren.geyik.net is linux machine
super.geyik.net is bsd machine

i must sync the clock of the linux. is anyone know the commands or anything please i am waiting...