🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Vince Vielhaber Sat, 16 Mar 1996 00:00
Unoff4 -- Now this is strange.
#5698
Author: Vince Vielhaber
Date: Sat, 16 Mar 1996 00:00
32 lines
1859 bytes
I have a spool that's split between multiple partitions:  /var/spool/news
and /var/spool/news/alt.   The OS is FreeBSD 2.1, HAVE_SYMLINKS is DO, and
I followed the FAQ's directions to the tee.  I'm not using MMAP. Everything
else is working fine.  I've renumbered, makeactive'd, etc.

Here's the oddity.  My errlog is being filled with: 
crosspost cant symlink /var/spool/news/aus/cars/16592 rec/autos/sport/rally/416 : File exists    

(Sorry it extends beyond 78 chars)

I looked at both files, and they're identical.  It appears the file is 
written, then an attempt is made at symlinking - hence the error log
entry.

The FAQ also says that an extra file will not be written until INN 1.5,
did something change?  Or did I miss something (probably)?

At least news is flowing :)

Thanks in advance...
Vince.
-- 
========================================================================== 
Vince Vielhaber -- KA8CSH   email: vev@michvhf.com   flame-mail: /dev/null 
             Database Manager Michigan Area Repeater Council               
       # include <std/disclaimers.h>                   TEAM-OS2            
========================================================================== 
                                                                           


Re: Unoff4 -- Now this is strange.
#5709
Author: C.S.Chen
Date: Sat, 16 Mar 1996 00:00
66 lines
3567 bytes
Vince Vielhaber (vev@michvhf.com),16 Mar 1996 01:04:31 GMT wrote:
: I have a spool that's split between multiple partitions:  /var/spool/news
: and /var/spool/news/alt.   The OS is FreeBSD 2.1, HAVE_SYMLINKS is DO, and
: I followed the FAQ's directions to the tee.  I'm not using MMAP. Everything
: else is working fine.  I've renumbered, makeactive'd, etc.
: 
: Here's the oddity.  My errlog is being filled with: 
: crosspost cant symlink /var/spool/news/aus/cars/16592 rec/autos/sport/rally/416 : File exists    

I had some similar experiences.
-----------------------------------------------------------------------------
crosspost cant symlink /var/spool/news/comp/binaries/mac/3677 comp/sources/mac/143 : No such file or directory
... [delete]
-----------------------------------------------------------------------------

We had some Sun & HP news servers running INN1.4unoff4.
 - SunOS 4.1.3  ( x1 ) ( multiple disks )
 - SunOS 4.1.3_U1 ( x1 ) ( single disk )
 - HP-UX 9.0.3 ( x4 ) ( multiple disks )

I'd still found similar messages on the news server running SunOS 4.1.3
once in a while. 

However, no such error message was found on the HP-UX systems.
( HP-UX hosts run with the option c> listed below )

In order to study the relationship between the MMAP option and the sympton,
I'd tried the 4 combinations of the compiling options in "config.data" on
the host running SunOS 4.1.3:
  a> active ( MMAP ), history (DBZ) without MMAP
  b> active ( MMAP ), history (DBZ ) with MMAP
  c> active ( READ ), history (DBZ) without MMAP
  d> active ( READ ), history (DBZ) with MMAP

According to my observations, no matter which one was compiled and installed
, similar error messages appear on all 4 cases listed above.

-----------------------------------------------------------------------------
However, when I did similar adjustments on the host running SunOS 4.1.3_U1,
I got quite different results.

  2a> active ( MMAP ), history (DBZ ) with MMAP   -> Errors once in a while
  2b> active ( READ ), history (DBZ) with MMAP    -> NO erros

  When I first installed the server with the 2a) option, I'd seen some 
  similar messages like the above appeared once in a while. 

  After I change to the 2b) option and re-compile and update the whole
  program suite, NO such error messages appear ever since.

-----------------------------------------------------------------------------
PS.
   On each of our systems, the <crosspost> program help reduce the loading
   of the <innd> program and make the systems running more smoothly than 
   before.

