java.net.SocketException: Connection reset (while reading server response)

796 views
Skip to first unread message

philippe

unread,
Aug 23, 2010, 2:28:44 PM8/23/10
to ResourceSpace
Hello,

I'm using ResourceSpace 3.2 on a Windows XP SP3, Apache 2.215, PHP
5.2.13 and MySQL 5.0.16. When I try to upload big files (1GO) with
JUpload I get that errors:

java.net.SocketException: Connection reset (while reading server
response)
http://www.telecine.ca/socketerror.jpg
http://www.telecine.ca/socketerrorlong.jpg In debug mode.

There's no error in the Apache log and the file is uploaded but if I
batch upload files, it will stop at the file where a had the "socket
error".

This is the debug log from JUpload

Linking with no link title
http://www.telecine.ca/JUploadDebug.txt

What is causing this error?

Thanks!

Philippe

Jeff Harmon

unread,
Aug 23, 2010, 5:30:21 PM8/23/10
to ResourceSpace
Is your php.ini set to handle large files? Do you have chunking
turned on (see config)?

This may be a question better suited for the JUpload development team,
depending on your answers to the above.

- Jeff Harmon
Colorhythm LLC

On Aug 23, 11:28 am, philippe <philippebo...@hotmail.com> wrote:
> Hello,
>
> I'm using ResourceSpace 3.2 on a Windows XP SP3, Apache 2.215, PHP
> 5.2.13 and MySQL 5.0.16.  When I try to upload big files (1GO) with
> JUpload I get that errors:
>
> java.net.SocketException: Connection reset (while reading server
> response)http://www.telecine.ca/socketerror.jpghttp://www.telecine.ca/socketerrorlong.jpgIn debug mode.
>
> There's no error in the Apache log and the file is uploaded but if I
> batch upload files, it will stop at the file where a had the "socket
> error".
>
> This is the debug log from JUpload
>
> Linking with no link titlehttp://www.telecine.ca/JUploadDebug.txt

Travis

unread,
Aug 23, 2010, 6:09:53 PM8/23/10
to ResourceSpace
I experienced the same issue today on a .AVI about 1.5GB in size at
about 50% Java upload completion. PHP sizes were all set to 2G and the
chunk size is enabled and left to default.

Not to hijack your thread I'm interested to know how this plays out.

On Aug 23, 5:30 pm, Jeff Harmon <jeffreyhhar...@gmail.com> wrote:
> Is your php.ini set to handle large files?  Do you have chunking
> turned on (see config)?
>
> This may be a question better suited for the JUpload development team,
> depending on your answers to the above.
>
> - Jeff Harmon
> Colorhythm LLC
>
> On Aug 23, 11:28 am, philippe <philippebo...@hotmail.com> wrote:
>
> > Hello,
>
> > I'm using ResourceSpace 3.2 on a Windows XP SP3, Apache 2.215, PHP
> > 5.2.13 and MySQL 5.0.16.  When I try to upload big files (1GO) with
> > JUpload I get that errors:
>
> > java.net.SocketException: Connection reset (while reading server
> > response)http://www.telecine.ca/socketerror.jpghttp://www.telecine.ca/socketer...debug mode.

Paul Manno

unread,
Aug 23, 2010, 6:11:50 PM8/23/10
to resour...@googlegroups.com
Phillipe,

I had a similar situation.  I found that a Linux machine running Firefox would run into these exceptions where a Windows machine running Firefox would not.  So my guess (and that of my buddy who helped me with the tests) was the difference in the implementation of Java for the different platforms.  Anyway, the only way I found around this problem was to either use Windows (with the latest JRE) or have my users SFTP items to a staticsync directory and upload that way.

I even tried to use the latest JUpload code (5.0.0.rc4), to no avail.

If you find another way around the issue, I'd love to hear about it.

Paul


--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To post to this group, send email to resour...@googlegroups.com.
To unsubscribe from this group, send email to resourcespac...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.


Jeff Harmon

