File upload errors and issues

Hi Guys,

I'm epically confused. I just joined this company a month and a half ago and were given the task of figuring out why they were getting error messages for the Zenphoto site they set up when they upload files.



my manager told me that the most important thing is to figure out why MP4 files won't upload, so I tried that and found several errors in the server err log, first one being FcgidMaxRequestLen set too low so it wouldn't accept the file, but after changing that now I get "(104)Connection rest by peer: mod_fcgid: error reading data"

from some hunting around it looks like it's an error of it timing out before the job could finish, so I tried changing the time to make it longer like others suggested, but it didn't work, so I made a really tiny MP4 file (2MB) just for testing and that failed too so I'm guessing it's not timing out but rather something else

anyone know servers enough to help me out? no code was changed in Zenphoto as far as I know, kind of want to change the server to NOT use FastCGI, but they made the thing so complicated I don't even know where to start....

EDIT
just thought I'd mention, I get a 500 internal error when I try using http upload method, the other two throws error as well, but those error mean very little to me. Also I have tried different browsers and other computers as well.

version info
Zenphoto version 1.4.3.3 [10902]
Apache 2.2.14
PHP 5.3.2-1
Ubuntu 10.04.4

Thanks guys, any help (heck even a poke) would be much appreciated

Comments

  • the other two throws error as well, but those error mean very little to me
    Well, they might mean something to others, but if you do not tell us what they say, how can we help?

    From what you have described it would appear that your server is not fast enough to process the upload of the files. Anyway, we are not experts on servers, specially non-apache ones.

    I suggest you try to upload some of these files via FTP and see it that works. (E.g. you can see the items in Zenphoto without problems.) That will at least isolate the source of the problems.
  • acrylian Administrator, Developer
    Running PHP in FastCGI is actually no problem.

    I am by no means a server expert but did you rule out file/folder permission and owner issues? That is often a beloved source of all kind of issues. You also workaround by uploading via FTP directly.

    You really should post all errors you find in the logs. Anyonymize full server paths and such before doing so.

    Also note that the current Zenphoto version is 1.4.5.7.

    Edit: Ah, too slow :-)
  • well, for

    flash
    -it's always "test.mp4 (25.53MB) - HTTP Error (for any file for that matter)
    -the other wierd thing I noticed is that the progress bar moves forward then resets to 0 then progress futher then drop back to 0 continuous until it fails

    jQuery
    @ whhaattaaaa???!!... sigh... I'm too tired...
    -side note, does it not have a progress bar?

    oh and the files do show up in zenphoto

    EDIT:
    ok, may be that was one time luck, now im getting
    Error: TypeError: Unable to get property 'text' of undefined or null reference
  • acrylian Administrator, Developer
    That indicates either permissions or server security issues involved. Flash can be tricky.

    The flash uploader is not part of Zenphoto anymore. The jQuery uploader has a progress bar but of course if you happen to use an older IE or whatever browser it might not display. It is an adapted tool.
  • hey acrylian,

    thanks for replying so quickly, i did some more testing and it looks like for jQuery if I try a file over
    50MB, it will say upload successful, but when I check the folder it's not uploaded

    75MB, it will throw the error - TypeError: Unable to get property 'text' of undefined or null reference - (which this is the first time seeing that error)

    anything under 50MB seems to be fine, btw these are all MP4 files, any suggestion? may be i'll go try and fiddle around with the server settings again and see what happens, may be i missed testing jQuery when I tried one of the setting (though I thought I had revert them back each time..)

    i think i'll get rid of the flash uploader if that's the case, only need one anyways

    thanks
  • PHP (and perhaps) your server has limit settings for how much can be uploaded. Check those.
  • ah, looks like I probably missed testing jQuery when I made modification to FcgidMaxRequestLen in fcgid.conf

    I played around with the numbers and that did make the difference, so for anyone who is having similar issue and have FastCGI installed, go find your fcgid.conf and modify the number by calculating what your desired MB amount is in 1024 format (or else it'll be less)

    the little devil isn't in php.ini or apache2.conf btw (so many places to change these limits... =.=)

    thanks for the help guys
Sign In or Register to comment.