Alpha Video Training
Results 1 to 14 of 14

Thread: Error 500 uploading large files via User Defined Upload

  1. #1
    Member lutherhuffman's Avatar
    Real Name
    Luther Huffman
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    22

    Default Error 500 uploading large files via User Defined Upload

    Uploading small files works perfectly, but uploading a 15M PDF generates a 500 Internal Server Error.

    Log file:

    ==========================================================
    Tue Feb 28 14:53:53 2012

    Thread: AppServerWorker3
    Line: 262 if ParsedMimeDoc.ParseBody(Body)
    An unhandled exception (e06d7363) was generated.
    Execution Stack:
    0#1 evaluate_shared_private(
    0#18 OOhttpdServerClientMIME(ptemp,"AppServerMain")
    0#428 if .not.self.ParseBody()
    0#262 if self.ParsedMimeDoc.ParseBody(self.Body)
    ==========================================================
    Tue Feb 28 14:53:53 2012

    Thread: AppServerWorker3
    Line: 428 if .not. ParseBody()
    command: if ParsedMimeDoc.ParseBody(Body)
    An unhandled exception (e06d7363) was generated.
    Execution Stack:
    0#1 evaluate_shared_private(
    0#18 OOhttpdServerClientMIME(ptemp,"AppServerMain")
    0#428 if .not.self.ParseBody()

    I do this with PHP (LAMP or IIS) all the time. I don't know where to start to look.

    Any help is appreciated.

  2. #2
    Moderator Peter.Greulich's Avatar
    Real Name
    Peter Greulich
    Join Date
    Apr 2000
    Location
    Boston, MA
    Posts
    11,637

    Default Re: Error 500 uploading large files via User Defined Upload

    Look in the upload settings. There is a default limit on the file size - 1mb? You can change it.

  3. #3
    Member lutherhuffman's Avatar
    Real Name
    Luther Huffman
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    22

    Default Re: Error 500 uploading large files via User Defined Upload

    I have it set to unlimited file size (set to zero). I previously had it set to 100M. Doesn't make any sense.

  4. #4
    Moderator Peter.Greulich's Avatar
    Real Name
    Peter Greulich
    Join Date
    Apr 2000
    Location
    Boston, MA
    Posts
    11,637

    Default Re: Error 500 uploading large files via User Defined Upload

    Try a 3mb file or a 5 mb file. work your way up the chain. Maybe it's a bug?

  5. #5
    Member lutherhuffman's Avatar
    Real Name
    Luther Huffman
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    22

    Default Re: Error 500 uploading large files via User Defined Upload

    I was able to get an 8M to upload, but a 10M failed. So somewhere inbetween.

  6. #6
    Moderator
    Real Name
    Alan Buchholz
    Join Date
    Oct 2000
    Location
    Delavan, Wisconsin
    Posts
    9,573

    Default Re: Error 500 uploading large files via User Defined Upload

    What is the elapsed time ( in seconds) from the start of the upload to the error ?

    you might need a stop watch.....
    Al Buchholz
    Bookwood Systems, LTD
    Weekly QReportBuilder Webinars Thursday 1 pm CST

    Occam's Razor - KISS
    Normalize till it hurts - De-normalize till it works.
    Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
    When we triage a problem it is much easier to read sample systems than to read a mind.

  7. #7
    Member lutherhuffman's Avatar
    Real Name
    Luther Huffman
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    22

    Default Re: Error 500 uploading large files via User Defined Upload

    Not perfectly scientific, but 1.2 secs. Definitely not enough time for the file to actually be uploaded to the server.

  8. #8
    Moderator
    Real Name
    Alan Buchholz
    Join Date
    Oct 2000
    Location
    Delavan, Wisconsin
    Posts
    9,573

    Default Re: Error 500 uploading large files via User Defined Upload

    Are all of the test files of the same type?

    IE you mentioned PDF.. Are the all PDF, or some text, zip....

    Size may not be the only criteria that matters..
    Al Buchholz
    Bookwood Systems, LTD
    Weekly QReportBuilder Webinars Thursday 1 pm CST

    Occam's Razor - KISS
    Normalize till it hurts - De-normalize till it works.
    Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
    When we triage a problem it is much easier to read sample systems than to read a mind.

  9. #9
    Member lutherhuffman's Avatar
    Real Name
    Luther Huffman
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    22

    Default Re: Error 500 uploading large files via User Defined Upload

    Always PDF. I have it restricted to PDF only.

  10. #10
    Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,827

    Default Re: Error 500 uploading large files via User Defined Upload

    I was working through the same problem. I finally changed a setting on the Alpha server config. I set the Request Body on the Performance tab from 60 to 480. I am not sure if 60 was the default, or I set it at some point. 60 means it will drop the connection at 60 seconds during an upload.
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  11. #11
    Member lutherhuffman's Avatar
    Real Name
    Luther Huffman
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    22

    Default Re: Error 500 uploading large files via User Defined Upload

    Thanks Steve! That was it. I just uploaded a 14.7M PDF. I owe you! I wasted too much time yesterday with this and almost turned IIS & my old VB.net code back on.

  12. #12
    Moderator Peter.Greulich's Avatar
    Real Name
    Peter Greulich
    Join Date
    Apr 2000
    Location
    Boston, MA
    Posts
    11,637

    Default Re: Error 500 uploading large files via User Defined Upload

    Well Steve, I'm sure glad you pointed this out. It's exactly the kind of thing that would drive anyone crazy. You're out 8 $Grand but we're the richer for it. I haven't had any client complaints yet that they couldn't upload a large file, but now I know what to do if they have a problem. Muchos gracias!

  13. #13
    Alpha Software Employee Lenny Forziati's Avatar
    Real Name
    Lenny Forziati
    Join Date
    Nov 2001
    Location
    Alpha Software
    Posts
    4,680

    Default Re: Error 500 uploading large files via User Defined Upload

    Quote Originally Posted by Steve Wood View Post
    In my review I found javascript that will fool the website in to thinking the connection is still live, it creates a communication between client and server every 100 seconds to "keep alive" the connection. I didn't test out this idea.
    Such a JavaScript would create a new Request every 100 seconds and keep a session from expiring, but it would not byp[ass the read timeout.

    Quote Originally Posted by Steve Wood View Post
    Also pretty sure if I install a client-side file upload utility that this will bypass the Request Body issue, but I have not tested.
    A client-side script of any type will have no nearing on this, unless it can magically make the file transfer go faster. The Application Server will not read a Request for more than the specified number of seconds, no matter what you do to try to bypass that. As you mentioned, this is a safeguard against a very common DoS attack. But it is very easy to adjust the timeout setting as needed (especially now that you know where it is ), so I don't know why anyone would bother trying any client-side code to address this.

    Lenny Forziati
    Vice President, Internet Products and Technical Services
    Alpha Software Corporation

  14. #14
    Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,827

    Default Re: Error 500 uploading large files via User Defined Upload

    Client-side upload utilities have the ability to do more at the client side, before the upload. Check file type, check file size, select more than one file in a check on/off fashion, resize and rotate images, etc.
    Last edited by Steve Wood; 02-29-2012 at 04:30 PM.
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

Similar Threads

  1. Server 500 error when downloading large files using http and directory browsing
    By billamidon in forum Application Server Version 11 - Web/Browser Applications
    Replies: 11
    Last Post: 07-09-2012, 06:43 PM
  2. Upgraded to Ver 10 and now my clients can't upload large files
    By marie3 in forum Application Server Version 10 - Web/Browser Applications
    Replies: 1
    Last Post: 01-23-2012, 12:05 PM
  3. File Upload - User Defined
    By qcorporation in forum Application Server Version 11 - Web/Browser Applications
    Replies: 2
    Last Post: 10-28-2011, 12:27 PM
  4. User Defined File Upload Feature - multiple files into grid.
    By spmat in forum Application Server Version 10 - Web/Browser Applications
    Replies: 1
    Last Post: 08-07-2011, 03:29 PM
  5. Uploading large files
    By Michael Crume in forum Web Application Server v7
    Replies: 2
    Last Post: 06-27-2006, 12:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •