Stops working after a while
-
Hello,
Fighting EWWW on a Digital Ocean droplet is kinda hard. Me and a friend has had huge troubles getting EWWW to work.
After fiddlin’ around with permissions, groups and users I managed to get EWWW to work. Now, after a few days, EWWW has stopped working again without me doing anything. It says that “jpegtran, optipng, gifsicle” is missing.
Permissions on /ewww and all its binaries in the /wp-content directory:
https://i.imgur.com/aiCmfvx.png
-
What OS are you running on your droplet?
Ubuntu 15.04 (GNU/Linux 3.19.0-25-generic x86_64)
what are the permissions on the ewww folder itself?
Also, please post the debug information via the settings page (turn on debugging, save, then scroll down)
Permissions on the ewww folder is 744 (drwxr-Sr–)
www-data EWWW IO version: 251.0 WP version: 4.3.1 PHP version: 50699 ewww_image_optimizer_preinit() ewww_image_optimizer_gallery_support() ewww_image_optimizer_admin_init() ewww_image_optimizer_init() ewww_image_optimizer_cloud_init() ewww_image_optimizer_exec_init() ewww_image_optimizer_cron_setup() ewww_image_optimizer_cron_setup() ewww_image_optimizer_tool_init() ewww_image_optimizer_install_tools() Checking/Installing tools in /home/websites/sverige.science/www/wp-content/ewww/ wp-content/ewww permissions: 2744 ewww_image_optimizer_install_paths() CPU architecture: x86_64 generated paths: /home/websites/sverige.science/www/wp-content/plugins/ewww-image-optimizer/jpegtran-linux64 /home/websites/sverige.science/www/wp-content/plugins/ewww-image-optimizer/optipng-linux /home/websites/sverige.science/www/wp-content/plugins/ewww-image-optimizer/gifsicle-linux /home/websites/sverige.science/www/wp-content/plugins/ewww-image-optimizer/pngquant-linux /home/websites/sverige.science/www/wp-content/plugins/ewww-image-optimizer/cwebp-linux864 /home/websites/sverige.science/www/wp-content/ewww/jpegtran /home/websites/sverige.science/www/wp-content/ewww/optipng /home/websites/sverige.science/www/wp-content/ewww/gifsicle /home/websites/sverige.science/www/wp-content/ewww/pngquant /home/websites/sverige.science/www/wp-content/ewww/cwebp 64-bit linux detected while installing tools ewww_image_optimizer_md5check() /home/websites/sverige.science/www/wp-content/ewww/jpegtran-alt: 8e4a09bb04ba001f5f16651ae8594f7f md5sum verified, binary is intact ewww_image_optimizer_md5check() /home/websites/sverige.science/www/wp-content/ewww/cwebp-alt: 361c019b0a31d208c64b54bd813a3f76 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_bulk_script() ewww_image_optimizer_aux_images_script() ewww_image_optimizer_webp_script() ewww_image_optimizer_notice_utils() ewww_image_optimizer_exec_check() disable_functions: suhosin_blacklist: ewww_image_optimizer_safemode_check() safe_mode = ewww_image_optimizer_path_check() found /home/websites/sverige.science/www/wp-content/ewww/jpegtran, testing... ewww_image_optimizer_md5check() /home/websites/sverige.science/www/wp-content/ewww/jpegtran: 47c39feae0712f2996c61e5ae639b706 md5sum verified, binary is intact ewww_image_optimizer_mimetype() testing mimetype: /home/websites/sverige.science/www/wp-content/ewww/jpegtran finfo_file: application/x-executable ewww_image_optimizer_tool_found() testing case: j at /home/websites/sverige.science/www/wp-content/ewww/jpegtran tool not found found /home/websites/sverige.science/www/wp-content/ewww/jpegtran-alt, testing... ewww_image_optimizer_mimetype() testing mimetype: /home/websites/sverige.science/www/wp-content/ewww/jpegtran-alt finfo_file: application/x-executable ewww_image_optimizer_tool_found() testing case: j at /home/websites/sverige.science/www/wp-content/ewww/jpegtran-alt tool not found ewww_image_optimizer_find_binary() ewww_image_optimizer_tool_found() testing case: j at jpegtran tool not found ewww_image_optimizer_tool_found() testing case: j at /usr/bin/jpegtran tool not found ewww_image_optimizer_tool_found() testing case: j at /usr/local/bin/jpegtran tool not found ewww_image_optimizer_tool_found() testing case: j at /usr/gnu/bin/jpegtran tool not found ewww_image_optimizer_tool_found() testing case: j at /usr/syno/bin/jpegtran tool not found found /home/websites/sverige.science/www/wp-content/ewww/optipng, testing... ewww_image_optimizer_md5check() /home/websites/sverige.science/www/wp-content/ewww/optipng: 31698da4f5ca00b35e910c77acae65bb md5sum verified, binary is intact ewww_image_optimizer_mimetype() testing mimetype: /home/websites/sverige.science/www/wp-content/ewww/optipng finfo_file: application/x-executable ewww_image_optimizer_tool_found() testing case: o at /home/websites/sverige.science/www/wp-content/ewww/optipng tool not found ewww_image_optimizer_find_binary() ewww_image_optimizer_tool_found() testing case: o at optipng tool not found ewww_image_optimizer_tool_found() testing case: o at /usr/bin/optipng tool not found ewww_image_optimizer_tool_found() testing case: o at /usr/local/bin/optipng tool not found ewww_image_optimizer_tool_found() testing case: o at /usr/gnu/bin/optipng tool not found ewww_image_optimizer_tool_found() testing case: o at /usr/syno/bin/optipng tool not found found /home/websites/sverige.science/www/wp-content/ewww/gifsicle, testing... ewww_image_optimizer_md5check() /home/websites/sverige.science/www/wp-content/ewww/gifsicle: 40ceed9c36838b5b9ccc505ab224d90f md5sum verified, binary is intact ewww_image_optimizer_mimetype() testing mimetype: /home/websites/sverige.science/www/wp-content/ewww/gifsicle finfo_file: application/x-executable ewww_image_optimizer_tool_found() testing case: g at /home/websites/sverige.science/www/wp-content/ewww/gifsicle tool not found ewww_image_optimizer_find_binary() ewww_image_optimizer_tool_found() testing case: g at gifsicle tool not found ewww_image_optimizer_tool_found() testing case: g at /usr/bin/gifsicle tool not found ewww_image_optimizer_tool_found() testing case: g at /usr/local/bin/gifsicle tool not found ewww_image_optimizer_tool_found() testing case: g at /usr/gnu/bin/gifsicle tool not found ewww_image_optimizer_tool_found() testing case: g at /usr/syno/bin/gifsicle tool not found defining EWWW_IMAGE_OPTIMIZER_JPEGTRAN defining EWWW_IMAGE_OPTIMIZER_OPTIPNG defining EWWW_IMAGE_OPTIMIZER_GIFSICLE defining EWWW_IMAGE_OPTIMIZER_PNGOUT defining EWWW_IMAGE_OPTIMIZER_PNGQUANT defining EWWW_IMAGE_OPTIMIZER_WEBP ewww_image_optimizer_options() ABSPATH: /home/websites/sverige.science/www/ home url: https://sverige.science site url: https://sverige.science ewww_image_optimizer_savings() querying savings for single site query to be performed: SELECT SUM(orig_size-image_size) FROM wp_ewwwio_images savings found: 1546125 ewww_image_optimizer_install_paths() CPU architecture: x86_64 generated paths: /home/websites/sverige.science/www/wp-content/plugins/ewww-image-optimizer/jpegtran-linux64 /home/websites/sverige.science/www/wp-content/plugins/ewww-image-optimizer/optipng-linux /home/websites/sverige.science/www/wp-content/plugins/ewww-image-optimizer/gifsicle-linux /home/websites/sverige.science/www/wp-content/plugins/ewww-image-optimizer/pngquant-linux /home/websites/sverige.science/www/wp-content/plugins/ewww-image-optimizer/cwebp-linux864 /home/websites/sverige.science/www/wp-content/ewww/jpegtran /home/websites/sverige.science/www/wp-content/ewww/optipng /home/websites/sverige.science/www/wp-content/ewww/gifsicle /home/websites/sverige.science/www/wp-content/ewww/pngquant /home/websites/sverige.science/www/wp-content/ewww/cwebp ewww_image_optimizer_tool_found() testing case: j at tool not found ewww_image_optimizer_tool_found() testing case: o at tool not found ewww_image_optimizer_tool_found() testing case: g at tool not found ewww_image_optimizer_safemode_check() safe_mode = ewww_image_optimizer_exec_check() disable_functions: suhosin_blacklist: ewww_image_optimizer_gd_support() GD found, supports: GD Version: bundled (2.0.34 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: XBM Support: 1 JIS-mapped Japanese Font Support: ewww_image_optimizer_gmagick_support() ewww_image_optimizer_imagick_support() ewww_image_optimizer_find_binary() ewww_image_optimizer_tool_found() testing case: i at convert tool not found ewww_image_optimizer_tool_found() testing case: i at /usr/bin/convert tool not found ewww_image_optimizer_tool_found() testing case: i at /usr/local/bin/convert tool not found ewww_image_optimizer_tool_found() testing case: i at /usr/gnu/bin/convert tool not found ewww_image_optimizer_tool_found() testing case: i at /usr/syno/bin/convert tool not found ewww_image_optimizer_find_binary() ewww_image_optimizer_tool_found() testing case: n at nice tool not found ewww_image_optimizer_tool_found() testing case: n at /usr/bin/nice tool not found ewww_image_optimizer_tool_found() testing case: n at /usr/local/bin/nice tool not found ewww_image_optimizer_tool_found() testing case: n at /usr/gnu/bin/nice tool not found ewww_image_optimizer_tool_found() testing case: n at /usr/syno/bin/nice tool not found cloud JPG: off cloud PNG: off PNG extra compress: off cloud GIF: off cloud fast lossy: off remove metadata: on lossy JPG: on lossy PNG: off bulk delay: 0 optipng level: 2 pngout level: 2 scheduled optimization: off folders to optimize: /home/websites/sverige.science/www/wp-content/uploads deferred optimization: off disable auto-optimization: off include media library: off ewww_image_optimizer_get_image_sizes() Array ( [thumbnail] => Array ( [width] => 150 [height] => 150 ) [medium] => Array ( [width] => 300 [height] => 300 ) [large] => Array ( [width] => 1024 [height] => 1024 ) ) disabled resizes: thumbnail: optimization=enabled creation=enabled medium: optimization=enabled creation=enabled large: optimization=enabled creation=enabled skip images smaller than: 0 bytes skip PNG images larger than: 0 bytes exclude originals from lossy: off exclude originals from metadata removal: off use system binaries: no jpegtran disabled: no optipng disabled: no pngout disabled: yes gifsicle disabled: no webp conversion: off alt webp rewriting: off jpg2png: off ewww_image_optimizer_jpg_background() ewww_image_optimizer_jpg_background() ewww_image_optimizer_jpg_quality() png2jpg: off gif2png: off max_execution_time: 0
Try 755 on the ewww folder, sometimes the files can be affected by the permissions of the folder.
If that doesn’t help, check the apache error log to see if there are any clues. If you’re using php-fpm, also check /var/log/syslog755 does not solve the issue.
Anything in the error logs? Generally those are in /var/log/apache/
Nothing in either the HHVM or NGINX logs.
And I assume you have libpng and libjpeg installed?
Nope
Then that could be the problem. Something like this might fix it:
apt-get install libpng12-0 libjpeg8
Looks like I already had them. (Defaults in Ubuntu maybe?)
Still does not work.
Probably, I thought that was weird that you wouldn’t have them installed. Besides jpegtran and optipng should both bundle their own internal libraries for those anyway, but I figured it was worth a try. I wonder if it is something tricky with HHVM then. I’ve never tested HHVM, but I think other users have made it work.
Seems like something is suppressing the output from the binary files, so let’s run one of them manually to see what happens.Login to your server via SSH, and run this command:
/home/websites/sverige.science/www/wp-content/ewww/optipng -v
That should output the version, copyright info, and credits.
Perfect, so the binaries are there, and functional. Now to figure out why their output is being suppressed by HHVM.
Might be easiest if you could take a snapshot of your server, and transfer it to me. Contact me at https://ewww.io/contact-us/ and I’ll send you further instructions.
- The topic ‘Stops working after a while’ is closed to new replies.