Twrp backup fails while trying to add file mozc.imy - Nexus 6 Q&A, Help & Troubleshooting

I installed twrp 3.2.1.0 shamu version, and tried to create a backup. A backup without any data works fine, but if I do include data then I get the error createTarFork() process ended with ERROR=255.
I then did an adb pull of the recovery.log and then it shows that there was an error when writing the tar file, and there was an error adding a specific file.
Here is part of the log where it fails
I:addFile '/data/user_de/0/com.google.android.inputmethod.japanese/files/mozc.imy' including root: 1
==> set selinux context: ubject_r:app_data_file:s0:c512,c768
E:Error writing tar file!
I:Error adding file '/data/user_de/0/com.google.android.inputmethod.japanese/files/mozc.imy' to '/data/media/0/TWRP/BACKUPS/ZX1G22WVXP/2018-01-31--18-49-08_N6F27M/data.ext4.win005'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving '/data/media/0/TWRP/BACKUPS/ZX1G22WVXP/2018-01-31--18-49-08_N6F27M/data.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
I:Copying file /tmp/recovery.log to /data/media/0/TWRP/BACKUPS/ZX1G22WVXP/2018-01-31--18-49-08_N6F27M/recovery.log
I:Set page: 'action_complete'
Iperation_end - status=1
Truncating string cache entries.
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0

That file is damaged. Delete it and the rest of the backup should work. There is a thread where this has been discussed: e: createTarFork() process ended with ERROR=255.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Related

[Q] Error while updating to lollipop

After waiting a bit for updating my XT1068 in order for xposed to stabilize a little, dispose a bit of time to do things calmly and such, today I tried to apply the OTA update my phone was suggesting me since several weeks ago.
My device is rooted, has TWRP recovery, xposed, stock rom of KK. However when updating to 5.0 on recovery something fails with this error:
Code:
I:Inserting 'install /cache/Blur_Version.21.11.23.titan_retaildsds.retaildsdsall.en.03.zip'
I:Copying file /cache/recovery/log to /cache/recovery/last_log
tw_get_context got selinux context: u:object_r:fuse:s0
I:Got default contexts and file mode for storage files.
I:Attempt to load settings from settings file...
I:Loading settings from '/data/media/0/TWRP/.twrps'.
I:Backup folder set to '/data/media/0/TWRP/BACKUPS/ZX1D22BGJ8'
I:Copying file /etc/recovery.fstab to /cache/recovery/recovery.fstab
I:Version number saved to '/cache/recovery/.version'
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
__bionic_open_tzdata: couldn't find any tzdata when looking for CST6CDT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
I:TWFunc::Set_Brightness: Setting brightness control to 255
I:TWFunc::Fixup_Time: Pre-fix date and time: 2015-03-12--07-40-09
I:TWFunc::Fixup_Time: Setting time offset from file /sys/class/rtc/rtc0/since_epoch
I:TWFunc::Fixup_Time: Date and time corrected: 2015-03-12--07-40-10
I:Switching packages (TWRP)
I:Set page: 'action_page'
I:operation_start: 'OpenRecoveryScript'
Processing AOSP recovery commands...
I:command is: 'install'
I:value is: '/cache/Blur_Version.21.11.23.titan_retaildsds.retaildsdsall.en.03.zip'
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
Installing '/cache/Blur_Version.21.11.23.titan_retaildsds.retaildsdsall.en.03.zip'...
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip contains SELinux file_contexts file in its root. Extracting to /file_contexts
I:Legacy property environment initialized.
installing gptupgrade updater extensions
file_contexts path is present in /tmp/file_contexts
mount point :/system location: /dev/block/platform/msm_sdcc.1/by-name/system , file system type :ext4script aborted: Package expects build fingerprint of motorola/titan_retaildsds/titan_umtsds:4.4.4/KXB21.85-23/19:user/release-keys or motorola/titan_retaildsds/titan_umtsds:5.0.2/LXB22.46-28/28:user/release-keys; this device has Motorola/omni_titan/titan:5.0.2/LRX22G/f5a9f2c204:eng/test-keys.
Package expects build fingerprint of motorola/titan_retaildsds/titan_umtsds:4.4.4/KXB21.85-23/19:user/release-keys or motorola/titan_retaildsds/titan_umtsds:5.0.2/LXB22.46-28/28:user/release-keys; this device has Motorola/omni_titan/titan:5.0.2/LRX22G/f5a9f2c204:eng/test-keys.
I:Legacy property environment disabled.
E:Error executing updater binary in zip '/cache/Blur_Version.21.11.23.titan_retaildsds.retaildsdsall.en.03.zip'
E:Error installing zip file '/cache/Blur_Version.21.11.23.titan_retaildsds.retaildsdsall.en.03.zip'
Done processing script file
In what comes to android internals like this I'm more like a plain user than anything else. So far seems that something on the release keys of my phone isn't what the update zip or whatever expects, or that's what I've figured up so far.
Now, what can I do in order to update to 5.0? Do I look for a 5.0 stock rom and flash on top or do I have to change some config / file on my device?
If the thing comes to flashing, are stable enough the non-stock Lollipop roms around here to be used daily?
Thank you all in advance. Hoping that I've asked properly.
You cant do an OTA update from Motorola with a rooted phone. See this thread and read all the posts http://forum.xda-developers.com/moto-g-2014/general/official-stock-firmware-t3018682
Yeah, that makes sense. Thank you.

[q&a] [rom][5.1.1][blisspop][official][cancro]

Q&A for [ROM][5.1.1][BLISSPOP][OFFICIAL][CANCRO]
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [ROM][5.1.1][BLISSPOP][OFFICIAL][CANCRO]. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Error installing ROMs
Hi all,
I got error blkdiscard failed invalid argument while flashing [ROM][5.1.1][BLISSPOP][OFFICIAL][CANCRO]
Many said that I had to extend partition to 1.2GB, which I already did.
Here is what I have did before
-[ROM][5.1.1][CANCRO UNOFFICIAL] Resurrection Remix LP
-script extend partition
-flash TWRP
all step above failed to install[ROM][5.1.1][BLISSPOP][OFFICIAL][CANCRO] and also
[ROM][5.1.1][UNOFFICIAL] GZR Validus ROM V8.0 [R2,2015-06-09]
Here is my log from TWRP
PHP Code:
Installing '/sdcard/Custom_rom/[ROM][5.1.1][BLISSPOP][OFFICIAL][CANCRO]
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip contains SELinux file_contexts file in its root. Extracting to /file_contexts
I:Legacy property environment initialized.
minzip: Extracted 4 file(s)
about to run program [/tmp/install/bin/backuptool.sh] with 2 args
about to run program [/tmp/install/bin/otasigcheck.sh] with 1 args
Patching system image unconditionally...blockimg version is 2
erasing 318848 blocks
script aborted: blkdiscard failed: Invalid argument
blkdiscard failed: Invalid argument
I:Legacy property environment disabled.
E:Error executing updater binary in zip '/sdcard/[ROM][5.1.1][BLISSPOP][OFFICIAL][CANCRO]
Error flashing zip '/sdcard/[ROM][5.1.1][BLISSPOP][OFFICIAL][CANCRO]
Updating partition details...
when i want to get the logcat on my mi4...
i got this tips "Unable to open log device 'main'" , is this a bug?
when will the new build come without sod ?
or if i install the current build and dont use ambient display will it solve the sod issue?
Thanks! Works fine
But lockscreen rotates even when "lockscreen" rotation is disabled
Can't install
Am on stock partition I can't install it and it gv me error status 7 plz can u say solution
please help me!!! I'm flashing the ROM is fail . E:Error executing updater binary in zip '/sdcard/XXXX.zip. My Device: Xiaomi mi4 .:crying::crying::crying:
Plz help
zip not installed. twrp shows error executing updater binary installation aborted. plzzz helppp!!!
Flashed .. Working super cool...
Experiencing awesome customization... Kudos..
Really need camera app .. No camera app .. Tried google camera error says can't connect to the camera.. And FM app...
Do pleas help to flash these two apps
---------- Post added at 10:44 PM ---------- Previous post was at 10:40 PM ----------
sumitk3 said:
zip not installed. twrp shows error executing updater binary installation aborted. plzzz helppp!!!
Click to expand...
Click to collapse
Problem is because of partition
Hey guys you just need to flash extended partition script or modify partition through adb... You can find it in XDA forum...
Error flashing, HELP!!
Hi, I had the 2.2 version installed, I installed other ROM and when I try to flash the new Blisspop 3.5v with CMW in my Mi 4, I have an error (Status 7) or (Status 6). I tried to change the boot.img for other one than works, but it does not flash... Anyone knows why this happens?
Apology for my english :///
Heeeeelp!!!
I can't flash? Have i got to format system 2 or delete it? Pls I need an answer (((((
sergio_gnzlz said:
I can't flash? Have i got to format system 2 or delete it? Pls I need an answer (((((
Click to expand...
Click to collapse
Have you repartitioned it to 1.2 GB it wont install on stock partition. If you dont know how to repartition search on miui forum there zip files are provided
---------- Post added at 11:04 AM ---------- Previous post was at 10:47 AM ----------
Using this rom from 2 days, highly customizable, stable rom, slightly sluggish as compared to ivans but in day to day use u wont even notice. Can be used as daily driver if you dont bother about following issues
Few concerns need to be adressed-
1. Battery drain is faster than other roms. was expected as it is CM based rom and I have made lot of customizations but hey, more the merrier....
2. Camera app- Must needed as not a single app works
3. Mobile network issue- Reboot results in no network or no sim card error- workaround is mentioned in other posts- Airplane mode-ON, reboot, turn airplane mode OFF. Not sure if during sleep the phone results in not reachable to the caller.
4. Not sure about X-posed framework- can anyone update if this rom supports Xposed and Xmod games
5. Quick setting panel/notification panel dropdown is must on lockscreen and with torch support (I guess if you fix camera, torch will also work)
Thankfully no SOD or call bug in latest release of 24th June
Will wait for another 3-4 days if no update to above issues will shift to omni or CM12.1 temasek
Camera still not working
Hi Jackeagle,
Camera issue is still there even in the latest July versions also. Please do something. We love your rom
Error executing install script in BlissPop-v3.6-cancro-OFFICIAL-20150708-1540
Hi,
I have just tried to install your ROM on my cancro device. I followed all the steps.
However, everytime I try to flash the ZIP through TWRP, I get a message in red, saying that there wasn and error executing install script in BlissPop-v3.6-cancro-OFFICIAL-20150708-1540
And the flash fails. What am I doing wrong ?
Here's the log:
Set page: 'flash_confirm'
I:Set page: 'flash_zip'
Iperation_start: 'Flashing'
Installing '/sdcard/BlissPop-v3.6-cancro-OFFICIAL-20150708-1540.zip'...
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip contains SELinux file_contexts file in its root. Extracting to /file_contexts
I:Legacy property environment initialized.
minzip: Extracted 4 file(s)
******************************************
* BlissPop Rom
******************************************
* Created By TeamBliss
******************************************
* Build date: Wed Jul 8 15:42:18 PDT 2015
* Device: MI 3W (cancro)
******************************************
{*} Running backup scripts...
about to run program [/tmp/install/bin/backuptool.sh] with 2 args
grep: /system/build.prop: No such file or directory
Not backing up files from incompatible version: 3
run_program: child exited with status 127
about to run program [/tmp/install/bin/otasigcheck.sh] with 1 args
{*} Done.
blockimg version is 2
erasing 318848 blocks
{*} Following operation takes time, please wait...
{*} Installation is block based
Patching system image unconditionally...
script aborted: blkdiscard failed: Invalid argument
blkdiscard failed: Invalid argument
I:Legacy property environment disabled.
E:Error executing updater binary in zip '/sdcard/BlissPop-v3.6-cancro-OFFICIAL-20150708-1540.zip'
Error flashing zip '/sdcard/BlissPop-v3.6-cancro-OFFICIAL-20150708-1540.zip'
Updating partition details...
Iata backup size is 0MB, free: 11416MB.
I:Unable to mount '/usbotg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
Iperation_end - status=1
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'settings'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'install'
I:Set page: 'flash_confirm'
I:Set page: 'flash_zip'
Iperation_start: 'Flashing'
Installing '/sdcard/BlissPop-v3.6-cancro-OFFICIAL-20150708-1540.zip'...
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
Verifying zip signature...
I:read key e=3 hash=20
I:read key e=65537 hash=20
I:read key e=65537 hash=20
I:read key e=65537 hash=20
I:4 key(s) loaded from /res/keys
I:comment is 1738 bytes; signature 1720 bytes from end
I:whole-file signature verified against RSA key 0
Zip signature verified successfully.
I:Zip contains SELinux file_contexts file in its root. Extracting to /file_contexts
I:Legacy property environment initialized.
minzip: Extracted 4 file(s)
******************************************
* BlissPop Rom
******************************************
* Created By TeamBliss
******************************************
* Build date: Wed Jul 8 15:42:18 PDT 2015
* Device: MI 3W (cancro)
******************************************
{*} Running backup scripts...
detected filesystem ext4 for /dev/block/platform/msm_sdcc.1/by-name/system
about to run program [/tmp/install/bin/backuptool.sh] with 2 args
grep: /system/build.prop: No such file or directory
Not backing up files from incompatible version: 3
run_program: child exited with status 127
about to run program [/tmp/install/bin/otasigcheck.sh] with 1 args
{*} Done.
blockimg version is 2
erasing 318848 blocks
{*} Following operation takes time, please wait...
{*} Installation is block based
Patching system image unconditionally...
script aborted: blkdiscard failed: Invalid argument
blkdiscard failed: Invalid argument
I:Legacy property environment disabled.
E:Error executing updater binary in zip '/sdcard/BlissPop-v3.6-cancro-OFFICIAL-20150708-1540.zip'
Error flashing zip '/sdcard/BlissPop-v3.6-cancro-OFFICIAL-20150708-1540.zip'
Updating partition details...
Iata backup size is 0MB, free: 11416MB.
I:Unable to mount '/usbotg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
Iperation_end - status=1
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'settings'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'confirm_action'
I:Set page: 'action_page'
Iperation_start: 'Copy Log'
I:Copying file /tmp/recovery.log to /data/media/0/recovery.log

