Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

iTunes Error Diagnosis Help (4013)

Hello, I'm having some trouble with my iPhone 4s and I was hoping someone on here could help me.

I have already read many of the articles on here about how to fix error 4013, but unfortunately none of them have worked for me.

The phone will not turn on, in normal mode it shows the apple logo, switches off & back on to the apple logo, repeat until battery dies.

I have tried to restore the iPhone in iTunes, when it reaches the point "Preparing to restore iPhone" the apple logo shows, iTunes then says "Waiting for iPhone", after the loading circle appears on the phone it switches off & turns back on again, this happens twice before iTunes states that "The iPhone could not be restored. An unknown error occurred (4013)" The phone then goes to the red "connect to iTunes screen".


If anyone can help me diagnose why this is happening I would really appreciate it. Thank you in advance.


I have attached the log from my last attempt below:


2015-08-25 15:19:27.884 [5172:1708]: restore library built May 29 2015 at 17:48:17

2015-08-25 15:19:27.885 [5172:1708]: iTunes: iTunes 12.2.2.25

2015-08-25 15:19:27.885 [5172:1708]: iTunes: Software payload version: 12H321

2015-08-25 15:19:27.886 [5172:1708]: iTunes: Using MobileRestore state machine

[14:21:31.0400] Changing state from '(null)' to 'Restoring'

[14:21:31.0476] device software does not support nonce generation

[14:21:31.0478] requested restore behavior: Erase

[14:21:31.0482] requested restore behavior: Erase

[14:21:31.0531] requested variant: Erase

[14:21:31.0532] requested restore behavior: Erase

[14:21:33.0285] amai: _AMAuthInstallBundleCreateServerRequestDictionary: withApTicket is False

[14:21:33.0296] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "RestoreLogo"

[14:21:33.0298] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "RestoreDeviceTree"

[14:21:33.0300] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "RestoreKernelCache"

[14:21:33.0302] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "RestoreRamDisk"

[14:21:33.0304] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "iBEC"

[14:21:33.0306] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "iBSS" Digest = "<CFData <<<<<MEID>>>>>20 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:33.0308] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "KernelCache"

[14:21:33.0318] amai: _AMAuthInstallBundleCreateServerRequestDictionary: entry "ftap" not part of manifest, skipping

[14:21:33.0320] amai: _AMAuthInstallBundleCreateServerRequestDictionary: entry "rfta" not part of manifest, skipping

[14:21:33.0322] amai: _AMAuthInstallBundleCreateServerRequestDictionary: entry "ftsp" not part of manifest, skipping

[14:21:33.0324] amai: _AMAuthInstallBundleCreateServerRequestDictionary: entry "rfts" not part of manifest, skipping

[14:21:33.0326] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "LLB" Digest = "<CFData <<<<<MEID>>>>>40 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:33.0328] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "AppleLogo"

[14:21:33.0330] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "BatteryCharging1"

[14:21:33.0332] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "BatteryFull"

[14:21:33.0334] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "BatteryPlugin"

[14:21:33.0339] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "BatteryCharging0"

[14:21:33.0341] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "BatteryLow0"

[14:21:33.0343] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "BatteryLow1"

[14:21:33.0344] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "RecoveryMode"

[14:21:33.0347] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "DeviceTree"

[14:21:33.0349] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "iBoot"

[14:21:33.0351] amai: _AMAuthInstallBundleCreateServerRequestDictionary: using UniqueBuildID <CFData 00000000078810E0 [000007FEFA098100]>{length = 20, capacity = 20, bytes = 0xc7af5180216092a96d54c4b742d6e7c4434f059c}

[14:21:33.0352] amai: AMAuthInstallRequestSendSync: SSO function returned NULL and no SSO token was provided, SSO disabled.

[14:21:35.0696] amai: tss_submit_job: HttpQueryInfo returned 200

[14:21:36.0011] amai: AMAuthInstallRequestSendSync: received tss response (server version: 2.1.0)

