SFTP log files

Status
Not open for further replies.

Peter Smith

Cadet
Joined
Apr 20, 2016
Messages
6
Freenas 9.3. I am very new to Freenas and although I have SFTP working backing up a remote Windows 2003 server to the Freenas box over the internet and am getting a few issues. I am use Cloudberry on the server which has SFTP. The process runs smoothly a lot of the time but about every other day the Cloudberry software reports "An established connection was aborted by the software in your host machine." and once this happens I get it for every file until the backup ends. I wanted to try to see if anything is reported at the Freenas end. I can see in the Advanced mode settings for SSH SFTP log level, but don't know what to set it to, and likewise SFTP Log facility. So i need somebody to advise me. Also, once the logs are generated, how do I read them. Thanks in advance,
 
D

dlavigne

Guest
Setting the log level to warning should be sufficient. You can read the log using more /var/log/messages (use your spacebar to scroll through the log).
 

Peter Smith

Cadet
Joined
Apr 20, 2016
Messages
6
Thank you for your response, SFTP Log Levels are Quiet, Fatal, Error, Info, Verbose, Debug, Debug2 and Debug3. "Warnings" is not an option. Also SFTP Log Facility has settings Daemon, User, Auth, Local0, Local1, Local2, Local3, Local4, Local5, Local6, and Local7
 

Peter Smith

Cadet
Joined
Apr 20, 2016
Messages
6
Ok, thank you I have made some progress. It looks like Freenas is saying the client failed to respond and is timing out and closing the connection. This happens after 10 seconds. Should I adjust this by say setting ClientAliveInterval=20 (I assume this is in seconds). Sorry, but I am very new to this, so please be patient.
 

Peter Smith

Cadet
Joined
Apr 20, 2016
Messages
6
Sorry for the delay but I have been trying things, and since it is being used as a backup it takes a long time! I am suspecting the Cloudberry SFTP client might be the problem rather than the Freenas box, and am messing about with the settings. I will report back....
 

Peter Smith

Cadet
Joined
Apr 20, 2016
Messages
6
OK, all resolved. There were 2 problems. A dodgy netcard on the freenas box and Cloudberry trying to run too many threads. Changing the netcard and reducing the number of threads that Cloudberry was using to 2 and everything is working well. Thank you for the help. Pointing me to the log files certainly helped me resolve it all.
 

Peter Smith

Cadet
Joined
Apr 20, 2016
Messages
6
Well it was nearly all resolved.. the Cloudberry software spent a long time searching its database sometimes and then I would get a timeout on the SFTP connection. But increasing to ClientAliveInterval=60 has fixed it.
 
Status
Not open for further replies.
Top