Sync timeout issue

There seems to be a bug in the frontend sync. When a site is slow to respond, the progress just stops. It doesn’t fall back to the X (couldn’t connect) and carry on.

Weird part is when I sync with a command cli ‘wp mainwp sync --all’ it is just fine.

I did some further testing by increasing the values by 2 in the frontend MainWP Settings > Advanced Options and it just stops syncing about 50/80 % (it’s different with every sync)

I also switched the ‘Optimize for shared hosting or big networks’ to on and off and this didn’t help.

I’ve tested this with no caching plugins or firewall active on the MainWP instance.

Hi Rick,

I tried to duplicate this behavior on our test setups but I couldn’t.

Can you please post the community system report from your MainWP Dashboard for review? The report is located in your Dashboard under Status → Server, on the top right of the page.

Be sure to use the button like the one below; this button hides all your private information:

image

Pressing the button auto-copies the report to your clipboard then just paste it in a reply here.


### Server Info                    Required                                               Detected                                     Status   ###

MainWP Dashboard                   
MainWP Dashboard Version           4.1.7                                                  4.1.7                                        Pass        
MainWP Upload Directory            Writable                                               Writable                                     Pass        
MainWP Extensions                  
Activity Log for MainWP            1.7.0                                                                                                           
MainWP Branding Extension          4.0.2.1                                                API License Active                           Pass        
MainWP Bulk Settings Manager Extension4.0.2.1                                                API License Active                           Pass        
MainWP Client Reports Extension    4.0.9                                                  API License Active                           Pass        
MainWP Code Snippets Extension     4.0.1                                                  API License Active                           Pass        
MainWP Comments Extension          4.0.2.1                                                API License Active                           Pass        
MainWP Custom Dashboard Extension  4.0.2                                                  API License Active                           Pass        
MainWP Maintenance Extension       4.0.2.1                                                API License Active                           Pass        
MainWP UpdraftPlus Extension       4.0.3                                                  API License Active                           Pass        
MainWP Wordfence Extension         4.0.4                                                  API License Active                           Pass        
WordPress                          
WordPress Version                  >=3.6                                                  5.8                                          Pass        
WordPress Memory Limit             >=64M                                                  512M                                         Pass        
MultiSite Disabled                 =true                                                  true                                         Pass        
FileSystem Method                  = direct                                               direct                                       Pass        
PHP                                
PHP Version                        >=5.6                                                  7.4.13                                       Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Max Execution Time             >=30 seconds                                           30                                           Pass        
PHP Max Input Time                 >=30 seconds                                           60                                           Pass        
PHP Memory Limit                   >=128M                                                 512M                                         Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Upload Max Filesize            >=2M                                                   2M                                           Pass        
PHP Post Max Size                  >=2M                                                   8M                                           Pass        
SSL Extension Enabled              =true                                                  true                                         Pass        
SSL Warnings                       = empty                                                                                             Pass        
cURL Extension Enabled             =true                                                  true                                         Pass        
cURL Timeout                       >=300 seconds                                          300                                          Pass        
cURL Version                       >=7.18.1                                               7.68.0                                       Pass        
cURL SSL Version                   >=OpenSSL/0.9.8l                                       OpenSSL/1.1.1i                               Pass        
PHP Allow URL fopen                YES                                                    
PHP Exif Support                   YES ( V7.4.)                                           
PHP IPTC Support                   YES                                                    
PHP XML Support                    YES                                                    
PHP Disabled Functions             , pcntl_alarm, pcntl_async_signals, pcntl_exec, pcntl_fork, pcntl_get_last_error, pcntl_getpriority, pcntl_setpriority, pcntl_signal, pcntl_signal_dispatch, pcntl_signal_get_handler, pcntl_sigprocmask, pcntl_sigtimedwait, pcntl_sigwaitinfo, pcntl_strerror, pcntl_unshare, pcntl_wait, pcntl_waitpid, pcntl_wexitstatus, pcntl_wifcontinued, pcntl_wifexited, pcntl_wifsignaled, pcntl_wifstopped, pcntl_wstopsig, pcntl_wtermsig,
PHP Loaded Extensions              Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bz2, calendar, cgi-fcgi, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, igbinary, imagick, imap, intl, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, posix, readline, redis, session, shmop, sockets, sodium, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib
MySQL                              
MySQL Version                      >=5.0                                                  8.0.26-0ubuntu0.20.04.2                      Pass        
MySQL Mode                         NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
MySQL Client Encoding              utf8mb4                                                
Server Info                        
Server Software                    Apache                                                 
Operating System                   Linux                                                  
Architecture                       64		 bit                                               
Server Protocol                    HTTP/2.0                                               
HTTPS                              ON                                                     
Server self connect                Not expected HTTP response body:                       
User Agent                         Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15
Gateway Interface                  CGI/1.1                                                
Memory Usage                       26.95 MB                                               
Request Time                       1629982946                                             
Accept Content                     text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset Content             N/A                                                    
MainWP Settings                    
Number Of Child Sites              41                                                     
Use WP-Cron                        No                                                     
Optimize for Shared Hosting or Big NetworksNo                                                     
Automatic Daily Update             Install trusted updates                                
Abandoned Plugins/Themes Tolerance 365                                                    
Maximum number of posts to return  50                                                     
Maximum number of pages to return  50                                                     
Maximum Number of Comments         50                                                     
Primary Backup System              MainWP UpdraftPlus Extension                           
Maximum simultaneous requests      4                                                      
Minimum delay between requests     200                                                    
Maximum simultaneous requests per ip1                                                      
Minimum delay between requests to the same ip1000                                                   
Maximum simultaneous sync requests 8                                                      
Minimum simultaneous install/update requests3                                                      
Active Plugins                     
Activity Log for MainWP            1.7.0                                                  Active                                       
Advanced Custom Fields PRO         5.9.9                                                  Active                                       
Cloudflare                         4.5.1                                                  Active                                       
Companion Auto Update              3.8.2                                                  Active                                       
Contact Form 7                     5.4.2                                                  Active                                       
MainWP Dashboard                   4.1.7                                                  Active                                       
Redis Object Cache                 2.0.21                                                 Active                                       
UpdraftPlus - Backup/Restore       1.16.60                                                Active                                       
Wordfence Security                 7.5.5                                                  Active                                       
WP Fastest Cache                   0.9.3                                                  Active                                       
WP Fastest Cache Premium           1.6.0                                                  Active                                       
WP Mail SMTP                       3.0.3                                                  Active                                       
Yoast SEO                          17.0                                                   Active                                       

Hi Rick,

Can you try to increase the PHP Max Execution time to 600 and cURL Timeout to 600 and see if that helps?
Also, please try to increase the Max simultaneous sync request to 12 and see how that goes.

I tried it with the increased timeout settings but it didn’t make a difference. BUT I found the culprit.

I had define(‘WP_CACHE’, true); at the top of the wp-config.php file. When I removed it it was smooth sailing after that.

I probably forgot to remove that line when I was trying out some caching plugins in the past.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.