unread,
Aug 23, 2010, 6:51:07 PM8/23/10
to ResourceSpace
Paul, have you told Etienne and friends over at JUpload? They are
very attentive and will want to hear about this before releasing 5.0.
I know they will ask for Java Console output though, not just debug.
Please help us make JUpload better!

http://sourceforge.net/projects/jupload/forums/forum/199107

- Jeff Harmon
Colorhythm LLC



On Aug 23, 3:11 pm, Paul Manno <pgma...@gmail.com> wrote:
> Phillipe,
>
> I had a similar situation.  I found that a Linux machine running Firefox
> would run into these exceptions where a Windows machine running Firefox
> would not.  So my guess (and that of my buddy who helped me with the tests)
> was the difference in the implementation of Java for the different
> platforms.  Anyway, the only way I found around this problem was to either
> use Windows (with the latest JRE) or have my users SFTP items to a
> staticsync directory and upload that way.
>
> I even tried to use the latest JUpload code (5.0.0.rc4), to no avail.
>
> If you find another way around the issue, I'd love to hear about it.
>
> Paul
>
> On Mon, Aug 23, 2010 at 4:30 PM, Jeff Harmon <jeffreyhhar...@gmail.com>wrote:
>
> > Is your php.ini set to handle large files?  Do you have chunking
> > turned on (see config)?
>
> > This may be a question better suited for the JUpload development team,
> > depending on your answers to the above.
>
> > - Jeff Harmon
> > Colorhythm LLC
>
> > On Aug 23, 11:28 am, philippe <philippebo...@hotmail.com> wrote:
> > > Hello,
>
> > > I'm using ResourceSpace 3.2 on a Windows XP SP3, Apache 2.215, PHP
> > > 5.2.13 and MySQL 5.0.16.  When I try to upload big files (1GO) with
> > > JUpload I get that errors:
>
> > > java.net.SocketException: Connection reset (while reading server
> > > response)
> >http://www.telecine.ca/socketerror.jpghttp://www.telecine.ca/socketer...mode.
>
> > > There's no error in the Apache log and the file is uploaded but if I
> > > batch upload files, it will stop at the file where a had the "socket
> > > error".
>
> > > This is the debug log from JUpload
>
> > > Linking with no link titlehttp://www.telecine.ca/JUploadDebug.txt
>
> > > What is causing this error?
>
> > > Thanks!
>
> > > Philippe
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ResourceSpace" group.
> > To post to this group, send email to resour...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > resourcespac...@googlegroups.com<resourcespace%2Bunsu...@googlegroups.com>
> > .

Paul Manno

unread,
Aug 23, 2010, 10:49:43 PM8/23/10
to resour...@googlegroups.com
Hi Jeff,

No, I didn't reach out to them about it.  I do have the full debug log output (not the java console, but the debug log window that you can enable by ctrl+right-click on the file list) that I can send to them.  I'll look into it tomorrow.

Paul

To unsubscribe from this group, send email to resourcespac...@googlegroups.com.

Jeff Harmon

unread,
Aug 24, 2010, 1:58:54 AM8/24/10
to ResourceSpace
Gleason also reported a problem with Linux Firefox that I forwarded
through to the JUpload team, but they needed the Java Console output
to really help it seems. Do you know how to get that? Tom had
trouble finding it.

- Jeff Harmon
Colorhythm LLC

On Aug 23, 7:49 pm, Paul Manno <pgma...@gmail.com> wrote:
> Hi Jeff,
>
> No, I didn't reach out to them about it.  I do have the full debug log
> output (not the java console, but the debug log window that you can enable
> by ctrl+right-click on the file list) that I can send to them.  I'll look
> into it tomorrow.
>
> Paul
>
> > .
>
> > > > > There's no error in the Apache log and the file is uploaded but if I
> > > > > batch upload files, it will stop at the file where a had the "socket
> > > > > error".
>
> > > > > This is the debug log from JUpload
>
> > > > > Linking with no link titlehttp://www.telecine.ca/JUploadDebug.txt
>
> > > > > What is causing this error?
>
> > > > > Thanks!
>
> > > > > Philippe
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "ResourceSpace" group.
> > > > To post to this group, send email to resour...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > resourcespac...@googlegroups.com<resourcespace%2Bunsu...@googlegroups.com>
> > <resourcespace%2Bunsu...@googlegroups.com<resourcespace%252Buns...@googlegroups.com>

