[Galaxy S II Android Development] fireburner-de:
[MENTION=414800]arnab[/MENTION] I am on 20160609 CM13 and wanted to update to 20160712, but TWRP3.0.2-1 always stopps with error 7 (/system has unexpected content after ota update).

(I never use OTA, but always update manually. So I don't know why it is called OTA update)

The point is, when I revert back to TWRP 2.8.7.0, it updates flawlessly.

So TWRP 3 seems to have a problem if Nightlies are to far from each other (some weeks). Maybe that's why no one reported this so far, as most upgrade more often.

I had the same while trying to update from 20160331 to 20160609. Reverting back to TWRP 2.8.7.0 helped back then and also helped me now to update.

It would work if I would wipe (system, but I do not want to set up all my modifications on /system over and over again.

LOG:

I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0
I:TWFunc::Set_Brightness: Setting brightness control to 178
I:Set overlay: ''
I:Set page: 'clear_vars'
I:Set page: 'backup'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'install'
I:Set overlay: 'select_storage'
I:Set overlay: ''
I:Set page: 'clear_vars'
I:Set page: 'install'
Truncating string cache entries.
I:Set page: 'flash_confirm'
I:Set page: 'install'
I:Set page: 'flash_confirm'
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 178
I:Set page: 'flash_zip'
I:operation_start: 'Flashing'
Installing zip file '/sdcard1/cm-13.0-20160712-NIGHTLY-i9100.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.
Target: samsung/GT-I9100/GT-I9100:4.1.2/JZO54K/I9100XWMS2:user/release-keys
Target: samsung/GT-I9100/GT-I9100:4.1.2/JZO54K/I9100XWMS2:user/release-keysdetected filesystem ext4 for /dev/block/mmcblk0p9
detected filesystem ext4 for /dev/block/mmcblk0p9about to run program [/tmp/install/bin/backuptool.sh] with 2 args
grep: /tmp/gapps.prop: No such file or directory
detected filesystem ext4 for /dev/block/mmcblk0p10
detected filesystem ext4 for /dev/block/mmcblk0p10about to run program [/tmp/install/bin/otasigcheck.sh] with 1 args
I:TWFunc::Set_Brightness: Setting brightness control to 5
Patching system image unconditionally...performing update
blockimg version is 3
maximum stash entries 0
creating stash /cache/recovery/c4fb0eb204ff2e2c195a579c1a4ee42750484f6f/
Patching system image unconditionally...
Verifying the updated system image...Verifying the updated system image...
I:TWFunc::Set_Brightness: Setting brightness control to 0
I:TWFunc::Set_Brightness: Setting brightness control to 178
script aborted: system partition has unexpected contents after OTA update
system partition has unexpected contents after OTA update
Updater process ended with ERROR: 7
I:Legacy property environment disabled.
Error installing zip file '/sdcard1/cm-13.0-20160712-NIGHTLY-i9100.zip'
Updating partition details...
I:mount -o bind '/sdcard0/.android_secure' '/and-sec' process ended with RC=0
I:sending message to remove 65537
I:Message sent, remove storage ID: 65537
mtppipe remove storage 65537
I:Unable to mount '/usbotg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
I:operation_end - status=1
I:Set overlay: ''
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 178
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 178
I:Set page: 'clear_vars'
I:Set page: 'install'
I:Set page: 'flash_confirm'
I:Set page: 'flash_zip'
I:operation_start: 'Flashing'
Installing zip file '/sdcard1/cm-13.0-20160712-NIGHTLY-i9100.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.
Target: samsung/GT-I9100/GT-I9100:4.1.2/JZO54K/I9100XWMS2:user/release-keys
Target: samsung/GT-I9100/GT-I9100:4.1.2/JZO54K/I9100XWMS2:user/release-keysdetected filesystem ext4 for /dev/block/mmcblk0p9
detected filesystem ext4 for /dev/block/mmcblk0p9about to run program [/tmp/install/bin/backuptool.sh] with 2 args
detected filesystem ext4 for /dev/block/mmcblk0p10
detected filesystem ext4 for /dev/block/mmcblk0p10about to run program [/tmp/install/bin/otasigcheck.sh] with 1 args
I:TWFunc::Set_Brightness: Setting brightness control to 5
Patching system image unconditionally...performing update
blockimg version is 3
maximum stash entries 0
creating stash /cache/recovery/c4fb0eb204ff2e2c195a579c1a4ee42750484f6f/
Patching system image unconditionally...
Verifying the updated system image...Verifying the updated system image...
I:TWFunc::Set_Brightness: Setting brightness control to 178
script aborted: system partition has unexpected contents after OTA update
system partition has unexpected contents after OTA update
Updater process ended with ERROR: 7
I:Legacy property environment disabled.
Error installing zip file '/sdcard1/cm-13.0-20160712-NIGHTLY-i9100.zip'
Updating partition details...
I:mount -o bind '/sdcard0/.android_secure' '/and-sec' process ended with RC=0
I:sending message to remove 65537
I:Message sent, remove storage ID: 65537
mtppipe remove storage 65537
I:Unable to mount '/usbotg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
I:operation_end - status=1