Failed filedownload

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/19/2014 3:45:31 AM
Gravatar
Total Posts 78

Failed filedownload

Hi,

We are running the following : 

Software : MojoPortal 2.4.0.0 MySQL
Operating System : Microsoft Windows NT 6.0.6002 Service Pack 2
ASP.NET : v4.0.30319 Running in Full Trust
Sharefiles : 1.0.0.0

We are using the shared files to upload and download our product. The files is usually about 30-150MB.

The problem is that almost all our customers gets "Failed - Network" when downloading file from SharedFiles add-in? If we place the file outside mojoPortal, like in a temp folder in the mojoPortal file structure it will however work almost always!? 

The host have ecreasted the memory that the site can use but it does not help? We have hade this problem for a long time and really need a fix on it.

When looking in the mojoPortal log there is no errors as far as I can see?

5/20/2014 1:34:17 PM
Gravatar
Total Posts 18444

Re: Failed filedownload

Hi,

The solution depends on the reason for the download failure. You may not always see errors in the mojoPortal log, the windows event viewer may show some things that don't get logged.

Are you seeing application start and end events logged during failed downloads? If so then it still could be a memory problem because the application pool will get recycled when memory limit is reached and if that happens during a download it will fail.

It could also be a request timeout, though that kind of error is more likely to be in the mojoportal log. By default the request timeoput would be 110 seconds but you could make it larger by putting this in user.config:

<add key="DownloadScriptTimeout" value="200"/>

Because shared files is designed to protect files by role it is not like a normal download. files are stored on disk using a .config extension so they cannot be requested directly by url. The user's permissions are checked and if allowed code opens a file stream to the file and writes that to the response stream which can mean the server needs to load the file into memory so memory limits can become a factor.

If the files do not really need to be protected it would be better to not use Shared Files and just link directly to files by url, ie upload files using the file manager or using the link browser toolbar item in the editor of html content instead.

Hope that helps,

Joe

 

1/8/2015 9:35:56 AM
Gravatar
Total Posts 78

Re: Failed filedownload

Hi,

We tried a new webhotel and it worked a lot better and faster! So we decided to move the entire site to this webhotel.

Now after a couple of mounths we have runned in to download problems again in some enviromnts. Is seems to have to do with the time, theay all stops after 2 min and it is not possible to resume.

I applied your suggestion :

<add key="DownloadScriptTimeout" value="2400"/> (40 min)

This solved the 2 min problem but now we get error just a couple of seconds before it is completed!? the file are about 70 MB and this is how the log looks like : 

task 
2015-01-06 20:22:20,731 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 
2015-01-06 23:00:06,329 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End 
2015-01-06 23:10:06,856 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - deserialized IndexWriterTask task 
2015-01-06 23:10:06,872 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - Queued IndexWriterTask on a new thread 
2015-01-07 05:04:53,751 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started. 
2015-01-07 05:04:54,063 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 
2015-01-07 05:04:54,063 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 
2015-01-07 06:31:20,717 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End 
2015-01-07 06:41:22,448 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - deserialized IndexWriterTask task 
2015-01-07 06:41:22,448 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - Queued IndexWriterTask on a new thread 
2015-01-07 06:51:54,717 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started. 
2015-01-07 06:51:54,998 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 
2015-01-07 06:51:54,998 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 
2015-01-07 09:03:52,496 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End 
2015-01-07 09:13:55,383 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - deserialized IndexWriterTask task 
2015-01-07 09:13:55,399 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - Queued IndexWriterTask on a new thread 
2015-01-07 09:59:42,140 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started. 
2015-01-07 09:59:42,483 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 
2015-01-07 09:59:42,499 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 
2015-01-07 13:06:53,026 INFO 193.180.9.6 - sv-SE - /kontakt.aspx - mojoPortal.Web.ContactUI.ContactForm - contact form submission received but not sending email because notification email address is not configured. 
2015-01-07 14:33:41,725 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End 
2015-01-07 14:39:01,890 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 
2015-01-07 14:39:01,921 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 
2015-01-07 14:59:23,921 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started. 
2015-01-07 14:59:24,124 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 
2015-01-07 14:59:24,139 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 
2015-01-07 15:09:41,776 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started. 
2015-01-07 15:09:42,416 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 
2015-01-07 15:09:42,431 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 
2015-01-07 18:00:17,150 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End 
2015-01-07 18:51:56,117 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End 
2015-01-07 19:01:53,628 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - deserialized IndexWriterTask task 
2015-01-07 19:01:53,644 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - Queued IndexWriterTask on a new thread 
2015-01-07 19:10:56,171 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started. 
2015-01-07 19:10:56,405 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 
2015-01-07 19:10:56,420 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 
2015-01-07 19:54:45,323 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - deserialized IndexWriterTask task 
2015-01-07 19:54:45,323 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - Queued IndexWriterTask on a new thread 
2015-01-07 22:20:52,887 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started. 
2015-01-07 22:20:53,074 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 
2015-01-07 22:20:53,090 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 
2015-01-08 00:22:15,640 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started. 
2015-01-08 00:22:15,812 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 
2015-01-08 00:22:15,828 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 
2015-01-08 00:52:37,224 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End 
2015-01-08 01:38:06,020 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started. 
2015-01-08 01:38:06,457 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 
2015-01-08 01:38:06,457 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 
2015-01-08 03:23:16,032 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End 
2015-01-08 03:50:55,485 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End 
2015-01-08 04:00:54,822 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - deserialized IndexWriterTask task 
2015-01-08 04:00:54,869 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - Queued IndexWriterTask on a new thread 
2015-01-08 04:33:20,239 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started. 
2015-01-08 04:33:20,520 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 
2015-01-08 04:33:20,535 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 
2015-01-08 07:01:54,602 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End 
2015-01-08 07:12:02,706 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - deserialized IndexWriterTask task 
2015-01-08 07:12:02,722 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - Queued IndexWriterTask on a new thread 
2015-01-08 07:12:17,827 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started. 
2015-01-08 07:12:18,201 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 
2015-01-08 07:12:18,201 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 
2015-01-08 12:47:06,369 ERROR (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - System.InvalidOperationException: Failed to map the path '/Data/Sites/1/index/'.
   at System.Web.Configuration.ProcessHostConfigUtils.MapPathActual(String siteName, VirtualPath path)
   at System.Web.Configuration.ProcessHostMapPath.MapPathCaching(String siteID, VirtualPath path)
   at System.Web.Configuration.ProcessHostMapPath.System.Web.Configuration.IConfigMapPath2.MapPath(String siteID, VirtualPath path)
   at System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull)
   at System.Web.Hosting.HostingEnvironment.MapPathInternal(VirtualPath virtualPath)
   at System.Web.Hosting.HostingEnvironment.MapPath(VirtualPath virtualPath)
   at mojoPortal.SearchIndex.IndexWriterTask.ProcessIndexingQueue() 
