Author Topic: HFS freezes on upload.  (Read 1306 times)

0 Members and 1 Guest are viewing this topic.

Offline marribi

  • Occasional poster
  • *
  • Posts: 9
    • View Profile
HFS freezes on upload.
« on: October 05, 2017, 12:11:27 PM »
Hello to everyone!

I have strange bug, when someone upload big file to my HFS it becomes unstable while uploading.
Admin interface not responding, web interface cannot display page, but when upload finishes everything became back to normal again.
I tryed different operating systems, windows 7, 2008R2, 2016.
And different templates, standart, rywy, salaf.
Also 2 different hfs versions 2.3i and 2.3k.
But no luck.
Anyone got something like this ? any ideas what to do ?

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Re: HFS freezes on upload.
« Reply #1 on: October 08, 2017, 10:05:40 PM »
hi! is the browser uploading from your same LAN ?

Offline marribi

  • Occasional poster
  • *
  • Posts: 9
    • View Profile
Re: HFS freezes on upload.
« Reply #2 on: October 09, 2017, 06:47:57 AM »
hi! is the browser uploading from your same LAN ?

Hello rejetto !

No, user upload file from different LAN (WAN).
Connection is simple, user -> dns -> router firewall+nat -> vm windows with HFS
HFS have real folders (red folders) path is dfs unc path.
I also tryed with antivirus and without (on clean Server 2016 machine).
Different browsers ie/edge/google chrome.
I configured test HFS on my home lab server and it works normaly, just uploaded 1.5 gb file w/o freeze or lag.
May be on my main HFS server there some old configuration options that interrupt normal operation but how to find it.

Offline TekWiz

  • Occasional poster
  • *
  • Posts: 2
    • View Profile
Re: HFS freezes on upload.
« Reply #3 on: July 17, 2019, 07:30:44 PM »
I noticed the same thing today, I had the server running on a high-speed Xeon machine, 32 bit Windows 7, HFS 2.3m, and I was uploading a 7 GB single RAR file to it, from a remote computer, (over the internet) while the upload progressed at a decent pace (around 3 mB/s) the interface kept locking up and freezing and saying "not responding." It was annoying but it didn't really seem to affect the upload speed or continuity and the transfer was finished in 37 minutes...

Offline danny

  • Tireless poster
  • ****
  • Posts: 194
    • View Profile
    • Startfetch
Re: HFS freezes on upload.
« Reply #4 on: July 19, 2019, 11:37:25 PM »
I configured test HFS on my home lab server and it works normally, just uploaded 1.5 gb file w/o freeze or lag.
May be on my main HFS server there some old configuration options that interrupt normal operation but how to find it.
Lab server > hfs > menu > save options > to file
Main server > hfs > menu > save options > to file

After that, each has a copy of hfs.ini
Desired working settings are in lab server's hfs.ini
Desired user accounts line is in main server's hfs.ini

Locations of other settings include the hfs.events file, template and the HFS virtual file system. 

P.S.
Delete hfs limit 'speed limit' and delete hfs limit 'speed limit for single address' in favor of using router QOS instead.  If the router is clever, such as tomato, gargoyle, merlin or a general purpose linux box, then iptables --connlimit-mask drop, is available for defining/stretching server capacity, and the router firewall is a much more feasible location to accomplish functionality of that sort.  HFS is single threaded; so, perhaps it is good planning to focus hfs on sending/receiving files by relocating other functions to, anywhere else.
« Last Edit: July 19, 2019, 11:51:05 PM by danny »

Offline TekWiz

  • Occasional poster
  • *
  • Posts: 2
    • View Profile
Re: HFS freezes on upload.
« Reply #5 on: July 20, 2019, 12:05:22 AM »
Thanks for your reply Danny. So you mean it might be freezing due to a setting to limit the speed and it's not doing that very well. Anyway, I then tried to do a 44 GB DOWNLOAD instead. It was a bunch of files, with mostly a vmx virtual machine file (98% of the total size) in fact. So I used the Archive function to get the whole folder. While this huge upload seemed successful at first, the resulting tar file was of the right size but corrupt and unrepairable. So I compressed the folder and divided the file into 4 GB chunks using rar and downloaded 6 files all at the same time. It went faster since it saturated the connection better and everything was fine.

I guess it's better not to rely on the Archive function if a huge file is involved.

Offline danny

  • Tireless poster
  • ****
  • Posts: 194
    • View Profile
    • Startfetch
Re: HFS freezes on upload.
« Reply #6 on: July 24, 2019, 09:57:34 PM »
... tar file was of the right size but corrupt and unrepairable. ...I guess it's better not to rely on the Archive function if a huge file is involved.
Perhaps something like this:
<a href="link to archive thingy">{.if|{.%total-kbytes% <= 4000000 .}|Archive.}</a>
If the list is over 4gb,  the word  Archive  goes missing so you can't click on it.
If it were complex or script or something, quoting is needed, like this:
<a href="link to archive thingy">{.if|{.%total-kbytes% <= 4000000 .}|{:Archive:}.}</a>

Likewise, if the server were busy and uploads bombed it out, there's this: 
[Upload-Link]
{.if|{.%connections% < 37.}|<html stuff that defines the upload link>.}
{.if|{.%connections% < 37.}|{:<script stuff that defines the upload link>:}.}
The upload link appears only if there are less than 37 connections (the server isn't overly busy). 

Or, there's this: 
{.if|{.%connections% > 35 .}|{:{.load tpl|Throwback11basic.tpl.}:}.}
Right before the <!DOCTYPE HTML, and on the Same line.  When the server gets busy, a minified template reduces workload. 

Edit:  Actual examples can be found in my new template:  http://rejetto.com/forum/index.php?topic=12055.msg1064825#msg1064825
« Last Edit: August 05, 2019, 08:07:28 PM by danny »