Updates fail leaving .maintenance file

I have 41 sites connected running on a subdomain of my server. The server is pretty beefy (16GB RAM, 4 processors) and idles through most of the day. Even when running updates, it rarely spikes over 200% (full power, half the processors).

What happens, every single time I run updates, is that I have a number of sites that fail the updates and the .maintenance file is left in place, so the sites never come back. We looked at this maybe a year ago and I finally just gave up because it felt like it’s my server, but now it’s annoying enough that it has made it to the top of my list again.

Here’s my system report. Hopefully someone has some idea what I can do to fix this. It’s been making me pull my hair out for a long time now.

CURL execution time is set to something like 300 seconds. There was a thread that mentioned that recently, so I updated that, but it didn’t help. Oh, and I have also tried setting all the advanced settings to default, but that didn’t help either. Just took a lot longer to run through every time I clicked on any buttons.

Thanks in advance for any ideas.


### WordPress Check                Required                                               Detected                                     Status   ###

FileSystem Method                  = direct                                               direct                                       Pass        
MultiSite Disabled                 =true                                                  true                                         Pass        
WordPress Memory Limit             >=64M                                                  1024M                                        Pass        
WordPress Version                  >=3.6                                                  6.0                                          Pass        

### PHP                            Required                                               Detected                                     Status   ###

cURL Extension Enabled             =true                                                  true                                         Pass        
cURL SSL Version                   >=OpenSSL/1.1.0                                        OpenSSL/1.1.1o                               Pass        
cURL Timeout                       >=300 seconds                                          300                                          Pass        
cURL Version                       >=7.18.1                                               7.83.1                                       Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Allow URL fopen                N/A                                                    NO                                                       
PHP Disabled Functions             N/A                                                    No functions disabled.                                   
PHP Exif Support                   N/A                                                    YES ( V7.4.)                                             
PHP IPTC Support                   N/A                                                    YES                                                      
PHP Loaded Extensions              N/A                                                    Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, cgi-fcgi, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, openssl, pcntl, pcre, pdo_mysql, pdo_sqlite, posix, readline, session, sockets, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib            
PHP Max Execution Time             >=30 seconds                                           600                                          Pass        
PHP Max Input Time                 >=30 seconds                                           600                                          Pass        
PHP Memory Limit                   >=128M                                                 1024M                                        Pass        
PHP Post Max Size                  >=2M                                                   1024M                                        Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Upload Max Filesize            >=2M                                                   1024M                                        Pass        
PHP Version                        >=7.0                                                  7.4.29                                       Pass        
PHP XML Support                    N/A                                                    YES                                                      
SSL Extension Enabled              =true                                                  true                                         Pass        
SSL Warnings                       = empty                                                                                             Pass        

### MySQL                          Required                                               Detected                                     Status   ###

MySQL Client Encoding              N/A                                                    utf8mb4                                                  
MySQL Mode                         N/A                                                    ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION            
MySQL Version                      >=5.0                                                  10.3.35-MariaDB                              Pass        

### Server Configuration           Detected Value                                      ###

Accept Content                     text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Charset Content             N/A                                                    
Architecture                       64		 bit                                               
Gateway Interface                  CGI/1.1                                                
HTTPS                              ON                                                     
Memory Usage                       18.94 MB                                               
Operating System                   Linux                                                  
Request Time                       1654545605                                             
Server Protocol                    HTTP/1.1                                               
Server self connect                Response Test O.K.                                     
Server Software                    Apache                                                 
User Agent                         Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36

### MainWP Dashboard Settings      Detected Value                                      ###

Abandoned plugins/themes tolerance 365                                                    
Basic uptime monitoring enabled    Yes                                                    
Cache control enabled              Yes                                                    
MainWP Dashboard Version           Latest: 4.2.4.1 | Detected: 4.2.4.1 Pass               
MainWP legacy backups enabled      No                                                     
Maximum number of pages to return                                                         
Maximum number of posts to return                                                         
Maximum simultaneous install and update requests1                                                      
Maximum simultaneous requests      16                                                     
Maximum simultaneous requests per ip16                                                     
Maximum simultaneous sync requests 32                                                     
Minimum delay between requests     200                                                    
Minimum delay between requests to the same ip1000                                                   
Number of child sites              42                                                     
Optimize for shared hosting or big networksYes                                                    
Plugin advanced automatic updates enabledYes                                                    
Primary Backup System              MainWP UpdraftPlus Extension                           
REST API enabled                   No                                                     
Site health monitoring enabled     No                                                     
Theme advanced automatic updates enabledYes                                                    
Use WP Cron                        Yes                                                    
WP Core advanced automatic updates enabledYes                                                    

### Extensions                     Version                                                License                                      Status   ###

MainWP Bulk Settings Manager Extension4.0.4                                                  Actived                                      Pass        
MainWP Clean and Lock Extension    4.0.1.2                                                Actived                                      Pass        
MainWP Code Snippets Extension     4.0.1                                                  Actived                                      Pass        
MainWP Custom Dashboard Extension  4.0.2                                                  Actived                                      Pass        
MainWP Domain Monitor Extension    4.0                                                    Actived                                      Pass        
MainWP Favorites Extension         4.0.10                                                 Actived                                      Pass        
MainWP File Uploader Extension     4.1                                                    Actived                                      Pass        
MainWP Lighthouse Extension        4.0.1                                                  Actived                                      Pass        
MainWP Staging Extension           4.0.2                                                  Actived                                      Pass        
MainWP UpdraftPlus Extension       4.0.5                                                  Actived                                      Pass        
MainWP Vulnerability Checker Extension4.1.1                                                  Actived                                      Pass        
MainWP White Label Extension       4.1.1                                                  Actived                                      Pass        
MainWP WooCommerce Status Extension4.0.7                                                  Actived                                      Pass        
MainWP Wordfence Extension         4.0.5                                                  Actived                                      Pass        
MainWP WordPress SEO Extension     4.0.1                                                  Deactivated                                  Warning     

### Plugin                         Version                                                Status                                    ###

Easy Updates Manager               9.0.12                                                 Active                                       
Health Check & Troubleshooting     1.4.5                                                  Active                                       
Hide Admin Notices                 1.2.2                                                  Active                                       
MainWP Child                       4.2.3                                                  Active                                       
MainWP Dashboard                   4.2.4.1                                                Active                                       
MainWP Key Maker                   1.2                                                    Active                                       
Really Simple SSL                  5.3.2                                                  Active                                       
UpdraftPlus - Backup/Restore       2.22.12.25                                             Active                                       
Wordfence Security                 7.5.10                                                 Active                                       
WP Rollback                        1.7.1                                                  Active                                       
Yoast SEO                          19.0                                                   Active                                       

1 Like

Hi @fotan

The issue is likely caused by the server configuration on which the Child sites are hosted and not the server of your Dashboard.

As a first step, I’d recommend doing what Bogdan suggested when you first reported this issue.

If that does not help, please open a private Help Desk ticket so we can collect some additional information & investigate further.

1 Like

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