Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: 1 [2] 3   Go Down

Author Topic: services sets mode -ntr  (Read 66131 times)

0 Members and 1 Guest are viewing this topic.

Ryoga

  • Guest
(No subject)
« Reply #25 on: July 08, 2006, 12:52:37 PM »

In my case, the server with the services is the only one with static IP, so others connect to it.
Logged

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
(No subject)
« Reply #26 on: July 08, 2006, 04:36:11 PM »

It could be a case of the servers clock ending up at a different time to that of the IRCd's internal clock then.
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

Ryoga

  • Guest
(No subject)
« Reply #27 on: July 08, 2006, 05:29:00 PM »

I'm using a virtual server, maybe that causes that unreal claims from time to time that the time is running backwards... and that could also cause the other problem... but is there a way to fix or to workaround?
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
(No subject)
« Reply #28 on: July 10, 2006, 08:40:27 AM »

Ryoga,

Output of /tsctl alltime

Please.
Logged

Ryoga

  • Guest
(No subject)
« Reply #29 on: July 10, 2006, 08:19:33 PM »

I did it twice (before and after cycling a channel, i'm not sure if that makes any difference). Btw the services server removed the modes again this time. I also cycled the chan 7 times, twice the modes stayed and 5 times they got removed.

first time:
[21:13] -ryogairc.de- *** Server=ryogairc.de TStime=1152558802 time()=1152558801 TSoffset=1
[21:13] -irc.RyogaIRC.com- *** Server=irc.RyogaIRC.com TStime=1152558801 time()=1152558804 TSoffset=-1

second time:
[21:14] -ryogairc.de- *** Server=ryogairc.de TStime=1152558864 time()=1152558864 TSoffset=1
[21:14] -irc.RyogaIRC.com- *** Server=irc.RyogaIRC.com TStime=1152558866 time()=1152558867 TSoffset=-1
Logged

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
(No subject)
« Reply #30 on: July 10, 2006, 08:37:38 PM »

Just so you have somthing to compare to from a network that is currently working correctly:

First Time:
Quote

-bravo.invictachat.co.uk- *** Server=bravo.invictachat.co.uk TStime=1152560185 time()=1152560215 TSoffset=-28
-alpha.invictachat.co.uk- *** Server=alpha.invictachat.co.uk TStime=1152560185 time()=1152560186 TSoffset=-1
-delta.invictachat.co.uk- *** Server=delta.invictachat.co.uk TStime=1152560187 time()=1152560188 TSoffset=0

Second Time:
Quote
-bravo.invictachat.co.uk- *** Server=bravo.invictachat.co.uk TStime=1152560243 time()=1152560273 TSoffset=-28
-alpha.invictachat.co.uk- *** Server=alpha.invictachat.co.uk TStime=1152560243 time()=1152560245 TSoffset=-1
-delta.invictachat.co.uk- *** Server=delta.invictachat.co.uk TStime=1152560245 time()=1152560246 TSoffset=0


Oh and for reference my Anope is running on the same computer as bravo and i was connected to bravo.

[Edited on 10-7-2006 by Jobe1986]
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

Ryoga

  • Guest
(No subject)
« Reply #31 on: July 10, 2006, 08:54:07 PM »

because getting further information is cool, I'll give some too:

I was connected to ryogairc.de, services are running on the same maschine. My server maschine is a so called virtual server with SuSE Linux 9.3 as operating system.
Logged

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
(No subject)
« Reply #32 on: July 10, 2006, 11:22:48 PM »

Oh and some extra info from me:
Am running on Windows, a mixture of XP Pro and NT 4 (yes i know needs to be updated when i can)
Anope is running on XP Pro.

All servers are automatically syncing their clocks from the server running Anope on a daily basis.

When trying to run 1.7.14 on Windows NT 4.0 the log shows:
Quote
[Jun 04 14:31:23 2006] Loading IRCD Protocol Module: [unreal32]
[Jun 04 14:31:23 2006] status:
  • [Module, Okay - No Error]
  • [Jun 04 14:31:23 2006] Microsoft Windows 95   is not a supported version of Windows

This is incorrect as it is not Windows 95 but Windows NT 4.0 (Just thought id bring that to your attention again.)
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

katsklaw

  • Guest
(No subject)
« Reply #33 on: July 10, 2006, 11:39:45 PM »

As a reminder, many of these issues can be solved by running a NTP client on your server. If you cannot install a NTP client ask your server admin to do it. If that fails and you use Unreal IRCd using http://www.nomadinc.net/mymods/files/os_tssync.c will fix your time issues.
Logged

Ryoga

  • Guest
(No subject)
« Reply #34 on: July 11, 2006, 05:11:41 PM »

A NTP client, hmm, but it changes the server clock, doesn't it? so why should I run it? does it matter if it is eg. 12:30 or 11:47? as long as all servers have the same time?

[Bearbeitet am 11. 7. 06 von Ryoga]
Logged

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
(No subject)
« Reply #35 on: July 11, 2006, 05:21:13 PM »

Thats the purpose of an NTP client. To make sure all the servers have the correct time.

[Edited on 11-7-2006 by Jobe1986]
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

Ryoga

  • Guest
(No subject)
« Reply #36 on: July 11, 2006, 08:37:46 PM »

Anyways, the module works to fix the prolem. even if all servers claim "timediff 0"
Logged

katsklaw

  • Guest
(No subject)
« Reply #37 on: July 11, 2006, 09:42:44 PM »

Quote
does it matter if it is eg. 12:30 or 11:47?


Yes, it matters greatly! All servers need to have the same time so that timestamps are synchronised. Would it matter to you, Ryoga, if you logged into your server at 12:39 and I logged into another server at the exact same moment but my clock says 12:38 and you get killed in a nick collision because my timestamp is older? I'm sure it would matter then.

IRC servers *must* stay in sync with each other or you will experience utter chaos.

ciao
Logged

Ryoga

  • Guest
(No subject)
« Reply #38 on: July 12, 2006, 04:37:14 PM »

well.. I said: "Does it matter AS LONG AS ALL SERVERS HAVE THE SAME TIME" and you say "It matters, because all servers have to have the same time"... may I ask why you negate my statement and repeat it afterwards?

Anyways, today I had to use /operserv TSSYNC around 3 times till it worked, and still, sometimes, the service server removes all modes on join (only once in 7 joins instead of 5 times in 7 joins as before, but it still happens :( :( :( ).

And still noone was able to tell me satisfiely how the clocks of UnrealIRCd and Anope can be different if they run on the same machine.
Logged

Dave Robson

  • Team
  • *
  • Offline Offline
  • Posts: 357
(No subject)
« Reply #39 on: July 12, 2006, 04:51:08 PM »

unreal will use a ntp server and apply an offset to the time of the box, services will not, they will rely on the host system time.  As such, if unreal moves the time away from the system time to be "correct" and anope dosnt, you get diffrent times on the same box.
Logged

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
(No subject)
« Reply #40 on: July 12, 2006, 05:38:42 PM »

Might be a suggestion for anope to be able to somehow retrieve the time of the server it's directly connected to and use that as a base for its time.
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

katsklaw

  • Guest
(No subject)
« Reply #41 on: July 13, 2006, 12:26:13 AM »

Anope gets it's time from the computer it's running from .. just like all other irc daemons. The issue here isn't the ircd server nor services .. it's the fact that server admins are not running some form of reliable clock or an NTP client and their network is suffering from it.

Services, nor IRCd's should be modified to overcome the lack of access to or understanding of the OS.
Logged

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
(No subject)
« Reply #42 on: July 13, 2006, 12:31:06 PM »

The point im making is with UnrealIRCd if im correct it sets its time offset when it first starts up. Then if the system time is changed afterwards it is then incorrect and thats where the problem will start to occour.

Im not sure how the entire time system of Unreal works but thats how the base of it appears to work for me.

[Edited on 13-7-2006 by Jobe1986]
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
(No subject)
« Reply #43 on: July 13, 2006, 01:08:33 PM »

The solution to all of these problems is for box administrators to keep their boxes sync'd up. It's not a complicated process cronning an ntp client to keep things ticking over nicely. You can poke around setting offsets, syncing anope to its own source, or to some ntp server, but the root of the matter is that the box admin needs to sort his stuff out.
Logged

katsklaw

  • Guest
(No subject)
« Reply #44 on: July 15, 2006, 02:35:16 PM »

Quote
Originally posted by chaz
The solution to all of these problems is for box administrators to keep their boxes sync'd up. It's not a complicated process cronning an ntp client to keep things ticking over nicely. You can poke around setting offsets, syncing anope to its own source, or to some ntp server, but the root of the matter is that the box admin needs to sort his stuff out.


This was my underlying point. Thank you chaz for wording it differently. :)
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
(No subject)
« Reply #45 on: July 16, 2006, 09:28:48 AM »

Yeah, figured repeating it might make it sink in :)
Logged

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
(No subject)
« Reply #46 on: July 17, 2006, 03:16:17 PM »

Just for reference for other users if youve got your servers working nicly with NTP set up properly you should get /tsctl alltime results like this:
Quote
[15:12:29] -bravo.invictachat.co.uk- *** Server=bravo.invictachat.co.uk TStime=1153145554 time()=1153145554 TSoffset=0
[15:12:29] -alpha.invictachat.co.uk- *** Server=alpha.invictachat.co.uk TStime=1153145554 time()=1153145554 TSoffset=0
[15:12:29] -delta.invictachat.co.uk- *** Server=delta.invictachat.co.uk TStime=1153145554 time()=1153145553 TSoffset=1
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

TRAiNER4

  • Guest
(No subject)
« Reply #47 on: July 18, 2006, 10:37:03 PM »

the services setting mode -ntr thing only occured on my network when all the servers were switched to Unreal3.2.5... I never noticed this problem back on 3.2.3 or 3.2.4... could this be an Unreal problem also?
Logged

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
(No subject)
« Reply #48 on: July 18, 2006, 11:32:45 PM »

I dont think youll find it is an Unreal problem as i had this problem with UnrealIRCd 3.2.4 I definatly think its a time problem as it only appeared to occour when some of the server's times became out of sync. For example where the system clock had been updated to the correct time but Unreal was still applying an offset thereby making Unreal's time incorrect.

In most cases it appears to occour after the servers been running for some time.

Basically if you can start it up so Unreal has a time offset of no more then + or - 2 then there should be a problem when the offset makes the time that Unreal uses incorrect.

[Edited on 18-7-2006 by Jobe1986]
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

Ryoga

  • Guest
(No subject)
« Reply #49 on: July 22, 2006, 03:10:06 PM »

Quote
Originally posted by Jobe1986
In most cases it appears to occour after the servers been running for some time.


Not in my case, it happens just after the server has been started
Logged
Pages: 1 [2] 3   Go Up