WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#19574 closed defect (bug) (duplicate)

Network Update dies on unresolved subsite/domain

Reported by: joshua.strebel Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3
Component: General Keywords:
Focuses: Cc:

Description

When running multisite network update (/network/upgrade.php?action=upgrade) if a subsite domain (or mapped domain) fails to resolve it dies and the update loop stops.

Simply implementing the n value in network/upgrade.php?action=upgrade&n=37 and refreshing will skip failed site and continue running through 5 at a time.

Reproduce:
-Multisite
-Donncha Domain mapping plugin with domains mapped to subsites
-Say foo.domain.com is mapped to site 35, but foo.domain.com has a dns issue and cannot be resolved.
-When the script hits n=35 it stops with Error message: couldn't connect to host

Suggestion:
Log the failure and skip the bad domain and proceed with the rest. When complete print list of failed update tasks for manual follow up. Or try then again on the non domain mapped subsite url domcin.com/site2

Change History (3)

comment:1 joshua.strebel2 years ago

  • Cc joshua.strebel added
  • Type changed from enhancement to defect (bug)

comment:2 joshua.strebel2 years ago

implementing => incrementing

comment:3 SergeyBiryukov2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.