Except for the error symptons, everything else seems to work OK.
 - Is this "problem" listed above caused by the MMAP option ?
 - Any potential harms to the system ???

 I got quite confused. Any ideas ?
-- 
   C.S.Chen [ ������ ] 			* E-mail:  chen@cc.nctu.edu.tw 	
   Computer Center of National Chiao-Tung University, Hsinchu, Taiwan, R.O.C.

Re: Unoff4 -- Now this is strange.
#5881
Author: Vince Vielhaber
Date: Thu, 21 Mar 1996 00:00
22 lines
1587 bytes
In article <4irc9p$8sn@netnews.nctu.edu.tw>, chen@cc.nctu.edu.tw says...
>
>    In my memory, if <innd> were to meet the situation, it would
>    re-create the directory silently, including all the related 
>    intermediate sub-directories. 
>
>    I suppose <crosspost> could/should deal with the situation in this way.

If it creates the directory, shouldn't it also update the active file?
Moderated group?  Unmoderated?

Vince.
-- 
========================================================================== 
Vince Vielhaber -- KA8CSH   email: vev@michvhf.com   flame-mail: /dev/null 
             Database Manager Michigan Area Repeater Council               
       # include <std/disclaimers.h>                   TEAM-OS2            
========================================================================== 
                                                                           


Re: Unoff4 -- Now this is strange.
#5884
Author: C.S.Chen
Date: Thu, 21 Mar 1996 00:00
65 lines
3223 bytes
C.S.Chen (chen@cc.nctu.edu.tw),16 Mar 1996 09:24:49 GMT wrote:
: -----------------------------------------------------------------------------
: crosspost cant symlink /var/spool/news/comp/binaries/mac/3677 comp/sources/mac/143 : No such file or directory
: -----------------------------------------------------------------------------

After some checking of the error log entries, the related spool directories
and the source programs, I suppose that I'd found the reason.

Here are the scenarios:
--------------------------------------
1) <innd> receive one article, 

2a) <innd> files it in the spool direcory,
      "/var/spool/news/comp/binaries/mac/3677 "
2b) innd pipes the article to "crosspost".

3a) <crosspost> attempts to create the link 
    /var/spool/news/comp/sources/mac/143

    But it fails. Because there is no "/var/spool/news/comp/sources/mac",
    only the parent directory "/var/spool/news/comp/sources" and other
    sub-directories exist.

3b) <crosspost> attempts to create the sysmlinks
    /var/spool/news/comp/sources/mac/143

    And it fails, with similar reasons like above.

--------------------------------------------------------------------
I suppose that my analysis of the program's behavior is not wrong.

So, could we could this a minor bug ?

I think this could be avoided by some minor modification of the source
program. Mabye I'll done it later. Or had someone already done it ?
--------------------------------------------------------------------

Some background Notes: (some "abnormal" environment)
======================

1) I'd checked the active file. We have the newsgroups "comp.source.mac" 
   in the active list. And it seems to be a low traffic one.

2) Recently, for some maintenance reason, I'd re-configured one of my 
   HDs for news spool, did "newfs" the HD and started receiving and 
   filing news articles again.

Some low traffic newsgroups did not have the luck to have their 
corresponding spool directories created after the re-construction
of the mentioned news spool HD until we'd switched to inn1.4unoff4
and installed the <crosspost> program.

And the errors appear.

PS.  
    In my memory, if <innd> were to meet the situation, it would
    re-create the directory silently, including all the related 
    intermediate sub-directories. 

    I suppose <crosspost> could/should deal with the situation in this way.
-- 
   C.S.Chen [ ������ ] 			* E-mail:  chen@cc.nctu.edu.tw 	
   Computer Center of National Chiao-Tung University, Hsinchu, Taiwan, R.O.C.

