server time sync

These are old archives. They are kept for historic purposes only.
Post Reply
TuSaiChi
Posts: 13
Joined: Sun Feb 03, 2013 12:31 pm

server time sync

Post by TuSaiChi »

Hi,
i have a network with unreal 3.2.10, I have a problem, how to synchronize the time of the server unreal.
option is used in the conf:
timesynch {
enabled "yes";
server "ip serversync";
timeout 3s;
};

but does not work.
We checked into the sync server with ntpdate, but the time is not always to 0 on all servers in the network.
How can we solve this problem?
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: server time sync

Post by katsklaw »

If you have ntpd installed, you don't need to use Unreal's timesynch. You can't just delete the set::timesynch option though as it's enabled by default, you have to set it to "no" to disable. This value isn't rehashed though as it's disabled/enabled on boot.

The fastest way to fix:

1> edit your config file
2> shut ircd down
3> delete ircd.tune
4> start the ircd
TuSaiChi
Posts: 13
Joined: Sun Feb 03, 2013 12:31 pm

Re: server time sync

Post by TuSaiChi »

Hi,
thanks for the tip. We followed his instructions in detail, but we still have problems to sync server ircd.
Any other suggestions? :)
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: server time sync

Post by katsklaw »

Paste the output of /quote TSCTL alltime. You need to be an IRCop to use the command.
TuSaiChi
Posts: 13
Joined: Sun Feb 03, 2013 12:31 pm

Re: server time sync

Post by TuSaiChi »

(20:17:44) -linux.globalirc.it- *** Server=linux.globalirc.it TStime=1361301461 time()=1361301462 TSoffset=0
-
(20:17:44) -server1- *** Server=server1 TStime=1361301460 time()=1361301462 TSoffset=0
-
(20:17:44) -server2- *** Server=server2 TStime=1361301461 time()=1361301462 TSoffset=0
-
(20:17:44) -server3- *** Server=server3t TStime=1361301462 time()=1361301464 TSoffset=-1
-
(20:17:44) -server4- *** Server=server4 TStime=1361301462 time()=1361301464 TSoffset=-1
-
(20:17:44) -server5- *** Server=server5 TStime=1361301462 time()=1361301524 TSoffset=-61
-
(20:17:44) -server6- *** Server=server6 TStime=1361301462 time()=1361301464 TSoffset=-1
-
(20:17:44) -server7- *** Server=server7 TStime=1361301463 time()=1361301524 TSoffset=-60
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: server time sync

Post by Syzop »

The IRCd time of all those are correct. This is the TStime() value, which as you can see is between 1361301460 and 1361301463.
The machine clock of most servers are fine too with the exception of server5 and server7, you can see the time() values are a lot higher than the rest. They are both 1 minute ahead, and the IRCd/timesynch therefore used a correction - this is the TSoffset - of -60/-61 seconds to get a good TStime().
Right now you have no problem, but in an ideal case you want your machine time to be correct, so fix server5 and server7 time, presumably they don't run NTPd right now, so install that and make sure it runs well. When all that is good, then either restart the IRCd on those 2 machines or manually adjust the TSoffset to 0 on those servers. If you don't do that last step (restart or manually adjust) then the TSoffset would still be -61 and thus your server will be 1 minute behind if your machine clock is correct.
Post Reply