🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #15260

innd: SERVER cant symlink file1 and files2 File exists

#15260
From: Derek Terveer
Date: Sun, 23 Feb 1997 00:00
111 lines
4042 bytes
INN 1.5.1

hope this helps somebody out there...  it took me quite a while
to figure out what was going on.

i kept getting errors like these in my syslog and innd would quit:

Feb 16 10:42:23 hawkmoon innd: SERVER cant symlink \
/var/spool/news/rec/aquaria/misc/259 and \
rec/aquaria/freshwater/cichlids/342 File exists

the reason was because the renumber command was failing, but i didn't
notice because it was logging to my console window, not a file.  the
renumber command was failing because some of the fields in my active
file were too narrow for renumber to do an in-situ renumber of the
groups.  widening the responsible fields fixed the problem.  i wrote a
tiny little awk script to renumber the active file.  don't forget to
pause your server first or you'll corrupt your active file.  use it
like:

	widen-active-fields >/tmp/$$

inspect /tmp/$$ and, when satisfied, backup your active and

	cp /tmp/$$ ~news/active
	unpause or restart your server

derek

#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.1).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 1997-02-23 21:14 CST by <det@hawkmoon>.
# Source directory was `/export/home/hawkmoon.mn.org/det'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#    694 -rw-r--r-- widen-active-fields
#
touch -am 1231235999 $$.touch >/dev/null 2>&1
if test ! -f 1231235999 && test -f $$.touch; then
  shar_touch=touch
else
  shar_touch=:
  echo
  echo 'WARNING: not restoring timestamps.  Consider getting and'
  echo "installing GNU \`touch', distributed in GNU File Utilities..."
  echo
fi
rm -f 1231235999 $$.touch
#
# ============= widen-active-fields ==============
if test -f 'widen-active-fields' && test X"$1" != X"-c"; then
  echo 'x - skipping widen-active-fields (file already exists)'
else
  echo 'x - extracting widen-active-fields (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'widen-active-fields' &&
#!/bin/ksh
#$Id$ 0
X
raw_pname=$0
pname=$(basename $raw_pname)
USAGE="Usage: $pname [-Dh?v] [+v]"
SUN_ECHO=/usr/5bin/echo
if test -x $SUN_ECHO
X  then ECHO=$SUN_ECHO
X  else ECHO=echo; fi
PATH=$PATH:/usr/local/bin:/usr/local/BIN
X
set -- $(getopt "Dh?v" $*)
while true
X do
X   case $1 in
X     -D) set -x; shift;;
X     -v) version=$(grep '^#$Id' $0|cut -d" " -f2)
X	 echo $pname Version $version
X	 exit;;
X     +v) verbose=TRUE; shift;;
X     --) shift; break;;
X  -h|-?) $ECHO "$USAGE" >&2; exit;;
X   esac
X done
X
awk '{if (length($2)<10);
X      $2="00000"$2;
X      if (length($3)<10);$3="00000"$3;
X      i=length($2);
X      j=length($3);
X      print $1,substr($2,i-10),substr($3,j-10),$4}' ~news/active
SHAR_EOF
  $shar_touch -am 0223211497 'widen-active-fields' &&
  chmod 0644 'widen-active-fields' ||
  echo 'restore of widen-active-fields failed'
  shar_count="`wc -c < 'widen-active-fields'`"
  test 694 -eq "$shar_count" ||
    echo "widen-active-fields: original size 694, current size $shar_count"
fi
exit 0
-- 
Derek Terveer   Work:	derek.terveer@ci.stpaul.mn.us	+1 612 266 6092
MN, USA		Play:	derek.terveer@hawkmoon.mn.org	+1 612 683 0413
"Messy-DOS is like those 'temp' buildings behind
the high school that stay around for twenty years..."  -- me

Technical Details
Message-ID: <5er1io$6ri$1@hawkmoon.stpaul.gov>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <5er1io$6ri$1@hawkmoon.stpaul.gov>
Subject: innd: SERVER cant symlink file1 and files2 File exists
Date: Sun, 23 Feb 1997 00:00:00 +0000
From: det@hawkmoon.stpaul.gov (Derek Terveer)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 221173122
Organization: A poorly-installed InterNetNews site
Newsgroups: news.software.nntp