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?
server time sync
Re: server time sync
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
The fastest way to fix:
1> edit your config file
2> shut ircd down
3> delete ircd.tune
4> start the ircd
Configuration - https://www.unrealircd.org/docs/Configuration
FAQ - https://www.unrealircd.org/docs/FAQ
FAQ - https://www.unrealircd.org/docs/FAQ
Re: server time sync
Hi,
thanks for the tip. We followed his instructions in detail, but we still have problems to sync server ircd.
Any other suggestions?
thanks for the tip. We followed his instructions in detail, but we still have problems to sync server ircd.
Any other suggestions?
Re: server time sync
Paste the output of /quote TSCTL alltime. You need to be an IRCop to use the command.
Configuration - https://www.unrealircd.org/docs/Configuration
FAQ - https://www.unrealircd.org/docs/FAQ
FAQ - https://www.unrealircd.org/docs/FAQ
Re: server time sync
(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
Re: server time sync
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.
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.