Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Debugging addition  (Read 3834 times)

0 Members and 1 Guest are viewing this topic.

llearch

  • Anope User
  • Offline Offline
  • Posts: 2
Debugging addition
« on: June 23, 2008, 01:17:16 AM »

I mentioned this elsewhere; I figure if I don't put it here, where it's supposed to be, then you're fully allowed to ignore it.
... of course, even if it is here, you're allowed to ignore it, but at least I'll feel better about it. ;-]


Anyway, after some fun in trying to figure out what was going on with the db backups, I eventually managed to switch on debugging just before the daily backup... only to discover it basically repeated precisely what the non-debugging output was anyway.

Case in point - with debugging off, you get this:
Quote
Global -- from OperServ: WARNING! Backup of /usr/local/share/services/db/os_info.db failed.
Global -- from OperServ: WARNING! Backup of /usr/local/share/services/db/nick.db failed.
Global -- from OperServ: WARNING! Backup of /usr/local/share/services/db/chan.db failed.
Global -- from OperServ: WARNING! Backup of /usr/local/share/services/db/oper.db failed.
Global -- from OperServ: WARNING! Backup of /usr/local/share/services/db/news.db failed.
Global -- from OperServ: WARNING! Backup of /usr/local/share/services/db/exception.db failed.


And with debugging turned on:
Quote
[Jun 23 00:04:55.480771 2008] Module Database Backing up /usr/local/share/services/db/os_info.db
[Jun 23 00:04:55.480854 2008] Backup of /usr/local/share/services/db/os_info.db failed.
[Jun 23 00:04:55.480987 2008] debug: Sent: :OperServ GLOBOPS :WARNING! Backup of /usr/local/share/services/db/os_info.db failed.
[Jun 23 00:04:55.481039 2008] Backing up databases
[Jun 23 00:04:55.481131 2008] Backup of /usr/local/share/services/db/nick.db failed.
[Jun 23 00:04:55.481211 2008] debug: Sent: :OperServ GLOBOPS :WARNING! Backup of /usr/local/share/services/db/nick.db failed.
[Jun 23 00:04:55.481268 2008] Backup of /usr/local/share/services/db/chan.db failed.
[Jun 23 00:04:55.481392 2008] debug: Sent: :OperServ GLOBOPS :WARNING! Backup of /usr/local/share/services/db/chan.db failed.
[Jun 23 00:04:55.481449 2008] Backup of /usr/local/share/services/db/oper.db failed.
[Jun 23 00:04:55.481511 2008] debug: Sent: :OperServ GLOBOPS :WARNING! Backup of /usr/local/share/services/db/oper.db failed.
[Jun 23 00:04:55.481568 2008] Backup of /usr/local/share/services/db/news.db failed.
[Jun 23 00:04:55.481630 2008] debug: Sent: :OperServ GLOBOPS :WARNING! Backup of /usr/local/share/services/db/news.db failed.
[Jun 23 00:04:55.481686 2008] Backup of /usr/local/share/services/db/exception.db failed.
[Jun 23 00:04:55.481750 2008] debug: Sent: :OperServ GLOBOPS :WARNING! Backup of /usr/local/share/services/db/exception.db failed.
[Jun 23 00:04:55.481800 2008] debug: Emitting event "db_backup" (1 args)
[Jun 23 00:04:55.484583 2008] debug: Emitting event "db_saving" (1 args)



Neither of these says where the system is trying to save the db to; in my case, since $PWD hadn't been set, and anope had been started from /etc/init.d, it was probably attempting to write to /backups/ - obviously this is totally unexpected; at least until I figured out what I'd done wrong, anyway...

Be that as it may, the debugging process would have been a heck of a lot shorter if the debug messages had listed where it was trying to save the databases to. I spent some time perusing the config file for details of where I might have misconfigured things, and googling for info on the error messages - the messages themselves are obvious, but since all they say are "I failed to write because I can't", without stating what they're trying to write to, some random poking about in the dark is required. And a bit of luck.


I guess, in summary, what I'm trying to say, in my usual excessively verbose fashion, is:
Can we please have
  • debugging info for where db files are being backed up to printed in the error messages, or at least the debug messages, rather than just where they're being backed up  from.
  • possibly a config option for which dir to write the backups to.



Many thanks for all your hard work, and your spare time following this waffley description...
Logged

katsklaw

  • Guest
(No subject)
« Reply #1 on: June 23, 2008, 02:51:40 AM »

Anope is designed to run as a NON-root user . .please re-install and run as a USER .. not root.
Logged
Pages: [1]   Go Up