Page 1 of 1
CIFS stops working after arount 40min after boot
Posted: 15 May 2015 07:17
by g7i
Hi.
Hopefully I haven't missearched the forum, and my problem isn't quite known or depending on any misconfiguration of the server by me.
I have a strange problem. My NAS4Free-Server (SMB2) is regularly stopping work after around +-40min after reboot of the server.
After booting, I can log in to the server and access any file via CIFS and rsync normaly.
But it doesn't make any diffenerence if I am tranfering files or just let my server idle for >40min. After that time CIFS and rsync stop working.
But even then, I can normally access all files via the ftp-server.
I have no idea and would be pleased for any help.
Regards
Jan
Re: CIFS stops working after arount 40min after boot
Posted: 15 May 2015 07:54
by b0ssman
anything in the logs?
Re: CIFS stops working after arount 40min after boot
Posted: 16 May 2015 04:05
by g7i
Tonight, i look at my watch. I war openening directories via SMB on the server.
The error accrued at 44:28 min server-uptime. Maybe a few seconds earlier, but not <44:00 min. The log isn't long enough to show it.
Auf \\####\####\music kann nicht zugegriffen werden. Sie haben eventuell keine Berechtigung, diese Ntzwerkressource zu verwenden. Wenden Sie sich an den Administrator des Servers, um herauszufinden, ob Sie über Berechtigungen verfügen.
Ein an das System angeschlossenes Gerät funktioniert nicht."
It's a music directory, which I could access before and stream without any problems. Now I can't even list.
No problems via FileZilla (read/write/list).
I don't know when the log is going to be interessting for you. So I copied the hole bunch in here:
Re: CIFS stops working after arount 40min after boot
Posted: 16 May 2015 04:30
by daoyama
Hi,
g7i wrote:Code: Select all
May 16 03:45:32 ui-ge-server kernel: pid 15956 (smbd), uid 1001 inumber 8502 on /var: filesystem full
Your log shows /var is full. Do you have something on it ?
What size do you use for /var and /var/tmp ?
Which log level of SMB service?
Please write info of "Diagnostics|Information|Space Used" both before/after reboot.
Thanks,
Re: CIFS stops working after arount 40min after boot
Posted: 16 May 2015 05:10
by g7i
@ daoyama :
The SMB-loglevel was untouched at "minimum". I have now chanced it to debug.
I have no data on /var, nor does I have changed any file size of /var.
I found out, that the factor time doesn't really matter. The problem occures at 19min, 44min, 72min ...
Re: CIFS stops working after arount 40min after boot
Posted: 16 May 2015 09:12
by daoyama
Thanks,
It shows /var is -9.8M (used reserved 8%).
next time when stopped, please run "du /var" from Advanced|Execute command.
Re: CIFS stops working after arount 40min after boot
Posted: 16 May 2015 10:05
by g7i
clean one after reboot
After the CIFS-freeze, i get a massive file list via "du /var". In parts single files of a hole directory incl. subdirectory, then just a list a directories ... crazy. The numbers are bytes? One subdirectory alone gets 221864 bytes, the subdirectory of this another 218448 bytes and the file in this subsubdirectory another 204976. Some other maindirectories just get 8 bytes.
Does that makes sense?
Re: CIFS stops working after arount 40min after boot
Posted: 16 May 2015 11:21
by daoyama
g7i wrote:
After the CIFS-freeze, i get a massive file list via "vu /var". In parts single files of a hole directory incl. subdirectory, then just a list a directories ... crazy. The numbers are bytes? One subdirectory alone gets 221864 bytes, the subdirectory of this another 218448 bytes and the file in this subsubdirectory another 204976. Some other maindirectories just get 8 bytes.
Does that makes sense?
Where is increased?
Please write the result if possible.
It shows number of 1KiB. If you can see 8, it means 8KiB.
Re: CIFS stops working after arount 40min after boot
Posted: 16 May 2015 11:43
by g7i
# DELETED #
Re: CIFS stops working after arount 40min after boot
Posted: 16 May 2015 11:52
by daoyama
Thank you.
What file exist in /var/log/192.168.2.5/video????
Which service enable?
Did you install extension? if so, what extension?
Re: CIFS stops working after arount 40min after boot
Posted: 16 May 2015 12:25
by g7i
Extensions: none; just blanc nas4free 9.3.0.2 (revision 1480)
Services activated: CIFS + FTP (rsync disabled)
But I have to correct myself: these are all directuries and subdirecturies, and no files.
Re: CIFS stops working after arount 40min after boot
Posted: 16 May 2015 13:40
by daoyama
g7i wrote:Extensions: none; just blanc nas4free 9.3.0.2 (revision 1480)
Services activated: CIFS + FTP (rsync disabled)
But I have to correct myself: these are all directuries and subdirecturies, and no files.
Ok, do you know what process create /var/log/192.168.2.5?
Re: CIFS stops working after arount 40min after boot
Posted: 16 May 2015 14:40
by g7i
Under local, the destination is linked to A, and it is (surprisingly) enabled.
That is the only thing I can see, that might try to reach A.
I'll disable it.
Re: CIFS stops working after arount 40min after boot
Posted: 16 May 2015 15:36
by daoyama
g7i wrote:Under local, the destination is linked to A, and it is (surprisingly) enabled.
rsync local.jpg
That is the only thing I can see, that might try to reach A.
I think this is root cause.
20150516.png
I don't know a reason but it creates under /var/log.
Local rsync means from local path to local path. (no transfer to other server)
If you omit the dest directory, it create under /var/log/XXXX by some reason.
As a result, you get /var full.
Ok, I understand.
HOME=/var/log
is written in /var/etc/crontab.
Re: CIFS stops working after arount 40min after boot
Posted: 18 May 2015 04:04
by g7i
@ daoyama :
You're right. After more than 24h of server-uptime, I can say that it now works well.
Funnily the rsync-server & -client configuration was right and worked. I never realized, that the "local"-configuration was totally wrong.
So I shot me in my own foot.

Thank you for your help.
Jan