TurnKey Linux Virtual Appliance Library

turnkey randomly dies

im using turnkey torrentserver as a torrentserver on an old machine

but i run into the problem that it isnt accesible after a day or two running, it answers pings but i dont get onto any web interface

is there a way to do a complete systemcheck or something to see why this porblem occurs?

thanks for the help

adrian

Jeremy's picture

Is it just the webservices dying?

Can you still connect via SSH/SFTP? If so you can have a look at the syslog, you should be able to check out the webserver logs. All the logs should be found in /var/log. I don't recall what web server the torrent server appliance uses but it should be either Apache or LigHTTPd and the log files should be named accordingly.

well when i last tested ssh

well when i last tested ssh didnt work

and i dont find like an errorlog or something and the syslog is like long as hell


Jeremy's picture

Use tail

Use tail to get the last lines of a log file. By default it will give you the last 10 lines but it can be used with the -n switch, which will give you the last 'n' lines of a file eg 'tail -15 /some/file' will give you the last 15 lines.

Otherwise if you are losing all connectivity that's not very good! Do you (or can you) have a monitor and keyboard connected to it? If so then you can actually try to see what is going on with it after it loses connectivity.

Being old hardware it is possible that it is actually locking up (hardware issues?)

well monitor might get a

well monitor might get a little hard due to its position

i got this machine 2 hand and i dont actually know what happened to it

is tehre a way to run a hardware check or something where it does like memtest and stuff

it usually dies after about 1-3 days running so its hard to find out when

i looked at the logs of webmin and didnt get anything usable

i personnaly tipe on the hardware

is there a way to run the main system intirely from the ram?


could it be because it is

could it be because it is running of an external harddrive?


Jeremy's picture

Maybe...?

But unless you do some diagnositics you will be only guessing...

In theory it shouldn't be an issue to run it from an external drive (I have had Linux running for extended periods from a USB stick fine), but perhaps if the connection is not 100% or the external drive powers down or something like that!?

Also in response to your previous question: You can run memtest from a liveCD/USB (many distros include it as a boot option when running live although I don't think TKL does) but really you'll need a monitor connected to it...

Even with it working, there may be some telltale signs of the problem in dmesg and /var/log/messages (as well as the syslog and other logs in /var/log).

[update] Googling I came across Inquisitor (http://en.wikipedia.org/wiki/Inquisitor_(hardware_testing_software) or http://www.inquisitor.ru/about/) - an interesting looking Linux distro designed for hardware testing. It still looks like you may need a screen but could be worth further investigation...

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)