• Resolved marcorroma

    (@marcorroma)


    Hi, I would like to bulk convert the media.
    I have many images in the media folders.
    I have the 504 error message if I try to convert all media.
    Even if I select one month at a time (one folder at a time), I get error 504.
    How can I solve it?
    Do I need to increase the php timeout?
    Thanks for your support and your plugin!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author kubiq

    (@kubiq)

    Hi,
    you should try to convert some folder with 1-2 images, to test if it works – if not, then there is probably some problem on your server.
    Anyway, you should enable debug.log to see what’s the problem.
    Let me know what will appear in your debug.log ??

    Thread Starter marcorroma

    (@marcorroma)

    I have tried with a folder with few images, and it works.
    How can I convert to bulk without error 504?

    Plugin Author kubiq

    (@kubiq)

    Then maybe there is some huge image and you don’t have enough resources on server?
    Hard to say without debug.log

    Thread Starter marcorroma

    (@marcorroma)

    There are no lines related to your plugin on debug.log.
    I have the 504 error probably because there are a lot of pictures in the media folders.
    I selected the last month, April 2020, it reports error 504, but if I check the folder via ftp, it seems that all the images have the related webp file.
    I think we have to solve this problem.
    Another problem, when I start a bulk converter process, everything freezes. All database resources are probably used.
    I have a 10 core VPS, 64GB of RAM.

    Thread Starter marcorroma

    (@marcorroma)

    Update:
    I ran the bulk converter, some folders succeed and convert them. Other heavier folders reports error 504.

    /uploads/2019/04/ ... Error 504, trying to continue with missing images...
    /uploads/2019/03/ ... 514 converted
    /uploads/2019/02/ ... 511 converted
    /uploads/2019/01/ ... 314 converted

    I noticed that it sends database/php down.
    It is not possible to browse my site from a backend.
    And the CPU of my VPS goes down.
    Screenshot:
    https://i.ibb.co/02gcg1H/cpudown.png

    • This reply was modified 4 years, 10 months ago by marcorroma.
    • This reply was modified 4 years, 10 months ago by marcorroma.
    • This reply was modified 4 years, 10 months ago by marcorroma.
    Plugin Author kubiq

    (@kubiq)

    If there is Error 504, then there must be something in debug.log

    According what you wrote I understand that you have many errors in debug.log, so you should solve them, because anything can affect anything else…

    I used this plugin on eshops where 1 month images count was more than 1000 and there was no problem… I see you have 300-500 images so it shouldn’t be a problem

    How big is your biggest image? How many sizes you have generated per image? Can you send me 1 month folder of images, so I can retest it on my server? Maybe there is some image with wrong format or coding or something…

    Thread Starter marcorroma

    (@marcorroma)

    I don’t have many recent lines in debug.log

    The folder that contains the images is very heavy, it is almost 50GB.
    And the folder with all the images of the migration from an old site (no WordPress) to the new site (WordPress).
    How can I go about starting a command to convert all images?
    I have a self-managed VPS, I can also use a command line for linux.

    Plugin Author kubiq

    (@kubiq)

    Then you can use some shell commands to do that, like cwebp, or maybe WP CLI also allows you to do that. But sorry, I will not assist you with this as this is not related to my plugin.

    Thread Starter marcorroma

    (@marcorroma)

    All right.
    Convert from command line.
    Thanks for support

    Plugin Author kubiq

    (@kubiq)

    ok, I’m glad it works ??
    So despite we didn’t find what was the problem, I’m marking this as resolved
    Have a nice day

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Bulk convert error 504’ is closed to new replies.