Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Anope not responding anymore using SQL (after modload)  (Read 4935 times)

0 Members and 1 Guest are viewing this topic.

cmvdeeden

  • Anope User
  • Offline Offline
  • Posts: 26
Anope not responding anymore using SQL (after modload)
« on: May 25, 2011, 10:30:12 PM »

So, we've loaded the module cs_accessfounder which appeared to have a bug (told by the person who'd wanted us to load the module... But tested it, worked fine). This module should make it possible to have 2 founders set on a channel, which did work! But... Now our anope is absolutely dead. Step by step what we've done to kill anope:

- We've loaded the module.
- We've set 2 founders for the channel '#ChatArea'. Worked fine.
- A day later, today, anope suddenly closed the connection, so we started anope again.
- Anope didn't respond anymore, /cs help didn't return anything, nothing worked.
- Tried to find out what was wrong, found out that since the module 'cs_accessfounder' this happend.
- Unloaded the module, then ran anope again. Again, nothing.
- Started anope in debug mode, which told us:

Quote
[May 25 21:46:05.526425 2011] debug: MySQL: UPDATE anope_cs_ttb SET value = 0, active = 1 WHERE channel = '#Idle' AND ttb_id = 3
[May 25 21:46:05.527067 2011] debug: MySQL: UPDATE anope_cs_ttb SET value = 0, active = 1 WHERE channel = '#Idle' AND ttb_id = 4
[May 25 21:46:05.527717 2011] debug: MySQL: UPDATE anope_cs_ttb SET value = 0, active = 1 WHERE channel = '#Idle' AND ttb_id = 5
[May 25 21:46:05.528380 2011] debug: MySQL: UPDATE anope_cs_ttb SET value = 0, active = 1 WHERE channel = '#Idle' AND ttb_id = 6
[May 25 21:46:05.528966 2011] debug: MySQL: UPDATE anope_cs_ttb SET value = 0, active = 1 WHERE channel = '#Idle' AND ttb_id = 7
[May 25 21:46:05.529574 2011] debug: MySQL: UPDATE anope_cs_info SET founder = 'Angel', successor = '', founderpass = '**********ยค', descr = '*********m', url = '', email = '', time_registered = 1304672446,     last_used = 1306352056, last_topic = '4,8Welkom bij InterChat! Hou het gezellig en neem gerust je vrienden mee! Veel plezier!4,8 http://*******/', last_topic_setter = 'jumper', last_topic_time = 1304339374, flags = 12385, forbidby = '',     forbidreason = '', bantype = 2, accesscount = 0, akickcount = 0, mlock_on = 548,  mlock_off = 0, mlock_limit = 0,     mlock_key = '', mlock_flood = '', mlock_redirect = '', entry_message = '', memomax = 20, botnick = '', botflags = 28,     bwcount = 0, capsmin = 0, capspercent = 0, floodlines = 0, floodsecs = 0, repeattimes = 0, active = 1 WHERE name = '#InterChat'
[May 25 21:46:05.530309 2011] debug: MySQL: UPDATE anope_cs_levels SET level = 5, active = 1 WHERE channel = '#InterChat' AND position = 0
[May 25 21:46:05.530941 2011] debug: MySQL: UPDATE anope_cs_levels SET level = 10, active = 1 WHERE channel = '#InterChat' AND position = 1
[May 25 21:46:05.531596 2011] debug: MySQL: UPDATE anope_cs_levels SET level = -10000, active = 1 WHERE channel =


And again and again and again... Flooding the same thing which HUGE speed.

- Turned SQL off, restarted anope, everything worked!
- Removed the second owner of the channel #ChatArea and turned SQL back on.
- Again, flood and Anope not responding.
- Backupped our .db files, other stuff etc. and reinstalled Anope (1.8.5.).
- Started anope without SQL, worked fine.
- Cleaned up our MySQL databases and imported clean tables.
- Turned SQL back on and restarted anope
- Updated databases (from .db > MySQL)
- Restarted anope
- And back to the begin, NOTHING.