[14:21:36.0119] amai: _AMAuthInstallBundlePopulatePersonalizedBundle: no entry in manifest found for "ftap"

[14:21:36.0121] amai: _AMAuthInstallBundlePopulatePersonalizedBundle: no entry in manifest found for "rfta"

[14:21:36.0122] amai: _AMAuthInstallBundlePopulatePersonalizedBundle: no entry in manifest found for "ftsp"

[14:21:36.0124] amai: _AMAuthInstallBundlePopulatePersonalizedBundle: no entry in manifest found for "rfts"

[14:21:36.0192] amai: _AMAuthInstallBundlePopulatePersonalizedBundle: no entry in manifest found for "Diags"

[14:21:36.0274] <DFU Device <<<<<MEID>>>>>90>: production fused device

[14:21:36.0276] requested restore behavior: Erase

[14:21:36.0278] device software does not support nonce generation

[14:21:36.0283] WinDFU:XXXXXXXXXevice: path: \\?\USB#VID_05AC&PID_1227#{B8085869-FEB9-404B-8CB1XXXXXXXXX8C54}\0000#7a601618

[14:21:36.0285] WinDFU:XXXXXXXXXceByPath: \\?\USB#VID_05AC&PID_1227#{B8085869-FEB9-404B-8CB1XXXXXXXXX8C54}\0000#7a601618

[14:21:36.0294] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 2

[14:21:36.0304] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 5

[14:21:36.0311] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 7

[14:21:36.0319] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 10

[14:21:36.0326] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 12

[14:21:36.0333] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 15

[14:21:36.0340] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 17

[14:21:36.0347] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 20

[14:21:36.0354] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 22

[14:21:36.0361] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 25

[14:21:36.0368] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 28

[14:21:36.0375] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 30

[14:21:36.0382] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 33

[14:21:36.0389] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 35

[14:21:36.0396] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 38

[14:21:36.0403] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 40

[14:21:36.0410] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 43

[14:21:36.0417] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 45

[14:21:36.0424] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 48

[14:21:36.0431] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 50

[14:21:36.0438] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 53

[14:21:36.0445] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 56

[14:21:36.0452] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 58

[14:21:36.0460] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 61

[14:21:36.0467] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 63

[14:21:36.0474] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 66

[14:21:36.0481] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 68

[14:21:36.0488] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 71

[14:21:36.0495] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 73

[14:21:36.0502] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 76

[14:21:36.0509] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 78

[14:21:36.0516] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 81

[14:21:36.0525] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 84

[14:21:36.0533] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 86

[14:21:36.0540] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 89

[14:21:36.0550] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 91

[14:21:36.0559] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 94

[14:21:36.0567] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 96

[14:21:36.0575] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 99

[14:21:36.0576] WinDFU:XXXXXXXXXta: EOF, cbRead: 554

[14:21:36.0578] <DFU Device <<<<<MEID>>>>>90>: operation 0 progress 100

[14:21:36.0580] WinDFU:XXXXXXXXXta: ZLP

[14:21:36.0582] WinDFU:XXXXXXXXXDfuUpdate: GetStatus: status: 0, state: 6

[14:21:36.0584] WinDFUXXXXXXXXXXXXXXXXXXXXX status.bState == DFU_STATE_MANIFEST_SYNC

[14:21:36.0586] WinDFU:XXXXXXXXXDfuUpdate: GetStatus: status: 0, state: 7

[14:21:36.0588] WinDFUXXXXXXXXXXXXXXXXXXXXX status.bState == DFU_STATE_MANIFEST, PollTimeout: 3000

[14:21:39.0581] WinDFU:XXXXXXXXXDfuUpdate: GetStatus: status: 0, state: 8

[14:21:39.0583] WinDFUXXXXXXXXXXXXXXXXXXXXX status.bState == DFU_STATE_MANIFEST_WAIT_RESET

[14:21:39.0586] WinDFU:XXXXXXXXXice: resetting...

[14:21:39.0652] WinDFU:XXXXXXXXXDfuUpdate: success

