🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Cs. Mon, 12 May 1997 00:00
symlink/crosspost errors
#17718
Author: Cs.
Date: Mon, 12 May 1997 00:00
17 lines
823 bytes
I am getting the following type errors daily (2+megs worth of log file!!)

crosspost cant symlink 
/var/news/spool/articles/alt/binaries/pictures/lesbians/13327 
alt/binaries/pictures/girlfriends/26071 : File exists

overchan cant open news/newusers/questions/.overview, Permission denied

Ideas?
Thanks
Carl

ps. email me please :)


Re: symlink/crosspost errors
#17709
Author: Scott Sanbeg
Date: Mon, 12 May 1997 00:00
27 lines
1495 bytes
Cs. wrote:
> 
> I am getting the following type errors daily (2+megs worth of log file!!)
> 
> crosspost cant symlink
> /var/news/spool/articles/alt/binaries/pictures/lesbians/13327
> alt/binaries/pictures/girlfriends/26071 : File exists
> 
> overchan cant open news/newusers/questions/.overview, Permission denied

Hello Carl,
Use the -L flag to innd (see the man page).  The flag causes innd
to stop creating the links.  Without it innd will create them and
then 'crosspost' will report the errors when it trys to create
them.

Posted and emailed.
Scott
-- 
Scott Sanbeg                       INTERNET: ssanbeg@interglobe.com
InterGlobe Networks, Inc.          OFFICE: 206.623.2222
1520 Fourth Avenue, Suite 200      FAX: 206.623.0885
Seattle, WA  98101                 INFO: info@interglobe.com
This is my opinion and mine alone. URL: http://www.interglobe.com

Re: symlink/crosspost errors
#17712
Author: Frank Durda IV
Date: Mon, 12 May 1997 00:00
86 lines
3642 bytes
Cs. wrote:
> 
> I am getting the following type errors daily (2+megs worth of log file!!)
> 
> crosspost cant symlink
> /var/news/spool/articles/alt/binaries/pictures/lesbians/13327
> alt/binaries/pictures/girlfriends/26071 : File exists


We got tired of this (particularly after we discovered a security hole
in innd that lets someone make innd silently exit and leaves you with
dozens of these things each time you restart innd).  So we now use:


diff -c art.c00 art.c 
*** art.c00     Mon Mar 04 10:21:48 1996
--- art.c       Fri Apr 25 21:24:13 1997
***************
*** 2,7 ****
--- 2,14 ----
  **
  **  Article-processing.
  */
+ /*
+ <8>   If symlink attempt fails, try deleting destination first.
+       25-Apr-97  Frank Durda IV	uhclem%nemesis.lonestar.org
+ */
+ 
+ #define EDIT8
+ 
  #include "innd.h"
  #include "dbz.h"
  #include <sys/uio.h>
***************
*** 2042,2047 ****
--- 2049,2066 ----
  #else
                /* Try to make a symbolic link to the full pathname. */
                FileGlue(buff, SPOOL, '/', Data.Name);
+ #ifdef EDIT8
+               if (symlink(buff, linkname) < 0) {
+                   if (unlink(linkname) || symlink(buff,linkname)) /*<8>Try nuking*/
+                       if ((!MakeSpoolDirectory(ngp->Dir)
+                           || symlink(buff, linkname) < 0)) {
+                               IOError("symlinking article");
+                               syslog(L_ERROR, "%s cant symlink %s and %s %m",
+                                      LogName, buff, linkname);
+                               continue;
+                       }
+               }
+ #else /*EDIT8*/
                if (symlink(buff, linkname) < 0
                 && (!MakeSpoolDirectory(ngp->Dir)
                  || symlink(buff, linkname) < 0)) {
***************
*** 2050,2055 ****
--- 2069,2075 ----
                        LogName, buff, linkname);
                    continue;
                }
+ #endif /*EDIT8*/
  #endif        /* defined(DONT_HAVE_SYMLINK) */
            }
            *p++ = ' ';


If the symlink fails, the first thing it tries is to delete anything
that might be there already.  If that plus symlink fails, then try
making the directory then try symlink as before.  

Yes, you can lose a couple of articles when this happens, but you lose fewer
articles with this than if your system throttles for a couple of hours because
of the "destination already exists - throttling" error and your feeds start
tossing the backlog.   The patch is for 1.4unoff4, but probably fits in
1.5.x OK.



Frank Durda IV <uhclem%nemesis.lonestar.org>|"The Knights who say "LETNi"
or uhclem%nemesis%rwsystr.nkn.net           | demand...  A SEGMENT REGISTER!!!"
   (Annoy a spammer - use % instead of @)   |"A what?"
or ...letni!rwsys!nemesis!uhclem            |"LETNi! LETNi! LETNi!"  - 1983
(c) 1997, ask before reprinting.

Re: symlink/crosspost errors
#17716
Author: Fred Condo
Date: Mon, 12 May 1997 00:00
32 lines
1715 bytes
In article <5l6pu5$b35$1@ns2.csiway.com>, carl@csiway.com (Cs.) wrote:

> I am getting the following type errors daily (2+megs worth of log file!!)
> 
> crosspost cant symlink 
> /var/news/spool/articles/alt/binaries/pictures/lesbians/13327 
> alt/binaries/pictures/girlfriends/26071 : File exists
> 
> overchan cant open news/newusers/questions/.overview, Permission denied
> 
> Ideas?
> Thanks
> Carl
> 
> ps. email me please :)

Check the ownership of news/newusers/questions. It should be owned by the
news user.

You may need to do a ctlinnd renumber to fix the symlink problem. Also,
when you use crosspost, I think you need to start innd with the -L option
(or whichever one it is that tells it not to create the links itself. Or
don't use the crosspost feed. I don't use it and have good results letting
innd do the crossposting itself.
-- 
http://www.lightside.net/~fred/ + net access + http://www.lightside.net/
"Attempts to control the use of encryption technology are wrong in
principle, unworkable in practice, and damaging to the long term economic
value of the information networks." - UK Labour Party

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