createTarFork() process ended with ERROR=255

simo6

Senior Member
Aug 12, 2009
222
49
58
arezzo
www.facebook.com
the log:
I:eek:peration_end - status=0
I:Set page: 'backup'
I:Set page: 'backupencryption'
I:Set page: 'backup_options'
I:Set page: 'backup'
I:Set page: 'backup_run'
I:eek:peration_start: 'Nandroid'
Updating partition details...
I:Data backup size is 9064MB, free: 95716MB.
I:Unable to mount '/usb_otg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Backup Name is: '2017-12-30--17-01-48'
I:Backup_Folder is: '/data/media/0/TWRP/BACKUPS/b7d162d2/2017-12-30--17-01-48'
I:Calculating backup details...
* Total number of partitions to back up: 13
* Total size of all data: 12729MB
* Available space: 95716MB
[BACKUP STARTED]
* Backup Folder: /data/media/0/TWRP/BACKUPS/b7d162d2/2017-12-30--17-01-48
Backing up Boot...
I:Reading '/dev/block/sde19', writing '/data/media/0/TWRP/BACKUPS/b7d162d2/2017-12-30--17-01-48/boot.emmc.win'
I:Restored default metadata for /data/media/0/TWRP/BACKUPS/b7d162d2/2017-12-30--17-01-48/boot.emmc.win
I:partition Backup time: 0
Invalid encryption mode 'ice:aes-256-cts'
Backing up Cache...
Invalid encryption mode 'ice:aes-256-cts'
I:Creating backup...
I:Creating tar file '/data/media/0/TWRP/BACKUPS/b7d162d2/2017-12-30--17-01-48/cache.ext4.win'
I:Using compression...
I:addFile '/cache/recovery' including root: 0
==> set selinux context: u:eek:bject_r:cache_recovery_file:s0
I:addFile '/cache/recovery/last_log.1' including root: 0
==> set selinux context: u:eek:bject_r:cache_recovery_file:s0
I:addFile '/cache/recovery/log' including root: 0
==> set selinux context: u:eek:bject_r:cache_recovery_file:s0
I:addFile '/cache/recovery/last_log' including root: 0
==> set selinux context: u:eek:bject_r:cache_recovery_file:s0
I:addFile '/cache/recovery/last_install' including root: 0
==> set selinux context: u:eek:bject_r:cache_recovery_file:s0
I:addFile '/cache/recovery/last_bootloader_log' including root: 0
==> set selinux context: u:eek:bject_r:cache_recovery_file:s0
I:addFile '/cache/recovery/last_kmsg' including root: 0
==> set selinux context: u:eek:bject_r:cache_recovery_file:s0
I:addFile '/cache/recovery/.version' including root: 0
==> set selinux context: u:eek:bject_r:cache_recovery_file:s0
I:addFile '/cache/recovery/recovery.fstab' including root: 0
==> set selinux context: u:eek:bject_r:cache_recovery_file:s0
I:addFile '/cache/recovery/storage.fstab' including root: 0
==> set selinux context: u:eek:bject_r:cache_recovery_file:s0
I:addFile '/cache/backup_stage' including root: 0
==> set selinux context: u:eek:bject_r:cache_backup_file:s0
I:addFile '/cache/backup' including root: 0
==> set selinux context: u:eek:bject_r:cache_private_backup_file:s0
I:addFile '/cache/log_before_911' including root: 0
==> set selinux context: u:eek:bject_r:cache_file:s0
I:addFile '/cache/log_before_911/android_911.log' including root: 0
==> set selinux context: u:eek:bject_r:cache_file:s0
I:addFile '/cache/log_before_911/kernel_911.log' including root: 0
==> set selinux context: u:eek:bject_r:cache_file:s0
I:addFile '/cache/log_before_911/android_911.log.1' including root: 0
==> set selinux context: u:eek:bject_r:cache_file:s0
I:addFile '/cache/log_before_911/android_911.log.2' including root: 0
==> set selinux context: u:eek:bject_r:cache_file:s0
I:addFile '/cache/log_before_911/kernel_911.log.1' including root: 0
==> set selinux context: u:eek:bject_r:cache_file:s0
I:Closing tar
I:pigz process ended with RC=0
I:Thread id 0 tarList done, 0 archives.
I:Thread ID 0 finished successfully.
I:InfoManager saving '/data/media/0/TWRP/BACKUPS/b7d162d2/2017-12-30--17-01-48/cache.info'
I:createTarFork() process ended with RC=0
I:partition Backup time: 0
Backing up Recovery...
I:Reading '/dev/block/sde22', writing '/data/media/0/TWRP/BACKUPS/b7d162d2/2017-12-30--17-01-48/recovery.emmc.win'
I:Restored default metadata for /data/media/0/TWRP/BACKUPS/b7d162d2/2017-12-30--17-01-48/recovery.emmc.win
I:partition Backup time: 1
Invalid encryption mode 'ice:aes-256-cts'
Backing up System...
Invalid encryption mode 'ice:aes-256-cts'
Error opening: '/system/app/DeskClock/oat/arm64' (Not a directory)
I:Error in Generate_TarList!
Error creating backup.
I:InfoManager saving '/data/media/0/TWRP/BACKUPS/b7d162d2/2017-12-30--17-01-48/system.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
I:Copying file /tmp/recovery.log to /data/media/0/TWRP/BACKUPS/b7d162d2/2017-12-30--17-01-48/recovery.log
 

