🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Kevin Sawyer Mon, 09 Sep 1996 00:00
Expire pauses but never unpauses
#10764
Author: Kevin Sawyer
Date: Mon, 09 Sep 1996 00:00
9 lines
746 bytes
I'm running inn1.4unoff4.  The expiration process works wonderfully well
other than the fact the the server gets paused and is never told to "go"
again.  Where's the first place I should look?  Thanks in advance!

Kevin
sawyerk@apci.net

Re: Expire pauses but never unpauses
#10781
Author: Murray S. Kucherawy
Date: Tue, 10 Sep 1996 00:00
16 lines
1494 bytes
In article <5128ri$59s@queeg.apci.net>, Kevin Sawyer <sawyerk@apci.net> wrote:
>I'm running inn1.4unoff4.  The expiration process works wonderfully well
>other than the fact the the server gets paused and is never told to "go"
>again.  Where's the first place I should look?  Thanks in advance!

Your error logs.  If, for example, expire builds a new history file but fails
to replace the existing one, news.daily will leave the server paused.
There are probably lots of other things that could cause it too.
-- 
Murray S. Kucherawy ====================================== mskucher@hookup.net
Vice-President, Software Services             HookUp Communication Corporation
(905) 847-8000                NIC Handle "MSK"       Oakville, Ontario, CANADA
--                EMACS: Eight Megs And Constantly Swapping                 --

inn1.4u4 BUG (was Re: Expire pauses but never unpauses)
#10789
Author: Kevin Sawyer
Date: Wed, 11 Sep 1996 00:00
32 lines
1769 bytes
Kevin Sawyer (sawyerk@apci.net) wrote:
: A few days ago, I changed the location of my history files in INNs
: config.data file, recompiled and reinstalled.  For some reason, expire
: insists that they are still in ~news rather than in the new location.  So,
: it creates the updated history.n.* files in ~news and never moves them to
: the correct location.  This leaves the server paused until I do something
: about it.  Grrr...  Any ideas?  I guess I could look through the
: source...I've already combed the config.data file for other parameters which
: would matter (no luck there).

I'm back, and I looked through the source.  BUG!  Check out expire.c in the
inn1.4unoff4 distribution.  You'll find this:

  HistoryText = _PATH_HISTORY;
  HistoryPath = NULL;

I'm no rocket scientist, but I think it should be this:

  HistoryPath = _PATH_HISTORY;
  HistoryText = NULL;

Anyway, I made that modification, recompiled, ran news.daily, and VIOLA! 
Everything works just like it is supposed to!  (For now anyway...)

Please tell me if I just screwed myself.  ;-)

Kevin
sawyerk@apci.net


Re: Expire pauses but never unpauses
#10811
Author: Kevin Sawyer
Date: Wed, 11 Sep 1996 00:00
31 lines
2046 bytes
Murray S. Kucherawy (mskucher@vertex.tor.hookup.net) wrote:
: In article <5128ri$59s@queeg.apci.net>, Kevin Sawyer <sawyerk@apci.net> wrote:
: >I'm running inn1.4unoff4.  The expiration process works wonderfully well
: >other than the fact the the server gets paused and is never told to "go"
: >again.  Where's the first place I should look?  Thanks in advance!

: Your error logs.  If, for example, expire builds a new history file but fails
: to replace the existing one, news.daily will leave the server paused.
: There are probably lots of other things that could cause it too.

Thanks for your response.  The error logs showed nothing strange; however,
you were right about the history files problem.

A few days ago, I changed the location of my history files in INNs
config.data file, recompiled and reinstalled.  For some reason, expire
insists that they are still in ~news rather than in the new location.  So,
it creates the updated history.n.* files in ~news and never moves them to
the correct location.  This leaves the server paused until I do something
about it.  Grrr...  Any ideas?  I guess I could look through the
source...I've already combed the config.data file for other parameters which
would matter (no luck there).

By the way, is it safe for me to move the new history files into place
manually (making sure the ownership and permissions are correct, of course)?

Kevin
sawyerk@apci.net


Re: inn1.4u4 BUG (was Re: Expire pauses but never unpauses)
#11114
Author: James Brister
Date: Tue, 24 Sep 1996 00:00
110 lines
4103 bytes

