[ZendTo] Re: Progress bar resets to 100% after 1 hour

Julian Field Jules at ecs.soton.ac.uk
Fri Jun 8 12:29:15 BST 2012


On 07/06/2012 13:20, Nick Forbes (Incepta) wrote:
>
> Hi Jules,
>
> I've managed to get to the bottom of this.  This issue is caused by 
> the RFC1867 upload timeout in APC which is set to 3600s by default (I 
> used apc.php to check this).
>
> The fix is to add the following to your apc.ini 
> (/etc/php5/apache2/conf.d/apc.ini on Ubuntu):
>
> apc.rfc1867_ttl = 7200                    (or whatever the longest 
> upload time you expect is)
>
Ooh! Thanks for this. I've added it to the phpini.php page on the 
website too.
>
> To further complicate matters, it seems there was a bug in APC which 
> meant this variable was hardcoded to 3600 prior to 3.1.4 
> (https://bugs.php.net/bug.php?id=58738).
>
> With an up-to-date version of APC and after an apache restart the 
> progress bar works perfectly J
>
> Now all I have to do is migrate all our existing drop-offs to my new 
> server.
>
> Hopefully this will help anyone else who has this issue.
>
> Nick.
>
> *From:*zendto-bounces at zend.to [mailto:zendto-bounces at zend.to] *On 
> Behalf Of *Jules
> *Sent:* 01 June 2012 17:13
> *To:* ZendTo Users
> *Subject:* [ZendTo] Re: Progress bar resets to 100% after 1 hour
>
> Sorry, I've never had one take that long.
>
> Jules.
>
> On 01/06/2012 16:35, Nick Forbes (Incepta) wrote:
>
> Hi Jules,
>
> I've setup a new system (Ubuntu 12.04 LTS x64) and I'm afraid the 
> progress bar still resets to 100% after 1 hour. Do you have any 
> further suggestions?
>
> The only thing I can think of is to capture the entire HTTP session on 
> the client end and see if anything changes in the request/response at 
> the 1 hour mark?
>
> Is anyone else running this on Ubuntu LTS and able to test if they 
> also have the same issue?
>
> Many thanks,
>
> Nick.
>
> *From:*zendto-bounces at zend.to 
> <mailto:zendto-bounces at zend.to>[mailto:zendto-bounces at zend.to] *On 
> Behalf Of *Nick Forbes (Incepta)
> *Sent:* 31 May 2012 15:44
> *To:* ZendTo Users
> *Subject:* [ZendTo] Re: Progress bar resets to 100% after 1 hour
>
> OK -- I'll give the x64 version a go and let you know. Thanks!
>
> *From:*zendto-bounces at zend.to 
> <mailto:zendto-bounces at zend.to>[mailto:zendto-bounces at zend.to] 
> <mailto:[mailto:zendto-bounces at zend.to]>*On Behalf Of *Jules
> *Sent:* 31 May 2012 15:34
> *To:* ZendTo Users
> *Subject:* [ZendTo] Re: Progress bar resets to 100% after 1 hour
>
>
>
> On 31/05/2012 15:08, Nick Forbes (Incepta) wrote:
>
> Thanks for the swift response Jules.
>
> Apc.ini has the following entries in it only -- I think that's correct?
>
> apc.rfc1867 = On
>
> apc.max_file_size = 50G
>
> apc.slam_defense = Off
>
> I've checked every setting in preferences.ini and php.ini and I can 
> confirm none that are timeout or TTL related are set to anything less 
> than 7200.
>
> Nothing appears in the apache logs to indicate what is going on either L
>
> Bother. :-(
>
> Is there a way to enable more logging with the PHP progress code?
>
> Not without rebuilding PHP with all the debug lines enabled, sorry.
>
> Thanks,
>
> Nick.
>
> P.S. We'll be moving to x64 later in the year but for now a 2GB limit 
> is a good thing ;-)
>
> I would be tempted to briefly try a x64 build just in case that's part 
> or all of the problem...
>
> Jules.
>
>
> *From:*zendto-bounces at zend.to 
> <mailto:zendto-bounces at zend.to>[mailto:zendto-bounces at zend.to] *On 
> Behalf Of *Jules
> *Sent:* 31 May 2012 15:01
> *To:* ZendTo Users
> *Subject:* [ZendTo] Re: Progress bar resets to 100% after 1 hour
>
>
>
> On 31/05/2012 12:54, Nick Forbes (Incepta) wrote:
>
> Hi,
>
> We have been using ZendTo for a few months and just want to say what a 
> great project this is.
>
> Glad you like it!
>
>
> We have come across just one problem what I hope someone might be able 
> to help me with?
>
> Whenever we upload a large file that takes more than an hour, the 
> progress bar gets reset to 100% one hour after the upload starts. The 
> upload continues in the background and eventually the "drop-off 
> successful" page will appear.
>
> This happens with IE (x86 and x64), Firefox and Chrome (all on 
> Windows). We have tested it from multiple locations both on and off 
> our network.
>
> Our environment is Ubuntu 10.04.4 LTS (x86)
>
> Why only 32-bit? You'll limit yourself to maximum 2GB uploads.
>
>
> with Apache 2.2.14, PHP 5.3.2, APC 3.1.3. I have checked the timeouts 
> in php.ini and they are all set to 7200 seconds so I am puzzled as to 
> what could be causing the progress bar to stop working like this after 
> an hour?
>
> Have you checked apc.ini as well?
>
>
> Has anyone come across this before or suggest where I can try 
> investigating next?
>
> Exact timing problems like this are always caused by session time 
> limits. Also ensure any setting in preferences.php that has "TTL" in 
> its name is set to a large enough value and not 3600.
>
> Jules.
>
>
> Many thanks,
>
> Nick.
>
>
> _____________________________________________________________________
> VirusChecked for Huntsworth plc
> _____________________________________________________________________
>
>
>
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to  <mailto:ZendTo at zend.to>
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
>
>
>
>
> Jules
>   
> -- 
> Julian Field MEng CITP CEng
> www.Zend.To  <http://www.Zend.To>
>   
> Follow me at twitter.com/JulesFM
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>   
> 'It's okay to live without all the answers' - Charlie Eppes, 2011
> 'All programs have a desire to be useful' - Tron, 1982
> 'That is the land of lost content,
>   I see it shining plain,
>   The happy highways where I went,
>   And cannot come again.' - A.E. Houseman
>
>
> _____________________________________________________________________
> VirusChecked for Huntsworth plc
> _____________________________________________________________________
>
>
> _____________________________________________________________________
> VirusChecked for Huntsworth plc
> _____________________________________________________________________
>
>
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to  <mailto:ZendTo at zend.to>
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
>
> Jules
>   
> -- 
> Julian Field MEng CITP CEng
> www.Zend.To  <http://www.Zend.To>
>   
> Follow me at twitter.com/JulesFM
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>   
> 'It's okay to live without all the answers' - Charlie Eppes, 2011
> 'All programs have a desire to be useful' - Tron, 1982
> 'That is the land of lost content,
>   I see it shining plain,
>   The happy highways where I went,
>   And cannot come again.' - A.E. Houseman
>
>
> _____________________________________________________________________
> VirusChecked for Huntsworth plc
> _____________________________________________________________________
>
>
> _____________________________________________________________________
> VirusChecked for Huntsworth plc
> _____________________________________________________________________
>
> _____________________________________________________________________
> VirusChecked for Huntsworth plc
> _____________________________________________________________________
>
>
> _____________________________________________________________________
> VirusChecked for Huntsworth plc
> _____________________________________________________________________
>
>
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to  <mailto:ZendTo at zend.to>
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
>
>
>
> Jules
>   
> -- 
> Julian Field MEng CITP CEng
> www.Zend.To  <http://www.Zend.To>
>   
> Follow me at twitter.com/JulesFM
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>   
> 'It's okay to live without all the answers' - Charlie Eppes, 2011
> 'All programs have a desire to be useful' - Tron, 1982
> 'That is the land of lost content,
>   I see it shining plain,
>   The happy highways where I went,
>   And cannot come again.' - A.E. Houseman
>
>
> _____________________________________________________________________
> VirusChecked for Huntsworth plc
> _____________________________________________________________________
>
>
> _____________________________________________________________________
> VirusChecked for Huntsworth plc
> _____________________________________________________________________
>
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto

Jules

-- 
Julian Field MEng MBCS CITP CEng
email+iMessage: Jules at ecs.soton.ac.uk
Senior Tutor, Postmaster
Electronics and Computer Science
University of Southampton SO17 1BJ, UK

Follow me at twitter.com/JulesFM

'The paths we take sometimes lead us away from people we know and
love. But in the end what matters is that we affect the lives of
others for the better somehow, whomever we are, whatever our story.
Obsession always destroys what it intended to nurture: but if
you're able to let yourself love honestly and without fear, maybe
that huge heart you have will somehow set you free.' - Eve Lockhart

'That is the land of lost content,
  I see it shining plain,
  The happy highways where I went,
  And cannot come again.' - A.E. Houseman



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20120608/f60143c4/attachment-0001.html 


More information about the ZendTo mailing list