Re: Unoff4 -- Now this is strange.
#5932
Author: C.S.Chen
Date: Sat, 23 Mar 1996 00:00
25 lines
1655 bytes
C.S.Chen (chen@cc.nctu.edu.tw),21 Mar 1996 10:50:33 GMT wrote:
: C.S.Chen (chen@cc.nctu.edu.tw),16 Mar 1996 09:24:49 GMT wrote:
[delete]
: --------------------------------------
: 3a) <crosspost> attempts to create the link 
:     /var/spool/news/comp/sources/mac/143
: 
:     But it fails. Because there is no "/var/spool/news/comp/sources/mac",
:     only the parent directory "/var/spool/news/comp/sources" and other
:     sub-directories exist.

I'd checked the source code again. The description above is not totally
correct, but is very near what the real problem is.

PS.
  I'd reported this to the author Jerry and got his confirm.
  He'd returned me with a patch and it seems to fix the problem.
  If you need it, you could get it from 
  (or the mirror sites )
   Ftp://ftp.math.psu.edu/pub/INN/patches/crosspost.patch
-- 
   C.S.Chen [ ������ ] 			* E-mail:  chen@cc.nctu.edu.tw 	
   Computer Center of National Chiao-Tung University, Hsinchu, Taiwan, R.O.C.

Re: Unoff4 -- patch to fix crosspost
#5937
Author: Jerry Aguirre
Date: Sat, 23 Mar 1996 00:00
78 lines
3062 bytes
If you get "file already exists" then most likely you didn't envoke innd
with the -l option.

In article <4ie1d1$cm1@netnews.nctu.edu.tw> chen@cc.nctu.edu.tw (C.S.Chen) writes:
>-----------------------------------------------------------------------------
>crosspost cant symlink /var/spool/news/comp/binaries/mac/3677 comp/sources/mac/143 : No such file or directory
>... [delete]
>-----------------------------------------------------------------------------

This is a genuine bug.  Not likely to hit this often on a normal server
as by the time someone crossposts there typically has been a direct
posting.  On the other hand if you are re-creating a spool or regularly
remove empty directories this could hit you.

The patch to fix crosspost follows:
*** backends/crosspost.c.bak	Tue Feb  6 11:18:28 1996
--- backends/crosspost.c	Thu Mar 21 10:57:58 1996
***************
*** 51,58 ****
  
  
  /*
! **  Make spool directory.  Return 0 if ok,
! **  else -1.
  */
  STATIC BOOL
  MakeSpoolDir(Name)
--- 51,57 ----
  
  
  /*
! **  Make spool directory.  Return FALSE on error.
  */
  STATIC BOOL
  MakeSpoolDir(Name)
***************
*** 61,69 ****
      register char	*p;
      BOOL		made;
  
-     if (InSpoolDir)
- 	return FALSE;
- 
      /* Optimize common case -- parent almost always exists. */
      if (MakeDir(Name))
  	return TRUE;
--- 60,65 ----
***************
*** 140,151 ****
  		for (j--; (j > 0) && (path[j] != '/'); j--) ;
  		if (path[j] == '/') {
  		    path[j] = '\0';
! 		    if (MakeSpoolDir(path)) { /* try making parent dir */
  			(void)fprintf(stderr, "crosspost cant mkdir %s\n",
  				path);
  		    }
  		    else {
! 			if (link(names[0], names[i]) < 0) { /* 2nd try to link */
  #if	defined(DONT_HAVE_SYMLINK)
  			    (void)fprintf(stderr, "crosspost cant link %s %s",
  				names[0], names[i]);
--- 136,149 ----
  		for (j--; (j > 0) && (path[j] != '/'); j--) ;
  		if (path[j] == '/') {
  		    path[j] = '\0';
! 		    /* try making parent dir */
! 		    if (MakeSpoolDir(path) == FALSE) {
  			(void)fprintf(stderr, "crosspost cant mkdir %s\n",
  				path);
  		    }
  		    else {
! 			/* 2nd try to link */
! 			if (link(names[0], names[i]) < 0) {
  #if	defined(DONT_HAVE_SYMLINK)
  			    (void)fprintf(stderr, "crosspost cant link %s %s",
  				names[0], names[i]);

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