Page 1 of 1

Help with locking up Xbox!

Posted: Wed Dec 28, 2005 5:10 pm
by cheesyboofs
I wonder if any of you can help?
Every so often one of my Gentoox boxes locks up. The light on the front goes red, apache stops responding and so does Samba and I can’t SSH into it although the Xbox will still respond to a ping. It also send out these e-mails till I can get home to reboot it;

Code: Select all

cat: /tmp/loadled2: No such file or directory
(standard_in) 1: parse error
cat: /tmp/loadled2: No such file or directory

Code: Select all

cat: /tmp/loadled2: No such file or directory

Code: Select all

(standard_in) 1: parse error
/bin/loadmonitor: line 122: [: -gt: unary operator expected
I have checked the messages file and logs but can not see why it is happening, has anyone seen this before?

Posted: Thu Dec 29, 2005 3:33 am
by orochi

Code: Select all

head /bin/loadmonitor
#!/bin/bash
###
#  Load indicating LED, temperature/ fan control and emergency shutdown script
#  Copyright (C) Thomas "ShALLaX" Pedley (gentoox@shallax.com)
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
oddly enough the problem your having is in the tail end of the script

Code: Select all

tail /bin/loadmonitor
            led $highled
         elif [ `cat /tmp/loadled` -lt $highload ] && [ `cat /tmp/loadled` -gt $lowload ]; then
            led $midled
         elif [ `cat /tmp/loadled` -lt $lowload ]; then
            led $lowled
         fi
      fi
   fi
rm -rf /tmp/loadled*
fi
perhaps your system is overheating causing /bin/loadmonitor to run and instead crash because a file was not found (/tmp/loadled2)

tho its not much help but its a start

Posted: Thu Dec 29, 2005 11:31 am
by cheesyboofs
I think you’re right, I think something is crashing and going %100 CPU bound then as a by product loadmonitor is failing to shut the Xbox down when the CPU warms up.
I think I’m gunna have to trawl through the logs some more, it must be there…