2015-01-08 12:47:08,663 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - started IndexWriterTask task 
2015-01-08 12:47:11,923 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End 
2015-01-08 12:47:42,750 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started. 
2015-01-08 12:47:43,421 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 
2015-01-08 12:47:43,436 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 
2015-01-08 12:57:08,562 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - deserialized IndexWriterTask task 
2015-01-08 12:57:08,562 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - Queued IndexWriterTask on a new thread 
2015-01-08 15:01:54,854 ERROR 81.22.162.228 - sv-SE - /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 - mojoPortal.Web.Global - 81.22.162.228 /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 Referrer(http://www.orbitsupport.se/produkter.aspx) useragent Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) 
System.Web.HttpException (0x80004005): Request timed out.
2015-01-08 15:06:40,000 ERROR 81.22.162.228 - sv-SE - /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 - mojoPortal.Web.Global - 81.22.162.228 /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 Referrer(http://www.orbitsupport.se/produkter.aspx) useragent Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) 
System.Web.HttpException (0x80004005): Request timed out.
2015-01-08 15:17:17,242 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End 
2015-01-08 15:27:20,583 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - deserialized IndexWriterTask task 
2015-01-08 15:27:20,599 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - Queued IndexWriterTask on a new thread 
2015-01-08 15:37:56,834 ERROR 81.22.162.228 - sv-SE - /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 - mojoPortal.Web.Global - 81.22.162.228 /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 Referrer(none) useragent Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) 
System.Web.HttpException (0x80004005): Request timed out.
2015-01-08 15:42:42,151 ERROR 81.22.162.228 - sv-SE - /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 - mojoPortal.Web.Global - 81.22.162.228 /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 Referrer(none) useragent Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) 
System.Web.HttpException (0x80004005): Request timed out.
2015-01-08 15:47:57,282 ERROR 81.22.162.228 - sv-SE - /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 - mojoPortal.Web.Global - 81.22.162.228 /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 Referrer(http://orbitsupport.se/produkter.aspx) useragent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 
System.Web.HttpException (0x80004005): Request timed out.
2015-01-08 16:01:44,545 ERROR 81.22.162.228 - sv-SE - /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 - mojoPortal.Web.Global - 81.22.162.228 /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 Referrer(http://orbitsupport.se/produkter.aspx) useragent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 
System.Web.HttpException (0x80004005): Request timed out.
2015-01-08 16:06:29,753 ERROR 81.22.162.228 - sv-SE - /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 - mojoPortal.Web.Global - 81.22.162.228 /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 Referrer(http://orbitsupport.se/produkter.aspx) useragent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 
System.Web.HttpException (0x80004005): Request timed out.
2015-01-08 16:08:59,596 ERROR 81.22.162.228 - sv-SE - /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 - mojoPortal.Web.Global - 81.22.162.228 /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 Referrer(http://orbitsupport.se/produkter.aspx) useragent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 
System.Web.HttpException (0x80004005): Request timed out.
2015-01-08 16:11:29,954 ERROR 81.22.162.228 - sv-SE - /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 - mojoPortal.Web.Global - 81.22.162.228 /SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1749 Referrer(http://orbitsupport.se/produkter.aspx) useragent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 
System.Web.HttpException (0x80004005): Request timed out.
2015-01-08 16:20:25,269 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End 
2015-01-08 16:20:33,366 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started. 
2015-01-08 16:20:33,569 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 
2015-01-08 16:20:33,584 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 

 

1/8/2015 9:36:51 AM
Gravatar
Total Posts 78

Re: Failed filedownload

The connection seems to be slow where we get the error and it downloads about 50-60 MB of a total of 70.

9/29/2015 4:06:25 AM
Gravatar
Total Posts 78

Re: Failed filedownload

Hi,

This is still a problem, we try to direct most file upload/download to FTP but 200 MB should be okay to upload and download to the website, this is however not working vary well.

There should not be more then a couple upload/download at the same time, often its only one. I know that we have hade this problem with MojoPortal from day 1 and we have tried diffrent hosts and diffrent versions but we still ends up with this limitation.

What information do you need to help us solve this problem?

 

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