Thread View: news.software.nntp
31 messages
31 total messages
Started by John F. Morse
Wed, 06 May 2009 12:46
Logging failures
Author: John F. Morse
Date: Wed, 06 May 2009 12:46
Date: Wed, 06 May 2009 12:46
138 lines
7507 bytes
7507 bytes
>From what I see this morning, the recent failure of logs to rotate
and/or restart has moved from syslog back to news.notice.
For the past week, it was syslog that wouldn't restart after being
rotated. I was forcing syslogd to restart.
Monday I did a forced restart on sysklogd instead of syslogd. The syslog
ran for one day then failed Tuesday.
Yesterday I rebooted the computer instead of manually restarting sysklogd.
This morning, news.notice appears do have died. It shows:
-rw-r--r-- 1 news news 25078 2009-05-06 06:31 news.notice
That 25k didn't get rotated, and there is no longer any output on a tail
beyond the last 06:31:02 entry shown below:
May 6 06:10:01 optima5 innd: localhost connected 47
May 6 06:10:01 optima5 innd: localhost:47 closed seconds 0 accepted 0
refused 0 rejected 0 duplicate 0 accepted size 0 duplicate size 0
May 6 06:14:05 optima5 innd: optima7.my.net:28 closed seconds 311
accepted 7 refused 0 rejected 0 duplicate 0 accepted size 30194
duplicate size 0
May 6 06:14:06 optima5 innd: optima7.my.net connected 28 streaming allowed
May 6 06:14:06 optima5 innd: optima7.my.net:28 NCmode "mode stream"
received
May 6 06:19:17 optima5 innd: optima7.my.net:28 closed seconds 311
accepted 13 refused 0 rejected 0 duplicate 0 accepted size 39242
duplicate size 0
May 6 06:19:27 optima5 innd: optima7.my.net connected 28 streaming allowed
May 6 06:19:27 optima5 innd: optima7.my.net:28 NCmode "mode stream"
received
May 6 06:24:38 optima5 innd: optima7.my.net:28 closed seconds 311
accepted 15 refused 0 rejected 0 duplicate 0 accepted size 41460
duplicate size 0
May 6 06:25:31 optima5 innd: optima7.my.net connected 28 streaming allowed
May 6 06:25:31 optima5 innd: optima7.my.net:28 NCmode "mode stream"
received
May 6 06:30:42 optima5 innd: optima7.my.net:28 closed seconds 311
accepted 16 refused 0 rejected 0 duplicate 0 accepted size 53471
duplicate size 0
May 6 06:31:02 optima5 innd: optima7.my.net connected 28 streaming allowed
May 6 06:31:02 optima5 innd: optima7.my.net:28 NCmode "mode stream"
received
The syslog tail did make it through the rotation:
May 6 06:31:02 optima5 innd: optima7.my.net connected 28 streaming allowed
May 6 06:31:02 optima5 innd: optima7.my.net:28 NCmode "mode stream"
received
tail: `syslog' has been replaced; following end of new file
May 6 06:34:24 optima5 syslogd 1.5.0#1ubuntu1: restart.
May 6 06:34:53 optima5 innd: s
May 6 06:36:13 optima5 innd: optima7.my.net:28 closed seconds 311
accepted 14 refused 0 rejected 0 duplicate 0 accepted size 40501
duplicate size 0
May 6 06:36:15 optima5 innd: optima7.my.net connected 28 streaming allowed
May 6 06:36:15 optima5 innd: optima7.my.net:28 NCmode "mode stream"
received
May 6 06:41:26 optima5 innd: optima7.my.net:28 closed seconds 311
accepted 16 refused 0 rejected 0 duplicate 0 accepted size 48235
duplicate size 0
May 6 06:43:26 optima5 innd: optima7.my.net connected 28 streaming allowed
May 6 06:43:26 optima5 innd: optima7.my.net:28 NCmode "mode stream"
received
May 6 06:44:12 optima5 nnrpd[24377]: n100.my.net (192.168.89.210) connect
May 6 06:44:12 optima5 nnrpd[24377]: Reading access from
/etc/news/readers.conf
May 6 06:44:12 optima5 nnrpd[24377]: Auth strategy 'localhost' does not
match client. Removing.
May 6 06:44:12 optima5 nnrpd[24377]: n100.my.net res <anonymous>
May 6 06:44:12 optima5 nnrpd[24377]: n100.my.net match_user <anonymous>
<anonymous>
May 6 06:44:12 optima5 nnrpd[24377]: n100.my.net no_post public
May 6 06:44:12 optima5 nnrpd[24377]: n100.my.net auth starting
authenticator /usr/lib/news/bin/auth/passwd/ckpasswd -f
/var/lib/news/passlist
May 6 06:44:12 optima5 nnrpd[24377]: n100.my.net auth authenticator
successful, user john
May 6 06:44:12 optima5 nnrpd[24377]: n100.my.net no_match_user john
<anonymous>
May 6 06:44:12 optima5 nnrpd[24377]: n100.my.net no_match_user john
<localhost>
May 6 06:44:12 optima5 nnrpd[24377]: n100.my.net match_user john *
May 6 06:44:12 optima5 nnrpd[24377]: n100.my.net user john
May 6 06:44:18 optima5 nnrpd[24377]: n100.my.net group news.software.nntp 0
May 6 06:44:50 optima5 nnrpd[24377]: n100.my.net times user 0.148
system 0.104 idle 0.014 elapsed 38.113
May 6 06:44:56 optima5 innd: s
May 6 06:48:37 optima5 innd: optima7.my.net:28 closed seconds 311
accepted 16 refused 0 rejected 0 duplicate 0 accepted size 55333
duplicate size 0
May 6 06:48:41 optima5 innd: optima7.my.net connected 28 streaming allowed
May 6 06:48:41 optima5 innd: optima7.my.net:28 NCmode "mode stream"
received
Both news and errlog seem to have rotated (news is definitely logging
incoming articles, but I haven't had any errors for errlog -- yet).
However, the news.err log doesn't appear to have rotated (I don't have a
message similar to: "tail: `errlog' has been replaced; following end of
new file" for the enws.err tail). Only the original command is showing
("john@optima5:/var/log/news$ tail -F -n 1000 news.err"). I do have read
permission:
-rw-r--r-- 1 news news 0 2009-05-06 00:00 errlog
-rw-rw-r-- 1 news news 62405 2009-05-06 00:00 expire.lastlowmark
-rw-rw-r-- 1 news news 38 2009-04-28 00:00 expire.list
-rw-rw-r-- 1 news news 633 2009-05-06 00:01 expire.log
-rw-rw-r-- 1 news news 0 2009-04-21 22:37 innfeed.log
-rw-rw-r-- 1 news news 2822 2009-05-05 07:17 innfeed.status
-rw-r--r-- 1 news news 213091 2009-05-06 07:07 news
-rw-r--r-- 1 news news 0 2009-05-06 00:00 news.crit
-rw-r--r-- 1 news news 0 2009-05-06 00:00 news.err
-rw-r--r-- 1 news news 25078 2009-05-06 06:31 news.notice
drwxr-xr-x 2 news news 4096 2009-05-06 00:00 OLD
drwxrwxr-x 2 news news 4096 2007-08-10 07:11 path
-rw-r--r-- 1 root news 62 2009-05-05 07:07 rc.news
-rw-rw---- 1 news news 4489 2009-05-06 00:00 unwanted.log
The news.notice log appears to have rotated at midnight, like the other
INN logs, but it became "disconnected" at 06:31 (i.e. it is no longer
"filling").
It is still not logging at 07:41which means the daily report will likely
have incomplete data.
Any ideas?
--
John
No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.
The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Logging failures
Author: Julien ÉLIE
Date: Sat, 09 May 2009 17:22
Date: Sat, 09 May 2009 17:22
20 lines
1989 bytes
1989 bytes
Hi John, > That 25k didn't get rotated, and there is no longer any output on a tail > beyond the last 06:31:02 entry shown below: > > May 6 06:10:01 optima5 innd: localhost connected 47 I am wondering why you encounter with so many problems with optima5. You keep telling us that some stuff do not work on optima5 whereas they work on optima7 (which seems to have the same configuration). Last example was docheckgroups which works on optima7 and not on optima5 because your egrep, and also your awk, are different on optima5. Isn't there a more fundamental problem here? -- Julien ÉLIE « Cette obscure clarté qui tombe des étoiles. » (Pierre Corneille)
Re: Logging failures
Author: John F. Morse
Date: Sat, 09 May 2009 18:12
Date: Sat, 09 May 2009 18:12
65 lines
3623 bytes
3623 bytes
Julien ÉLIE wrote: > Hi John, > >> That 25k didn't get rotated, and there is no longer any output on a tail >> beyond the last 06:31:02 entry shown below: >> >> May 6 06:10:01 optima5 innd: localhost connected 47 > > I am wondering why you encounter with so many problems with optima5. > You keep > telling us that some stuff do not work on optima5 whereas they work on > optima7 > (which seems to have the same configuration). > Last example was docheckgroups which works on optima7 and not on optima5 > because your egrep, and also your awk, are different on optima5. > > Isn't there a more fundamental problem here? > You got me Julien. I just don't know. Optima7 is different than optima5 (and optima2). Optima7 has been working flawlessly for about five years. It has Inn 2.4.3 on Debian Sarge. It is 100% tradspool. Optima5 was the online Inn server before optima7 took over the duties, They peered with each other back around 2005, both running Inn 2.4.3 on Debian Sarge. Optima5 now has Inn 2.4.4 and runs on Ubuntu 8.04 LTS Server Edition. Optima5 is the server that has the weird logging problems. It uses both tradspool and cnfs. Optima2 was my original Inn server, peering with my RumorMill NNTP server, running on a PowerMac. It then was configured to peer with optima5 in early 2005, both running Inn 2.4.3 on Debian Sarge. Optima2 now runs on Ubuntu 8.04 LTS Server Edition and has had no logging problems, but I only verified syslog and messages because Inn was not installed. Last night I installed Inn 2.4.4 on optima2, and am in the middle of configuring it right now. I will have it peer with optima7, just like optima5 does. We will see whether this is an Ubuntu 8.04 LTS Server Edition issue (unlikely since I run three other Ubuntu 8.04 LTS Server Editions and seven Desktop Editions, and have never seen this problem before), or whether it might be something different in Inn 2.4.4 that is causing the logging problems. I'll let you know what I find after optima2 is up and handling articles for a couple of days, and rotating the logs. I'm not concerned about the docheckgroups issue at this time, but logging is something I do need. -- John No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Logging failures
Author: John F. Morse
Date: Sun, 10 May 2009 13:29
Date: Sun, 10 May 2009 13:29
123 lines
4747 bytes
4747 bytes
Julien ÉLIE wrote: > Hi John, > >> That 25k didn't get rotated, and there is no longer any output on a tail >> beyond the last 06:31:02 entry shown below: >> >> May 6 06:10:01 optima5 innd: localhost connected 47 > > I am wondering why you encounter with so many problems with optima5. > You keep > telling us that some stuff do not work on optima5 whereas they work on > optima7 > (which seems to have the same configuration). > Last example was docheckgroups which works on optima7 and not on optima5 > because your egrep, and also your awk, are different on optima5. > > Isn't there a more fundamental problem here? > Good day, Julien. Well, the results of the latest test are in. Both Optima5 and Optima2 failed this morning to continue the news.notice logging. This failure immediately follows the rotation of syslog, which is still working on both servers. ------------------------------------------------------------------------ Optima2's last news.notice entry: May 10 06:42:12 optima2 innd: optima7.my.net:25 NCmode "mode stream" received john@optima2:/var/log/news$ ls -al | grep *notice -rw-r--r-- 1 news news 35864 2009-05-10 06:42 news.notice syslog: ... May 10 06:42:12 optima2 innd: optima7.my.net:25 NCmode "mode stream" received tail: `syslog' has been replaced; following end of new file May 10 06:42:51 optima2 syslogd 1.5.0#1ubuntu1: restart. May 10 06:46:15 optima2 innd: s ... john@optima2:/var/log/news$ uname -a Linux optima2 2.6.24-24-generic #1 SMP Wed Apr 15 15:54:25 UTC 2009 i586 GNU/Linux john@optima2:/var/log/news$ cat /etc/debian_version lenny/sid john@optima2:/var/log/news$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=8.04 DISTRIB_CODENAME=hardy DISTRIB_DESCRIPTION="Ubuntu 8.04.2" news@optima2:/usr/lib/news/bin$ innconfval -v INN 2.4.4 (20070806 snapshot) ------------------------------------------------------------------------ Optima5's last news.notice entry: May 10 06:34:33 optima5 innd: optima7.my.net:28 NCmode "mode stream" received john@optima5:/var/log/news$ ls -al | grep *notice -rw-r--r-- 1 news news 39403 2009-05-10 06:34 news.notice syslog: ... May 10 06:34:33 optima5 innd: optima7.my.net:28 NCmode "mode stream" received tail: `syslog' has been replaced; following end of new file May 10 06:35:18 optima5 syslogd 1.5.0#1ubuntu1: restart. May 10 06:35:49 optima5 innd: s ... john@optima5:/var/log/news$ uname -a Linux optima5 2.6.24-23-generic #1 SMP Wed Apr 1 21:47:28 UTC 2009 i586 GNU/Linux john@optima5:/var/log/news$ cat /etc/debian_version lenny/sid john@optima5:/var/log/news$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=8.04 DISTRIB_CODENAME=hardy DISTRIB_DESCRIPTION="Ubuntu 8.04.2" news@optima5:/usr/lib/news/bin$ innconfval -v INN 2.4.4 (20070806 snapshot) ------------------------------------------------------------------------ Optima7 has always worked perfectly: john@optima7:~$ uname -a Linux optima7 2.4.27-2-386 #1 Wed Aug 17 09:33:35 UTC 2005 i586 GNU/Linux john@optima7:~$ cat /etc/debian_version 3.1 news@optima7:~$ innconfval -v INN 2.4.3 (20050407 prerelease) ------------------------------------------------------------------------ Any ideas where I could look? -- John No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Logging failures
Author: Julien ÉLIE
Date: Sun, 10 May 2009 16:19
Date: Sun, 10 May 2009 16:19
21 lines
1849 bytes
1849 bytes
Hi John, > Both Optima5 and Optima2 failed this morning to continue the news.notice > logging. > Optima7 has always worked perfectly > > Any ideas where I could look? Optima7 is Debian Sarge. Both Optima2 and Optima5 were Debian Sarge upgraded to Ubuntu 8.04. Something went wrong during the migration! Did INN change when you migrated? (a new Ubuntu package? a fresh recompilation from sources?) -- Julien ÉLIE « O fortunatos nimium, sua si bona norint, agricolas. » (Virgile)
Re: Logging failures
Author: John F. Morse
Date: Mon, 11 May 2009 01:47
Date: Mon, 11 May 2009 01:47
87 lines
4858 bytes
4858 bytes
Julien ÉLIE wrote: > Hi John, > >> Both Optima5 and Optima2 failed this morning to continue the news.notice >> logging. >> Optima7 has always worked perfectly >> >> Any ideas where I could look? > > Optima7 is Debian Sarge. > Both Optima2 and Optima5 were Debian Sarge upgraded to Ubuntu 8.04. > > Something went wrong during the migration! > > Did INN change when you migrated? (a new Ubuntu package? a fresh > recompilation from sources?) Good day, Julien. Optima2 and Optima5 are brand new installs of Ubuntu 8.04 LTS Server Edition. There was no update, no upgrade, no dist-upgrade, nor any migration. In fact, Optima5's 4.3 GB hard drive was replaced with a 40 GB hard drive. Both Optima2 and Optima5 had their hard drives repartitioned and the filesystems changed. Nothing from the "old days" remained. The current INN package provided by the Ubuntu 8.04 LTS Hardy Heron DEB repository is version 2.4.4. (The INN package on Optima7, originally installed from the old Sarge repository, was version 2.4.2 according to my records, and was later upgraded to 2.4.3.) I can't install Debian Sarge on Optima2 and Optima5 because that release is no longer supported. I still have the Sarge install CD, but I wouldn't be able to find INN in non-existent online Sarge repositories, nor any bug nor security upgrades. I'd be stuck with Debian 3.1r0a with no way to get it up to (IIRC) version 3.1r7. For this same reason, I no longer have support for Optima7, which is now getting quite old. It is likely still Debian 3.1r0a. All other Debian Sarge boxes were upgraded to Debian Etch online. Debian 5.0, Lenny, wouldn't install because Debian chose to use a kernel requiring a CPU with the cmov instruction not available in an AMD-K6 CPU. However they continue to state that Lenny will work with a 486. The AMD-K6 is a 686-class CPU. Sadly I must say that Debian Lenny has had a ton of bug and security fixes since it was released. Perhaps they were pushed to get it out the door before it was sufficiently tested? The Lenny installs that I have on several other workstations include all kinds of graphic and AV packages by default. I don't need nor want those by default for a server. Ubuntu 8.04 LTS Server Edition is very light-weight. No GUI and AV stuff, and it does install flawlessly. I have it on several servers and workstations, including an MTA-MDA running Postfix and Dovecot. I have seen no negative issues with Ubuntu 8.04 LTS, and it will be supported until April 2013. I might find a newer INN release on a newer Ubuntu release. Both 8.10 and 9.04 are available, but neither of these are LTS releases. All Ubuntu system logging works normally, including rotation. The /var/log/news/news log, and one of the error logs (errlog or news.err -- can't remember which), seems to work fine. The bad one didn't appear to rotate according to the tail message. When the OS rotates syslog, news.notice gets lost and cannot find input. This is an educated guess from experience following this issue for the past two weeks. I know nothing about the innards of INN, so I can't troubleshoot it any further. I believe the failure for news.notice to continue logging is an INN 2.4.4 bug, and has nothing to do with the OS. -- John No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Logging failures
Author: Julien ÉLIE
Date: Mon, 11 May 2009 06:27
Date: Mon, 11 May 2009 06:27
37 lines
2567 bytes
2567 bytes
Hi John, > There was no update, no upgrade, no dist-upgrade, nor any migration. Ah, I did not understand that. That's OK then. > I can't install Debian Sarge on Optima2 and Optima5 because that release > is no longer supported. I still have the Sarge install CD, but I > wouldn't be able to find INN in non-existent online Sarge repositories, > nor any bug nor security upgrades. I'd be stuck with Debian 3.1r0a with > no way to get it up to (IIRC) version 3.1r7. deb http://archive.debian.org/debian/ sarge contrib main non-free ? > For this same reason, I no > longer have support for Optima7, which is now getting quite old. It is > likely still Debian 3.1r0a. Wouldn't the above apt entry work for it? > All Ubuntu system logging works normally, including rotation. > > I believe the failure for news.notice to continue logging is an INN > 2.4.4 bug, and has nothing to do with the OS. Couldn't you report the issue to the Ubuntu package maintainer? -- Julien ÉLIE « Pas question de faire voler un tapis volé ! » (Astérix)
Re: Logging failures
Author: John F. Morse
Date: Mon, 11 May 2009 11:01
Date: Mon, 11 May 2009 11:01
59 lines
3091 bytes
3091 bytes
Julien ÉLIE wrote: > Hi John, > >> There was no update, no upgrade, no dist-upgrade, nor any migration. > > Ah, I did not understand that. That's OK then. > >> I can't install Debian Sarge on Optima2 and Optima5 because that release >> is no longer supported. I still have the Sarge install CD, but I >> wouldn't be able to find INN in non-existent online Sarge repositories, >> nor any bug nor security upgrades. I'd be stuck with Debian 3.1r0a with >> no way to get it up to (IIRC) version 3.1r7. > > deb http://archive.debian.org/debian/ sarge contrib main non-free > > ? Sarge is no longer supported. Apparently, INN 2.4.3 and 2.4.4 is also no longer supported by the developers. >> For this same reason, I no >> longer have support for Optima7, which is now getting quite old. It is >> likely still Debian 3.1r0a. > > Wouldn't the above apt entry work for it? Sarge is no longer supported. >> All Ubuntu system logging works normally, including rotation. >> >> I believe the failure for news.notice to continue logging is an INN >> 2.4.4 bug, and has nothing to do with the OS. > > Couldn't you report the issue to the Ubuntu package maintainer? Why would the package maintainer fix an INN bug? I'll certainly give it a try though. Isn't this newsgroup the proper place to report suspected bugs? Then someone verifies whether they are in fact a bug, or a problem with the reporter. Assistance in fixing the problem is then optionally offered. -- John No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Logging failures
Author: Julien ÉLIE
Date: Mon, 11 May 2009 17:41
Date: Mon, 11 May 2009 17:41
47 lines
2941 bytes
2941 bytes
Hi John, >>> I'd be stuck with Debian 3.1r0a with >>> no way to get it up to (IIRC) version 3.1r7. >> >> deb http://archive.debian.org/debian/ sarge contrib main non-free >> >> ? > > Sarge is no longer supported. I thought that you wanted to update your Sarge to its last revision, according to your mentioning 3.1r7. That's why I suggested the link. > Apparently, INN 2.4.3 and 2.4.4 is also no longer supported by the > developers. Well, a bug in INN 2.4.3 may still be present in INN 2.4.6 or INN 2.5.0 but I do not think an Ubuntu package will be made for INN 2.4.3 in case an issue is fixed. > Why would the package maintainer fix an INN bug? He will first try to reproduce the bug with his own Ubuntu (maybe the latest version of Ubuntu) and then either fix it or submit the bug to the upstream INN developers. > Isn't this newsgroup the proper place to report suspected bugs? > Then someone verifies whether they are in fact a bug, or a problem with > the reporter. > Assistance in fixing the problem is then optionally offered. I do not know how to help you on syslog. I cannot reproduce the issue with my Debian Etch. And my previous Debian Sarge had not the problem, as you already experienced. -- Julien ÉLIE « Les Français ne parlent presque jamais de leurs femmes ; c'est qu'ils ont peur d'en parler devant des gens qui les connaissent mieux qu'eux. » (Montesquieu, _Lettres persanes_)
Re: Logging failures
Author: John F. Morse
Date: Tue, 12 May 2009 14:42
Date: Tue, 12 May 2009 14:42
91 lines
4331 bytes
4331 bytes
Julien ÉLIE wrote: Hi, Julien, > I thought that you wanted to update your Sarge to its last revision, > according to your mentioning 3.1r7. > That's why I suggested the link. OK, I understand. However, I don't know for sure which Sarge release Optima7 has, nor how to discover it. I seem to remember release 7, and maybe it went up to r8. Anyway, security support ended on 2008-03-31. http://debian.org/News/2008/20080229 Quite frankly, since I have no backup now, I'm afraid to touch it! ;-) Old Army training taught me that "if it ain't broke, don't fix it." >> Apparently, INN 2.4.3 and 2.4.4 is also no longer supported by the >> developers. > > Well, a bug in INN 2.4.3 may still be present in INN 2.4.6 or INN 2.5.0 > but I do not think an Ubuntu package will be made for INN 2.4.3 > in case an issue is fixed. There are always bugs. ;-) >> Why would the package maintainer fix an INN bug? > > He will first try to reproduce the bug with his own Ubuntu (maybe > the latest version of Ubuntu) and then either fix it or submit > the bug to the upstream INN developers. That would be you? >> Isn't this newsgroup the proper place to report suspected bugs? >> Then someone verifies whether they are in fact a bug, or a problem with >> the reporter. >> Assistance in fixing the problem is then optionally offered. > > I do not know how to help you on syslog. I cannot reproduce > the issue with my Debian Etch. And my previous Debian Sarge > had not the problem, as you already experienced. Ubuntu has the bug report now. https://bugs.launchpad.net/ubuntu/+source/inn2/+bug/374843 We'll see what they have to say. Yesterday I installed Debian Lenny on a newer PC, and then INN 2.4.5, which is the current package in the DEB repository. I configured it to peer with Optima2, which peers with Optima7. It seems to be working fine, and the news.notice did rotate and restart correctly when syslog was rotated this morning. I can't use this PC permanently though because it uses twice the power as the Optimas and will heat up the computer room. It is also my secondary PC in the computer room, and I can't tie it up running a news server. The Debian bug I submitted on April 8 has some activity today after I e-mailed one of the bug system maintainers. He will be forwarding the info to those responsible. This bug concerned the failure to install Lenny on the Optima PCs, which have AMD-K6 CPUs, because the Lenny installer bombs out when it discovers the CPU doesn't have the cmov instruction. I'll let you know what and when I get more information from Ubuntu. Thanks for your assistance. -- John No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Logging failures
Author: Ray Banana
Date: Tue, 12 May 2009 17:10
Date: Tue, 12 May 2009 17:10
24 lines
2343 bytes
2343 bytes
Thus spake "John F. Morse" <xanadu.bbs@example.invalid> > Ubuntu has the bug report now. > https://bugs.launchpad.net/ubuntu/+source/inn2/+bug/374843 > We'll see what they have to say. I can confirm this behaviour of sysklogd on Ubuntu 08.4. Obviously sysklogd does not re-open the news.* logfiles when it receives a SIGHUP. After stopping and starting sysklogd, INN continues to log to news.notice etc., so, as a work-around, you could change the line | # Restart syslogd | # | /etc/init.d/sysklogd reload-or-restart > /dev/null to /etc/init.d/sysklogd restart > /dev/null in /etc/cron.daily/sysklogd. -- Time flies like an arrow, fruit flies like a Banana. http://news.motzarella.org
Re: Logging failures
Author: Julien ÉLIE
Date: Tue, 12 May 2009 17:34
Date: Tue, 12 May 2009 17:34
32 lines
2511 bytes
2511 bytes
Hi John,
>>> Why would the package maintainer fix an INN bug?
>>
>> He will first try to reproduce the bug with his own Ubuntu (maybe
>> the latest version of Ubuntu) and then either fix it or submit
>> the bug to the upstream INN developers.
>
> That would be you?
For Ubuntu, no. For INN, yes, amongst others.
> Ubuntu has the bug report now.
> https://bugs.launchpad.net/ubuntu/+source/inn2/+bug/374843
Thanks.
> The Debian bug I submitted on April 8 has some activity today after I
> e-mailed one of the bug system maintainers. He will be forwarding the
> info to those responsible.
This one (for quick access for readers here):
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523137
--
Julien ÉLIE
« Joli paradoxe : la femme est le chef-d'œuvre de Dieu,
surtout quand elle a le Diable au corps. » (Alphonse Allais)
Re: Logging failures
Author: Russ Allbery
Date: Tue, 12 May 2009 17:56
Date: Tue, 12 May 2009 17:56
21 lines
2229 bytes
2229 bytes
Ray Banana <rayban@banana.shacknet.nu> writes:
> Thus spake "John F. Morse" <xanadu.bbs@example.invalid>
>> Ubuntu has the bug report now.
>> https://bugs.launchpad.net/ubuntu/+source/inn2/+bug/374843
>> We'll see what they have to say.
> I can confirm this behaviour of sysklogd on Ubuntu 08.4. Obviously
> sysklogd does not re-open the news.* logfiles when it receives a
> SIGHUP. After stopping and starting sysklogd, INN continues to log to
> news.notice etc., so, as a work-around, you could change the line
That's rather surprising, since this has worked fine for every version
of Debian that I've used. If this is the case, this is a very serious
bug in sysklogd in Ubuntu.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Logging failures
Author: John F. Morse
Date: Tue, 12 May 2009 19:01
Date: Tue, 12 May 2009 19:01
54 lines
3222 bytes
3222 bytes
Ray Banana wrote: > Thus spake "John F. Morse" <xanadu.bbs@example.invalid> > > >> Ubuntu has the bug report now. >> https://bugs.launchpad.net/ubuntu/+source/inn2/+bug/374843 >> We'll see what they have to say. >> > > I can confirm this behaviour of sysklogd on Ubuntu 08.4. Obviously > sysklogd does not re-open the news.* logfiles when it receives a > SIGHUP. After stopping and starting sysklogd, INN continues to log to > news.notice etc., so, as a work-around, you could change the line > > | # Restart syslogd > | # > | /etc/init.d/sysklogd reload-or-restart > /dev/null > > to > > /etc/init.d/sysklogd restart > /dev/null > > in /etc/cron.daily/sysklogd. > Hi Ray, Thanks for digging up this information. I was wandering around in sysklogd last week. Even did the SIGHUP to restart it, but that couldn't go on daily! ;-) The man page for sysklogd is quite "wordy" mentioning sysklogd, syslogd, klogd, etc. so I shall spend more time to study it. I couldn't find any reference to why the redirection to /dev/null. Is this a precaution to eliminate looping so the hard disk doesn't fill up? I applied your change to Optima2 and I'll see what happens tomorrow morning. Optima7 (Debian 3.1 with INN 2.4.3) has that same line in its script, but Optima7 does not fail. I also checked and found Debian 5.0 doesn't even have the /etc/cron.daily/sysklogd file. But it isn't failing, so no problem there. Perhaps the change to anacron is the reason? -- John No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Logging failures
Author: Ray Banana
Date: Tue, 12 May 2009 19:33
Date: Tue, 12 May 2009 19:33
46 lines
3484 bytes
3484 bytes
Thus spake "John F. Morse" <xanadu.bbs@example.invalid>
> I was wandering around in sysklogd last week. Even did the SIGHUP to
> restart it, but that couldn't go on daily! ;-)
/etc/cron.daily/sysklogd does a SIGHUP, too, and that doesn't work, so
sending the SIGHUP manually won't make a difference.
> I applied your change to Optima2 and I'll see what happens tomorrow morning.
> Optima7 (Debian 3.1 with INN 2.4.3) has that same line in its script,
> but Optima7 does not fail.
> I also checked and found Debian 5.0 doesn't even have the
> /etc/cron.daily/sysklogd file.
I don't usually use sysklogd, as I changed to syslog-ng years ago. Out
of curiosity, I just installed it on a Debian Lenny test system and
/etc/cron.daily/sysklogd was installed, too. It is exactly the same as
on the Ubuntu 8.04 system, but I think I found the cause of the problem:
On Debian /usr/sbin/syslogd-listfiles -a also lists the
/var/log/news/news.* log files, whereas these files are ignored on the
Ubuntu system even with option -a. Sysklog seems to rely on the
information from syslogd-listfiles when doing a reload.
The bug is in this line:
Ubuntu 8.04:
| # These files are handled by news.daily from INN, so we ignore them
| next if (!$opt_news && ($pat =~ /news\.(\*|crit|err|info|notice)/));
Debian 5:
| # These files are handled by news.daily from INN, so we ignore them
| next if (!$opt_news &&!$opt_all && ($pat =~ /news\.(\*|crit|err|info|notice)/));
^^^^^^^^^^^
> there. Perhaps the change to anacron is the reason?
Anacron is entirely useless on a server that is always up, but it
hasn't got anything to do with the problem in question.
--
Time flies like an arrow, fruit flies like a Banana.
http://news.motzarella.org
Re: Logging failures
Author: John F. Morse
Date: Wed, 13 May 2009 04:47
Date: Wed, 13 May 2009 04:47
83 lines
4439 bytes
4439 bytes
Hi Ray,
Ray Banana wrote:
> Thus spake "John F. Morse" <xanadu.bbs@example.invalid>
>> I also checked and found Debian 5.0 doesn't even have the
>> /etc/cron.daily/sysklogd file.
>>
>
> I don't usually use sysklogd, as I changed to syslog-ng years ago. Out
> of curiosity, I just installed it on a Debian Lenny test system and
> /etc/cron.daily/sysklogd was installed, too. It is exactly the same as
> on the Ubuntu 8.04 system, but I think I found the cause of the problem:
>
That is weird; I don't have it on Lenny:
john@Wintergreen16:/etc/cron.daily$ ls -al
total 57
drwxr-xr-x 2 root root 384 2009-05-11 08:09 .
drwxr-xr-x 103 root root 5448 2009-05-11 13:43 ..
-rwxr-xr-x 1 root root 311 2008-03-09 14:58 0anacron
-rwxr-xr-x 1 root root 7482 2009-04-20 14:54 apt
-rwxr-xr-x 1 root root 314 2008-12-04 20:51 aptitude
-rwxr-xr-x 1 root root 502 2007-11-20 01:35 bsdmainutils
-rwxr-xr-x 1 root root 4073 2008-09-30 13:27 exim4-base
-rwxr-xr-x 1 root root 89 2008-10-08 10:34 logrotate
-rwxr-xr-x 1 root root 954 2009-01-24 06:31 man-db
-rwxr-xr-x 1 root root 438 2008-10-28 05:18 mlocate
-rwxr-xr-x 1 root root 1154 2009-01-07 12:06 ntp
-rw-r--r-- 1 root root 102 2008-09-28 04:33 .placeholder
-rwxr-xr-x 1 root root 2143 2008-09-22 15:52 popularity-contest
-rwxr-xr-x 1 root root 3349 2008-09-28 04:33 standard
No wonder.... ;-)
john@Wintergreen16:~$ apt-cache policy sysklogd
sysklogd:
Installed: (none)
Candidate: 1.5-5
Version table:
1.5-5 0
500 http://debian.mirrors.tds.net lenny/main Packages
> On Debian /usr/sbin/syslogd-listfiles -a also lists the
> /var/log/news/news.* log files, whereas these files are ignored on the
> Ubuntu system even with option -a. Sysklog seems to rely on the
> information from syslogd-listfiles when doing a reload.
>
> The bug is in this line:
>
> Ubuntu 8.04:
>
> | # These files are handled by news.daily from INN, so we ignore them
> | next if (!$opt_news && ($pat =~ /news\.(\*|crit|err|info|notice)/));
>
>
> Debian 5:
>
> | # These files are handled by news.daily from INN, so we ignore them
> | next if (!$opt_news &&!$opt_all && ($pat =~ /news\.(\*|crit|err|info|notice)/));
> ^^^^^^^^^^^
>
Would you mind adding your discoveries to the Ubuntu bug report ("This
bug affects me too")?
Perhaps a confirm by a second party might escalate a fix.
https://bugs.launchpad.net/ubuntu/+source/inn2/+bug/374843
Maybe moving the bug report from INN to sysklog package would be a good
idea?
--
John
No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.
The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Logging failures
Author: John F. Morse
Date: Sat, 16 May 2009 13:22
Date: Sat, 16 May 2009 13:22
182 lines
8772 bytes
8772 bytes
Hi, Ray. Ray Banana wrote: > I don't usually use sysklogd, as I changed to syslog-ng years ago. Out > of curiosity, I just installed it on a Debian Lenny test system and > /etc/cron.daily/sysklogd was installed, too. It is exactly the same as > on the Ubuntu 8.04 system, but I think I found the cause of the problem: > > On Debian /usr/sbin/syslogd-listfiles -a also lists the > /var/log/news/news.* log files, whereas these files are ignored on the > Ubuntu system even with option -a. Sysklog seems to rely on the > information from syslogd-listfiles when doing a reload. > > The bug is in this line: > > Ubuntu 8.04: > > | # These files are handled by news.daily from INN, so we ignore them > | next if (!$opt_news && ($pat =~ /news\.(\*|crit|err|info|notice)/)); > > > Debian 5: > > | # These files are handled by news.daily from INN, so we ignore them > | next if (!$opt_news &&!$opt_all && ($pat =~ /news\.(\*|crit|err|info|notice)/)); > ^^^^^^^^^^^ > I applied this to the optima5 server two days ago, and it is rotating logs correctly and news.notice is logging correctly. Thank you for the "fix" and for entering it on the Ubuntu bugs site. Perhaps they will eventually get around to making a fix "official" so it won't be overwritten if the package is later upgraded. However, there are still problems.... Let me first say that I made the earlier suggested edit to optima2. Changelog optima2 20090512 /etc/cron.daily/syslogd 45 # Restart syslogd 46 # 47 #/etc/init.d/sysklogd reload-or-restart > /dev/null 48 # Above commented out 20090512 and following added (Ray Banana edit) 49 /etc/init.d/sysklogd restart > /dev/null It appears to be logging correctly. Syslog shows: May 16 06:41:30 optima2 exiting on signal 15 tail: `syslog' has been replaced; following end of new file May 16 06:41:30 optima2 syslogd 1.5.0#1ubuntu1: restart. Now for optima5.... The following day for optima5 I added the "&& !$opt_all" fix shown in the quoted text above. Changelog optima5 20090513 /usr/sbin/syslogd-listfiles 125 # These files are handled by news.daily from INN, so we ignore them 126 # next if (!$opt_news && ($pat =~ /news\.(\*|crit|err|info|notice)/)); 127 # Above commented out 20090513 and following added (Ray Banana edit) 128 next if (!$opt_news && !$opt_news && ($pat =~ /news\.(\*|crit|err|info|notice)/)); Optima5 also appears to be logging correctly, but it now has a permissions problem as indicated in the Daily Usenet report: /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.crit: Permission denied /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.err: Permission denied /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.notice: Permission denied Daily Usenet report from May 14 00:00:02 to May 15 00:00:02 Friday morning I attempted to fix this issue by changing the owner:group to news:news. -rw-r--r-- 1 syslog adm 0 2009-05-14 00:00 news.crit -rw-r--r-- 1 syslog adm 0 2009-05-14 00:00 news.err -rw-r--r-- 1 syslog adm 134398 2009-05-15 02:32 news.notice To: -rw-r--r-- 1 news news 0 2009-05-14 00:00 news.crit -rw-r--r-- 1 news news 0 2009-05-14 00:00 news.err -rw-r--r-- 1 news news 134398 2009-05-15 02:32 news.notice This morning, I again received the "Permission denied" messages in the Daily Usenet report: /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.crit: Permission denied /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.err: Permission denied /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.notice: Permission denied Daily Usenet report from May 14 00:00:02 to May 16 00:00:02 I don't know if that last line is a problem or not -- it is now covering two days. I checked the owner:group and they had again returned to syslog:adm instead of news:news. I don't know what (who) is changing this, but it is a problem. Below are two directory listings taken about 30 seconds apart, at the time syslog recorded: tail: `syslog' has been replaced; following end of new file May 16 06:39:31 optima5 syslogd 1.5.0#1ubuntu1: restart. Note that this syslog report is slightly different than the one above from optima2. It does not include the "exiting on signal 15" entry. john@optima5:/var/log/news$ ls -al total 544 drwxr-sr-x 4 news news 4096 2009-05-16 00:00 . drwxr-xr-x 10 root root 4096 2009-05-15 06:29 .. -rw-r--r-- 1 news news 0 2009-05-16 00:00 errlog -rw-rw-r-- 1 news news 62453 2009-05-16 00:00 expire.lastlowmark -rw-rw-r-- 1 news news 15 2009-05-16 00:00 expire.list -rw-rw-r-- 1 news news 721 2009-05-16 00:01 expire.log -rw-rw-r-- 1 news news 0 2009-04-21 22:37 innfeed.log -rw-rw-r-- 1 news news 2827 2009-05-14 07:42 innfeed.status -rw-r--r-- 1 news news 135442 2009-05-16 06:20 news -rw-r--r-- 1 news news 0 2009-05-14 00:00 news.crit -rw-r--r-- 1 news news 74 2009-05-15 10:00 news.err -rw-r--r-- 1 news news 290894 2009-05-16 06:35 news.notice drwxr-xr-x 2 news news 4096 2009-05-16 00:00 OLD drwxrwxr-x 2 news news 4096 2007-08-10 07:11 path -rw-r--r-- 1 root news 62 2009-05-14 07:15 rc.news -rw-rw---- 1 news news 4617 2009-05-16 00:00 unwanted.log john@optima5:/var/log/news$ ls -al total 544 drwxr-sr-x 4 news news 4096 2009-05-16 00:00 . drwxr-xr-x 10 root root 4096 2009-05-16 06:39 .. -rw-r--r-- 1 news news 0 2009-05-16 00:00 errlog -rw-rw-r-- 1 news news 62453 2009-05-16 00:00 expire.lastlowmark -rw-rw-r-- 1 news news 15 2009-05-16 00:00 expire.list -rw-rw-r-- 1 news news 721 2009-05-16 00:01 expire.log -rw-rw-r-- 1 news news 0 2009-04-21 22:37 innfeed.log -rw-rw-r-- 1 news news 2827 2009-05-14 07:42 innfeed.status -rw-r--r-- 1 news news 135442 2009-05-16 06:20 news -rw-r--r-- 1 syslog adm 0 2009-05-14 00:00 news.crit -rw-r--r-- 1 syslog adm 74 2009-05-15 10:00 news.err -rw-r--r-- 1 syslog adm 290894 2009-05-16 06:35 news.notice drwxr-xr-x 2 news news 4096 2009-05-16 00:00 OLD drwxrwxr-x 2 news news 4096 2007-08-10 07:11 path -rw-r--r-- 1 root news 62 2009-05-14 07:15 rc.news -rw-rw---- 1 news news 4617 2009-05-16 00:00 unwanted.log Both optima2 and optima7 have news:news for these three log files. Perhaps something in this patch is causing the changes to the owner:group? For anyone who just tuned in, the following applies: optima2 Ubuntu 8.04 LTS Server Edition INN 2.4.4 optima5 Ubuntu 8.04 LTS Server Edition INN 2.4.4 The above two are identical, except for the slight configuration differences noted earlier. optima7 Debian 3.1 INN 2.4.3 This is the online server which has been working perfectly since 2006. -- John No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Logging failures
Author: Ray Banana
Date: Sun, 17 May 2009 14:18
Date: Sun, 17 May 2009 14:18
50 lines
4211 bytes
4211 bytes
Thus spake "John F. Morse" <xanadu.bbs@example.invalid> > Thank you for the "fix" and for entering it on the Ubuntu bugs site. > Perhaps they will eventually get around to making a fix "official" so it > won't be overwritten if the package is later upgraded. > However, there are still problems.... > The following day for optima5 I added the "&& !$opt_all" fix shown in > the quoted text above. > 125 # These files are handled by news.daily from INN, so we ignore them > 126 # next if (!$opt_news && ($pat =~ /news\.(\*|crit|err|info|notice)/)); > 127 # Above commented out 20090513 and following added (Ray Banana edit) > 128 next if (!$opt_news && !$opt_news && ($pat =~ > /news\.(\*|crit|err|info|notice)/)); > Optima5 also appears to be logging correctly, but it now has a > permissions problem as indicated in the Daily Usenet report: > -rw-r--r-- 1 syslog adm 0 2009-05-14 00:00 news.crit > -rw-r--r-- 1 syslog adm 0 2009-05-14 00:00 news.err > -rw-r--r-- 1 syslog adm 134398 2009-05-15 02:32 news.notice syslog seems to be messing around with the news.* logs, when it is restarted: ls -lart /var/log/news/news.* -rw-r--r-- 1 news news 3080 2009-05-12 06:36 /var/log/news/news.crit -rw-r--r-- 1 news news 99372 2009-05-17 15:28 /var/log/news/news.err -rw-r--r-- 1 news news 428022 2009-05-17 15:38 /var/log/news/news.notice It does not change them when HUPed: kill -HUP 6704 root@hubhg01:~# ls -lart /var/log/news/news.* -rw-r--r-- 1 news news 3080 2009-05-12 06:36 /var/log/news/news.crit -rw-r--r-- 1 news news 99372 2009-05-17 15:28 /var/log/news/news.err -rw-r--r-- 1 news news 428022 2009-05-17 15:38 /var/log/news/news.notice /etc/init.d/sysklogd restart * Restarting system log daemon... [ OK ] root@hubhg01:~# ls -lart /var/log/news/news.* -rw-r--r-- 1 syslog adm 3080 2009-05-12 06:36 /var/log/news/news.crit -rw-r--r-- 1 syslog adm 99372 2009-05-17 15:28 /var/log/news/news.err -rw-r--r-- 1 syslog adm 428022 2009-05-17 15:38 /var/log/news/news.notice So you will be OK with my change as long as you don't *restart* sysklogd or reboot the machine <SIGH> I need to take a closer look at this behaviour ... -- Time flies like an arrow, fruit flies like a Banana. http://news.motzarella.org
Re: Logging failures
Author: John F. Morse
Date: Sun, 17 May 2009 17:21
Date: Sun, 17 May 2009 17:21
184 lines
9210 bytes
9210 bytes
Ray Banana wrote: > Thus spake "John F. Morse" <xanadu.bbs@example.invalid> > > >> Thank you for the "fix" and for entering it on the Ubuntu bugs site. >> Perhaps they will eventually get around to making a fix "official" so it >> won't be overwritten if the package is later upgraded. >> However, there are still problems.... >> The following day for optima5 I added the "&& !$opt_all" fix shown in >> the quoted text above. >> 125 # These files are handled by news.daily from INN, so we ignore them >> 126 # next if (!$opt_news && ($pat =~ /news\.(\*|crit|err|info|notice)/)); >> 127 # Above commented out 20090513 and following added (Ray Banana edit) >> 128 next if (!$opt_news && !$opt_news && ($pat =~ >> /news\.(\*|crit|err|info|notice)/)); >> Optima5 also appears to be logging correctly, but it now has a >> permissions problem as indicated in the Daily Usenet report: >> -rw-r--r-- 1 syslog adm 0 2009-05-14 00:00 news.crit >> -rw-r--r-- 1 syslog adm 0 2009-05-14 00:00 news.err >> -rw-r--r-- 1 syslog adm 134398 2009-05-15 02:32 news.notice >> > > syslog seems to be messing around with the news.* logs, when it is > restarted: > > ls -lart /var/log/news/news.* > -rw-r--r-- 1 news news 3080 2009-05-12 06:36 /var/log/news/news.crit > -rw-r--r-- 1 news news 99372 2009-05-17 15:28 /var/log/news/news.err > -rw-r--r-- 1 news news 428022 2009-05-17 15:38 /var/log/news/news.notice > > It does not change them when HUPed: > > kill -HUP 6704 > root@hubhg01:~# ls -lart /var/log/news/news.* > -rw-r--r-- 1 news news 3080 2009-05-12 06:36 /var/log/news/news.crit > -rw-r--r-- 1 news news 99372 2009-05-17 15:28 /var/log/news/news.err > -rw-r--r-- 1 news news 428022 2009-05-17 15:38 /var/log/news/news.notice > > /etc/init.d/sysklogd restart > * Restarting system log daemon... [ OK ] > root@hubhg01:~# ls -lart /var/log/news/news.* > -rw-r--r-- 1 syslog adm 3080 2009-05-12 06:36 /var/log/news/news.crit > -rw-r--r-- 1 syslog adm 99372 2009-05-17 15:28 /var/log/news/news.err > -rw-r--r-- 1 syslog adm 428022 2009-05-17 15:38 /var/log/news/news.notice > > So you will be OK with my change as long as you don't *restart* sysklogd > or reboot the machine <SIGH> > > I need to take a closer look at this behaviour ... > Hi, Ray. I haven't touched the optima5 server in four days. No reboots or sysklog restarts. The news.notice log actually has 3.5 days of logging in it, so it apparently is not getting rotated, or if so (see OLD below) it is not getting zeroed out after rotation. I believe the latter. Right now: -rw-r--r-- 1 syslog adm 481109 2009-05-17 11:45 news.notice May 14 00:00:02 optima5 innd: SERVER servermode paused May 14 00:00:02 optima5 innd: SERVER running May 14 00:01:13 optima5 innd: optima7.xanadu-bbs.net:19 closed seconds 288 accepted 9 refused 0 rejected 0 duplicate 0 accepted size 23081 duplicate size 0 May 14 00:01:17 optima5 innd: SERVER paused Expiring process 6466 May 14 00:01:17 optima5 innd: SERVER running May 14 00:01:18 optima5 innd: localhost connected 19 ... May 17 12:00:39 optima5 innd: optima7.xanadu-bbs.net connected 19 streaming allowed May 17 12:00:39 optima5 innd: optima7.xanadu-bbs.net:19 NCmode "mode stream" received john@optima5:/var/log/news/OLD$ ls -l ... -r--r----- 1 news news 28223 2009-05-17 00:00 news.notice.1.gz -r--r----- 1 news news 18870 2009-05-16 00:00 news.notice.2.gz -r--r----- 1 news news 9033 2009-05-15 00:00 news.notice.3.gz ... john@optima5:/var/log/news/OLD$ sudo zless /var/log/news/news.notice.1.gz May 14 00:00:02 optima5 innd: SERVER servermode paused May 14 00:00:02 optima5 innd: SERVER running May 14 00:01:13 optima5 innd: optima7.xanadu-bbs.net:19 closed seconds 288 accepted 9 refused 0 rejected 0 duplicate 0 accepted size 23081 duplicate size 0 ...etc... May 17 00:00:02 optima5 innd: SERVER servermode running May 17 00:00:02 optima5 innd: CNFS-sm: CNFSflushallheads: flushing 003 May 17 00:00:02 optima5 innd: CNFS-sm: CNFSflushallheads: flushing 004 May 17 00:00:02 optima5 innd: CNFS-sm: CNFSflushallheads: flushing 005 May 17 00:00:02 optima5 innd: CNFS-sm: CNFSflushallheads: flushing 006 May 17 00:00:02 optima5 innd: SERVER paused Flushing log and syslog files May 17 00:00:02 optima5 innd: SERVER flushlogs paused I think these logs are actually rotating, but each day has the preceding day's logging. It's adding up since the /var/log/news/news.notice never gets emptied. Todays Daily Report now shows: /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.crit: Permission denied /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.err: Permission denied /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.notice: Permission denied Daily Usenet report from May 14 00:00:02 to May 17 00:00:02 Three days worth of logging, and the changing permissions problem. Optima2 is working fine with your first suggested fix in /etc/cron.daily/syslogd : 45 # Restart syslogd 46 # 47 #/etc/init.d/sysklogd reload-or-restart > /dev/null 48 # Above commented out 20090512 and following added (Ray Banana edit) 49 /etc/init.d/sysklogd restart > /dev/null Optima2 has the following in /var/log/syslog : ... -rw-r----- 1 syslog adm 26178 2009-05-17 12:10 syslog -rw-r----- 1 syslog adm 105718 2009-05-17 06:47 syslog.0 -rw-r----- 1 syslog adm 8058 2009-05-16 06:41 syslog.1.gz -rw-r----- 1 syslog adm 8503 2009-05-15 06:34 syslog.2.gz -rw-r----- 1 syslog adm 8729 2009-05-14 06:34 syslog.3.gz -rw-r----- 1 syslog adm 26259 2009-05-13 06:25 syslog.4.gz -rw-r----- 1 syslog adm 22301 2009-05-12 06:47 syslog.5.gz -rw-r----- 1 syslog adm 10567 2009-05-11 06:27 syslog.6.gz ... john@optima2:/var/log/news$ ls -l total 429 -rw-r--r-- 1 news news 0 2009-05-17 00:00 errlog -rw-rw-r-- 1 news news 65023 2009-05-17 00:00 expire.lastlowmark -rw-rw-r-- 1 news news 633 2009-05-17 00:01 expire.log -rw-rw-r-- 1 news news 0 2009-05-09 14:35 innfeed.log -rw-rw-r-- 1 news news 2830 2009-05-17 02:15 innfeed.status -rw-r--r-- 1 news news 295004 2009-05-17 12:08 news -rw-r--r-- 1 news news 0 2009-05-17 00:00 news.crit -rw-r--r-- 1 news news 0 2009-05-17 00:00 news.err -rw-r--r-- 1 news news 56966 2009-05-17 12:10 news.notice drwxr-xr-x 2 news news 904 2009-05-17 00:00 OLD drwxrwxr-x 2 news news 48 2007-08-10 07:11 path -rw-r--r-- 1 root news 62 2009-05-12 07:12 rc.news -rw-rw---- 1 news news 71 2009-05-17 00:00 unwanted.log A brand new Debian 5.0.1 install this morning on Optima11: ... -rw-r----- 1 root adm 87791 2009-05-17 11:51 syslog ... john@optima11:/var/log/news$ ls -al total 1 drwxr-xr-x 2 root root 136 2009-05-17 08:22 . drwxr-xr-x 8 root root 824 2009-05-17 09:24 .. -rw-r----- 1 root adm 0 2009-05-17 08:22 news.crit -rw-r----- 1 root adm 0 2009-05-17 08:22 news.err -rw-r----- 1 root adm 0 2009-05-17 08:22 news.notice INN is not (yet) installed on optima11, so these files may have their owner:group changed by the INN APT installer. -- John No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Logging failures
Author: Ray Banana
Date: Sun, 17 May 2009 18:02
Date: Sun, 17 May 2009 18:02
52 lines
4362 bytes
4362 bytes
Thus spake "John F. Morse" <xanadu.bbs@example.invalid> > I haven't touched the optima5 server in four days. No reboots or sysklog > restarts. > The news.notice log actually has 3.5 days of logging in it, so it > apparently is not getting rotated, or if so (see OLD below) it is not > getting zeroed out after rotation. I believe the latter. > I think these logs are actually rotating, but each day has the preceding > day's logging. It's adding up since the /var/log/news/news.notice never > gets emptied. So I assume the ownership of these log files was already set by sysklogd and the files are owned by syslog:adm. If you change then to news:news, news.daily will rotate them, but a restart of sysklogd wil change the owner back to syslogd:adm. > Todays Daily Report now shows: > /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.crit: Permission denied > /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.err: Permission denied > /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.notice: Permission denied > Daily Usenet report from May 14 00:00:02 to May 17 00:00:02 > john@optima2:/var/log/news$ ls -l > total 429 > -rw-r--r-- 1 news news 0 2009-05-17 00:00 errlog > -rw-rw-r-- 1 news news 65023 2009-05-17 00:00 expire.lastlowmark > -rw-rw-r-- 1 news news 633 2009-05-17 00:01 expire.log > -rw-rw-r-- 1 news news 0 2009-05-09 14:35 innfeed.log > -rw-rw-r-- 1 news news 2830 2009-05-17 02:15 innfeed.status > -rw-r--r-- 1 news news 295004 2009-05-17 12:08 news > -rw-r--r-- 1 news news 0 2009-05-17 00:00 news.crit > -rw-r--r-- 1 news news 0 2009-05-17 00:00 news.err > -rw-r--r-- 1 news news 56966 2009-05-17 12:10 news.notice > drwxr-xr-x 2 news news 904 2009-05-17 00:00 OLD > drwxrwxr-x 2 news news 48 2007-08-10 07:11 path > -rw-r--r-- 1 root news 62 2009-05-12 07:12 rc.news > -rw-rw---- 1 news news 71 2009-05-17 00:00 unwanted.log So these should rotate OK. > A brand new Debian 5.0.1 install this morning on Optima11: The behaviour of sysklogd on Debian is different from Ubuntu, as it will not change the owner of the news.* logfiles during start or restart as Ubuntu will do. BTW, the same problem exists on Ubuntu 9.04. I haven't found out, what makes sysklog behave different on Debian, all I can say is that the difference is not in the configuration files. -- Time flies like an arrow, fruit flies like a Banana. http://news.motzarella.org
Re: Logging failures
Author: John F. Morse
Date: Mon, 18 May 2009 09:45
Date: Mon, 18 May 2009 09:45
244 lines
11327 bytes
11327 bytes
Ray Banana wrote:
> Thus spake "John F. Morse" <xanadu.bbs@example.invalid>
>
>
>> I haven't touched the optima5 server in four days. No reboots or sysklog
>> restarts.
>> The news.notice log actually has 3.5 days of logging in it, so it
>> apparently is not getting rotated, or if so (see OLD below) it is not
>> getting zeroed out after rotation. I believe the latter.
>> I think these logs are actually rotating, but each day has the preceding
>> day's logging. It's adding up since the /var/log/news/news.notice never
>> gets emptied.
>>
>
> So I assume the ownership of these log files was already set by sysklogd
> and the files are owned by syslog:adm. If you change then to news:news,
> news.daily will rotate them, but a restart of sysklogd wil change the
> owner back to syslogd:adm.
>
The files are rotated, and the owner:group is indeed changed to
syslog:adm -- and -- the files are not emptied. New logging is simply
appended, causing the logs to grow.
Here are the lines from this morning's Daily Report:
/usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.crit:
Permission denied
/usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.err:
Permission denied
/usr/lib/news/bin/scanlogs: 233: cannot create
/var/log/news/news.notice: Permission denied
Daily Usenet report from May 14 00:00:02 to May 18 00:00:01
The Daily Report now shows it covers four days.
The news.notice logfile is now over half a gigabyte:
-rw-r--r-- 1 syslog adm 554605 2009-05-18 03:02 news.notice
Compare to optima2's news.notice:
-rw-r--r-- 1 news news 14581 2009-05-18 03:05 news.notice
Or compare to optima7, where there are many nnrpd entries:
-rw-r--r-- 1 news news 116865 2009-05-18 03:07 news.notice
You can see the ~10 MB per day appending showing up in the sizes of the
/var/log/news/OLD/ archive:
-r--r----- 1 news news 39156 2009-05-18 00:00 news.notice.1.gz
-r--r----- 1 news news 28223 2009-05-17 00:00 news.notice.2.gz
-r--r----- 1 news news 18870 2009-05-16 00:00 news.notice.3.gz
This might be caused by the permissions problem.
Evidentially sysklog changes the owner:group before scanlogs can create
the new (empty) files. So scanlogs fails.
Another comparison of the Daily Reports of Optima5 with Optima2, both
peering identically with Optima7:
Optima5:
Log file sizes:
0 errlog 0 innfeed.log 0 news.crit 532 news.notice
4 expire.log 532 news 4 news.err 8 unwanted.log
Optima2:
Log file sizes:
0 errlog 0 innfeed.log 0 news.crit 112 news.notice
4 expire.log 529 news 0 news.err 4 unwanted.log
You can see that the news log is nearly identical in size, but
news.notice has ballooned on Optima5 since it is never cleared.
>> Todays Daily Report now shows:
>>
>> /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.crit: Permission denied
>> /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.err: Permission denied
>> /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.notice: Permission denied
>> Daily Usenet report from May 14 00:00:02 to May 17 00:00:02
>>
>> john@optima2:/var/log/news$ ls -l
>> total 429
>> -rw-r--r-- 1 news news 0 2009-05-17 00:00 errlog
>> -rw-rw-r-- 1 news news 65023 2009-05-17 00:00 expire.lastlowmark
>> -rw-rw-r-- 1 news news 633 2009-05-17 00:01 expire.log
>> -rw-rw-r-- 1 news news 0 2009-05-09 14:35 innfeed.log
>> -rw-rw-r-- 1 news news 2830 2009-05-17 02:15 innfeed.status
>> -rw-r--r-- 1 news news 295004 2009-05-17 12:08 news
>> -rw-r--r-- 1 news news 0 2009-05-17 00:00 news.crit
>> -rw-r--r-- 1 news news 0 2009-05-17 00:00 news.err
>> -rw-r--r-- 1 news news 56966 2009-05-17 12:10 news.notice
>> drwxr-xr-x 2 news news 904 2009-05-17 00:00 OLD
>> drwxrwxr-x 2 news news 48 2007-08-10 07:11 path
>> -rw-r--r-- 1 root news 62 2009-05-12 07:12 rc.news
>> -rw-rw---- 1 news news 71 2009-05-17 00:00 unwanted.log
>>
>
> So these should rotate OK.
>
Yes. Optima2 is working fine with your first fix in
/etc/cron.daily/sysklogd :
/etc/init.d/sysklogd restart > /dev/null
>> A brand new Debian 5.0.1 install this morning on Optima11:
>>
>
> The behaviour of sysklogd on Debian is different from Ubuntu, as it will
> not change the owner of the news.* logfiles during start or restart as
> Ubuntu will do. BTW, the same problem exists on Ubuntu 9.04. I haven't
> found out, what makes sysklog behave different on Debian, all I can say
> is that the difference is not in the configuration files.
Tonight I will install INN on the Optima11 box (Debian Lenny) and see
what it does.
I originally preferred to use Debian, but I couldn't get Lenny to
install on the Optima computers. I discovered yesterday that it would
install when I used a newer CD-ROM drive. Evidentially Lenny doesn't
like the optical drives in the 12 Optima computers.
I discovered this because the CD-ROM drive in Optima11 was bad. So I
grabbed a spare off the shelf to try and install Lenny, for additional
testing on the earlier Debian bug report.
My other thoughts are in future bug and security support. The Ubuntu
8.04 LTS Server Edition will be supported for five years.
Even though Debian is quite slow in releasing new versions, I don't
think Lenny will be supported for five years. Support for Sarge 3.1,
released on 20050606, ended for 3.1r7 at the end of March, 2008,
slightly less than three years of support.
IMHO, Sarge was a good release. Check this out on Optima1, a Debian
Sarge box running BIND9, Fetchmail, Stunnel, ntpd, et al:
john@optima1:~$ who -b
system boot Nov 12 11:32
That is November 12, 2006! Here's where I launched fetchmail from VT6:
john@optima1:~$ w
04:31:27 up 420 days, 17:50, 2 users, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
john tty6 - 12Nov06 885days 4:15m 4:15m fetchmail
That 420 uptime is in error. It evidentially cannot accumulate more than
a certain amount.
john@optima1:~$ uptime
04:30:43 up 420 days, 17:49, 2 users, load average: 0.00, 0.00, 0.00
Etch was released on 20070408, with 4.0r8 released on 20090408, and
superseded by Lenny on 20090215. That is a two year interval, and the
day support for Etch stops is yet unknown. I only use Etch on a couple
of workstations.
So it looks like Ubuntu has far better support. But if they can't fix
their sysklog problem, it may be better to use Debian instead. If we fix
the sysklog problem with your first modification, then should Ubuntu
come along with an upgrade involving the sysklog package, it can
overwrite and break our fix.
The other complaint I had with a Debian Lenny install was all the GUI
and AV packages it installs. All the Optima computers (except Optima5)
have 4.3 GB hard drives, and the Lenny install I did on Saturday ate up
79% of the hard drive -- without even installing INN:
john@optima11:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 4000000 3128412 871588 79% /
Sunday morning's Lenny reinstall was made using the "Expert Install"
mode, where I unselected the "desktop environment" and some other
"typical" installation defaults. Without INN installed, it shows:
john@optima11:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 3983936 439620 3544316 12% /
That does include "apt-get install ntp openssh-server less" and their
dependencies, and I can live with that.
The hard disk in Optima5 is a larger 40 GB drive, but I had to clip it
down to 32 GB due to the BIOS. That should be sufficient for a full
Big-8 feed, without alt.* and binary groups. Using CNFS, I probably can
get by with the 4.3 GB hard drive for transit server duty.
For comparison, the Optima2 INN server is working, and has the following
disk free usage:
john@optima2:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 3983936 3771068 212868 95% /
INN is configured to use:
cycbuff:001:/var/spool/news/cycbuffs/001:512000
cycbuff:002:/var/spool/news/cycbuffs/002:512000
cycbuff:003:/var/spool/news/cycbuffs/003:512000
cycbuff:004:/var/spool/news/cycbuffs/004:512000
cycbuff:005:/var/spool/news/cycbuffs/005:512000
metacycbuff:binslow:001
metacycbuff:binfast:002
metacycbuff:txtslow:003
metacycbuff:txtfast:004
The cycbuff 005 is unused at this time (created as a spare for growth).
This morning's Daily Report shows: Articles retained 98939.
Incoming Feeds (INN):
Server Connects Offered Taken Refused Reject %Accpt Elapsed
optima7.xanadu-bbs.net 1088 18677 18673 0 4 99% 86:22:47
I see articles posted as far back as 20090427, when I created this
server. This makes me believe the 4.3 GB hard drive might be sufficient
for a transit server that doesn't handle alt.* and binaries, and only a
few groups outside the Big-8. Actually I don't care for humanities.*,
soc.* and talk.* either.
With that in mind, I may ask my peers for full feeds in comp.*, news.*,
rec.* and sci.*, and see how it runs.
--
John
No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.
The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Logging failures
Author: Ray Banana
Date: Mon, 18 May 2009 10:36
Date: Mon, 18 May 2009 10:36
36 lines
3474 bytes
3474 bytes
Thus spake "John F. Morse" <xanadu.bbs@example.invalid>
> IMHO, Sarge was a good release. Check this out on Optima1, a Debian
> Sarge box running BIND9, Fetchmail, Stunnel, ntpd, et al:
> john@optima1:~$ who -b
> system boot Nov 12 11:32
> That is November 12, 2006! Here's where I launched fetchmail from VT6:
Why worry about security patches if you don't install them
anyway <veg>?
> So it looks like Ubuntu has far better support. But if they can't fix
> their sysklog problem, it may be better to use Debian instead. If we fix
> the sysklog problem with your first modification, then should Ubuntu
> come along with an upgrade involving the sysklog package, it can
> overwrite and break our fix.
If it's only for the sysklogd problem (which also exists in Gentoo, they
just use lograte as a work-around), why not try syslog-ng as a
replacement? You would have to learn a new syntax, but it allows you to
specify an owner:group and file permisions for each log file.
| destination df_news_dot_notice { file("/var/log/news/news.notice" owner("news") perm(0640)); };
As I mentioned earlier, the ownership problem exists in Ubuntu 9.04,
too, so I don't expect any changes in 8.04 LTS. I wonder if there are
any other INN installations running Ubuntu with sysklogd.
> With that in mind, I may ask my peers for full feeds in comp.*, news.*,
> rec.* and sci.*, and see how it runs.
Just drop me a mail when you are ready.
--
Time flies like an arrow, fruit flies like a Banana.
http://news.motzarella.org
Re: Logging failures
Author: John F. Morse
Date: Mon, 18 May 2009 11:25
Date: Mon, 18 May 2009 11:25
77 lines
4675 bytes
4675 bytes
Ray Banana wrote:
> Thus spake "John F. Morse" <xanadu.bbs@example.invalid>
>
>
>> IMHO, Sarge was a good release. Check this out on Optima1, a Debian
>> Sarge box running BIND9, Fetchmail, Stunnel, ntpd, et al:
>> john@optima1:~$ who -b
>> system boot Nov 12 11:32
>> That is November 12, 2006! Here's where I launched fetchmail from VT6:
>>
>
> Why worry about security patches if you don't install them
> anyway <veg>?
>
What? Me worry? http://en.wikipedia.org/wiki/What%3F_Me_worry%3F ;-)
I actually do keep all of my other computers updated and upgraded. I've
just been lax on optima1, and probably optima7 as well.
Optima1 is relatively safe since it is behind a NAT router, and has no
ports open to the WAN.
Optima7 used to run on a high ("secret") port, so it wasn't sniffed AFAIK.
But the "worry" is to get them up-to-date before something happens.
>> So it looks like Ubuntu has far better support. But if they can't fix
>> their sysklog problem, it may be better to use Debian instead. If we fix
>> the sysklog problem with your first modification, then should Ubuntu
>> come along with an upgrade involving the sysklog package, it can
>> overwrite and break our fix.
>>
>
> If it's only for the sysklogd problem (which also exists in Gentoo, they
> just use lograte as a work-around), why not try syslog-ng as a
> replacement? You would have to learn a new syntax, but it allows you to
> specify an owner:group and file permisions for each log file.
>
> | destination df_news_dot_notice { file("/var/log/news/news.notice" owner("news") perm(0640)); };
>
> As I mentioned earlier, the ownership problem exists in Ubuntu 9.04,
> too, so I don't expect any changes in 8.04 LTS. I wonder if there are
> any other INN installations running Ubuntu with sysklogd.
>
I read yesterday that there a lot of unhappy Ubuntu 9.04 users, after
they discovered Canonical decided to protect the Windows n00bs from
themselves, and disabled the X reboot with <Ctrl><Alt><Backspace> key
combination.
I have used it a few times in the past, but I know several other ways to
kill X and restart it, so their decision isn't life-threatening.
The main gripe is dumbing-down a good OS (GNU/Linux) just to attract
Windows users. Quantity (numbers) vs. Quality.
>> With that in mind, I may ask my peers for full feeds in comp.*, news.*,
>> rec.* and sci.*, and see how it runs.
>>
>
> Just drop me a mail when you are ready.
Ich werde tun. Danke
--
John
No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.
The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Logging failures
Author: Julien ÉLIE
Date: Mon, 18 May 2009 17:28
Date: Mon, 18 May 2009 17:28
28 lines
2927 bytes
2927 bytes
Hi John, > Support for Sarge 3.1, > released on 20050606, ended for 3.1r7 at the end of March, 2008, > slightly less than three years of support. > > Etch was released on 20070408, with 4.0r8 released on 20090408, and > superseded by Lenny on 20090215. That is a two year interval, and the > day support for Etch stops is yet unknown. Yes it is: "oldstable" is maintained 1 year after the release of "stable". Expect Etch support to end near February 2010. > So it looks like Ubuntu has far better support. But if they can't fix > their sysklog problem, it may be better to use Debian instead. Note that you could also upgrade "oldstable" to "stable" with something like "aptitude dist-upgrade". It normally works fine! -- Julien ÉLIE « -- Ne me dis pas que c'est cette poignée de Gaulois d'en face qui vous a mis dans cet état ! -- Il est vrai que j'ai été frappé moi-même par la force persuasive de cette poignée, amiral ! » (Astérix)
Re: Logging failures
Author: Black Dragon
Date: Mon, 18 May 2009 18:44
Date: Mon, 18 May 2009 18:44
36 lines
2961 bytes
2961 bytes
John F. Morse wrote: > I read yesterday that there a lot of unhappy Ubuntu 9.04 users, after > they discovered Canonical decided to protect the Windows n00bs from > themselves, and disabled the X reboot with <Ctrl><Alt><Backspace> key > combination. > I have used it a few times in the past, but I know several other ways to > kill X and restart it, so their decision isn't life-threatening. > The main gripe is dumbing-down a good OS (GNU/Linux) just to attract > Windows users. Quantity (numbers) vs. Quality. I used to have the same sentiment but now consider it a bit elitist. YMMV. Thanks to Ubuntu 9.04 my son recently and completely abandoned Microsoft Windows on his fairly high end laptop. If it weren't for Ubuntu's ease of use he wouldn't have made the switch. I had been trying for years to turn him on to Linux and every time a task which would be point and click easy on Windows required opening a terminal on Linux it would turn him right off. Ubuntu developers have done a great job of changing that and I think they should continue in that general direction. After all, there are other distributions and OSen available for hardcore purists. Ubuntu certainly isn't without flaws, but in my sons case they are now minimal enough for the benefits to far outweigh them. And oh yeah, I showed him how to set a root password so he doesn't have to be bothered with using sudo every time he needs to do a task with root privileges. ;) -- Black Dragon You can find sympathy, in the dictionary, right near shit and suicide.
Re: Logging failures
Author: Russ Allbery
Date: Mon, 18 May 2009 19:55
Date: Mon, 18 May 2009 19:55
17 lines
2320 bytes
2320 bytes
"John F. Morse" <xanadu.bbs@example.invalid> writes:
> I read yesterday that there a lot of unhappy Ubuntu 9.04 users, after
> they discovered Canonical decided to protect the Windows n00bs from
> themselves, and disabled the X reboot with <Ctrl><Alt><Backspace> key
> combination.
Just by default -- you can re-enable it with an xorg.conf setting if you
want it.
I think I've used Ctrl-Alt-Backspace maybe twice in fifteen years.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Logging failures
Author: General Patron
Date: Tue, 19 May 2009 12:53
Date: Tue, 19 May 2009 12:53
16 lines
2625 bytes
2625 bytes
John F. Morse said the following on 2009-05-18 13:25:
> I read yesterday that there a lot of unhappy Ubuntu 9.04 users, after
> they discovered Canonical decided to protect the Windows n00bs from
> themselves, and disabled the X reboot with <Ctrl><Alt><Backspace> key
> combination.
That's not the maker of ubuntu to decide.
Decision is made by the Xorg foundation.
Note: This key combination was enabled by default up to Xorg version
7.3. To enable it in version 7.4 and later, add the following line to
the ServerLayout or ServerFlags section of the configuration file:
Option "DontZap" "Off""
Re: Logging failures
Author: Ray Banana
Date: Tue, 19 May 2009 13:35
Date: Tue, 19 May 2009 13:35
52 lines
4374 bytes
4374 bytes
Thus spake "John F. Morse" <xanadu.bbs@example.invalid>
[problems with log file permissions on Ubuntu using sysklogd]
> The files are rotated, and the owner:group is indeed changed to
> syslog:adm -- and -- the files are not emptied. New logging is simply
> appended, causing the logs to grow.
I found the piece of code in the /etc/init.d/sysklogd startup script
that's responsible for this:
fix_log_ownership()
{
for l in `syslogd-listfiles -a`
do
chown ${USER}:adm $l
done
}
As I changed "syslogd-listfiles -a" to also list the news.* log files
(as does Ubuntu 9.04), these will be affected by this feature, too.
After looking at the sysklogd changelog for the Ubuntu version, I get the
impression that it is a long sequence of ugly hacks (and reverting them
again) in a desperate attempt to make sysklogd run without root
privileges, which does not work if you want your news.* logs handled
and rotated by news.daily. Ubuntu's sysklogd opens all defined log files
while it still has root privileges, disregarding their ownership. It
subsequently drops root privileges and, by default, runs as user syslog,
hence it fails to re-open the log files not writable by the syslog user
upon receiving a SIGHUP, as it has dropped its root privileges after
initializing. Doing a restart of sysklogd will work, as long as
syslogd-listfiles -a does *not* list the news.* files, as sysklogd will
start with root privileges, open all log files and drop
privileges. Sending a SIGHUP to the syslogd process will however cause
all logging to news.notice etc. to stop.
So, if you would like to run INN on Ubuntu with news.daily doing all the
reporting and log rotation, you should not use sysklogd, but syslog-ng
or rsyslogd. You might prefer rsyslogd as the syntax of
/etc/rsyslogd.conf is the same as for syslogd.conf, whereas syslog-ng
uses a totally different logic and syntax (sources->filters->destinations).
> Tonight I will install INN on the Optima11 box (Debian Lenny) and see
> what it does.
On Debian, sysklogd runs as root and therefore these problems do not
exist.
--
Time flies like an arrow, fruit flies like a Banana.
http://news.motzarella.org
Re: Logging failures
Author: John F. Morse
Date: Tue, 19 May 2009 13:46
Date: Tue, 19 May 2009 13:46
79 lines
5210 bytes
5210 bytes
Julien ÉLIE wrote: > Hi John, > >> Support for Sarge 3.1, >> released on 20050606, ended for 3.1r7 at the end of March, 2008, >> slightly less than three years of support. >> >> Etch was released on 20070408, with 4.0r8 released on 20090408, and >> superseded by Lenny on 20090215. That is a two year interval, and the >> day support for Etch stops is yet unknown. > > Yes it is: "oldstable" is maintained 1 year after the release of > "stable". > Expect Etch support to end near February 2010. I was thinking of an exact date. I hadn't read any announcement about the date. Or I may have and forgot it as unimportant at this point in time. ;-) I do have Etch on my basement lab computer, which I do use pretty often for looking up technical info on the Internet. And for ssh access to the headless servers, and accessing the computer room computer which has all of my databases, spreadsheets, etc., containing the data on all 60 computers. >> So it looks like Ubuntu has far better support. But if they can't fix >> their sysklog problem, it may be better to use Debian instead. > > Note that you could also upgrade "oldstable" to "stable" with > something like "aptitude dist-upgrade". It normally works fine! That is how I upgraded a couple of the Optima Sarge computers to Etch when it was released. However, as you correctly say, "normally works fine" always does leave some doubt. ;-) In fact, Optima 2 and Optima 5 were both dist-upgraded from Sarge to Etch. Later, Ubuntu 8.04 LTS Server Edition was installed replacing Etch. That happened because I was tired of waiting on Lenny. ;-) Optima 12 has an Etch installation from the Net Install CD-R, using a different optical CD-ROM drive because the original one in Optima 12 was bad. I will probably leave Etch on it until sometime after the February 2010 support dies. Optima 10 still has an Ubuntu 5.10 Breezy Badger remaining. Some of the Optimas used to have Slackware, Fedora Core, FreeBSD, etc. on them before I installed Sarge. The reason was to try and keep it simple, using a distro (Debian) which had the best support and package management. Sarge remains on Optimas 1, 3, 7, and 9. Optimas 1 and 7 are online servers. Optima 3 donated its PSU to Optima7 last winter, and I don't know if I'll repair it, replace it, or continue to cannibalize Optima 3. Optima2 may have a bad motherboard because of some occasional IDE channel failures that recover. It could be the hard drive as well, so I need to swap it out and see what happens. Optima 9 could be upgraded to anything. As of Sunday, Lenny is now on Optima 11, as well as INN, which I'm currently configuring. Optimas 2, 3, 5, and 8 have Ubuntu 8.04 LTS Server Edition. Optimas 2 and 5 are the ones I'm currently testing with INN. I may install Lenny instead of Ubuntu. Optima 8 has a new MTA/MDA of Postfix and Dovecot that I'm partially using. I need to finish it and move the mail server duties to it from an aging PowerMac 8500 that has been doing the duty since 1999, before it gives up the ghost. -- John No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Logging failures
Author: John F. Morse
Date: Sat, 23 May 2009 16:52
Date: Sat, 23 May 2009 16:52
85 lines
5232 bytes
5232 bytes
Ray Banana wrote:
> Thus spake "John F. Morse" <xanadu.bbs@example.invalid>
>
> [problems with log file permissions on Ubuntu using sysklogd]
>
>
>> The files are rotated, and the owner:group is indeed changed to
>> syslog:adm -- and -- the files are not emptied. New logging is simply
>> appended, causing the logs to grow.
>>
>
> I found the piece of code in the /etc/init.d/sysklogd startup script
> that's responsible for this:
>
> fix_log_ownership()
> {
> for l in `syslogd-listfiles -a`
> do
> chown ${USER}:adm $l
> done
> }
>
> As I changed "syslogd-listfiles -a" to also list the news.* log files
> (as does Ubuntu 9.04), these will be affected by this feature, too.
>
> After looking at the sysklogd changelog for the Ubuntu version, I get the
> impression that it is a long sequence of ugly hacks (and reverting them
> again) in a desperate attempt to make sysklogd run without root
> privileges, which does not work if you want your news.* logs handled
> and rotated by news.daily. Ubuntu's sysklogd opens all defined log files
> while it still has root privileges, disregarding their ownership. It
> subsequently drops root privileges and, by default, runs as user syslog,
> hence it fails to re-open the log files not writable by the syslog user
> upon receiving a SIGHUP, as it has dropped its root privileges after
> initializing. Doing a restart of sysklogd will work, as long as
> syslogd-listfiles -a does *not* list the news.* files, as sysklogd will
> start with root privileges, open all log files and drop
> privileges. Sending a SIGHUP to the syslogd process will however cause
> all logging to news.notice etc. to stop.
>
> So, if you would like to run INN on Ubuntu with news.daily doing all the
> reporting and log rotation, you should not use sysklogd, but syslog-ng
> or rsyslogd. You might prefer rsyslogd as the syntax of
> /etc/rsyslogd.conf is the same as for syslogd.conf, whereas syslog-ng
> uses a totally different logic and syntax (sources->filters->destinations).
>
>
>> Tonight I will install INN on the Optima11 box (Debian Lenny) and see
>> what it does.
>>
>
> On Debian, sysklogd runs as root and therefore these problems do not
> exist.
Thanks Ray.
The Optima11 server on Lenny is working fine now, peering with the
online Optima7.
I'll get with you in a couple of days about adding those full
hierarchies to port 433 to feed it for more testing, without disrupting
the port 119 feed to Optima7.
Right now I'm busy trying to configure NoCeM to stop the spam we had
Friday morning (well, actually "any" spam that it can catch).
Your feed, and reports from some of your reader users, say you were
clean of the spam. Did you add the spammer (usenetmonster.com) into
Cleanfeed, or did the NoCeM take care of all the spam?
I also need to contact CMU as it appears they have added a transit-2
server which I know nothing about and do not have entered into my
newsfeeds.conf file. So it is pounding nnrpd and failing because it has
no auth account.
If it isn't one thing, it's something else. ;-)
--
John
No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.
The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Logging failures
Author: Ray Banana
Date: Sat, 23 May 2009 17:02
Date: Sat, 23 May 2009 17:02
14 lines
2811 bytes
2811 bytes
Thus spake "John F. Morse" <xanadu.bbs@example.invalid> > Right now I'm busy trying to configure NoCeM to stop the spam we had > Friday morning (well, actually "any" spam that it can catch). > Your feed, and reports from some of your reader users, say you were > clean of the spam. Did you add the spammer (usenetmonster.com) into > Cleanfeed, or did the NoCeM take care of all the spam? Both. Xavier Roche did a great job, but I didn't want to waste gigabytes of network traffic on the incoming spam, so I added a rule to Cleanfeed. -- Time flies like an arrow, fruit flies like a Banana. http://news.motzarella.org
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads