Freezing upload?

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
2/4/2011 4:19:45 AM
Gravatar
Total Posts 65

Freezing upload?

Hey!

We have setup MojoPortal in a fulltrust environment and the upload have worked grate with over 5 GB of data but now, without any change the upload have stoped working.

When selecting a file and hit upload the status window will open up and show the progress but most of the time(9/10) the progress pile will disappear and the counter stops. If we leave it the status window will be closed but no file is uploded? Sometime the status windows shows but the progress do never start?

This has worked grate before and I can´t see that there have been any changes in the configuration for MojoPortal. There is still about 4GB left of storage.

In the SystemLog I can find :

2011-02-04 10:13:11,015 ERROR mojoPortal.Web.Global - 85.197.175.240-en-US - /NeatUpload/MultiRequestUploadHandler.ashx?NeatUpload_PostBackID=D935317B5A85A93C3B021F70F3DF038712968143934035&NeatUpload_MultiRequestControlID=ctl01%24mainContent%24ctl01%24multiFile&NeatUpload_ArmoredCookies=FBLb1qGXFjj4E7H7V3QOfCwHWGe6EHS%2B1H8S%2FZpDZmwR0w%2F9pqC3IWnR1vKGSjJ%2FJ8bSaa904FE3HpieTGxo1tTp7lxpOMLF4lNL2lAlFzmrAtAKbwTPGMRKKDKOJWwJcxGIPi0Ags%2FGne0nNiCLJ6FpGfqvUWvOaF7ET460CBA5T3IYxFuUOdwXU1KnTdOTjkfltL4YHTrUMl1JdNkkjgeKNxAcHVLD29xvC8RKU8zgu83H%2B19JUyKGGe0fg9VrmUvk7gKAZSPqNQp3%2Bj83AlFveQuWWSIHIpSOM4FPfUw4PlhiVEi45O2W2Zdaj2eIYi5AlXGxS9rF8F%2BjZMUCPTTl04%2FxK5WAH5bxZ23LIbbDO4kfTgYi8Iv6y%2F%2FtUyI1yG%2Fmn5zEiBNNF5sLUhyfXPlie76vtHlxfKWc2axowfQmHmGRjKlCeOfph7mV1cuZZVx6T5PoJdAPmFVTdsgedP0b8p2y%2FlRDKEm9qFwB4vC8JApIvNGTD%2Fz46HgVlVaq66jfx1S%2BFUnWib%2Bk9u4kOvRi7D6OJqVIrJBtAUdw0u4VJscFr0sQE0IJxLwoJLM9Uz%2F2%2F1bgsHNkANzqKMwacmVB74q85uReNIbH5NPX6i3sGZHjmSycpVr7Npkrf42%2BqJrpw%2FUqC4uRH%2BfSdRw3P84XBA7hmMexOadOh16uIaFy1HCS%2BurxPPOZd3dgq7IYgq8yqRO8
System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
   at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
   at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
   at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
   at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing)
   at System.IO.Stream.Close()
   at Brettle.Web.NeatUpload.ObjectProtector.Unprotect(String secureString, Byte[] encryptionKey, Byte[] unused, String encryptionAlgorithm, String validationAlgorithm, Deserializer deserializer, SignatureChecker sigChecker)
   at Brettle.Web.NeatUpload.ObjectProtector.Unprotect(String secureString, Byte[] encryptionKey, Byte[] validationKey, String encryptionAlgorithm, String validationAlgorithm)
   at Brettle.Web.NeatUpload.ObjectProtector.Unprotect(String secureString)
   at Brettle.Web.NeatUpload.UploadHttpModule.GetCookiesFromQueryString(String qs)
   at Brettle.Web.NeatUpload.UploadHttpModule.Application_BeginRequest(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

Any Idea?

BestRegards

Edit: I have tried diffrent filesizes (1MB - 200MB) and the bigger the file is the bigger the risk is of getting problem.

2/4/2011 12:08:09 PM
Gravatar
Total Posts 18439

Re: Freezing upload?

Sometimes in web hosting you may have free space but the free space is not allocated so it cannot be used and the effect is the same as running out of space. You may need to allocate the available space to the site, look around in your web control panel for a way to allocate the space.

I would recommend also clear the log, then sign out then clear your browser cookies then sign in again and see if the error appears immediately after trying to upload.

http://www.mojoportal.com/supporting-large-file-uploads.aspx

Hope it helps,

Joe

2/7/2011 4:03:37 AM
Gravatar
Total Posts 65

Re: Freezing upload?

Hi,

We have no tried the following :

  1. Restart IIS
  2. Restart MojoPortal
  3. Tried from both IE and FireFox
  4. Tried both files on 10 MB as well ass files on 50 MB
  5. Checked the disk space (also asked the host) and there is alot left to use.
  6. Information from the Host : Virtual Mem : 515 Mb, Private Mem 72 MB, Asp Timeout : 120 sec. This have also been significant increased to see that the problem is not this part.
  7. Tried a couple of other file upload controls on the same site with the same result
  8. The log do not state any problems with the upload, only time there is an exception about fileupload is when I reload the main MojoPortal browser window(in a middel of a fileupload) or when I cancel a upload.

This is the problem :

  1. Open page with fileshare control on
  2. Ad a file(10MB - 50 MB)
  3. Hit upload button
  4. A smaller window opens up and show the progress bar
  5. After random progress the progress bar disappear
  6. Wait around as long as the progress bar stated to be left in time (before the progressbar disappeared).
  7. The small windows states that the upload is done (even when there is no progressbar) and says that it took 00:00
  8. The main browser window with MojoPortal reload and then the upload dialog window closes.
  9. The fileshare control will be loaded in default path
  10. When browsing to the folder where we placed the file there is no file

This is done with an administrator user.

The procedure have worked grate over 5GB of data, but now it only success to upload around 1 of 20 files.

This is a really big problem for us, our customer is not able to download our new software, is there anyother way of uploading files to the shared file controls in the mean time?

BestRegards

 

2/7/2011 7:01:24 AM
Gravatar
Total Posts 65

Re: Freezing upload?

I have now also tested the following :

  • Upload file using the regular file windows (from admin menu to the left of the New Page), this resultet in the following exception in the log :

    2011-02-07 12:49:57,187 ERROR mojoPortal.Web.Global - 85.197.175.240-sv-SE - /Services/FileService.ashx?cmd=upload
    Brettle.Web.NeatUpload.NonfilePortionTooLargeException: Nonfile portion > 4194304 bytes
       at mojoPortal.Web.UrlRewriter.UrlRewriter_BeginRequest(Object sender, EventArgs e) in C:\MojoSource\mojoportal\Web\Components\UrlRewriter.cs:line 88
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
     
  • Upload the files to the same folder with ftp, this works fine but the problem is the files will be public and not just for the users so this is not a working walkaround for us.

Pleas Advice

2/7/2011 8:55:18 AM
Gravatar
Total Posts 65

Re: Freezing upload?

Hi again,

This is how the important settings about filesize is set :


system.web> httpRuntime@maxRequestLength is set to 2097151 kb (2047 MB)

<neatUpload useHttpModule="true" maxNormalRequestLength="4096" maxRequestLength="2097151" multiRequestUploadHandlerUrl="~/NeatUpload/MultiRequestUploadHandler.ashx" xmlns="http://www.brettle.com/neatupload/config/2008">
</neatUpload>

When running "appcmd list config 'Default Web Site/MySite'" on the host server this is the important part that returns :

<requestLimits maxAllowedContentLength="1073741824">

This means that the overrideModeDefault in applicationHost.config is set correctly to allow.

I really don´t see how I could solve this? And I do not understand how this can just stop working?

BestRegards

Edit : when the fileupload is "finished" the neatUplod window will state that its finished and that it has uploaded 24,9 in x Kb/s took 00:00. There is however now file shown in the filesharer control?

2/7/2011 10:22:05 AM
Gravatar
Total Posts 65

Re: Freezing upload?

We and our host have now invested 1 day of troubleshooting without getting anywhere with this.

The last change is to disable the Neat upload and use the regular, this woks fin with a file that is 37 MB but a file that is 75 MB will result in a "communication aborted" after a couple of minutes (the executionTimeout is set to 3600 (1 hour)) ?

2/7/2011 1:57:25 PM
Gravatar
Total Posts 18439

Re: Freezing upload?

Things I would check/try:

  • make sure that the permissions on the App_Data folder are still correct, that is where it will upload temporary files until the upload completes by default, but if it is not writable then it uses Windows\TEMP and this could be outside your allocated disk space and may have different limits
  • try increasing the setting for maxNormalRequestLength in the NeatUpload settings.

Understand that if you disable NeatUpload then those settings no longer apply and the settings from the <httpRuntime element are used instead as mentioned in the documentation.

If it was working for a while then this problem began to occur and no changes to the installation have been made then something has changed in server configuration. These settings can be controlled by machine.config and can override settings in Web.config, there could also have been a request filtering module enabled on the server and that may implement its own limits on requests separate from the normal settings.

Hope it helps,

Joe

 

2/7/2011 2:21:38 PM
Gravatar
Total Posts 83

Re: Freezing upload?

Thanks!

I will check the permissions

The maxNormalRequestLength have already been tested with the same result (not working)

I tested to switch the NeatUploader off just to see if I temporarily could use this to upload the critical files but even when setting the httpRuntime correctly it will not work with our 75MB files? And yes I do understand that NeatUploader´s settings is only for NeatUploader. Is there any other why to get this critical files up to the site (I have tried FTP but I need the files to be available only to members) ?

I am fully aware of that there is allot of factors that can generate this problem and thats why I have stated all tests that we have made. I can´t find anything more in the documentation to check for?

Is there a better log then the SystemLog?

BestRegards

2/7/2011 2:31:21 PM
Gravatar
Total Posts 18439

Re: Freezing upload?

It is a difficult problem with many potential factors but it seems surely a configuration issue of one kind or another. I've given you all the advice and ideas that I have. The most likely cause in my mind is some request filter is causing this, probably added as an extra layer of security on top of IIS standard settings.

http://learn.iis.net/page.aspx/143/use-request-filtering/

and

http://technet.microsoft.com/en-us/security/cc242650

are likely candidates

Best,

Joe

2/8/2011 2:08:44 AM
Gravatar
Total Posts 65

Re: Freezing upload?

Thanks!

If the host runnes the followin command :

C:\Windows\System32\inetsrv>appcmd list config "Default Web Site/Orbitsupport.se" -section:requestFiltering

Then the following will be printed :

<system.webServer>
  <security>
    <requestFiltering>
      <fileExtensions allowUnlisted="true" applyToWebDAV="true">
        <add fileExtension=".asa" allowed="false" />
        <add fileExtension=".asax" allowed="false" />
        <add fileExtension=".ascx" allowed="false" />
        <add fileExtension=".master" allowed="false" />
        <add fileExtension=".skin" allowed="false" />
        <add fileExtension=".browser" allowed="false" />
        <add fileExtension=".sitemap" allowed="false" />
        <add fileExtension=".config" allowed="false" />
        <add fileExtension=".cs" allowed="false" />
        <add fileExtension=".csproj" allowed="false" />
        <add fileExtension=".vb" allowed="false" />
        <add fileExtension=".vbproj" allowed="false" />
        <add fileExtension=".webinfo" allowed="false" />
        <add fileExtension=".licx" allowed="false" />
        <add fileExtension=".resx" allowed="false" />
        <add fileExtension=".resources" allowed="false" />
        <add fileExtension=".mdb" allowed="false" />
        <add fileExtension=".vjsproj" allowed="false" />
        <add fileExtension=".java" allowed="false" />
        <add fileExtension=".jsl" allowed="false" />
        <add fileExtension=".ldb" allowed="false" />
        <add fileExtension=".dsdgm" allowed="false" />
        <add fileExtension=".ssdgm" allowed="false" />
        <add fileExtension=".lsad" allowed="false" />
        <add fileExtension=".ssmap" allowed="false" />
        <add fileExtension=".cd" allowed="false" />
        <add fileExtension=".dsprototype" allowed="false" />
        <add fileExtension=".lsaprototype" allowed="false" />
        <add fileExtension=".sdm" allowed="false" />
        <add fileExtension=".sdmDocument" allowed="false" />
        <add fileExtension=".mdf" allowed="false" />
        <add fileExtension=".ldf" allowed="false" />
        <add fileExtension=".ad" allowed="false" />
        <add fileExtension=".dd" allowed="false" />
        <add fileExtension=".ldd" allowed="false" />
        <add fileExtension=".sd" allowed="false" />
        <add fileExtension=".adprototype" allowed="false" />
        <add fileExtension=".lddprototype" allowed="false" />
        <add fileExtension=".exclude" allowed="false" />
        <add fileExtension=".refresh" allowed="false" />
        <add fileExtension=".compiled" allowed="false" />
        <add fileExtension=".msgx" allowed="false" />
        <add fileExtension=".vsdisco" allowed="false" />
        <add fileExtension=".rules" allowed="false" />
      </fileExtensions>
      <requestLimits maxAllowedContentLength="1073741824">
        <headerLimits>
        </headerLimits>
      </requestLimits>
      <verbs allowUnlisted="true" applyToWebDAV="true">
      </verbs>
      <hiddenSegments applyToWebDAV="true">
        <add segment="web.config" />
        <add segment="bin" />
        <add segment="App_code" />
        <add segment="App_GlobalResources" />
        <add segment="App_LocalResources" />
        <add segment="App_WebReferences" />
        <add segment="App_Data" />
        <add segment="App_Browsers" />
      </hiddenSegments>
      <alwaysAllowedUrls>
      </alwaysAllowedUrls>
      <alwaysAllowedQueryStrings>
      </alwaysAllowedQueryStrings>
      <denyUrlSequences>
      </denyUrlSequences>
      <denyQueryStringSequences>
      </denyQueryStringSequences>
      <filteringRules>
      </filteringRules>
    </requestFiltering>
  </security>
</system.webServer>

Does this say you anything?

BestRegards

2/8/2011 8:07:09 AM
Gravatar
Total Posts 18439

Re: Freezing upload?

No, that does not give me any new ideas to help you, sorry.

2/10/2012 5:00:45 PM
Gravatar
Total Posts 355

Re: Freezing upload?

This isn't an isolated incident; I'm encountering the same problem with my client sites. No change to the site configuration, but between sometime last week and today, the NeatUpload no longer works. Things I have already checked and confirmed: full trust, proper permissions on App_Data and Data folders, ability to upload files via alternate method, proper version of .Net - any other ideas? This impacts one of my clients with a deadline, so my weekend just went to hell until a solution can be implemented.

2/10/2012 5:10:18 PM
Gravatar
Total Posts 18439

Re: Freezing upload?

You can always try disabling NeatUpload if you think it is the culprit. Basically comment out anything that references NeatUpload in Web.config. Then you're back to regualr asp.net uploading.

This is an isolated incident. This thread is from Feb 2011 and no other reports since then. I stand by my previous suggestions on this thread. Most likely cause is disk space allocation limit reached.

I'm on vacation from now till Feb 19, so I hope this helps as I won't be here to help further until I get back.

Hope that helps,

Joe

2/10/2012 6:12:40 PM
Gravatar
Total Posts 355

Re: Freezing upload?

One of the reasons I'm leveraging NeatUpload is that it allows for bulk file uploads. If I disable NeatUpload, it'll be limited to the single-file upload, won't it? That's a deal-breaker for this particular client - he's got several hundred photos to upload from his latest shoot, and he's been very happy using the bulk upload from NeatUpload.

Enjoy the vacation - I know you deserve it. 

2/11/2012 12:30:15 PM
Gravatar
Total Posts 2239

Re: Freezing upload?

Hi,

I have seen this from time to time but it has always been easily remedied by using a different browser or computer. Most recently I experienced it with FireFox but using Chrome on the same computer I was able to upload no problem. The issue on that particular machine with Firefox was fixed by reinstalling Firefox. Seems quirky but the system didn't have the issue after that.

HTH,
Joe D. 

2/11/2012 12:38:01 PM
Gravatar
Total Posts 65

Re: Freezing upload?

We did simple not hade time to deal with this so we reverted back to basic upload(one file at a time), this did however also have a limit on around 40 MB so we have to split our files. Not a good solution but I have invested alot of hours to solve this without any progress.

If I remember right this problem only exists on the webhost, if we run the application in local IIS it works fine.

2/11/2012 2:04:32 PM
Gravatar
Total Posts 355

Re: Freezing upload?

At the moment, the issue is occurring on my computer as well as my client's, in two separate locations, using IE, FF or Chrome. I leverage NeatUpload in a custom app to handle bulk uploading; it's not the file size that's so much the issue, as the fact that this app is designed to allow the user to upload dozens of files at a time. However, the issue is still occurring in the File Manager as well, or any other area that leverages NeatUpload.

What's bewildering is that this has worked without a hitch for over two years on the same host server; now, just this week, it no longer works. No error messages, nothing written to the log, just not working.

You must sign in to post in the forums. This thread is closed to new posts.