Where do I find a log file after a system crash?

Status
Not open for further replies.
M

Miguel Sequeira

Guest
Hello,

I'm using 8.0.1beta3, in a P4 32bit machine and having problems transferring files over the network, either with SMB or NFS, with crashes after about 70GiB continuous transfer. After rebooting I'm not sure where to find the log files to debug the error. Are there any debug flags I can set to enable extra information about the problem?

Thanks for any feedback.
Miguel.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
from the command line, look at /var/log/messages, or possibly some of the other log files in that directory /var/log. There's no guarantee that anything will get written to the log before the crash though.
 

pauldonovan

Explorer
Joined
May 31, 2011
Messages
76
The /var filesystem is created in memory so it won't be there after a reboot. I tried to get around this myself by linking /var/crash (which is where coredumps should get saved ) to a folder on one of my storage pools, but couldn't get it working.

It's nigh on impossible to track down what causes FreeNAS to crash other than by selectively changing and removing things to see if the crash goes away.
 
M

Miguel Sequeira

Guest
The only time I've seen some information is when I have the machine connected to a monitor. But even then if you're not there when it happens, it will either reboot or shutdown, so you loose the information anyway.

So what's the purpose of the option "Show tracebacks in case of fatal errors" that you can set in the Systems->Settings->Advanced page of the administration page? Where are those tracebacks?

-- Miguel.
 

deed02392

Dabbler
Joined
Oct 28, 2012
Messages
19
Bump this. Come on guys, this is elementary stuff. How can we get persistent logging?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Setup a syslog and you can have logs to look at.
 

fefele

Explorer
Joined
Dec 9, 2012
Messages
91
Re: Where do I found a log file after a system crash?

hello guys, I have the same problem. if I transfer many data-files over the network, after a few minutes freenas crashes. I have to turn off the system brutally! someone managed to record the log in a file? please answer me. Thank you.
 

kr4m17

Dabbler
Joined
May 3, 2013
Messages
14
Re: Where do I found a log file after a system crash?

hello guys, I have the same problem. if I transfer many data-files over the network, after a few minutes freenas crashes. I have to turn off the system brutally! someone managed to record the log in a file? please answer me. Thank you.

Sorry that I didn't see this sooner. I think this link will help you guys out... https://github.com/jag3773/FreeNAS-Change-Logging
 

babaroga

Explorer
Joined
Jul 22, 2012
Messages
50
Hi all, I have followed instructions from change logging script, and it does what it says on the tin. One issue though, since doing that, I am not receiving any emails from FreeNAS. Would running this script change anything to do with email alerts?

PS
I did look at the scripts and it does not change anything directly with alerts. Could that be some indirect feature change?
 
D

dlavigne

Guest
I haven't used the script, so can't comment about it. If mail is getting stuck, there should be a message to that affect in /var/log/maillog.

An alternative to using the script is to create a dataset named syslog and to reboot the system. Logs will now be saved to the dataset.
 

babaroga

Explorer
Joined
Jul 22, 2012
Messages
50
Hi, thanks for the response. I have checked and there is nothing in the maillog apart "log turned over" messages. What is not being emailed is "daily.log" and "security.log" as it used to do every morning at 3am. Still puzzled by that...
 

wreedps

Patron
Joined
Jul 22, 2015
Messages
225
Anyone ever figure out why it crashes? My 9.3 STABLE-201512121950 is doing something very similar. Hardware all checks out OK.
 

kamal juck

Dabbler
Joined
May 13, 2014
Messages
18
wreedps, I have the same issue about crashing when moving large amount of data to the server. I remember reading somewhere that its the ethernet chip on the motherboard and you need to install a card with a Intel chip. This seems like a long running issue, I think its a lot of BS, it should have been fixed by now.

I have a question, hope someone can answer quickly. How do I: Read OR Copy over the log files to my Mac so I can view them? I can log in via ssh, but don't have a clue what to do next. Is there a step-by-step tutorial out there?

thanks,
K - a Unix newbie

I can see the following on the freenas server, is this the SYSLOG that cyberjock mentioned?

Code:
/var/log#
3ware_raid_alarms.today      messages.3.bz2
3ware_raid_alarms.yesterday  messages.4.bz2
auth.log                     mount.today
auth.log.0.bz2               mount.yesterday
cron                         nginx-access.log
cron.0.bz2                   nginx-access.log.0.bz2
cron.1.bz2                   nginx-error.log
cron.2.bz2                   nginx-error.log.0.bz2
debug.log                    pbid.log
debug.log.0.bz2              pf.today
debug.log.1.bz2              ppp.log
dmesg.today                  proftpd/
dmesg.yesterday              samba4/
lpd-errs                     security
maillog                      sssd/
maillog.0.bz2                telemetry.json.bz2
maillog.1.bz2                ups.log
maillog.2.bz2                userlog
maillog.3.bz2                utx.lastlogin
maillog.4.bz2                utx.log
maillog.5.bz2                wtmp
maillog.6.bz2                wtmp.0
messages                     wtmp.1
messages.0.bz2               wtmp.2
messages.1.bz2               xferlog
messages.2.bz2              
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
That was not worth necroing an already zombified thread.
 
Status
Not open for further replies.
Top