• Resolved Trace

    (@diesel12)


    Hiya. When running bulk optimization after setting custom non wp directories to optimize, I’m getting “Operation timed out, you may need to increase the max_execution_time for PHP” …. I’ve increased max_execution_time to 999 and restarted apache, but quickly get the error again.

    I’m on a dedicated server with root access …. any ideas on anything else we might do to prevent bulk optimization from timing out??

    Thanks!

    https://www.ads-software.com/plugins/ewww-image-optimizer/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter Trace

    (@diesel12)

    This is the only error that is writing to WP error log when timeout occurs:

    [11-Jun-2015 02:19:01 UTC] PHP Notice: getimagesize(): Read error! in /home/username/public_html/wp-content/plugins/ewww-image-optimizer/ewww-image-optimizer.php on line 973

    Plugin Author nosilver4u

    (@nosilver4u)

    Sounds like you have permissions problems on some of your files. Check the ownership of the files in those other directories, make sure they match the normal wp files. If you turn on EWWW IO’s debugging option, the very first line of debugging on the settings page will tell you what username should own all your web files.

    Thread Starter Trace

    (@diesel12)

    Gotcha, thanks! I ended up putting in specific folders in the EWWW settings and that seemed to help things about a bit. Once the majority of the images were accounted for an in database, there doesn’t seem to be any issue with just putting /public_html/ as the folder to recursively scan … think there was just too much going on before the database had the images in the database …

    Am seeing lots of extra files with png.tmp or png.tmp.png.tmp added to them. So in addition to an original file like logo.png, there will be logo.png.tmp and logo.png.tmp.png.tmp … any idea why this might be happening? The error associated with this is below. The permissions don’t appear to be different from any other files ….

    [11-Jun-2015 08:49:21 UTC] PHP Warning: filesize(): stat failed for /home/alpinesc/public_html/forums/styles/default/uix_addon/sprite.png.tmp.png.tmp in /home/alpinesc/public_html/wp-content/plugins/ewww-image-optimizer/ewww-image-optimizer.php on line 1654

    Thread Starter Trace

    (@diesel12)

    Also, does EWWW want to see 644 on .png file permissions?

    Plugin Author nosilver4u

    (@nosilver4u)

    Are you using pngout?

    And to answer your permissions issue, EWWW requires write permissions, but the way unix/linux permissions are setup means that there is not one definitive answer to your question, so I’ll try to break down how they work.

    The three digits indicate permissions for the owner, group, and world (or everyone else with a valid account on the machine.

    the numbers are built from these 3 possible values:

    read permision = 4
    write permission = 2
    executable permission = 1

    So 644 will mean that the owner can read and write, and everyone else can read the file. So the likely answer to your question is yes, but ONLY if the file is owned by the user running the webserver process. Usually named http, apache2, or www-data on a dedicated server or vps. On a shared server, the files should normally be owned by your personal user account.

    All that said, someone else reported an issue where pngout is creating orphaned .tmp files, so your issue may be a result of that bug. I’ll be looking into it further later today.

    Plugin Author nosilver4u

    (@nosilver4u)

    And I thought of one thing that can happen from your very first question about the ‘operation timed out’ message. Certain files and file types can cause OOM (out of memory) errors with the mimetype functions. Narrowing it down to more specific folders probably helped it avoid those folders, but I’m always looking to track down those problematic file types, so if you feel like doing a little debugging, see my last post over here: https://www.ads-software.com/support/topic/php-notice-undefined-index-http_x_forwarded_proto/page/2?replies=53

    Plugin Author nosilver4u

    (@nosilver4u)

    pretty sure the .tmp file issues are caused by permissions problems still, I can’t replicate it on my server with both optipng and pngout enabled.

    Plugin Author nosilver4u

    (@nosilver4u)

    I was just able to track down the .tmp.png issue, the fix will be released today or tomorrow.

    Thread Starter Trace

    (@diesel12)

    Awesome. I also attempted to do a clean reinstall EWW on two of three installs we have and the “Automatically Install” button to install pngout wouldn’t work and gave an error of “Pngout was not installed: . Make sure this folder is writable: /home/alpinesc/public_html/wp-content/ewww/”. Even with 777 permission on the folder, we couldn’t complete the installation of PNGOUT. However, I was able to simple copy and paste the EWWW folder from the third install that was still working and that fixed the issue on the other two …. the permissions issue no longer existed.

    One of my server admins came of with the following conclusion …. maybe it might help someway:

    “I apologize for the delay, but from what I’ve gathered, yes. Those binaries are not the expected ones, and you simply need to replace them with working ones. I imagine that the phrase ‘unexpected binary data’ will already hold some meaning for your dev. Moreover, you can even mention a possible version mismatch, and a definite case of mis-reported error.”

    Plugin Author nosilver4u

    (@nosilver4u)

    What version of pngout are you currently running?
    What operating system is the server running?
    32-bit or 64-bit?

    Lastly, please post the debug log from the bottom of the settings page which can be enabled with the debugging option.

    Thread Starter Trace

    (@diesel12)

    Here you:

    CENTOS 5.11 x86_64 standard

    Debug Log
    
    alpinesc
    EWWW IO version: 243.0
    WP version: 4.2.2
    ewww_image_optimizer_preinit()
    ewww_image_optimizer_admin_init()
    ewww_image_optimizer_init()
    ewww_image_optimizer_cloud_init()
    ewww_image_optimizer_exec_init()
    ewww_image_optimizer_tool_init()
    ewww_image_optimizer_install_tools()
    Checking/Installing tools in /home/alpinesc/public_html/wp-content/ewww/
    wp-content/ewww permissions: 0755
    ewww_image_optimizer_install_paths()
    CPU architecture: x86_64
    generated paths:
    /home/alpinesc/public_html/wp-content/plugins/ewww-image-optimizer/jpegtran-linux64
    /home/alpinesc/public_html/wp-content/plugins/ewww-image-optimizer/optipng-linux
    /home/alpinesc/public_html/wp-content/plugins/ewww-image-optimizer/gifsicle-linux
    /home/alpinesc/public_html/wp-content/plugins/ewww-image-optimizer/pngquant-linux
    /home/alpinesc/public_html/wp-content/plugins/ewww-image-optimizer/cwebp-linux864
    /home/alpinesc/public_html/wp-content/ewww/jpegtran
    /home/alpinesc/public_html/wp-content/ewww/optipng
    /home/alpinesc/public_html/wp-content/ewww/gifsicle
    /home/alpinesc/public_html/wp-content/ewww/pngquant
    /home/alpinesc/public_html/wp-content/ewww/cwebp
    64-bit linux detected while installing tools
    ewww_image_optimizer_md5check()
    /home/alpinesc/public_html/wp-content/ewww/jpegtran-alt: 8e4a09bb04ba001f5f16651ae8594f7f
    md5sum verified, binary is intact
    ewww_image_optimizer_md5check()
    /home/alpinesc/public_html/wp-content/ewww/cwebp-alt: eb3a5b6eae54140269ed6dcf6f792d37
    md5sum verified, binary is intact
    Linux/UNIX style OS, checking permissions
    jpegtran permissions: 0755
    gifsicle permissions: 0755
    optipng permissions: 0755
    pngquant permissions: 0755
    webp permissions: 0755
    ewww_image_optimizer_settings_script()
    ewww_image_optimizer_notice_utils()
    ewww_image_optimizer_exec_check()
    disable_functions = dl
    suhosin_blacklist =
    ewww_image_optimizer_safemode_check()
    safe_mode =
    ewww_image_optimizer_path_check()
    found /home/alpinesc/public_html/wp-content/ewww/jpegtran, testing...
    ewww_image_optimizer_md5check()
    /home/alpinesc/public_html/wp-content/ewww/jpegtran: 47c39feae0712f2996c61e5ae639b706
    md5sum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /home/alpinesc/public_html/wp-content/ewww/jpegtran
    ewww_image_optimizer_tool_found()
    testing case: f at file
    file: magic file from /usr/share/file/magic
    file binary found
    file command: /home/alpinesc/public_html/wp-content/ewww/jpegtran: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), not stripped
    ewww_image_optimizer_tool_found()
    testing case: j at /home/alpinesc/public_html/wp-content/ewww/jpegtran
    /home/alpinesc/public_html/wp-content/ewww/jpegtran: Independent JPEG Group's JPEGTRAN, version 9a 19-Jan-2014
    optimizer found
    found /home/alpinesc/public_html/wp-content/ewww/optipng, testing...
    ewww_image_optimizer_md5check()
    /home/alpinesc/public_html/wp-content/ewww/optipng: 31698da4f5ca00b35e910c77acae65bb
    md5sum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /home/alpinesc/public_html/wp-content/ewww/optipng
    ewww_image_optimizer_tool_found()
    testing case: f at file
    file: magic file from /usr/share/file/magic
    file binary found
    file command: /home/alpinesc/public_html/wp-content/ewww/optipng: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, statically linked, not stripped
    ewww_image_optimizer_tool_found()
    testing case: o at /home/alpinesc/public_html/wp-content/ewww/optipng
    /home/alpinesc/public_html/wp-content/ewww/optipng: OptiPNG version 0.7.5
    optimizer found
    found /home/alpinesc/public_html/wp-content/ewww/gifsicle, testing...
    ewww_image_optimizer_md5check()
    /home/alpinesc/public_html/wp-content/ewww/gifsicle: 58f42368e86a4910d101d37fee748409
    md5sum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /home/alpinesc/public_html/wp-content/ewww/gifsicle
    ewww_image_optimizer_tool_found()
    testing case: f at file
    file: magic file from /usr/share/file/magic
    file binary found
    file command: /home/alpinesc/public_html/wp-content/ewww/gifsicle: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, statically linked, not stripped
    ewww_image_optimizer_tool_found()
    testing case: g at /home/alpinesc/public_html/wp-content/ewww/gifsicle
    /home/alpinesc/public_html/wp-content/ewww/gifsicle: LCDF Gifsicle 1.84
    optimizer found
    found /home/alpinesc/public_html/wp-content/ewww/pngout-static, testing...
    ewww_image_optimizer_md5check()
    /home/alpinesc/public_html/wp-content/ewww/pngout-static: d760b7973ca81856cf2fc464637f8d77
    md5sum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /home/alpinesc/public_html/wp-content/ewww/pngout-static
    ewww_image_optimizer_tool_found()
    testing case: f at file
    file: magic file from /usr/share/file/magic
    file binary found
    file command: /home/alpinesc/public_html/wp-content/ewww/pngout-static: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.26, statically linked, stripped
    ewww_image_optimizer_tool_found()
    testing case: p at /home/alpinesc/public_html/wp-content/ewww/pngout-static
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at pngout
    pngout: sh: pngout: command not found
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at /usr/bin/pngout
    /usr/bin/pngout: sh: /usr/bin/pngout: No such file or directory
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at /usr/local/bin/pngout
    /usr/local/bin/pngout: sh: /usr/local/bin/pngout: No such file or directory
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at /usr/gnu/bin/pngout
    /usr/gnu/bin/pngout: sh: /usr/gnu/bin/pngout: No such file or directory
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at /usr/syno/bin/pngout
    /usr/syno/bin/pngout: sh: /usr/syno/bin/pngout: No such file or directory
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at pngout-static
    pngout-static: sh: pngout-static: command not found
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at /usr/bin/pngout-static
    /usr/bin/pngout-static: sh: /usr/bin/pngout-static: No such file or directory
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at /usr/local/bin/pngout-static
    /usr/local/bin/pngout-static: sh: /usr/local/bin/pngout-static: No such file or directory
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at /usr/gnu/bin/pngout-static
    /usr/gnu/bin/pngout-static: sh: /usr/gnu/bin/pngout-static: No such file or directory
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at /usr/syno/bin/pngout-static
    /usr/syno/bin/pngout-static: sh: /usr/syno/bin/pngout-static: No such file or directory
    tool not found
    found /home/alpinesc/public_html/wp-content/ewww/pngquant, testing...
    ewww_image_optimizer_md5check()
    /home/alpinesc/public_html/wp-content/ewww/pngquant: 46bb066d676bf94cbfd78bdc0227e74e
    md5sum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /home/alpinesc/public_html/wp-content/ewww/pngquant
    ewww_image_optimizer_tool_found()
    testing case: f at file
    file: magic file from /usr/share/file/magic
    file binary found
    file command: /home/alpinesc/public_html/wp-content/ewww/pngquant: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, statically linked, not stripped
    ewww_image_optimizer_tool_found()
    testing case: q at /home/alpinesc/public_html/wp-content/ewww/pngquant
    /home/alpinesc/public_html/wp-content/ewww/pngquant: 2.3.0 (July 2014)
    optimizer found
    found /home/alpinesc/public_html/wp-content/ewww/cwebp, testing...
    ewww_image_optimizer_md5check()
    /home/alpinesc/public_html/wp-content/ewww/cwebp: 9b6f13ce6ee5a028cbd2765e2d53a1d7
    md5sum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /home/alpinesc/public_html/wp-content/ewww/cwebp
    ewww_image_optimizer_tool_found()
    testing case: f at file
    file: magic file from /usr/share/file/magic
    file binary found
    file command: /home/alpinesc/public_html/wp-content/ewww/cwebp: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.26, dynamically linked (uses shared libs), not stripped
    ewww_image_optimizer_tool_found()
    testing case: w at /home/alpinesc/public_html/wp-content/ewww/cwebp
    /home/alpinesc/public_html/wp-content/ewww/cwebp: /home/alpinesc/public_html/wp-content/ewww/cwebp: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory
    tool not found
    found /home/alpinesc/public_html/wp-content/ewww/cwebp-alt, testing...
    ewww_image_optimizer_mimetype()
    testing mimetype: /home/alpinesc/public_html/wp-content/ewww/cwebp-alt
    ewww_image_optimizer_tool_found()
    testing case: f at file
    file: magic file from /usr/share/file/magic
    file binary found
    file command: /home/alpinesc/public_html/wp-content/ewww/cwebp-alt: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), not stripped
    ewww_image_optimizer_tool_found()
    testing case: w at /home/alpinesc/public_html/wp-content/ewww/cwebp-alt
    /home/alpinesc/public_html/wp-content/ewww/cwebp-alt: 0.4.1
    optimizer found
    using: /home/alpinesc/public_html/wp-content/ewww/jpegtran
    using: /home/alpinesc/public_html/wp-content/ewww/optipng
    using: /home/alpinesc/public_html/wp-content/ewww/gifsicle
    using: /home/alpinesc/public_html/wp-content/ewww/pngquant
    using: /home/alpinesc/public_html/wp-content/ewww/cwebp-alt
    ewww_image_optimizer_options()
    ewww_image_optimizer_savings()
    querying savings for multi-site
    retrieving list of sites the easy way
    getting savings for site: 1
    query to be performed: SELECT SUM(orig_size-image_size) FROM wp_ewwwio_images
    savings found: 0
    getting savings for site: 4
    query to be performed: SELECT SUM(orig_size-image_size) FROM wp_ewwwio_images
    savings found: 0
    getting savings for site: 9
    query to be performed: SELECT SUM(orig_size-image_size) FROM wp_ewwwio_images
    savings found: 0
    getting savings for site: 14
    query to be performed: SELECT SUM(orig_size-image_size) FROM wp_ewwwio_images
    savings found: 0
    getting savings for site: 15
    query to be performed: SELECT SUM(orig_size-image_size) FROM wp_ewwwio_images
    savings found: 0
    getting savings for site: 16
    query to be performed: SELECT SUM(orig_size-image_size) FROM wp_ewwwio_images
    savings found: 0
    getting savings for site: 18
    query to be performed: SELECT SUM(orig_size-image_size) FROM wp_ewwwio_images
    savings found: 0
    getting savings for site: 19
    query to be performed: SELECT SUM(orig_size-image_size) FROM wp_ewwwio_images
    savings found: 0
    getting savings for site: 20
    query to be performed: SELECT SUM(orig_size-image_size) FROM wp_ewwwio_images
    savings found: 0
    getting savings for site: 21
    query to be performed: SELECT SUM(orig_size-image_size) FROM wp_ewwwio_images
    savings found: 0
    getting savings for site: 24
    query to be performed: SELECT SUM(orig_size-image_size) FROM wp_ewwwio_images
    savings found: 0
    getting savings for site: 25
    query to be performed: SELECT SUM(orig_size-image_size) FROM wp_ewwwio_images
    savings found: 0
    ewww_image_optimizer_install_paths()
    CPU architecture: x86_64
    generated paths:
    /home/alpinesc/public_html/wp-content/plugins/ewww-image-optimizer/jpegtran-linux64
    /home/alpinesc/public_html/wp-content/plugins/ewww-image-optimizer/optipng-linux
    /home/alpinesc/public_html/wp-content/plugins/ewww-image-optimizer/gifsicle-linux
    /home/alpinesc/public_html/wp-content/plugins/ewww-image-optimizer/pngquant-linux
    /home/alpinesc/public_html/wp-content/plugins/ewww-image-optimizer/cwebp-linux864
    /home/alpinesc/public_html/wp-content/ewww/jpegtran
    /home/alpinesc/public_html/wp-content/ewww/optipng
    /home/alpinesc/public_html/wp-content/ewww/gifsicle
    /home/alpinesc/public_html/wp-content/ewww/pngquant
    /home/alpinesc/public_html/wp-content/ewww/cwebp
    ewww_image_optimizer_tool_found()
    testing case: j at /home/alpinesc/public_html/wp-content/ewww/jpegtran
    /home/alpinesc/public_html/wp-content/ewww/jpegtran: Independent JPEG Group's JPEGTRAN, version 9a 19-Jan-2014
    optimizer found
    ewww_image_optimizer_tool_found()
    testing case: o at /home/alpinesc/public_html/wp-content/ewww/optipng
    /home/alpinesc/public_html/wp-content/ewww/optipng: OptiPNG version 0.7.5
    optimizer found
    ewww_image_optimizer_tool_found()
    testing case: g at /home/alpinesc/public_html/wp-content/ewww/gifsicle
    /home/alpinesc/public_html/wp-content/ewww/gifsicle: LCDF Gifsicle 1.84
    optimizer found
    ewww_image_optimizer_tool_found()
    testing case: p at
    tool not found
    ewww_image_optimizer_safemode_check()
    safe_mode =
    ewww_image_optimizer_exec_check()
    disable_functions = dl
    suhosin_blacklist =
    ewww_image_optimizer_gd_support()
    GD found, supports:
    GD Version: bundled (2.1.0 compatible)
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support:
    GIF Read Support: 1
    GIF Create Support: 1
    JPEG Support: 1
    PNG Support: 1
    WBMP Support: 1
    XPM Support: 1
    XBM Support: 1
    JIS-mapped Japanese Font Support:
    ewww_image_optimizer_tool_found()
    testing case: i at convert
    convert: Version: ImageMagick 6.2.8 05/07/12 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html
    imagemagick found
    ewww_image_optimizer_tool_found()
    testing case: f at file
    file: magic file from /usr/share/file/magic
    file binary found
    ewww_image_optimizer_tool_found()
    testing case: n at nice
    nice: 0
    nice found
    ewww_image_optimizer_tool_found()
    testing case: t at tar
    tar: tar (GNU tar) 1.15.1
    tar found
    get_image_sizes()
    Array ( [thumbnail] => Array ( [width] => 150 [height] => 150 ) [medium] => Array ( [width] => 300 [height] => 300 ) [large] => Array ( [width] => 1024 [height] => 1024 ) [brand-thumb] => Array ( [width] => 300 [height] => 9999 ) [shop_thumbnail] => Array ( [width] => 114 [height] => 130 ) [shop_catalog] => Array ( [width] => 247 [height] => 300 ) [shop_single] => Array ( [width] => 510 [height] => 600 ) )
    ewww_image_optimizer_jpg_background()
    ewww_image_optimizer_jpg_background()
    ewww_image_optimizer_jpg_quality()
    --300--
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @diesel12 Your posts were in the spam queue and have now been released.

    Plugin Author nosilver4u

    (@nosilver4u)

    So you have pngout disabled currenctly, correct?

    I’ll do some checking on my CentOS 5 VM and see what I can come up with. Normally pngout always worked, but perhaps the new version was compiled on a newer linux kernel.

    Plugin Author nosilver4u

    (@nosilver4u)

    Ouch, the new version doesn’t work on CentOS 5 since it is compiled on Debian 7.8. Since it isn’t open source, not much I can do about that, but you are free to keep using the old version for as long as you like. I’ll contact the pngout folks and see if it would be possible to get a copy of the previous version, since I have generally made CentOS 5 my oldest supported version.

    Plugin Author nosilver4u

    (@nosilver4u)

    Looks like you can indeed get older versions from https://static.jonof.id.au/dl/kenutils/

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Bulk Optimizing Time Out’ is closed to new replies.