Error while backuping system in TWRP.

OnePlus 3T, AOSPA 7.3.0, TWRP 3.1.1-2, Magisk v14.0
I am trying to do full backup. All is fine, but when TWRP tries to backup system, an error occurs.
Code:
createTarFork() process ended with ERROR: 255
What is in the log:
Code:
[BACKUP STARTED]
* Backup Folder: /data/media/0/TWRP/BACKUPS/81726bb6/2017-10-19--08-14-58_NZH54D
Invalid encryption mode file /data/unencrypted/mode
Backing up System...
Invalid encryption mode file /data/unencrypted/mode
Error opening: '/system/addon.d' (Not a directory)
I:Error in Generate_TarList!
Error creating backup.
I:InfoManager saving '/data/media/0/TWRP/BACKUPS/81726bb6/2017-10-19--08-14-58_NZH54D/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/81726bb6/2017-10-19--08-14-58_NZH54D/recovery.log
How can I solve this problem?

TWRP backup failed Error 255: Error adding file '/data/system_ce/0'

I found some threads with this problem but all this threads have been with "more users" like 999, so I checked this but I have only this one user 0
latest TWRP + latest Existenz Pie + latest Magix, if this information is important?
I donĀ“t know if you need the full log or even more of the part with the error, but this the only part where I can see an error?
Code:
==> set selinux context: u:object_r:system_data_file:s0
failed to lookup tar policy for '/data/system_ce/0' - 'c078db7cd57ae4ef'
I:Error adding file '/data/system_ce/0' to '/external_sd/TWRP/BACKUPS/BH901GHLCU/2019-10-14--05-40-56_520A8131/data.ext4.win000'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving '/external_sd/TWRP/BACKUPS/BH901GHLCU/2019-10-14--05-40-56_520A8131/data.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
btw. a question to twrp backup: if I want to do a backup because I want to tryout another rom and switching back, is it better/faster to do a system.img?