[14:21:39.0654] <DFU Device <<<<<MEID>>>>>90>: DFU succeeded

[14:21:39.0655] Finished DFU Restore Phase: Successful

[14:21:40.0804] DFU mode device disconnected

[14:21:40.0806] Device removed when in state Restoring, moving device to transition state

[14:21:40.0808] Changing state from 'Restoring' to 'Transitioning'

[14:21:40.0809] Creating timer to monitor transition

[14:21:41.0508] DFU mode device connected

[14:21:41.0509] Transitioning device returned, continuing restore.

[14:21:41.0511] Canceling timer

[14:21:41.0513] Changing state from 'Transitioning' to 'Restoring'

[14:21:41.0744] AppleDevice:XXXXXXXXXeID: failed for iBoot

[14:21:41.0747] requested restore behavior: Erase

[14:21:41.0749] amai: AMAuthInstallBundleCopyBuildIdentityForVariant: No baseband chipid reported. Will match Build Identity based on ap chipid and boardid only.

[14:21:41.0752] requested restore behavior: Erase

[14:21:41.0754] requested variant: Erase

[14:21:41.0755] requested restore behavior: Erase

[14:21:42.0992] amai: _AMAuthInstallBundleCreateServerRequestDictionary: withApTicket is True

[14:21:42.0994] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "RestoreLogo" Digest = "<CFData <<<<<MEID>>>>>B0 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:42.0996] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "RestoreDeviceTree" Digest = "<CFData <<<<<MEID>>>>>A0 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:43.0003] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "RestoreKernelCache" Digest = "<CFData <<<<<MEID>>>>>30 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:43.0012] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "RestoreRamDisk" Digest = "<CFData <<<<<MEID>>>>>50 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:43.0017] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "iBEC" Digest = "<CFData <<<<<MEID>>>>>40 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:43.0020] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "iBSS" Digest = "<CFData <<<<<MEID>>>>>40 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:43.0023] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "KernelCache" Digest = "<CFData <<<<<MEID>>>>>00 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:43.0027] amai: _AMAuthInstallBundleCreateServerRequestDictionary: entry "ftap" not part of manifest, skipping

[14:21:43.0031] amai: _AMAuthInstallBundleCreateServerRequestDictionary: entry "rfta" not part of manifest, skipping

[14:21:43.0033] amai: _AMAuthInstallBundleCreateServerRequestDictionary: entry "ftsp" not part of manifest, skipping

[14:21:43.0035] amai: _AMAuthInstallBundleCreateServerRequestDictionary: entry "rfts" not part of manifest, skipping

[14:21:43.0037] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "LLB" Digest = "<CFData <<<<<MEID>>>>>F0 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:43.0039] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "AppleLogo" Digest = "<CFData <<<<<MEID>>>>>E0 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:43.0042] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "BatteryCharging1" Digest = "<CFData <<<<<MEID>>>>>90 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:43.0045] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "BatteryFull" Digest = "<CFData <<<<<MEID>>>>>30 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:43.0047] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "BatteryPlugin" Digest = "<CFData <<<<<MEID>>>>>B0 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:43.0050] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "BatteryCharging0" Digest = "<CFData <<<<<MEID>>>>>80 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:43.0053] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "BatteryLow0" Digest = "<CFData <<<<<MEID>>>>>80 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:43.0055] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "BatteryLow1" Digest = "<CFData <<<<<MEID>>>>>F0 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:43.0058] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "RecoveryMode" Digest = "<CFData <<<<<MEID>>>>>40 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:43.0061] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "DeviceTree" Digest = "<CFData <<<<<MEID>>>>>B0 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:43.0063] amai: _AMAuthInstallBundleCreateServerRequestDictionary: personalizing "iBoot" Digest = "<CFData <<<<<MEID>>>>>C0 [<<<<<MEID>>>>>00]>{length = 20, capacity = 20, bytes = 0x<<<<<<<<<<<<<<<<<<UDID>>>>>>>>>>>>>>>>>>}"