sawyerk@apci.net (Kevin Sawyer) writes:

> I'm back, and I looked through the source.  BUG!  Check out expire.c in the
> inn1.4unoff4 distribution.  You'll find this:
> 
>   HistoryText = _PATH_HISTORY;
>   HistoryPath = NULL;
> 
> I'm no rocket scientist, but I think it should be this:
> 
>   HistoryPath = _PATH_HISTORY;
>   HistoryText = NULL;
> 
> Anyway, I made that modification, recompiled, ran news.daily, and VIOLA! 
> Everything works just like it is supposed to!  (For now anyway...)
> 
> Please tell me if I just screwed myself.  ;-)

I think you did... The (poorly named) variable HistoryPath really means the
directory the history file is in, not the path of the history file itself,
whereas _PATH_HISTORY *is* the path of the history file. I'm surprised it
doesn't core dump, unless you're passing in a '-h' and a '-d'
flag. Appended here is a patch that *should* work against unoff4's
expire.c.

James
-- 
James Brister                                            brister@vix.com
Internet Software Consortium                             inn@isc.org
---------------------------------------------------------------------------
*** expire.c	1996/07/08 20:35:33	1.20
--- expire.c	1996/07/09 15:25:19	1.21
***************
*** 70,76 ****
  STATIC BOOL		EXPsizing;
  STATIC BOOL		EXPtracing;
  STATIC BOOL		EXPusepost;
- STATIC char		EXPnewslib[] = _PATH_NEWSLIB;
  STATIC char		ACTIVE[] = _PATH_ACTIVE;
  STATIC char		SPOOL[] = _PATH_SPOOL;
  STATIC int		nGroups;
--- 70,75 ----
***************
*** 894,899 ****
--- 893,899 ----
      char		*NHistory;
      char		*NHistorydir;
      char		*NHistorypag;
+     char		*EXPhistdir;
      char		buff[SMBUF];
      register FILE	*out;
      BOOL		Server;
***************
*** 915,920 ****
--- 915,927 ----
      UnlinkFile = FALSE;
      (void)umask(NEWSUMASK);
  
+     /* find the default history file directory */
+     EXPhistdir = COPY(_PATH_HISTORY);
+     p = strrchr(EXPhistdir, '/');
+     if (p != NULL) {
+ 	*p = '\0';
+     }
+ 
      /* Parse JCL. */
      while ((i = getopt(ac, av, "f:h:d:g:ilnpqr:stv:w:xz:")) != EOF)
  	switch (i) {
***************
*** 1037,1044 ****
  	out = NULL;
      else {
  	/* Open new history files, relative to news lib. */
! 	if (chdir(EXPnewslib) < 0) {
! 	    (void)fprintf(stderr, CANTCD, EXPnewslib, strerror(errno));
  	    exit(1);
  	}
  	out = EXPfopen(TRUE, NHistory, "w");
--- 1044,1051 ----
  	out = NULL;
      else {
  	/* Open new history files, relative to news lib. */
! 	if (chdir(EXPhistdir) < 0) {
! 	    (void)fprintf(stderr, CANTCD, EXPhistdir, strerror(errno));
  	    exit(1);
  	}
  	out = EXPfopen(TRUE, NHistory, "w");
***************
*** 1140,1147 ****
  		(void)printf("Expire tracing: history files not updated.\n");
  	}
  	if (!Bad && !EXPtracing) {
! 	    if (chdir(EXPnewslib) < 0) {
! 		(void)fprintf(stderr, CANTCD, EXPnewslib, strerror(errno));
  		CleanupAndExit(Server, Paused, 1);
  	    }
  	    /* If user used the -d flag, mark we're done and exit. */
--- 1147,1154 ----
  		(void)printf("Expire tracing: history files not updated.\n");
  	}
  	if (!Bad && !EXPtracing) {
! 	    if (chdir(EXPhistdir) < 0) {
! 		(void)fprintf(stderr, CANTCD, EXPhistdir, strerror(errno));
  		CleanupAndExit(Server, Paused, 1);
  	    }
  	    /* If user used the -d flag, mark we're done and exit. */

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