After this we found out that the table anope_cs_levels has been full flooded with the debug's output. On every channel there has been set an large amount of levels, which shouldn't be. The table anope_cs_levels contains 58 pages of this.

So, we concluded that there has gone something terribly wrong with the sql. The module shouldn't have anything to do with it because we reinstalled Anope without the module and removed the second founder.

In my opinion the table anope_cs_levels shouldn't be like that..

But, to make a large story short: After using a module, Anope does not respond using SQL, DOES respond WITHOUT SQL and in the anope_cs_levels table has been insert a huge amount of rows.

Any help? Please note that we CANNOT give a full debug output. While running anope in debug mode it'll flood putty to death so we cant copy it all, the debug output above was just a small part which I happend to copy by luck.






« Last Edit: May 25, 2011, 10:36:27 PM by cmvdeeden »
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: Anope not responding anymore using SQL (after modload)
« Reply #1 on: May 25, 2011, 10:59:22 PM »

any particular reason you are using SQL, if you don't actually use it for a website or anything, don't use it as it s a drain on anopes resources and performance..

as for anope_cs_levels containing 52 pages, that might be perfectly normal.. there should be around 30 rows or so in that table per registered channel.

while anope is writing to the sql db it will be unresponsive so the performance of your sql database is key.. don't even attempt to use anope with a remote sql server because it will be busy updating the sql tables for minutes for every save..

as for flooding putty to death.. who ever said that kinda debug info needs to go to putty.. just run anope in the background and everything will be written to its logfiles.
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

cmvdeeden

  • Anope User
  • Offline Offline
  • Posts: 26
Re: Anope not responding anymore using SQL (after modload)
« Reply #2 on: May 25, 2011, 11:15:25 PM »

We're using the SQL option for our website, indeed. It's really important for us, we're also using your misc_mysql thing module. I just think it's weird Anope doesn't work anymore using SQL since we've used the module.

Anope's 'use RDB' has been commented in the configuration file.

As for the logfile, the part where we USE MySQL. The part without using MySQL is just the same, except for the message 'MySQL has been enabled' will be replaced with "Your MySQL has not been configured" blabla:

Quote
[May 25 22:46:04 2011] Loading IRCD Protocol Module: [unreal32]
[May 25 22:46:04 2011] status:
  • [Module, Okay - No Error]
[May 25 22:46:04 2011] Loading Encryption Module: [enc_none]
[May 25 22:46:04 2011] status:
  • [Module, Okay - No Error]
[May 25 22:46:04 2011] Anope 1.8.5 (3037) (ircd protocol: UnrealIRCd 3.2+) starting up
[May 25 22:46:05 2011] MSMemoReceipt not enabled in services.conf
[May 25 22:46:05 2011] ms_rsend requested unload...
[May 25 22:46:05 2011] debug: trying to load core module [ms_rsend]
[May 25 22:46:05 2011] debug: status: [6][Module Error, Error during load time or module returned MOD_STOP]
[May 25 22:46:05 2011] MySQL: has been enabled.
[May 25 22:46:05 2011] MySQL: client version 5.0.67.
[May 25 22:46:05 2011] Databases loaded
[May 25 22:46:05 2011] Info: Reflecting database records.
[May 25 22:46:08 2011] Connected to Server 1 (85.214.232.254:7000)
[May 25 22:46:09 2011] trying to load [cs_appendtopic]
[May 25 22:46:09 2011] [cs_appendtopic] Loaded successfully
[May 25 22:46:09 2011] status:
  • [Module, Okay - No Error]
[May 25 22:46:09 2011] trying to load [cs_enforce]
[May 25 22:46:09 2011] status:
  • [Module, Okay - No Error]
[May 25 22:46:09 2011] trying to load [ns_maxemail]
[May 25 22:46:09 2011] status:
  • [Module, Okay - No Error]
