TeamWin / android_bootable_recovery

1.27k stars 399 forks source link

fails to back up /data/fonts ( createTarFork() process ended with ERROR: 255 ) #276

Open wb1016 opened 1 year ago

wb1016 commented 1 year ago

Device codename: vayu TWRP version: 3.7.0_12-0

WHAT STEPS WILL REPRODUCE THE PROBLEM?

  1. install vayu's latest firmware
  2. install LineageOS latest
  3. backup /data on TWRP

WHAT IS THE EXPECTED RESULT?

/data backup sucess

WHAT HAPPENS INSTEAD?

fails to back up with "createTarFork() process ended with ERROR: 255" error message

ADDITIONAL INFORMATION

log output

I:addFile '/data/fonts' including root: 1
  ==> set selinux context: u:object_r:system_data_file:s0
found fscrypt policy '/data/fonts' - '2DK' - 'a5d07c2ef6055e1a49be20f97f42b720'
I:addFile '/data/fonts/files' including root: 1
  ==> set selinux context: u:object_r:font_data_file:s0
found fscrypt policy '/data/fonts/files' - '2DK' - 'a5d07c2ef6055e1a49be20f97f42b720'
I:addFile '/data/fonts/files/~~x-1jwUFOuluBD0m14FCS7g==' including root: 1
  ==> set selinux context: u:object_r:font_data_file:s0
found fscrypt policy '/data/fonts/files/~~x-1jwUFOuluBD0m14FCS7g==' - '2DK' - 'a5d07c2ef6055e1a49be20f97f42b720'
I:addFile '/data/fonts/files/~~x-1jwUFOuluBD0m14FCS7g==/GoogleSans-Regular.ttf' including root: 1
  ==> set selinux context: u:object_r:font_data_file:s0
I:Error adding file '/data/fonts/files/~~x-1jwUFOuluBD0m14FCS7g==/GoogleSans-Regular.ttf' to '/data/media/0/TWRP/BACKUPS/4d6d7506/2022-10-25--13-42-57_lineage_vayu-userdebug_12_SQ3A220705004_0fb/data.f2fs.win006'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving '/data/media/0/TWRP/BACKUPS/4d6d7506/2022-10-25--13-42-57_lineage_vayu-userdebug_12_SQ3A220705004_0fb/data.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.

this is not related to #1373 since i dont have any user other than 0.

/tmp/recovery.log: dmesg: paste.omnirom.org is dead so im not pasting any links

olliebu commented 1 year ago

Same issue with

Device codename: kebab TWRP version: 3.6.2_12-27082022

Bonoboo commented 1 year ago

I know, reports for unofficial builds restricted, but just for info. Had same issue with spes (Redmi Note 11) and TWRP 3.7.0_12-0 After deleting whole /data/fonts folder backup was successful. At boot fonts downloaded again, no issues. That folder introduced starting Android 12:

UPD: seems this problem acknowledged: https://github.com/TeamWin/android_bootable_recovery/commit/cc683e7a3deefb96ece49b07bf88648087a7ccaf And it's up to device maintainer to add exclusion for /data/fonts