yannick818

Member
Sep 12, 2012
10
10
0
I've got the same error with different folders:

'/data/user/999'
'/data/misc_ce/999'
'/data/system_ce/999'

if they are unnecessary files I could delete them and try again.
does anyone know if these 999 folders are important?

also in my twrp the listed folders above look kind of encrypted (had some struggle with the oos5 update before), but in my file explorer they look decrypted.

are there some ideas what I should do?
 

yannick818

Member
Sep 12, 2012
10
10
0
I've got the same error with different folders:

'/data/user/999'
'/data/misc_ce/999'
'/data/system_ce/999'

if they are unnecessary files I could delete them and try again.
does anyone know if these 999 folders are important?

also in my twrp the listed folders above look kind of encrypted (had some struggle with the oos5 update before), but in my file explorer they look decrypted.

are there some ideas what I should do?
looks like it's an error with parallel apps oder multiple users. since i do not use something like that, i just removed this user with the android terminal emulator:

su
pm remove-user 999

everything was fine after that
 

fontomas

Member
Apr 23, 2012
6
0
1
I have an error during backup, here's the recovery.log content
Code:
I:Backup Name is: '2018-01-03--12-02-08'
I:Backup_Folder is: '/data/media/0/TWRP/BACKUPS/da29c9c8/2018-01-03--12-02-08'
I:Calculating backup details...
 * Total number of partitions to back up: 5
 * Total size of all data: 12759MB
 * Available space: 97309MB
[BACKUP STARTED]
 * Backup Folder: /data/media/0/TWRP/BACKUPS/da29c9c8/2018-01-03--12-02-08
Backing up Boot...
I:Reading '/dev/block/sde19', writing '/data/media/0/TWRP/BACKUPS/da29c9c8/2018-01-03--12-02-08/boot.emmc
I:Restored default metadata for /data/media/0/TWRP/BACKUPS/da29c9c8/2018-01-03--12-02-08/boot.emmc.win
 * Generating digest...
I:SHA2 Digest: e87cb0358f437689e295df369ada19ed4b40b592e5a65ddff0e73361b460f2e2  boot.emmc.win
I:digest_filename: /data/media/0/TWRP/BACKUPS/da29c9c8/2018-01-03--12-02-08/boot.emmc.win.sha2
 * Digest Created.
I:Partition Backup time: 1
Backing up Recovery...
I:Reading '/dev/block/sde22', writing '/data/media/0/TWRP/BACKUPS/da29c9c8/2018-01-03--12-02-08/recovery.
I:Restored default metadata for /data/media/0/TWRP/BACKUPS/da29c9c8/2018-01-03--12-02-08/recovery.emmc.wi
 * Generating digest...
I:SHA2 Digest: b8bbc0e66d88769fafd3667c26706e433f43c0b84996bdfa9d955f2c3e009c49  recovery.emmc.win
I:digest_filename: /data/media/0/TWRP/BACKUPS/da29c9c8/2018-01-03--12-02-08/recovery.emmc.win.sha2
 * Digest Created.
I:Partition Backup time: 0
Invalid encryption mode 'ice:aes-256-cts'
Backing up System...
Invalid encryption mode 'ice:aes-256-cts'
Error opening: '/system/app/DeskClock/oat/arm64' (Not a directory)
I:Error in Generate_TarList!
Error creating backup.
I:InfoManager saving '/data/media/0/TWRP/BACKUPS/da29c9c8/2018-01-03--12-02-08/system.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
I:Copying file /tmp/recovery.log to /data/media/0/TWRP/BACKUPS/da29c9c8/2018-01-03--12-02-08/recovery.log
I:Set page: 'action_complete'
I:operation_end - status=1
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'terminalcommand'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set overlay: 'slideout'
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0
Any help guys?
 

