Creating a backup news server

Stephen Kitchener stephen at g6dzj.demon.co.uk
Fri Dec 31 14:17:56 UTC 2004


Hi,

I am in the process trying to create a backup news server, so that it contains 
the news in the primary.

This is a little odd in that the news that the server currently holds has 
never been expired and I would like to be able to keep the articals. They are 
from sources that don't exist now and therefore would be very difficult to 
get.

What I have been trying to do is to setup a new inn server so that I can, once 
a day, sync the news from the priamry to the secondary.

I think I have set it up correctly, and indeed I have set the configuration 
up, as I did in the past, changing some variables so that the config, now 
reflects the new server.

But when I try this command 

/usr/bin/nntpget -u /var/log/nntpget.log -o gonzo

(gonzo) is the older news server

I get.

nntpget: cannot connect to gonzo

If I run strace on the command I get

execve("/usr/bin/nntpget", ["/usr/bin/nntpget", "-u", "/var/log/nntpget.log", 
"-o", "gonzo"], [/* 14 vars */]) = 0
uname({sys="Linux", node="kermit", ...}) = 0
brk(0)                                  = 0x8071000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40017000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=83035, ...}) = 0
old_mmap(NULL, 83035, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3)                                = 0
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 at Z\1\000"..., 512) = 
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1334740, ...}) = 0
old_mmap(NULL, 1340908, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4002d000
old_mmap(0x4016f000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0x142000) = 0x4016f000
old_mmap(0x40172000, 9708, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x40172000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40175000
set_thread_area({entry_number:-1 -> 6, base_addr:0x401752a0, limit:1048575, 
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, 
seg_not_present:0, useable:1}) = 0
munmap(0x40018000, 83035)               = 0
brk(0)                                  = 0x8071000
brk(0x8092000)                          = 0x8092000
brk(0)                                  = 0x8092000
open("/etc/news/inn.conf", O_RDONLY)    = 3
read(3, "##  $Id: inn.conf.in,v 1.41.2.1 "..., 8191) = 4953
read(3, "", 8191)                       = 0
close(3)                                = 0
uname({sys="Linux", node="kermit", ...}) = 0
gettimeofday({1104502477, 1376}, NULL)  = 0
getpid()                                = 4529
open("/etc/resolv.conf", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=83, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40018000
read(3, "search ether-net\nnameserver 158."..., 4096) = 83
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40018000, 4096)                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1 ENOENT 
(No such file or directory)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1744, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40018000
read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1744
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40018000, 4096)                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=83035, ...}) = 0
old_mmap(NULL, 83035, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3)                                = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\35\0\000"..., 512) = 
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=40900, ...}) = 0
old_mmap(NULL, 44192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40176000
old_mmap(0x40180000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0x9000) = 0x40180000
close(3)                                = 0
munmap(0x40018000, 83035)               = 0
open("/etc/host.conf", O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=26, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40018000
read(3, "order hosts,bind\nmulti on\n", 4096) = 26
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40018000, 4096)                = 0
open("/etc/hosts", O_RDONLY)            = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=283, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40018000
read(3, "192.168.1.3\t\tkermit.ether-net\tke"..., 4096) = 283
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40018000, 4096)                = 0
umask(02)                               = 022
stat64("/var/log/nntpget.log", {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
open("/etc/localtime", O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40018000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\0\0\0\7\0"..., 4096) = 
1323
close(3)                                = 0
munmap(0x40018000, 4096)                = 0
open("/var/lib/news/history", O_RDONLY) = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
open("/var/lib/news/history.dir", O_RDWR) = 4
fcntl64(4, F_GETFD)                     = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=76, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40018000
read(4, "dbz 6 1000003 4 50 128 127 24 0\n"..., 4096) = 76
open("/var/lib/news/history.pag", O_RDWR) = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=4000012, ...}) = 0
mmap2(NULL, 4000012, PROT_READ|PROT_WRITE, MAP_SHARED, 5, 0) = 0x40181000
madvise(0x40181000, 4000012, 0x1)       = 0
fcntl64(5, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
open("/var/lib/news/history", O_RDONLY) = 6
fcntl64(6, F_GETFD)                     = 0
fcntl64(6, F_SETFD, FD_CLOEXEC)         = 0
fstat64(6, {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40552000
gettimeofday({1104502477, 14635}, NULL) = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 7
connect(7, {sa_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1 ENOENT 
(No such file or directory)
close(7)                                = 0
open("/etc/hosts", O_RDONLY)            = 7
fcntl64(7, F_GETFD)                     = 0
fcntl64(7, F_SETFD, FD_CLOEXEC)         = 0
fstat64(7, {st_mode=S_IFREG|0644, st_size=283, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40553000
read(7, "192.168.1.3\t\tkermit.ether-net\tke"..., 4096) = 283
read(7, "", 4096)                       = 0
close(7)                                = 0
munmap(0x40553000, 4096)                = 0
write(2, "nntpget: ", 9nntpget: )                = 9
write(2, "cannot connect to gonzo", 23cannot connect to gonzo) = 23
write(2, "\n", 1
)                       = 1
_llseek(4, -1, [75], SEEK_CUR)          = 0
munmap(0x40018000, 4096)                = 0
exit_group(1)                           = ?

The only error that I can see is "connect(7, {sa_family=AF_UNIX, 
path="/var/run/.nscd_socket"}, 110) = -1 ENOENT (No such file or directory)"

But I am unsure as to what the error can mean.

kermit is the client in this case.

Can anyone help please ???

I can supply more details, but, at this point I don't know what will be 
relevent.

Thanks

And a Happy new year to all :-)
-- 
                 O  o
            _\_   o
         \\/  o\ .
         //\___=
            ''
Fri, 31 Dec 2004 14:06:05 +0000
 14:06:05 up  4:59,  0 users,  load average: 1.31, 1.21, 1.14
Make me look like LINDA RONSTADT again!!


More information about the inn-workers mailing list