[14:21:43.0066] amai: _AMAuthInstallBundleCreateServerRequestDictionary: using UniqueBuildID <CFData 0000000007AC2FA0 [000007FEFA098100]>{length = 20, capacity = 20, bytes = 0xc7af5180216092a96d54c4b742d6e7c4434f059c}

[14:21:43.0066] amai: AMAuthInstallRequestSendSync: SSO function returned NULL and no SSO token was provided, SSO disabled.

[14:21:44.0811] amai: tss_submit_job: HttpQueryInfo returned 200

[14:21:46.0005] amai: AMAuthInstallRequestSendSync: received tss response (server version: 2.1.0)

[14:21:46.0019] amai: _AMAuthInstallBundleInstallPersonalizedEntry: entry "iBSS" has been previously personalized; skipping it

[14:21:46.0021] amai: _AMAuthInstallBundlePopulatePersonalizedBundle: no entry in manifest found for "ftap"

[14:21:46.0026] amai: _AMAuthInstallBundlePopulatePersonalizedBundle: no entry in manifest found for "rfta"

[14:21:46.0027] amai: _AMAuthInstallBundlePopulatePersonalizedBundle: no entry in manifest found for "ftsp"

[14:21:46.0037] amai: _AMAuthInstallBundlePopulatePersonalizedBundle: no entry in manifest found for "rfts"

[14:21:46.0039] amai: _AMAuthInstallBundleInstallPersonalizedEntry: entry "LLB" has been previously personalized; skipping it

[14:21:46.0076] amai: _AMAuthInstallBundlePopulatePersonalizedBundle: no entry in manifest found for "Diags"

[14:21:46.0282] <DFU Device <<<<<MEID>>>>>20>: production fused device

[14:21:46.0285] requested restore behavior: Erase

[14:21:46.0288] AppleDevice:XXXXXXXXXeID: failed for iBoot

[14:21:46.0297] WinDFU:XXXXXXXXXevice: path: \\?\USB#VID_05AC&PID_1227#{B8085869-FEB9-404B-8CB1XXXXXXXXX8C54}\0000#de11cb98

[14:21:46.0300] WinDFU:XXXXXXXXXceByPath: \\?\USB#VID_05AC&PID_1227#{B8085869-FEB9-404B-8CB1XXXXXXXXX8C54}\0000#de11cb98

[14:21:46.0305] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 0

[14:21:46.0308] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 1

[14:21:46.0311] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 2

[14:21:46.0314] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 3

[14:21:46.0318] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 4

[14:21:46.0320] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 5

[14:21:46.0322] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 6

[14:21:46.0324] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 7

[14:21:46.0327] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 8

[14:21:46.0329] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 9

[14:21:46.0333] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 10

[14:21:46.0337] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 11

[14:21:46.0339] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 12

[14:21:46.0344] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 13

[14:21:46.0346] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 14

[14:21:46.0348] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 15

[14:21:46.0353] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 16

[14:21:46.0355] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 17

[14:21:46.0359] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 18

[14:21:46.0361] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 19

[14:21:46.0365] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 20

[14:21:46.0369] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 21

[14:21:46.0371] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 22

[14:21:46.0375] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 23

[14:21:46.0377] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 24

[14:21:46.0379] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 25

[14:21:46.0383] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 26

[14:21:46.0385] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 27

[14:21:46.0390] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 28

[14:21:46.0392] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 29

[14:21:46.0394] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 30

[14:21:46.0398] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 31

[14:21:46.0400] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 32

[14:21:46.0404] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 33

[14:21:46.0406] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 34

[14:21:46.0408] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 35

[14:21:46.0412] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 36

[14:21:46.0414] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 37

[14:21:46.0419] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 38

[14:21:46.0421] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 39

[14:21:46.0423] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 40

[14:21:46.0427] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 41

[14:21:46.0430] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 42

[14:21:46.0434] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 43

[14:21:46.0436] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 44

[14:21:46.0438] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 45

[14:21:46.0442] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 46

[14:21:46.0444] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 47