Paul Manno

unread,
Aug 24, 2010, 8:41:25 AM8/24/10
to resour...@googlegroups.com
Yeah. I know how to get that. Thanks.

Paul Manno
CTO
Ravenswood Kinowerks, Inc.
5645 N. Ravenswood Ave.
Chicago, IL. 60660
(773) 649-1710

> To unsubscribe from this group, send email to resourcespac...@googlegroups.com.

philippe

unread,
Aug 25, 2010, 11:13:37 AM8/25/10
to ResourceSpace
Hello Jeff,

Yes my php.ini is set to handle large files. Can you tell me what is
the instruction to allow chunking (I looked and I didn't see one)?


Thanks!

Philippe

On Aug 23, 5:30 pm, Jeff Harmon <jeffreyhhar...@gmail.com> wrote:
> Is your php.ini set to handle large files?  Do you have chunking
> turned on (see config)?
>
> This may be a question better suited for the JUpload development team,
> depending on your answers to the above.
>
> - Jeff Harmon
> Colorhythm LLC
>
> On Aug 23, 11:28 am, philippe <philippebo...@hotmail.com> wrote:
>
>
>
> > Hello,
>
> > I'm using ResourceSpace 3.2 on a Windows XP SP3, Apache 2.215, PHP
> > 5.2.13 and MySQL 5.0.16.  When I try to upload big files (1GO) with
> > JUpload I get that errors:
>
> > java.net.SocketException: Connection reset (while reading server
> > response)http://www.telecine.ca/socketerror.jpghttp://www.telecine.ca/socketer...debug mode.
>
> > There's no error in the Apache log and the file is uploaded but if I
> > batch upload files, it will stop at the file where a had the "socket
> > error".
>
> > This is the debug log from JUpload
>
> > Linking with no link titlehttp://www.telecine.ca/JUploadDebug.txt
>
> > What is causing this error?
>
> > Thanks!
>
> > Philippe- Hide quoted text -
>
> - Show quoted text -

philippe

unread,
Aug 25, 2010, 11:18:28 AM8/25/10
to ResourceSpace
Hello Paul,

I have the same installation on a Linux OpenSUSE 11.2 and it's working
fine (even with Fire Fox). I have the latest JRE (.21). I will try a
FTP work arround.

Thanks!

Philippe

On Aug 23, 6:11 pm, Paul Manno <pgma...@gmail.com> wrote:
> Phillipe,
>
> I had a similar situation.  I found that a Linux machine running Firefox
> would run into these exceptions where a Windows machine running Firefox
> would not.  So my guess (and that of my buddy who helped me with the tests)
> was the difference in the implementation of Java for the different
> platforms.  Anyway, the only way I found around this problem was to either
> use Windows (with the latest JRE) or have my users SFTP items to a
> staticsync directory and upload that way.
>
> I even tried to use the latest JUpload code (5.0.0.rc4), to no avail.
>
> If you find another way around the issue, I'd love to hear about it.
>
> Paul
>
> On Mon, Aug 23, 2010 at 4:30 PM, Jeff Harmon <jeffreyhhar...@gmail.com>wrote:
>
>
>
> > Is your php.ini set to handle large files?  Do you have chunking
> > turned on (see config)?
>
> > This may be a question better suited for the JUpload development team,
> > depending on your answers to the above.
>
> > - Jeff Harmon
> > Colorhythm LLC
>
> > On Aug 23, 11:28 am, philippe <philippebo...@hotmail.com> wrote:
> > > Hello,
>
> > > I'm using ResourceSpace 3.2 on a Windows XP SP3, Apache 2.215, PHP
> > > 5.2.13 and MySQL 5.0.16.  When I try to upload big files (1GO) with
> > > JUpload I get that errors:
>
> > > java.net.SocketException: Connection reset (while reading server
> > > response)
> >http://www.telecine.ca/socketerror.jpghttp://www.telecine.ca/socketer...mode.
>
> > > There's no error in the Apache log and the file is uploaded but if I
> > > batch upload files, it will stop at the file where a had the "socket
> > > error".
>
> > > This is the debug log from JUpload
>
> > > Linking with no link titlehttp://www.telecine.ca/JUploadDebug.txt
>
> > > What is causing this error?
>
> > > Thanks!
>
> > > Philippe
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ResourceSpace" group.
> > To post to this group, send email to resour...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > resourcespac...@googlegroups.com<resourcespace%2Bunsubscribe@goog­legroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/resourcespace?hl=en.- Hide quoted text -

Travis

unread,
Aug 25, 2010, 11:57:06 AM8/25/10
to ResourceSpace
It's in the config.php. It takes larger files and breaks them down
into smaller chunks for the uploader to process easier I'm assuming.
The default is set to 'on' and chunks at 5MB.

On Aug 25, 11:13 am, philippe <philippebo...@hotmail.com> wrote:
> Hello Jeff,
>
> Yes my php.ini is set to handle large files.  Can you tell me what is
> the instruction to allow chunking (I looked and I didn't see one)?
>
> Thanks!
>
> Philippe
>
> On Aug 23, 5:30 pm, Jeff Harmon <jeffreyhhar...@gmail.com> wrote:
>
> > Is your php.ini set to handle large files?  Do you have chunking
> > turned on (see config)?
>
> > This may be a question better suited for the JUpload development team,
> > depending on your answers to the above.
>
> > - Jeff Harmon
> > Colorhythm LLC
>
> > On Aug 23, 11:28 am, philippe <philippebo...@hotmail.com> wrote:
>
> > > Hello,
>
> > > I'm using ResourceSpace 3.2 on a Windows XP SP3, Apache 2.215, PHP
> > > 5.2.13 and MySQL 5.0.16.  When I try to upload big files (1GO) with
> > > JUpload I get that errors:
>
> > > java.net.SocketException: Connection reset (while reading server
> > > response)http://www.telecine.ca/socketerror.jpghttp://www.telecine.ca/socketer...mode.

philippe

unread,
Aug 26, 2010, 11:29:22 AM8/26/10
to ResourceSpace
I found out what is causing the bug.

Apache 2.2.15
MySQL 5.0.16
PHP 5.2.13
Windows XP Pro SP3
Resource Space 3.2

On a Windows machine, with the alternative files set in Resource
Space:
# FFMPEG - generation of alternative video file sizes/formats

$ffmpeg_alternatives[0]["name"]="SWF File (small download)";
$ffmpeg_alternatives[0]["filename"]="Flash";
$ffmpeg_alternatives[0]["extension"]="swf";
$ffmpeg_alternatives[0]["params"]="-f swf -deinterlace -s 360x240 -b
550000 -ar 44100";

We get for large files (bigger than 200M) the socket exception. If I
comment those lines, no error. When the error occurs, the file is
still uploaded to the server and the alternative file is created.

If we are batch uploading with JUpload (multiple file in JUpload) the
upload will stop with the file where the exception occurred.

We have no problem with alternative file and JUpload if we are using a
Mac OSX.


Thanks!

Philippe

On Aug 23, 2:28 pm, philippe <philippebo...@hotmail.com> wrote:
> Hello,
>
> I'm using ResourceSpace 3.2 on a Windows XP SP3, Apache 2.215, PHP
> 5.2.13 and MySQL 5.0.16.  When I try to upload big files (1GO) with
> JUpload I get that errors:
>
> java.net.SocketException:Connectionreset(while reading server
> response)http://www.telecine.ca/socketerror.jpghttp://www.telecine.ca/socketerrorlong.jpgIn debug mode.
>
> There's no error in the Apache log and the file is uploaded but if I
> batch upload files, it will stop at the file where a had the "socket
> error".
>
> This is the debug log from JUpload
>
> Linking with no link titlehttp://www.telecine.ca/JUploadDebug.txt

Paul Manno

unread,
Aug 26, 2010, 11:49:43 AM8/26/10
to resour...@googlegroups.com
Hmm.  That would seem to be a timeout while the server was creating the alternative files and should be client OS independent (unless the Java interpreter is using a lower timeout value in the Windows implementation than in the Mac implementation, which is possible but would seem a bit odd).

Are you saying that batch uploading the exact same set of files always times out on the windows machine and never times out on the mac?

Also, are you aware of this conifg setting?
 # Allow to disable thumbnail generation during batch resource upload from FTP or local folder.
# In addition to this option, a multi-thread thumbnail generation script is available in the batch
# folder (create_previews.php). You can use it as a cron job, or manually.
$enable_thumbnail_creation_on_upload = true;

Using this, you could defer thumbnail creation, which might solve the problem without losing your alternative files.

Paul.


--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To post to this group, send email to resour...@googlegroups.com.
To unsubscribe from this group, send email to resourcespac...@googlegroups.com.

Jeff Harmon

unread,
Aug 27, 2010, 4:01:36 PM8/27/10
to ResourceSpace
All other relevant things are equal, except OS? Java version, JUpload
version, php.ini settings, etc?

-Jeff
> > response)http://www.telecine.ca/socketerror.jpghttp://www.telecine.ca/socketer...debug mode.

philippe

unread,
Sep 9, 2010, 4:31:16 PM9/9/10
to ResourceSpace
Yes. Everything is the same. Difference are OS and of course JVM
implementation.

P

On Aug 27, 4:01 pm, Jeff Harmon <jeffreyhhar...@gmail.com> wrote:
> All other relevant things are equal, except OS?  Java version, JUpload
> version, php.ini settings, etc?
>
> -Jeff
>
> On Aug 26, 8:29 am, philippe <philippebo...@hotmail.com> wrote:
>
>
>
> > I found out what is causing the bug.
>
> > Apache 2.2.15
> > MySQL 5.0.16
> > PHP 5.2.13
> > Windows XP Pro SP3
> > Resource Space 3.2
>
> > On a Windows machine, with the alternative files set in Resource
> > Space:
> >         # FFMPEG - generation of alternative videofilesizes/formats
>
> > $ffmpeg_alternatives[0]["name"]="SWFFile(smalldownload)";
> > $ffmpeg_alternatives[0]["filename"]="Flash";
> > $ffmpeg_alternatives[0]["extension"]="swf";
> > $ffmpeg_alternatives[0]["params"]="-f swf -deinterlace -s 360x240 -b
> > 550000 -ar 44100";
>
> > We get forlargefiles (bigger than 200M) the socket exception.  If I
> > comment those lines, noerror.  When theerroroccurs, thefileis
> > still uploaded to the server and the alternativefileis created.
>
> > If we are batch uploading with JUpload (multiplefilein JUpload) the
> > upload will stop with thefilewhere the exception occurred.
>
> > We have no problem with alternativefileand JUpload if we are using a
> > Mac OSX.
>
> > Thanks!
>
> > Philippe
>
> > On Aug 23, 2:28 pm, philippe <philippebo...@hotmail.com> wrote:
>
> > > Hello,
>
> > > I'm using ResourceSpace 3.2 on a Windows XP SP3, Apache 2.215, PHP
> > > 5.2.13 and MySQL 5.0.16.  When I try to upload big files (1GO) with
> > > JUpload I get that errors:
>
> > > java.net.SocketException:Connectionreset(while reading server
> > > response)http://www.telecine.ca/socketerror.jpghttp://www.telecine.ca/socketer...mode.
>
> > > There's noerrorin the Apache log and thefileis uploaded but if I
> > > batch upload files, it will stop at thefilewhere a had the "socket
> > >error".
>
> > > This is the debug log from JUpload
>
> > > Linking with no link titlehttp://www.telecine.ca/JUploadDebug.txt
>
> > > What is causing thiserror?
>
Reply all
Reply to author
Forward
0 new messages