TWRP commandline backup problems

Hi.
I'm trying to backup data partition with cmdline due to a broken display (currently, LOS 17.1 is installed). However it doesn't work. It seems to having issues with /data/system_ce/0. Can anyone help? The backup worked with via display in the past. Here is some logfile output:
Code:
[BACKUP STARTED]
* Backup Folder: /data/media/0/TWRP/BACKUPS/84a0237/2021-05-22--19-20-37
Invalid encryption mode 'ice:aes-256-cts'
Backing up Data...
Backups of Data do not include any files in internal storage such as pictures or downloads.
Invalid encryption mode 'ice:aes-256-cts'
Breaking backup file into multiple archives...
I:Creating backup...
I:Creating tar file '/data/media/0/TWRP/BACKUPS/84a0237/2021-05-22--19-20-37/data.ext4.win000'
I:addFile '/data/server_configurable_flags' including root: 1
==> set selinux context: u:object_r:server_configurable_flags_data_file:s0
found policy '/data/server_configurable_flags' - '1DK' - 'c0cd60c87b2b4dfc'
I:addFile '/data/system_ce' including root: 1
==> set selinux context: u:object_r:system_data_file:s0
I:addFile '/data/system_ce/0' including root: 1
==> set selinux context: u:object_r:system_data_file:s0
failed to lookup tar policy for '/data/system_ce/0' - '1435bb0a12e56a60'
I:Error adding file '/data/system_ce/0' to '/data/media/0/TWRP/BACKUPS/84a0237/2021-05-22--19-20-37/data.ext4.win000'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving '/data/media/0/TWRP/BACKUPS/84a0237/2021-05-22--19-20-37/data.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
I:Copied file /tmp/recovery.log to /data/media/0/TWRP/BACKUPS/84a0237/2021-05-22--19-20-37/recovery.log
Backup Failed
The device uses FBE, but users are decrypted successfully:
Code:
User 0 Decrypted Successfully
I:All found users are decrypted.
Data successfully decrypted
I can pull data from every folder. Maybe it is an idea to pull the data manually? But which data/folders should be pulled?
Thanks everybody in advance for some responses and help.

Categories

Resources