[14:21:46.0446] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 48

[14:21:46.0450] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 49

[14:21:46.0452] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 50

[14:21:46.0456] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 51

[14:21:46.0461] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 52

[14:21:46.0463] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 53

[14:21:46.0467] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 54

[14:21:46.0469] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 55

[14:21:46.0476] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 56

[14:21:46.0480] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 57

[14:21:46.0483] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 58

[14:21:46.0487] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 59

[14:21:46.0489] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 60

[14:21:46.0493] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 61

[14:21:46.0495] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 62

[14:21:46.0497] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 63

[14:21:46.0501] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 64

[14:21:46.0503] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 65

[14:21:46.0507] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 66

[14:21:46.0509] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 67

[14:21:46.0511] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 68

[14:21:46.0515] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 69

[14:21:46.0517] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 70

[14:21:46.0522] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 71

[14:21:46.0524] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 72

[14:21:46.0526] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 73

[14:21:46.0531] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 74

[14:21:46.0535] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 75

[14:21:46.0544] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 76

[14:21:46.0549] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 77

[14:21:46.0554] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 78

[14:21:46.0559] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 79

[14:21:46.0561] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 80

[14:21:46.0565] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 81

[14:21:46.0567] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 82

[14:21:46.0569] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 83

[14:21:46.0573] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 84

[14:21:46.0575] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 85

[14:21:46.0579] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 86

[14:21:46.0581] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 87

[14:21:46.0583] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 88

[14:21:46.0587] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 89

[14:21:46.0589] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 90

[14:21:46.0593] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 91

[14:21:46.0599] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 92

[14:21:46.0601] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 93

[14:21:46.0606] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 94

[14:21:46.0608] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 95

[14:21:46.0611] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 96

[14:21:46.0615] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 97

[14:21:46.0617] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 98

[14:21:46.0621] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 99

[14:21:46.0622] WinDFU:XXXXXXXXXta: EOF, cbRead: 1116

[14:21:46.0624] <DFU Device <<<<<MEID>>>>>20>: operation 0 progress 100

[14:21:46.0626] WinDFU:XXXXXXXXXta: ZLP

[14:21:46.0627] WinDFU:XXXXXXXXXDfuUpdate: GetStatus: status: 0, state: 6

[14:21:46.0629] WinDFUXXXXXXXXXXXXXXXXXXXXX status.bState == DFU_STATE_MANIFEST_SYNC

[14:21:46.0631] WinDFU:XXXXXXXXXDfuUpdate: GetStatus: status: 0, state: 7

[14:21:46.0632] WinDFUXXXXXXXXXXXXXXXXXXXXX status.bState == DFU_STATE_MANIFEST, PollTimeout: 3000

[14:21:49.0624] WinDFU:XXXXXXXXXDfuUpdate: GetStatus: status: 0, state: 8

[14:21:49.0626] WinDFUXXXXXXXXXXXXXXXXXXXXX status.bState == DFU_STATE_MANIFEST_WAIT_RESET

[14:21:49.0628] WinDFU:XXXXXXXXXice: resetting...

[14:21:49.0692] WinDFU:XXXXXXXXXDfuUpdate: success

[14:21:49.0694] <DFU Device <<<<<MEID>>>>>20>: DFU succeeded

[14:21:49.0696] Finished DFU Restore Phase: Successful

[14:21:49.0820] DFU mode device disconnected

[14:21:49.0822] Device removed when in state Restoring, moving device to transition state

[14:21:49.0824] Changing state from 'Restoring' to 'Transitioning'

[14:21:49.0825] Creating timer to monitor transition

[14:21:55.0671] Recovery mode device connected

[14:21:55.0673] Transitioning device returned, continuing restore.

[14:21:55.0675] Canceling timer

[14:21:55.0676] Changing state from 'Transitioning' to 'Restoring'

[14:21:55.0678] requested restore behavior: Erase

[14:21:55.0917] amai: AMAuthInstallBundleCopyBuildIdentityForVariant: No baseband chipid reported. Will match Build Identity based on ap chipid and boardid only.

