User Sync:can't synchronization all the users

User Sync:can't synchronization all the users

Hi,I have two sites need synchronization all users(about 2400 members), form a master site(wp3.9.2) to a sub site(wp4.1),all of them with buddpress and no multisite.
when I begin synchronization everything looks good,but always stop synchronization when finish about 1200 members.

the log is like this:

[2015-01-13 03:22:27][S] 01 - new subsite conection - central_url=http://www.xxx.org;; replace_user=0;; overwrite_user=0;;***
[2015-01-13 03:22:27][S] 02 - sending request - url=http://www.xxx.org/wp-admin/admin-ajax.php?action=user_sync_api;;***
[2015-01-13 03:22:28][S] 03 - sending request - response=ok;;***
[2015-01-13 03:22:28][S] 01_2 - sync users for new subsite***
[2015-01-13 03:22:28][S] 02 - sending request - url=http://www.xxx.org/wp-admin/admin-ajax.php?action=user_sync_api;;***
[2015-01-13 03:22:29][S] 0-10 - ajax actions***
[2015-01-13 03:22:29][S] 0-10 - ajax actions***
[2015-01-13 03:22:29][S] 4-10 - hash sum error***
[2015-01-13 03:22:29][S] 3-10 - p or hash not set***
...
[2015-01-13 03:48:45][S] 0-10 - ajax actions***
[2015-01-13 03:48:45][S] 5-10 - start sync_user***
[2015-01-13 03:48:45][S] 15 - insert user - step 1***
[2015-01-13 03:48:45][S] 17 - insert user - step 2***
[2015-01-13 03:48:45][S] 18 - insert user - ok***
[2015-01-13 03:48:46][S] 0-10 - ajax actions***
[2015-01-13 03:48:46][S] 4-10 - hash sum error***
[2015-01-13 03:48:46][S] 3-10 - p or hash not set***
[2015-01-13 03:48:46][S] 0-10 - ajax actions***
[2015-01-13 03:48:46][S] 4-10 - hash sum error***
[2015-01-13 03:48:46][S] 3-10 - p or hash not set***

can you hlep me?

  • Ash
    • WordPress Hacker

    Hello @zivix

    Welcome to WPMU community!

    I hope you are well today and thanks for asking the question.

    It looks like it is a hash sum error. I am tagging an available developer from second level support line in this thread for his valuable opinion on this issue. Please note that, developer response might be slower than usual staff response, so we appreciate your patience on this.

    Would you please send me login details and ftp details?

    To send me details, please use our contact form: https://premium.wpmudev.org/contact/

    Select: I have a different question
    Subject: Attn-Ash
    Details: Send all required details (admin info and ftp details) with a link of this thread, so that I can track.
    Also post a note here once you send the info.

    Cheers
    Ash

  • Hoang Ngo
    • Code Slayer

    Hi @ zivix,

    I hope you are well today and many thanks for your information.

    After I logged into your site's admin, and trying to access the Users Sync panel, I got 403 error. I checked with my colleague @Ashok, and he gets the same error with me. Can you please check? :slight_smile:

    Best regards,
    Hoang

  • Hoang Ngo
    • Code Slayer

    Hi @ zivix,

    I'm trying to do a sync on your site, but it's look like the server has run out of memory, and then I see the 502 Bad Gateway error message (maybe the PHP-FPM has stop because memory run out.)

    My theory is when the user sync plugin trying to perform a sync, it's query all your users data in main site and do a loop, creating a request for sending data to sub site with a signal to import a user. If 2 sites was in a same host, this somehow can reach the child limit of server/PHP-FPM or memory limit or timeout.

    For now, I saw you set the memory limit to 128MB, can you please increase it to 256 or 512? so we can know it is memory issue or not :slight_smile:

    Thanks,
    Hoang

  • zivix
    • WPMU DEV Initiate

    Hi, @Hoang Ngo
    the test sites run on a one core CPU and 1GB RAM server, 5 max_children of PHP-FPM,I increase those two sites memory limit to 256MB with define( 'WP_MEMORY_LIMIT', '256M' ); in wp-config.php now,please have a look..

    But the server of my formal sites is 4 core CPU and 4GB RAM,just has two sites on it, 40 max_children of PHP-FPM, and each site set up 512 MB memory,also has this problem..half of 2400 users meet "hash sum error: and "p or hash not set" when synchronization....

    This plugin is very important to me,please help...thanks!

    by the way, I use eAccelerator(256MB Memory Size) and memcache(512 Memory Size)

  • Hoang Ngo
    • Code Slayer

    @ zivix,

    Looking at the error log from User-sync, we can know the issue related to PHP-FPM, can you please send me the PHP-FPM logs, you can upload it to your server (the server I got access) and let me know :slight_smile:

    Thanks a ton for your patience here.

    Best regards,
    Hoang

  • Hoang Ngo
    • Code Slayer

    Hi @zivix,

    Hope you have a wonderful weekend :slight_smile:

    After check your log and config, for now I saw you config the PHP-FPM log level is notice, can you please update it to error level, also, for checking I want to increase the max_children to 15.

    Thanks a lot :slight_smile:
    Hoang

  • Hoang Ngo
    • Code Slayer

    Hi @zivix,

    I hope you are well today and I'm sorry for the delay.

    After debugging this again, I believe this is still because server configuration & resources. The more users you have, the more resources the server need.

    In your case, when the main site sends import signal & data to sub-site, it's will create a request for each user. Example you have 150 users, but at 110 users, the max-request has been reached. The next request will be in the queue and waiting, if the time waiting is too long, the server will halt the request, and I think that's the reason.

    For now, I think we need to reconfig for the server can process more requests and increase the time limit. Let's see if it can help

    Best regards,
    Hoang

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.