Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
faxioman  
#1 Posted : Wednesday, August 31, 2011 6:29:24 AM(UTC)
faxioman

Rank: Newbie

Groups: Member
Joined: 8/10/2011(UTC)
Posts: 3

Hi.

I'm evaluating upload resuming feature using this javascript code:

Code:

var u = $au.uploader({
        id: 'Uploader1',
        width: '650px',
        height: '480px',
        licenseKey: '76FF4-004D0-0A7C4-C8D4C-8D1A3-8634DD',
	enableUploadProgress: true,
	folderProcessingMode: "Skip",
        converters: [
            { mode: '*.*=SourceFile' }
        ], 
        uploadSettings: {
		chunkSize: 1048576,
		filesPerPackage: 1,
		autoRecoveryMaxAttemptCount: 4,
		autoRecoveryTimeout: 5000,
		actionUrl: '/cgi-bin/upload.pl'
        },
	events: { afterUpload: afterUploadHandler,
                        error: errorHandler}
    });

Upload recovery seems working, but only with one recovery attempt. Stopping my apache web server, after 5 seconds aurigma stops the upload with an error. Restarting Apache in less than 5 seconds, the resume works correctly.

It is as if the value of autoRecoveryMaxAttemptCount was set == 1.

Am I missing something? Thanks

Dmitry.Obukhov  
#2 Posted : Wednesday, August 31, 2011 10:57:12 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Fabio,

AutoRecoveryMaxAttemptCount property will fire when one of these server-side errors occurs:

  1. 403 Forbidden

  2. 408 Request Timeout

  3. 503 Service Unavailable

  4. 504 Gateway Timeout

Probably, you tested another one. In this case, the property does not work.

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

faxioman  
#3 Posted : Wednesday, August 31, 2011 11:36:20 PM(UTC)
faxioman

Rank: Newbie

Groups: Member
Joined: 8/10/2011(UTC)
Posts: 3

Hi Dmitry.

What I'm doing is to stop apache, so I think this is the first of these situations (from aurigma documentation):

Quote:

Image Uploader will try to recover upload in the following situations only:

- Image Uploader is unable to access to server upload script by URL specified in the actionUrl property.

- 403 Forbidden HTTP response code is received.

- 408 Request Timeout HTTP response code is received.

- 503 Service Unavailable HTTP response code is received.

- 504 Gateway Timeout HTTP response code is received.

Fabio

Dmitry.Obukhov  
#4 Posted : Wednesday, August 31, 2011 11:50:29 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
My results of testing with Fiddler: I uploaded my files, and stopped Apache during the uploading process. I got error with response status code 502. This case is out of the error list documentation provided.
Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

faxioman  
#5 Posted : Thursday, September 1, 2011 12:14:20 AM(UTC)
faxioman

Rank: Newbie

Groups: Member
Joined: 8/10/2011(UTC)
Posts: 3

HTTP 502 is bad gateway...a stopped apache web server (without a gateway in the middle) cannot send any HTTP error.

Anyway, at production stage I have a server with apache as front-end: when the apache back-end server is down, I get a 503 http error.

So, Aurigma sholud works correctly. I'll try to confirm this.

Fabio

Dmitry.Obukhov  
#6 Posted : Thursday, September 1, 2011 12:22:46 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Please put this error event to your page with Image Uploader:

Code:

function errorHandler (errorCode, httpResponseCode, errorPage, additionalInfo){
  alert ("Error code: " + errorCode + "Response code: " + httpResponseCode + "Info: " +  additionalInfo);
}

Then replicate the problem, and let me know which information you will get in the alert. I am interested for errorCode and httpResponseCode values.

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

Dmitry.Obukhov  
#7 Posted : Thursday, September 1, 2011 12:37:01 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
In additional: I restart server (I stopped it previously) in the uploading process. I got responce code 504 and "Wating to reconnect" message. After server restarting, uploading my files was continued. The time of restarting is less than reconnect time, and AutoRecoveryMaxAttemptCount fires one time only. This behavior is correct.
Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.