[May 25 22:46:09 2011] trying to load [os_info]
[May 25 22:46:09 2011] os_info: Loading configuration directives...
[May 25 22:46:09 2011] os_info: Directive OSInfoDBName loaded (os_info.db)...
[May 25 22:46:09 2011] status:
  • [Module, Okay - No Error]
[May 25 22:46:09 2011] trying to load [hs_request]
[May 25 22:46:09 2011] hs_request loaded
[May 25 22:46:09 2011] status:
  • [Module, Okay - No Error]
[May 25 22:46:09 2011] trying to load [bs_h]
[May 25 22:46:09 2011] [bs_911] Loading module...
[May 25 22:46:09 2011] [bs_911] 911 calls will be send as a channel message to #opers.
[May 25 22:46:09 2011] [bs_911] Module loaded successfully...
[May 25 22:46:09 2011] status:
  • [Module, Okay - No Error]
[May 25 22:46:09 2011] trying to load [ns_saregister]
[May 25 22:46:09 2011] status:
  • [Module, Okay - No Error]
[May 25 22:46:09 2011] trying to load [misc_sqlcmd]
[May 25 22:46:09 2011] [misc_sqlcmd] Loading module...
[May 25 22:46:09 2011] [misc_sqlcmd] Module loaded successfully...
[May 25 22:46:09 2011] status:
  • [Module, Okay - No Error]
[May 25 22:46:09 2011] trying to load [os_autologchan]
[May 25 22:46:09 2011] Now sending log messages to #services
[May 25 22:46:09 2011] status:
  • [Module, Okay - No Error]
[May 25 22:46:09 2011] trying to load [new_regmsg]
[May 25 22:46:09 2011] status:
  • [Module, Okay - No Error]
[May 25 22:46:09 2011] Server ************* is done syncing
[May 25 22:46:09 2011] Server ************* is done syncing
[May 25 22:46:09 2011] Server ************* is done syncing
[May 25 22:46:09 2011] Server ************* is done syncing
[May 25 22:46:09 2011] Server ************* is done syncing
[May 25 22:46:09 2011] Server ************* is done syncing
[May 25 22:46:09 2011] Server ************* is done syncing
[May 25 22:46:09 2011] Server ************* is done syncing


Then a bunch of 'automaticly identified'

Quote
[May 25 22:46:09 2011] Server ********** is done syncing
[May 25 22:46:09 2011] OperServ: NeoStats: VERSION
[May 25 22:46:09 2011] OperServ: StatsServ: VERSION
[May 25 22:46:09 2011] NickServ: ************ identified for nick *****
[May 25 22:46:44 2011] Received SIGTERM, exiting.
[May 25 22:46:46 2011] Shutting down on SIGTERM
[May 25 22:46:47 2011] [bs_911] Module unloaded.
[May 25 22:46:47 2011] [cs_appendtopic] Unloaded successfully
[May 25 22:46:47 2011] hs_request un-loaded
[May 25 22:46:47 2011] [misc_sqlcmd] Module Unloaded Successfully!



Perhaps the logfile is useless.......
However, we can't figure out what the problem is and how we can solve it.
« Last Edit: May 25, 2011, 11:23:42 PM by cmvdeeden »
Logged

cmvdeeden

  • Anope User
  • Offline Offline
  • Posts: 26
Re: Anope not responding anymore using SQL (after modload)
« Reply #3 on: May 26, 2011, 02:27:41 AM »

It's all working again, installed anope on new server. SQL works again, just now didn't load any modules or something else.

Still wondering why SQL went dead before.

Allthough, thanks for the effort!
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: Anope not responding anymore using SQL (after modload)
« Reply #4 on: May 26, 2011, 08:08:52 AM »

Quote
[May 25 22:46:44 2011] Received SIGTERM, exiting.
sigterm indicates an external program (for example "kill" command) send a signal to anope telling it to shut down..
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)
Pages: [1]   Go Up