xdm-errors keeps filling filling up!

xdm-errors keeps filling filling up!

Post by Evan Care » Tue, 14 Oct 1997 04:00:00



Hi LINUX.X gurus,

My xdm-errors file is filling up with the same line over and over.  It
will eventually fill my / file system.  If I delete  it xdm will die (I
believe because xdm then will have a stale file descriptor).  After a
reboot things will work fine until the next time.

The repeating line is:

xdm-errors:xdm error (pid 82): Cannot convert Internet address
206.3.249.48 to host name

pid 82 is xdm

206.3.249.48 is not in my /etc/hosts file or any other config file I've
looked at so far.  We do have a machine on my LAN with that address
though.

I'm gonna try putting an entry in my /etc/hosts file for that machine
but If that works (i.e. keeps xdm from freeking out) why should I have
to do that?

...

Well its been 5 minutes or so and xdm-errors seems to of stopped
growing.

Were do I look to find out the origin of this error?

Also, how does one do maintainence (i.e. remove/truncate) on log files
like xdm-errors without killing xdm?  Or is that just life?

Puzzled,
--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

 Camber Corporation                  voice: (972) 991-5322 x145
 4885 Alpha Rd. Suite 110            fax: (972) 991-5352
 Dallas, TX  75244                   www: http://www.camber.com
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

 
 
 

xdm-errors keeps filling filling up!

Post by Neil Ricke » Tue, 14 Oct 1997 04:00:00



Quote:>Also, how does one do maintainence (i.e. remove/truncate) on log files
>like xdm-errors without killing xdm?  Or is that just life?

Usually, you can:  cp /dev/null file

I don't know whether this will work for xdm-errors.

 
 
 

xdm-errors keeps filling filling up!

Post by Roger D. Towe » Tue, 14 Oct 1997 04:00:00



Quote:>Hi LINUX.X gurus,

>My xdm-errors file is filling up with the same line over and over.  It
>will eventually fill my / file system.  If I delete  it xdm will die (I
>believe because xdm then will have a stale file descriptor).  After a
>reboot things will work fine until the next time.

>The repeating line is:

>xdm-errors:xdm error (pid 82): Cannot convert Internet address
>206.3.249.48 to host name

I'm attaching a copy of a shell script that I found somewhere (sorry, I
don't know who the author is), of a file called `logroll'. I run it from
cron to truncate my log files, and it seems to work pretty well. Just put
an entry into the root crontab such as:

30 15 * * * /sbin/logroll /var/log/debug

(or whatever log file(s) you need to truncate)

Hope this helps
...Roger
----------------------------cut here-----------------------------------

#!/bin/sh
#
# usage: logroll [ -d <save directory> ] [ -s <size> ] <logfile>

# where to save old log files
SAVE_DIR=/var/log/roll

# how large should we allow files to grow before rolling them
SIZE=256k

while :
do
        case $1 in
        -d)
                SAVE_DIR=$2
                shift; shift;;

        -s)
                SIZE=$2
                shift;shift;;
        -h|-?)
                echo  "usage: logroll [ -d <save directory> ] [ -s <size> ] <logfile>"
                exit;;

        *)
                break;;
        esac
done

if [ $# -ne 1 ]
then
        echo  "usage: logroll [ -d <save directory> ] [ -s <size> ] <logfile>"
        exit 1
fi

if [ -z `find $1 -size +$SIZE -print` ]
then
        exit 0
fi

file=`basename $1`
if [ -f $SAVE_DIR/$file.gz ]
then
        /bin/mv $SAVE_DIR/$file.gz $SAVE_DIR/$file.old.gz
fi

/bin/mv $1 $SAVE_DIR/$file
/bin/gzip -f $SAVE_DIR/$file
# this last command assumes the PID of syslogd is stored like RedHat
# if this is not the case, "killall -HUP syslogd" should work
/bin/kill -HUP `cat /var/run/syslog.pid`

--

      Roger Towers           | Ignorance can be enlightened
                             | But Prejudice will destroy you  

 
 
 

xdm-errors keeps filling filling up!

Post by Mark Smit » Thu, 16 Oct 1997 04:00:00




> >Also, how does one do maintainence (i.e. remove/truncate) on log files
> >like xdm-errors without killing xdm?  Or is that just life?

> Usually, you can:  cp /dev/null file

> I don't know whether this will work for xdm-errors.

Another trick,

ln -s /dev/null xdm-errors

Works well on my .xsession-errors file !

 
 
 

1. Why does my CERN cache keep filling up?

Hi,
   I am running a CERN server on AIX 3.2.5.  It is the campus
proxy/cache.  I have my cache size set at 70M and it just keeps
growing!  It filled the file system a few times so I created a
new one for it.  It now has a 150M filesystem all to itself and
it keeps at 100% full!!  It all seems to be running OK, but it
worries me.

I tried tweaking the Gc options like memory usage and it seemed
to be fixed for a while, but it's full again.

Anyone seen this?

Any suggestions?

Thanks,
--
---

 Computing Systems Officer.  University of Western Sydney, Macarthur

2. How do I get MS InPort mouse to work with SLS X11?

3. Can some one help; memory keeps filling up

4. Problems with Aic 7xxx

5. /var keeps filling up

6. Newbie Questions about starting Linux.

7. Ram keeps filling up?

8. colors with ncurses.h

9. My drive gets filled because of strange error msgs in error.log

10. Boot error: can't fill buffer

11. Help! Error filling up my syslog!

12. fill error

13. help -- syslog filling up with netbios error messages