[leafnode-list] Re: Cannot update timestamp on /var/spool/news/interesting.groups/...: Operation not permitted

David Aldred nr at familyaldred.org.uk
Sun Dec 4 22:09:17 CET 2005


On Sunday 04 Dec 2005 17:17, Matthias Andree wrote:
> David Aldred <nr at familyaldred.org.uk> writes:
> > On Sunday 20 Nov 2005 16:11, Niels Baggesen wrote:
> >> On Sun, Nov 20, 2005 at 02:45:48PM +0000, David Aldred wrote:
> >> > Is there any way I can take the part of the leafnode code that tries
> >> > to do the update, compile it, and run it 'out of context' to see if
> >> > the same problem arises?

> You'd connect your newsreader and after that run "ps ax | grep leafnode"
> (Linux and BSD-style systems) or "ps -ef | grep leafnode" (SysV style
> systems) and use the number from the PID column (run ps ax without grep
> to see which column it is) to pass to "strace -p".

Right, done that....

Here's the result - just attaching strace, then moving from one group to 
another a couple of times.   There are two 'Operation not permitted' 
messages: does this help with getting at the problem?


[root at main david]# strace -p 21278
Process 21278 attached - interrupt to quit
read(0, "GROUP ntl.announce\r\n", 1024) = 20
alarm(0)                                = 290
waitpid(-1, NULL, WNOHANG)              = -1 ECHILD (No child processes)
stat64("/var/spool/news/leaf.node/groupinfo", {st_mode=S_IFREG|0660, 
st_size=1488431, ...}) = 0
stat64("/etc/leafnode/local.groups", {st_mode=S_IFREG|0644, st_size=0, ...}) = 
0
brk(0x8193000)                          = 0x8193000
munmap(0xb72bc000, 315392)              = 0
stat64("/var/spool/news/interesting.groups/ntl.announce", {st_mode=S_IFREG|
0775, st_size=0, ...}) = 0
time(NULL)                              = 1133720157
utime("/var/spool/news/interesting.groups/ntl.announce", [2005/12/04-18:15:57, 
2005/12/04-18:14:58]) = -1 EPERM (Operation not permitted)
time([1133720157])                      = 1133720157
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0
send(3, "<59>Dec  4 18:15:57 leafnode[212"..., 136, MSG_NOSIGNAL) = 136
open("/var/spool/news/interesting.groups/ntl.announce", O_WRONLY|O_CREAT|
O_TRUNC, 0666) = 4
close(4)                                = 0
chdir("/var/spool/news/ntl/announce")   = 0
open(".overview", O_RDONLY)             = 4
fstat64(4, {st_mode=S_IFREG|0640, st_size=1201, ...}) = 0
read(4, "9\tntl.* Newsgroup Charter - Repo"..., 1201) = 1201
close(4)                                = 0
open(".overview.deleted", O_RDONLY)     = -1 ENOENT (No such file or 
directory)
write(1, "211 5 9 13 ntl.announce group se"..., 40) = 40
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigaction(SIGALRM, {0x805bb80, [], SA_RESTART|SA_NOCLDSTOP}, NULL, 8) = 0
alarm(300)                              = 0
read(0, "GROUP uk.religion.christian\r\n", 1024) = 29
alarm(0)                                = 252
waitpid(-1, NULL, WNOHANG)              = -1 ECHILD (No child processes)
stat64("/var/spool/news/leaf.node/groupinfo", {st_mode=S_IFREG|0660, 
st_size=1488431, ...}) = 0
stat64("/etc/leafnode/local.groups", {st_mode=S_IFREG|0644, st_size=0, ...}) = 
0
stat64("/var/spool/news/interesting.groups/uk.religion.christian", 
{st_mode=S_IFREG|0775, st_size=0, ...}) = 0
time(NULL)                              = 1133720204
utime("/var/spool/news/interesting.groups/uk.religion.christian", 
[2005/12/04-18:16:44, 2005/12/04-18:16:43]) = -1 EPERM (Operation not 
permitted)
time([1133720204])                      = 1133720204
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0
send(3, "<59>Dec  4 18:16:44 leafnode[212"..., 145, MSG_NOSIGNAL) = 145
open("/var/spool/news/interesting.groups/uk.religion.christian", O_WRONLY|
O_CREAT|O_TRUNC, 0666) = 4
close(4) 


-- 
David Aldred



More information about the leafnode-list mailing list