Help! Uploading Files Not Working Stuck; on Crunching

I tried to solve it with the hosting people but they have no idea.

Each time I upload a file that is more than about 30mb the uploader nicely goes 1%, 2%, 3%…. then suddenly rushes to crunching and remains stuck on crunching forever. The file obviously doesn’t exist in the library.

Before you ask, these are my php.ini settings and they should be fine I think (even over kill, but I tried just about all values going up):

post_max_size=100M

upload_max_filesize=100M

memory_limit=128M

max_execution_time=600

max_input_time=500

Really looking for some suggestions because my users are stuck and not able to upload anything large in terms of videos.

  • Jeff
    • Site Builder, Child of Zeus

    Correction: I thought it was a file size but now I tested by chance with small files and none work. They all do the same thing. 10, 12, 14, 15, 20% then suddenly jumps to crunching stuck.

    A really small size (800k) made it to the end and finished crunching I suppose then the error this time was HTTP Error at the top.

    Hope this helps.

  • Jeff
    • Site Builder, Child of Zeus

    Alex, Ive followed the debug logging you suggested and now I have a debug log.

    I looked at the log and while it does have some errors none are associated with the upload. When I run a upload and I get an HTTP error or crunching halt nothing is written to the log.

    I did discover something: I need to reboot the server and then it starts to run well. After 2-3 hours the issues return. I pointed this out to DreamHost but have not heard back yet (2 days now on the ticket).

    Do you guys have any idea or need something? The log maybe just for the hell of it?

  • Alexander
    • DEV MAN’s Mascot

    @Jeff,

    I’m sorry for the delay here. Would you mind emailing the log file to me? I could take a look and see if anything comes to mind.

    You could sent it to: contact[at]wpmudev.org

    Just include my name in the subject “Alexander Rohmann” and a link back to this thread.

    Also, do you have any caching going on with your server? If so, it would be a good test to try disabling it and rebooting – then see if the issue presents itself again.

    Best regards

  • Jeff
    • Site Builder, Child of Zeus

    Solved this. Long a tedious problem. Dreamhost is the issue. I changed server to wiredtree and things are completely different.

    The issue with Dreamhost I finally discovered is that the max upload is also a parameter of ram memory. I asked them tons of times to switch it to the temp hard disk writing, even if slower, so it would work. They just would not do it. They wanted me to up my vps memory ram (cost was something like 75$ per month).

    On wiredtree works fine. No more write errors, no more upload errors, no more memory errors. Now I pay 49$, I have more memory, the support is amazing and FAST, and the server is a jewel. All for less money.

    (PS I am not getting a commission and I’m not working for them – just that dreamhost wasted 3 weeks of my time and just don’t have the time).

  • Alexander
    • DEV MAN’s Mascot

    @Jeff, Awesome! Thanks for letting me know you got this worked out. Sorry to hear about all the hosting issues you’ve had.

    Great to hear you’re up and running now with a host you’re happy with, and that you’re saving money! Having been through a few hosting disasters myself, I’m sure this is a big relief

    Best regards