[14:21:55.0919] requested restore behavior: Erase

[14:21:55.0922] requested variant: Erase

[14:21:55.0924] requested restore behavior: Erase

[14:21:57.0273] amai: _AMAuthInstallBundleCreateServerRequestDictionary: withApTicket is False

[14:21:57.0276] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "RestoreLogo"

[14:21:57.0278] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "RestoreDeviceTree"

[14:21:57.0279] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "RestoreKernelCache"

[14:21:57.0281] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "RestoreRamDisk"

[14:21:57.0283] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "iBEC"

[14:21:57.0285] amai: _AMAuthInstallBundleCreateServerRequestDictionary: entry "iBSS" has been previously personalized; skipping it

[14:21:57.0288] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "KernelCache"

[14:21:57.0291] amai: _AMAuthInstallBundleCreateServerRequestDictionary: entry "ftap" not part of manifest, skipping

[14:21:57.0293] amai: _AMAuthInstallBundleCreateServerRequestDictionary: entry "rfta" not part of manifest, skipping

[14:21:57.0295] amai: _AMAuthInstallBundleCreateServerRequestDictionary: entry "ftsp" not part of manifest, skipping

[14:21:57.0297] amai: _AMAuthInstallBundleCreateServerRequestDictionary: entry "rfts" not part of manifest, skipping

[14:21:57.0299] amai: _AMAuthInstallBundleCreateServerRequestDictionary: entry "LLB" has been previously personalized; skipping it

[14:21:57.0301] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "AppleLogo"

[14:21:57.0303] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "BatteryCharging1"

[14:21:57.0305] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "BatteryFull"

[14:21:57.0307] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "BatteryPlugin"

[14:21:57.0322] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "BatteryCharging0"

[14:21:57.0324] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "BatteryLow0"

[14:21:57.0326] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "BatteryLow1"

[14:21:57.0328] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "RecoveryMode"

[14:21:57.0329] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "DeviceTree"

[14:21:57.0332] amai: _AMAuthInstallBundleCreateServerRequestDictionary: not personalizing "iBoot"

[14:21:57.0334] amai: _AMAuthInstallBundleCreateServerRequestDictionary: nothing to be done

[14:21:57.0354] iBoot build-version = iBoot-2261.30.37

[14:21:57.0355] iBoot build-style = RELEASE

[14:21:57.0357] requested restore behavior: Erase

[14:21:57.0359] requested restore behavior: Erase

[14:21:57.0360] unable to open device_map.txt: No such file or directory

[14:21:57.0362] found device map entry for 0x00008940 0x00000008. boardConfig=n94ap platform=s5l8940x

[14:21:57.0364] _AMRestoreCopyDeviceMapPlistEntryForHardware: firmwareDirectory not in options

[14:21:57.0366] AMDeviceIoControl: GetOverlappedResult failed

[14:21:57.0368] AMDeviceIoControl: pipe stall

[14:21:57.0382] USBControlTransfer: error 31, usbd status c0000004

[14:21:57.0384] command device request for 'getenv radio-error' failed: 2008

[14:21:57.0386] radio-error not set

[14:21:57.0387] unable to open device_map.txt: No such file or directory

[14:21:57.0389] <Recovery Mode Device <<<<<MEID>>>>>B0>: production fused device

[14:21:57.0391] requested restore behavior: Erase

[14:21:57.0393] requested restore behavior: Erase

[14:21:57.0395] interface has 1 endpoints, file pipe = 1

[14:21:57.0395]

[14:21:57.0397] <Recovery Mode Device <<<<<MEID>>>>>B0>: operation 4 progress -1

[14:21:57.0400] unable to open device_map.txt: No such file or directory

[14:21:57.0402] found device map entry for 0x00008940 0x00000008. boardConfig=n94ap platform=s5l8940x

[14:21:57.0404] _AMRestoreCopyDeviceMapPlistEntryForHardware: firmwareDirectory not in options

[14:21:57.0406] requested restore behavior: Erase

