Support » Plugin: Mailchimp for WooCommerce » Issue syncing mailchimp to woocommerce

  • Resolved vitaminmike

    (@vitaminmike)


    Hey guys having extreme issues trying to sync wooCommerce to MailChimp. I am stuck in a forever sync mode.It’s been in this state for a week now. The store is quite large so I am using the CLI and checked to see if there was any issues there and didn’t see any.

    I have tried multiple audiences of different sizes as well to see if that would help but nothing seems to be working. Below are all our details and current log.

    Plugin version – 2.2.2
    Hosting – Siteground (shared)
    PHP version – 7.2.20?
    Cache plugin – SG Cache
    Tried multiple uninstalls and reinstalls.
    Error log as of today:

    2019-09-04T01:42:32+00:00 ERROR api :: processCurlResponse :: Array
    (
        [info] => Array
            (
                [url] => https://us14.api.mailchimp.com/3.0/ecommerce/stores/5d679010e66fb/carts/635bf6c9c7ba0a4641c2a150afe1a277
                [content_type] => application/problem+json; charset=utf-8
                [http_code] => 404
                [header_size] => 631
                [request_size] => 366
                [filetime] => -1
                [ssl_verify_result] => 0
                [redirect_count] => 0
                [total_time] => 0.212835
                [namelookup_time] => 3.7E-5
                [connect_time] => 0.020616
                [pretransfer_time] => 0.073949
                [size_upload] => 0
                [size_download] => 200
                [speed_download] => 943
                [speed_upload] => 0
                [download_content_length] => 200
                [upload_content_length] => -1
                [starttransfer_time] => 0.212748
                [redirect_time] => 0
                [redirect_url] => 
                [primary_ip] => 104.88.12.81
                [certinfo] => Array
                    (
                    )
    
                [primary_port] => 443
                [local_ip] => 37.60.255.166
                [local_port] => 51824
                [request_header] => DELETE /3.0/ecommerce/stores/5d679010e66fb/carts/635bf6c9c7ba0a4641c2a150afe1a277 HTTP/1.1
    Host: us14.api.mailchimp.com
    Authorization: Basic bWFpbGNoaW1wOmZjZGM4MzJlZWNiNzJmMzI1ZDU5NTUxZTQ5MTg5NmI0
    Accept: */*
    Accept-Encoding: deflate, gzip
    content-type: application/json
    user-agent: MailChimp for WooCommerce/2.2.2; PHP/7.2.20; WordPress/5.2.2; Woo/3.7.0;
    
            )
    
        [data] => Array
            (
                [type] => http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/
                [title] => Resource Not Found
                [status] => 404
                [detail] => The requested resource could not be found.
                [instance] => 9d47a216-8db1-465f-ad00-d3349b7a69bc
            )
    
    )
    
    2019-09-04T07:55:16+00:00 ERROR api :: processCurlResponse :: Array
    (
        [info] => Array
            (
                [url] => https://us14.api.mailchimp.com/3.0/ecommerce/stores/5d679010e66fb/carts/9bc55a03e15224724e2259b6cac86b94
                [content_type] => application/problem+json; charset=utf-8
                [http_code] => 404
                [header_size] => 631
                [request_size] => 366
                [filetime] => -1
                [ssl_verify_result] => 0
                [redirect_count] => 0
                [total_time] => 0.185453
                [namelookup_time] => 4.2E-5
                [connect_time] => 0.019382
                [pretransfer_time] => 0.072349
                [size_upload] => 0
                [size_download] => 199
                [speed_download] => 1075
                [speed_upload] => 0
                [download_content_length] => 199
                [upload_content_length] => -1
                [starttransfer_time] => 0.185365
                [redirect_time] => 0
                [redirect_url] => 
                [primary_ip] => 104.88.12.81
                [certinfo] => Array
                    (
                    )
    
                [primary_port] => 443
                [local_ip] => 37.60.255.166
                [local_port] => 36018
                [request_header] => DELETE /3.0/ecommerce/stores/5d679010e66fb/carts/9bc55a03e15224724e2259b6cac86b94 HTTP/1.1
    Host: us14.api.mailchimp.com
    Authorization: Basic bWFpbGNoaW1wOmZjZGM4MzJlZWNiNzJmMzI1ZDU5NTUxZTQ5MTg5NmI0
    Accept: */*
    Accept-Encoding: deflate, gzip
    content-type: application/json
    user-agent: MailChimp for WooCommerce/2.2.2; PHP/7.2.20; WordPress/5.2.2; Woo/3.7.0;
    
            )
    
        [data] => Array
            (
                [type] => http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/
                [title] => Resource Not Found
                [status] => 404
                [detail] => The requested resource could not be found.
                [instance] => 19a50a8c-1dc6-4ddb-a7f6-43f891a3b4aa
            )
    
    )
    
    2019-09-04T07:55:48+00:00 ERROR api :: processCurlResponse :: Array
    (
        [info] => Array
            (
                [url] => https://us14.api.mailchimp.com/3.0/ecommerce/stores/5d679010e66fb/carts/9bc55a03e15224724e2259b6cac86b94
                [content_type] => application/problem+json; charset=utf-8
                [http_code] => 404
                [header_size] => 631
                [request_size] => 366
                [filetime] => -1
                [ssl_verify_result] => 0
                [redirect_count] => 0
                [total_time] => 0.169767
                [namelookup_time] => 2.8E-5
                [connect_time] => 0.019329
                [pretransfer_time] => 0.065993
                [size_upload] => 0
                [size_download] => 197
                [speed_download] => 1165
                [speed_upload] => 0
                [download_content_length] => 197
                [upload_content_length] => -1
                [starttransfer_time] => 0.169699
                [redirect_time] => 0
                [redirect_url] => 
                [primary_ip] => 104.88.12.81
                [certinfo] => Array
                    (
                    )
    
                [primary_port] => 443
                [local_ip] => 37.60.255.166
                [local_port] => 40208
                [request_header] => DELETE /3.0/ecommerce/stores/5d679010e66fb/carts/9bc55a03e15224724e2259b6cac86b94 HTTP/1.1
    Host: us14.api.mailchimp.com
    Authorization: Basic bWFpbGNoaW1wOmZjZGM4MzJlZWNiNzJmMzI1ZDU5NTUxZTQ5MTg5NmI0
    Accept: */*
    Accept-Encoding: deflate, gzip
    content-type: application/json
    user-agent: MailChimp for WooCommerce/2.2.2; PHP/7.2.20; WordPress/5.2.2; Woo/3.7.0;
    
            )
    
        [data] => Array
            (
                [type] => http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/
                [title] => Resource Not Found
                [status] => 404
                [detail] => The requested resource could not be found.
                [instance] => c8548e60-8681-4ab7-bdc6-2cc17cc0ffb1
            )
    
    )
    
    2019-09-04T07:55:48+00:00 ERROR api :: processCurlResponse :: Array
    (
        [info] => Array
            (
                [url] => https://us14.api.mailchimp.com/3.0/ecommerce/stores/5d679010e66fb/carts/4cdae6fce51ed2a24a7e57d94b75d568
                [content_type] => application/problem+json; charset=utf-8
                [http_code] => 404
                [header_size] => 631
                [request_size] => 366
                [filetime] => -1
                [ssl_verify_result] => 0
                [redirect_count] => 0
                [total_time] => 0.160186
                [namelookup_time] => 2.4E-5
                [connect_time] => 0.017346
                [pretransfer_time] => 0.06013
                [size_upload] => 0
                [size_download] => 200
                [speed_download] => 1250
                [speed_upload] => 0
                [download_content_length] => 200
                [upload_content_length] => -1
                [starttransfer_time] => 0.160101
                [redirect_time] => 0
                [redirect_url] => 
                [primary_ip] => 104.88.12.81
                [certinfo] => Array
                    (
                    )
    
                [primary_port] => 443
                [local_ip] => 37.60.255.166
                [local_port] => 40226
                [request_header] => DELETE /3.0/ecommerce/stores/5d679010e66fb/carts/4cdae6fce51ed2a24a7e57d94b75d568 HTTP/1.1
    Host: us14.api.mailchimp.com
    Authorization: Basic bWFpbGNoaW1wOmZjZGM4MzJlZWNiNzJmMzI1ZDU5NTUxZTQ5MTg5NmI0
    Accept: */*
    Accept-Encoding: deflate, gzip
    content-type: application/json
    user-agent: MailChimp for WooCommerce/2.2.2; PHP/7.2.20; WordPress/5.2.2; Woo/3.7.0;
    
            )
    
        [data] => Array
            (
                [type] => http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/
                [title] => Resource Not Found
                [status] => 404
                [detail] => The requested resource could not be found.
                [instance] => 59f0cf73-88a9-4353-b495-48b1cca6fc7d
            )
    
    )
    
    2019-09-04T08:03:37+00:00 ERROR api :: processCurlResponse :: Array
    (
        [info] => Array
            (
                [url] => https://us14.api.mailchimp.com/3.0/ecommerce/stores/5d679010e66fb/carts/4cdae6fce51ed2a24a7e57d94b75d568
                [content_type] => application/problem+json; charset=utf-8
                [http_code] => 404
                [header_size] => 631
                [request_size] => 366
                [filetime] => -1
                [ssl_verify_result] => 0
                [redirect_count] => 0
                [total_time] => 0.177907
                [namelookup_time] => 2.9E-5
                [connect_time] => 0.019193
                [pretransfer_time] => 0.071421
                [size_upload] => 0
                [size_download] => 199
                [speed_download] => 1124
                [speed_upload] => 0
                [download_content_length] => 199
                [upload_content_length] => -1
                [starttransfer_time] => 0.17784
                [redirect_time] => 0
                [redirect_url] => 
                [primary_ip] => 104.88.12.81
                [certinfo] => Array
                    (
                    )
    
                [primary_port] => 443
                [local_ip] => 37.60.255.166
                [local_port] => 37358
                [request_header] => DELETE /3.0/ecommerce/stores/5d679010e66fb/carts/4cdae6fce51ed2a24a7e57d94b75d568 HTTP/1.1
    Host: us14.api.mailchimp.com
    Authorization: Basic bWFpbGNoaW1wOmZjZGM4MzJlZWNiNzJmMzI1ZDU5NTUxZTQ5MTg5NmI0
    Accept: */*
    Accept-Encoding: deflate, gzip
    content-type: application/json
    user-agent: MailChimp for WooCommerce/2.2.2; PHP/7.2.20; WordPress/5.2.2; Woo/3.7.0;
    
            )
    
        [data] => Array
            (
                [type] => http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/
                [title] => Resource Not Found
                [status] => 404
                [detail] => The requested resource could not be found.
                [instance] => 5a752c05-4703-4486-b45f-6b7cd6a05cae
            )
    
    )
    
    2019-09-04T08:03:37+00:00 ERROR api :: processCurlResponse :: Array
    (
        [info] => Array
            (
                [url] => https://us14.api.mailchimp.com/3.0/ecommerce/stores/5d679010e66fb/carts/9bc55a03e15224724e2259b6cac86b94
                [content_type] => application/problem+json; charset=utf-8
                [http_code] => 404
                [header_size] => 631
                [request_size] => 366
                [filetime] => -1
                [ssl_verify_result] => 0
                [redirect_count] => 0
                [total_time] => 0.211119
                [namelookup_time] => 3.6E-5
                [connect_time] => 0.01747
                [pretransfer_time] => 0.075053
                [size_upload] => 0
                [size_download] => 199
                [speed_download] => 943
                [speed_upload] => 0
                [download_content_length] => 199
                [upload_content_length] => -1
                [starttransfer_time] => 0.211041
                [redirect_time] => 0
                [redirect_url] => 
                [primary_ip] => 104.88.12.81
                [certinfo] => Array
                    (
                    )
    
                [primary_port] => 443
                [local_ip] => 37.60.255.166
                [local_port] => 37376
                [request_header] => DELETE /3.0/ecommerce/stores/5d679010e66fb/carts/9bc55a03e15224724e2259b6cac86b94 HTTP/1.1
    Host: us14.api.mailchimp.com
    Authorization: Basic bWFpbGNoaW1wOmZjZGM4MzJlZWNiNzJmMzI1ZDU5NTUxZTQ5MTg5NmI0
    Accept: */*
    Accept-Encoding: deflate, gzip
    content-type: application/json
    user-agent: MailChimp for WooCommerce/2.2.2; PHP/7.2.20; WordPress/5.2.2; Woo/3.7.0;
    
            )
    
        [data] => Array
            (
                [type] => http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/
                [title] => Resource Not Found
                [status] => 404
                [detail] => The requested resource could not be found.
                [instance] => fb43c8ca-3495-49b5-a5ac-f8a2ef8f7e14
            )
    
    )
    
    2019-09-04T08:05:42+00:00 ERROR api :: processCurlResponse :: Array
    (
        [info] => Array
            (
                [url] => https://us14.api.mailchimp.com/3.0/ecommerce/stores/5d679010e66fb/carts/9bc55a03e15224724e2259b6cac86b94
                [content_type] => application/problem+json; charset=utf-8
                [http_code] => 404
                [header_size] => 631
                [request_size] => 366
                [filetime] => -1
                [ssl_verify_result] => 0
                [redirect_count] => 0
                [total_time] => 0.18684
                [namelookup_time] => 3.4E-5
                [connect_time] => 0.019147
                [pretransfer_time] => 0.070598
                [size_upload] => 0
                [size_download] => 198
                [speed_download] => 1064
                [speed_upload] => 0
                [download_content_length] => 198
                [upload_content_length] => -1
                [starttransfer_time] => 0.186778
                [redirect_time] => 0
                [redirect_url] => 
                [primary_ip] => 104.88.12.81
                [certinfo] => Array
                    (
                    )
    
                [primary_port] => 443
                [local_ip] => 37.60.255.166
                [local_port] => 50206
                [request_header] => DELETE /3.0/ecommerce/stores/5d679010e66fb/carts/9bc55a03e15224724e2259b6cac86b94 HTTP/1.1
    Host: us14.api.mailchimp.com
    Authorization: Basic bWFpbGNoaW1wOmZjZGM4MzJlZWNiNzJmMzI1ZDU5NTUxZTQ5MTg5NmI0
    Accept: */*
    Accept-Encoding: deflate, gzip
    content-type: application/json
    user-agent: MailChimp for WooCommerce/2.2.2; PHP/7.2.20; WordPress/5.2.2; Woo/3.7.0;
    
            )
    
        [data] => Array
            (
                [type] => http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/
                [title] => Resource Not Found
                [status] => 404
                [detail] => The requested resource could not be found.
                [instance] => 684e5330-da66-4d28-a329-9f91922c9a93
            )
    
    )
    

    Thank you

Viewing 8 replies - 1 through 8 (of 8 total)
  • taisa1984

    (@taisa1984)

    Hi!

    I am having also the same issues. But I don’t see anything else malfunctioning.

    What can be causing this? Any idea?

    Also experiencing this issue, and syncing super slow….like two weeks slow…

    I am encountering the same issue too. In fact, I removed all my orders and just the products inside. It says the product sync is completed and the orders sycn is halted. But the status is forever Syncing.

    I am also using the CLI method. How can we force-resync?

    2019-09-19T02:17:30+00:00 NOTICE product_sync.success :: updateStoreProduct :: #4020
    2019-09-19T02:17:30+00:00 DEBUG MailChimp_WooCommerce_Process_Products@handle :: queuing up the next job
    2019-09-19T02:17:33+00:00 DEBUG MailChimp_WooCommerce_Process_Products@handle :: products :: completing now!
    2019-09-19T02:17:33+00:00 NOTICE product_sync.completed :: Done with the product sync :: queuing up the orders next!
    2019-09-19T02:17:35+00:00 NOTICE sync.stop :: halting the sync for :: orders
    2019-09-19T02:19:01+00:00 DEBUG queue listen :: process id 31583 :: loop #300
    2019-09-19T02:20:41+00:00 DEBUG queue listen :: process id 31583 :: loop #320
    2019-09-19T02:22:21+00:00 DEBUG queue listen :: process id 31583 :: loop #340
    2019-09-19T02:23:56+00:00 DEBUG queue :: [end] queue listen process_id = 31583
    2019-09-19T02:24:03+00:00 DEBUG queue :: [start] queue listen process_id [540] :: max_time [1800] :: memory limit [33554432000]
    2019-09-19T02:25:38+00:00 DEBUG queue listen :: process id 540 :: loop #20
    2019-09-19T02:27:18+00:00 DEBUG queue listen :: process id 540 :: loop #40
    2019-09-19T02:28:58+00:00 DEBUG queue listen :: process id 540 :: loop #60
    2019-09-19T02:30:38+00:00 DEBUG queue listen :: process id 540 :: loop #80
    2019-09-19T02:32:18+00:00 DEBUG queue listen :: process id 540 :: loop #100
    2019-09-19T02:33:58+00:00 DEBUG queue listen :: process id 540 :: loop #120
    2019-09-19T02:35:38+00:00 DEBUG queue listen :: process id 540 :: loop #140
    2019-09-19T02:37:18+00:00 DEBUG queue listen :: process id 540 :: loop #160
    2019-09-19T02:38:58+00:00 DEBUG queue listen :: process id 540 :: loop #180
    2019-09-19T02:40:38+00:00 DEBUG queue listen :: process id 540 :: loop #200
    2019-09-19T02:42:18+00:00 DEBUG queue listen :: process id 540 :: loop #220
    2019-09-19T02:43:58+00:00 DEBUG queue listen :: process id 540 :: loop #240
    2019-09-19T02:45:38+00:00 DEBUG queue listen :: process id 540 :: loop #260
    2019-09-19T02:47:18+00:00 DEBUG queue listen :: process id 540 :: loop #280
    2019-09-19T02:48:58+00:00 DEBUG queue listen :: process id 540 :: loop #300
    2019-09-19T02:50:38+00:00 DEBUG queue listen :: process id 540 :: loop #320
    2019-09-19T02:52:18+00:00 DEBUG queue listen :: process id 540 :: loop #340
    2019-09-19T02:53:53+00:00 DEBUG queue :: [end] queue listen process_id = 540
    2019-09-19T02:54:03+00:00 DEBUG queue :: [start] queue listen process_id [1556] :: max_time [1800] :: memory limit [33554432000]
    
    Plugin Author ryanhungate

    (@ryanhungate)

    @darnpunk if you go to your sync tab, then reload the page with &resync=1 you’ll see the re-sync button and it will start everything over from scratch.

    Can you please try that, and let the CLI continue to process things for you? Pretty sure that’s all you need and it will re-sync everything as planned.

    @vitaminmike we’ve seen a lot of requests coming over when hosting with Siteground. Have you checked with them about your CPU cap at all – and if they have any detected site outages due to this?

    @ryanhungate Thanks, that seems to work. It looks completed now. Just one more thing, the total number of products synced seems off from the products in my list. Is there a way to check in Mailchimp backend what is synced?

    Just to update, I disconnected my store and reconnected back. The numbers look alright now. But here’s a few things to note.

    I noticed running the tasks via WP CLI every minute via cron job seems to have some issues. What I saw in the logs is that every minute when cron tries to run the tasks, there is this “Currently running in another process. Error”

    My guess is when it first runs, it doesn’t exit until the max_time is met. For example, if I run manually the CLI without cron it shows this:

    queue listen process_id [9984] :: max_time [1800] :: memory limit [33554432000]

    I assume after 1800 seconds, this queue process then quits. And only then when cron tries to run the queue listen, it will work.

    If it’s less than 1800 seconds, that error above “Currently running in another process” will keep on showing up.

    Is this normal? Should the cron task be run every 1800 seconds?

    Im having the same issue since the beginning of September. Not syncing and customers are not added to my mailchimp newsletter. The debug code shows the same error as above.

    Plugin Author ryanhungate

    (@ryanhungate)

    @darnpunk thanks for reporting back. This is very normal behavior. Basically the log is showing you that your cron TRIED to initiate the background worker, but since it was already running, it says ‘no need to start again’ and closes out on it’s own. I would keep the cron schedule the same because in the case where a worker process got shut down unexpectedly it would catch it and respawn for you. Basically you’re all good here 🙂

    @kristoferlse can you please open up a new ticket and provide us with a log to debug?

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.