• Resolved CarolineElisa

    (@carolineelisa)


    We briefly had both Smush and WP-Optimize active at the same time, but now I have deactivated Smush and want to (re)compress all images so that WebP versions are created.

    I am able to compress one by one from the media library – I am taken to the image edit screen where I see ‘Note: This image is already compressed by another plugin’ but still have the option to compress. It works, and a WebP version is created.

    However, when I try and bulk compress from the WP-Optimize image settings page, I get ‘A total of 1 image(s) were successfully compressed in this iteration. 357 selected image(s) could not be compressed. Please see the logs for more information, you may try again later.’

    In the logs I see:

    [2023-07-17 11:53:18 : DEBUG] - Lock option (updraft_lock_smush, wp_options) already existed in the database
    [2023-07-17 11:53:18 : INFO] - Lock (updraft_lock_smush, wp_options) could not be acquired (it is locked)
    [2023-07-17 11:53:18 : INFO] - Failed to gain semaphore lock (smush) - another process is already processing the queue - aborting (if this is wrong - i.e. if the other process crashed without removing the lock, then another can be started after 1 minute
    [2023-07-17 11:53:18 : INFO] - Cleaning up tasks of type (smush). A total of 359 tasks will be deleted.
    [2023-07-17 11:53:26 : INFO] - Task with ID 1703 and type (smush) failed with error code http_request_failed - cURL error 28: Operation timed out after 1000 milliseconds with 0 bytes received
    [2023-07-17 11:53:26 : INFO] - Cannot establish connection with reSmush.it webservice. Please try later
    [2023-07-17 11:53:26 : INFO] - Successfully optimized the image - .The file was compressed to N/A using WP-Optimize
    [2023-07-17 11:53:26 : INFO] - Completed processing task with ID : 1703, and type 'smush'
    [2023-07-17 11:53:26 : INFO] - The task with id : 1704, and type 'smush' seems to have been deleted from the database.

    etc etc etc

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support vupdraft

    (@vupdraft)

    Hi,

    Your log says that you tried to launch two processes to close together.

    However, there does appear to be a wider problem at the moment.

    Smush.it is a third party service so I have contacted their support.

    However, we are due to release our own compression service in the the next release of WPO

    I do apologise for the inconvenience.

    Thread Starter CarolineElisa

    (@carolineelisa)

    Thanks for your reply.

    I just tried to bulk compress the images again, after no attempts since yesterday, and after compressing 3 images it fails:

    [2023-07-18 08:51:22 : INFO] - A total of 162 tasks of type smush found and will be processed in this iteration
    [2023-07-18 08:51:22 : DEBUG] - Lock option (updraft_lock_smush, wp_options) already existed in the database
    [2023-07-18 08:51:22 : INFO] - Lock (updraft_lock_smush, wp_options) could not be acquired (it is locked)
    [2023-07-18 08:51:22 : INFO] - Failed to gain semaphore lock (smush) - another process is already processing the queue - aborting (if this is wrong - i.e. if the other process crashed without removing the lock, then another can be started after 1 minute
    [2023-07-18 08:51:22 : INFO] - Cleaning up tasks of type (smush). A total of 165 tasks will be deleted.
    [2023-07-18 08:51:23 : INFO] - Successfully optimized the image - .The file was compressed to N/A using WP-Optimize
    [2023-07-18 08:51:23 : INFO] - Completed processing task with ID : 5385, and type 'smush'
    [2023-07-18 08:51:23 : INFO] - The task with id : 5386, and type 'smush' seems to have been deleted from the database.
    …..
    [2023-07-18 08:51:23 : INFO] - The task with id : 5546, and type 'smush' seems to have been deleted from the database.
    [2023-07-18 08:51:23 : INFO] - Lock option (updraft_lock_smush, wp_k5gxv6_options) released
    [2023-07-18 08:51:23 : INFO] - Successfully processed the queue (smush). 165 tasks were processed out of 165.
    [2023-07-18 08:51:23 : INFO] - Lock option (updraft_lock_smush, wp_k5gxv6_options) was deleted from the database

    Is this simply due to limitations on the Smush.it server?

    Look forward to trying out your compression service on the next release.

    Plugin Support vupdraft

    (@vupdraft)

    Mostly, the first bit says that the semaphore lock could not be gained (this means that you retried the compression too quickly.

    However, we are getting quite a few users having issues will bulk compression with the smush.it server so I think you would have been experiencing problems regardless. But, yes this is an issue with smush server which unfortunately we have very little control over.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unable to bulk compress images’ is closed to new replies.