IBoZzxLiKeDI

Member
Feb 7, 2017
15
2
0
In my case i made a parallel app (facebook). So the backup failed every time. I killed the app and there is a folder called "999" in the internal storage. Delete it and the backup will work.
 

krumbman0wnz

Senior Member
Nov 15, 2007
71
8
0
I did that, still doesn't work.
you need to turn off parallel apps, then go into a root explorer and delete

data/system/999
data/system_ce/999
data/misc/999
data/misc_ce/999
data/user/999
data/user_ce/999

This will allow you to do a backup, but you'll get "extractTarFork() process ended with ERROR=255' when trying to restore. So it feels kind useless, unless someone can figure this out.
 

simo6

Senior Member
Aug 12, 2009
222
49
58
arezzo
www.facebook.com
you need to turn off parallel apps, then go into a root explorer and delete

data/system/999
data/system_ce/999
data/misc/999
data/misc_ce/999
data/user/999
data/user_ce/999

This will allow you to do a backup, but you'll get "extractTarFork() process ended with ERROR=255' when trying to restore. So it feels kind useless, unless someone can figure this out.
You need to delete those folders even before restoring a nandroid backup. At least worked for me
 

more_than_hater

Senior Member
May 3, 2016
263
69
38
Odessa
oh, well, its kinda bad for me cuz i'm allmost at OP situation right now.
So, using 8.61 blue sparks twrp i made full backup of my partitions and got '' extractTarFork() process ended with ERROR=255 '' when i was trying to restore backup. Any idea, how can i restore my backup now?
 

simo6

Senior Member
Aug 12, 2009
222
49
58
arezzo
www.facebook.com
oh, well, its kinda bad for me cuz i'm allmost at OP situation right now.
So, using 8.61 blue sparks twrp i made full backup of my partitions and got '' extractTarFork() process ended with ERROR=255 '' when i was trying to restore backup. Any idea, how can i restore my backup now?
From twrp go to advanced then filmanager. U have to delete all those 999 folders then u can restore
 

coolvipcandy

Senior Member
Oct 3, 2013
217
68
0
looks like it's an error with parallel apps oder multiple users. since i do not use something like that, i just removed this user with the android terminal emulator:

su
pm remove-user 999

everything was fine after that
Thank you very much. Worked like a charm. Thanks a bunch.
And i second that the culprit here is folder 999 of parallel apps as i found facebook data from second account in this folder like profile pics etc.
 
  • Like
Reactions: anik135102

krugm0f0

Senior Member
Feb 17, 2010
562
91
58
36
OnePlus5T:/ $ su
OnePlus5T:/ # pm remove-user 999
Error: couldn't remove user id 999
1|OnePlus5T:/ #

I've tried removing all 999 folders prior to backup, but it still fails. I'm rooted on 5.0.4. with magisk.

Anyone?
 

larpoux

Senior Member
Mar 17, 2014
125
50
0
Paris
I could resolve my nandroid /data backup error on my EMUI 8.0 device with those following steps:

1 - Use a correct TWRP implementation
TWRP need to access the uncyphered partition /data.
There no possibility to backup it, if TWRP does not implement deciphering user data partition.

2 - Remove all users except user 0 (the administrator)
You can verify that there is no unwanted users, looking at directory /data/user : the only subdirectory should be "0".
To remove the others users :
  • Remove the PrivateSpace if you have one (Settings > Security & Privacy > PrivateSpace, and tap on the garbage can).
  • Remove all the secondary users (Settings > Users & accounts > users, and tap on each users to delete them). Keep just the main administrator user.
  • On EMUI, remove all twins applications (Settings > Apps & Notifications > App Twin, and disable all twin apps).
  • On OxygenOS, remove all parallel apps (Settings > Apps > Parallel Apps, and disable all parallel apps).
  • On MIUI, remove all dual apps (Settings > Dual Apps, and disable all dual apps)
  • On others devices ... you must find all parameters that create those unwanted users.
  • If you are not able to get the correct settings to suppress those users, in last resort you can try this command : "pm remove-user user-no. (For example "pm remove-user 999").

3 - Do not forget to protect your backups by a password
This would be stupid to cipher your /data partition and keep backups of this partition unprotected.

These steps fixed the nandroid backup problem for /data partition on my Huawei device.
I post on this forum because I hope that this will be helpful for others devices owners.
 
Last edited: