TeamWin/Team-Win-Recovery-Project

LineageOS Install via ADB sideload fails on gts210vewifi with Error 7 (mkdir "/cache/recovery/<UUID>/" failed: No such file or directory)

thorian93 opened this issue · 3 comments

  • I am running an official build of TWRP, downloaded from https://twrp.me/Devices/
  • I am running the latest version of TWRP
  • I have read the FAQ (https://twrp.me/FAQ/)
  • I have searched for my issue and it does not already exist

Device codename: gts210vewifi
TWRP version: 3.4.0

WHAT STEPS WILL REPRODUCE THE PROBLEM?

16-samsung-galaxy-note-2-gt-n7100-t03g) describes the problem in detail although for another model and an inofficial build.

In short:

  1. Download official build (lineage-16.0-20201010-nightly-gts210vewifi-signed.zip in my case)
  2. Wipe all partitions (/system /data /cache etc.)
  3. Start ADB sideload installation
  4. See the error below (I copied the output from the post before, mine is just slightly different, but I used the official build mentioned above).
Installing zip file '/sdcard/lineage-16-20200104-UNOFFICIAL-n7100.zip'
Checking for Digest file...
Unmounting System...
Warning: No file_contexts
Target: samsung/t03gxx/t03g:4.3/JSS15J/N71000XXUEMK4:user/release-keys
detected filesystem ext4 for /dev/block/mmcblk0p13
Patching system image unconditionally...
mkdir "/cache/recovery/8833b259bb088b2e13f62771d46006a40f54bc20/" failed: No such file or directory
E1001: Failed to update system image.
Updater process ended with ERROR: 7
Error installing zip file '/sdcard/lineage-16-20200104-UNOFFICIAL-n7100.zip'
Updating partition details...
...done

WHAT IS THE EXPECTED RESULT?

The .zip file should be installed via ADB without a problem.

WHAT HAPPENS INSTEAD?

The installation fails with error code 7 and the following message: mkdir "/cache/recovery/<UUID>/" failed: No such file or directory.

ADDITIONAL INFORMATION

I filed an issue with LineageOS but I was told this was an TWRP problem, so here I am. I am not sure how to tackle this, so let me know if can provide anything else.

I found this in the FAQ but I am not sure if that is related to my very problem.

Thanks in advance!

I ran into this exact same problem. My steps:

  1. Dowloaded https://download.lineage.microg.org/cheeseburger/lineage-16.0-20201020-microG-cheeseburger.zip to /sdcard
  2. Emptied /cache, /data and dalvik
  3. Ran Install from TWRP

I worked around it by running mkdir /cache/recovery from an adb root shell. Then the installation worked.

Is this still an issue?

I am up and running with the workaround but if necessary I can try and check once I find time. Unless @mrtndwrd can do the check quicker.