[14:21:57.0407] requested restore behavior: Erase

[14:21:57.0409] <Recovery Mode Device <<<<<MEID>>>>>B0>: operation 42 progress -1

[14:21:57.0411] requested restore behavior: Erase

[14:21:58.0395] <Recovery Mode Device <<<<<MEID>>>>>B0>: operation 5 progress -1

[14:21:59.0290] unable to open device_map.txt: No such file or directory

[14:21:59.0294] found device map entry for 0x00008940 0x00000008. boardConfig=n94ap platform=s5l8940x

[14:21:59.0296] _AMRestoreCopyDeviceMapPlistEntryForHardware: firmwareDirectory not in options

[14:21:59.0298] AMDeviceIoControl: GetOverlappedResult failed

[14:21:59.0300] AMDeviceIoControl: pipe stall

[14:21:59.0302] USBControlTransfer: error 31, usbd status c0000004

[14:21:59.0303] command device request for 'getenv ramdisk-delay' failed: 2008

[14:22:01.0538] <Recovery Mode Device <<<<<MEID>>>>>B0>: operation 6 progress -1

[14:22:02.0558] <Recovery Mode Device <<<<<MEID>>>>>B0>: operation 7 progress -1

[14:22:03.0107] <Recovery Mode Device <<<<<MEID>>>>>B0>: operation 8 progress -1

[14:22:03.0110] unable to open device_map.txt: No such file or directory

[14:22:03.0112] found device map entry for 0x00008940 0x00000008. boardConfig=n94ap platform=s5l8940x

[14:22:03.0114] _AMRestoreCopyDeviceMapPlistEntryForHardware: firmwareDirectory not in options

[14:22:03.0116] <Recovery Mode Device <<<<<MEID>>>>>B0>: operation 9 progress -1

[14:22:03.0118] <Recovery Mode Device <<<<<MEID>>>>>B0>: Recovery mode succeeded

[14:22:03.0119] Finished Recovery Restore Phase: Successful

[14:22:04.0991] Recovery mode device disconnected

[14:22:04.0995] Device removed when in state Restoring, moving device to transition state

[14:22:04.0996] Changing state from 'Restoring' to 'Transitioning'

[14:22:04.0998] Creating timer to monitor transition

[14:22:17.0368] Recovery mode device connected

[14:22:17.0369] Transitioning device returned, continuing restore.

[14:22:17.0371] Canceling timer

[14:22:17.0372] Changing state from 'Transitioning' to 'Restoring'

[14:22:17.0404] Restore completed, status:4013

[14:22:17.0404] Failure Description:

[14:22:17.0404] Depth:0 Error:Unexpected device state 'Recovery' expected 'RestoreOS'

iPhone 4S

Posted on Aug 25, 2015 7:28 AM

Reply
1 reply

Aug 26, 2015 12:20 PM in response to Lorz99

Good Afternoon, Lorz99 -

I'm not sure if this is one of the articles you have read, but it will help you with the issue you are having with error 4013 on your iPhone:

iOS: Restore errors 4005, 4013, and 4014 - Apple Support
https://support.apple.com/en-us/HT201444


When you try to update or restore your iPhone, iPad, or iPod touch, you may see one of these messages in iTunes.

You may see one of these messages if the device unexpectedly disconnects during the update or restore or iTunes couldn't tell the device to go to the restore state.

  • The iPhone [device name] could not be restored. An unknown error occurred (4005).
  • The iPhone [device name] could not be restored. An unknown error occurred (4013).
  • The iPhone [device name] could not be restored. An unknown error occurred (4014).

Try these steps to resolve the issue:

  1. Install the latest version of iTunes.
  2. Restart your computer.
  3. Make sure your computer is up to date. If an update requires a restart, check for updates again after you restart.
  4. Restore using another USB cable.
  5. Restore your device on another computer.

If you continue to see error 4005, 4013, or 4014 when you restore your device, contact Apple for support.


Take care,

iTunes Error Diagnosis Help (4013)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.