iPad upgrade fails -4013 Error:Unexpected device state 'Recovery' expected 'RestoreOS'
Original issue: WiFi connection drops, later no wifi networks show in the WiFi setup screen.
Also get message “Cellular Update Failed. Your iPad cannot access cellular data until it has been updated”
Current version: 13.4.1 (17E262) / iPad Pro 10.5” Model: MPME2LL/A
Fails to upgrade software to 13.5.1. On both the iPad AND via iTunes (from 10.14.6 macOS.Mojave AND on 10.15.5 macOS.Catalina).
Already tried few different cables.
Hardware diagnostics don't show any hardware errors.
1) Upgrade starts
2) iPad restarts during the beginning upgrade phase
3) While apple logo displayed
4) the entire screen flashes RED
5) then ipad restarts again
6) Upgrade process terminates with
7) "Error: “The iPad could not be updated. An unknown error occurred (4013)”
Log shows:
[20:17:07.6236] <Recovery Mode Device 0x600003be5080>: Recovery mode succeeded
[20:17:07.6237] Finished Recovery Restore Phase: Successful
[20:17:09.5747] Recovery mode device disconnected
[20:17:09.5747] Device removed when in state Restoring, moving device to transition state
[20:17:09.5747] Changing state from 'Restoring' to 'Transitioning'
[20:17:09.5747] Creating timer to monitor transition
[20:17:09.5747] Creating a timer for 10 minutes
[20:17:19.0952] Recovery mode device connected
[20:17:19.0953] Transitioning device returned, continuing restore.
[20:17:19.0953] Canceling timer
[20:17:19.0953] Changing state from 'Transitioning' to 'Restoring'
[20:17:19.0953] State Machine Dump, status:ERROR - [state:Recovery remaining-cycles:0] -> [state:RestoreOS remaining-cycles:1 (current state)]
[20:17:19.0954] Unexpected device state 'Recovery' expected 'RestoreOS'
[20:17:19.0956] Changing state from 'Restoring' to 'Error'
[20:17:19.0957] State is now set to error: Unexpected device state 'Recovery' expected 'RestoreOS'
[20:17:19.0957] Device isn't booted but USB is up.
[20:17:19.0961] Restore completed, status:4013
[20:17:19.0961] Failure Description:
[20:17:19.0961] Depth:0 Code:4013 Error:Unexpected device state 'Recovery' expected 'RestoreOS'
8) After the failed upgrade iPad is stuck in the Support.apple.com/ipad/restore mode
Any suggestions are highly appreciated!
iPad Pro 10.5-inch, Wi-Fi, Cellular