EliasKotlyar / Xiaomi-Dafang-Hacks

4.2k stars 1k forks source link

There is a problem with your VERSION file. Please do a full update to create a valid VERSION file. #1841

Open furrnace opened 1 year ago

furrnace commented 1 year ago

This is an issue tracking system only. If you have general questions or are a newbie, please ask for help in our chat channel.

To make sure your issue can be resolved as quickly as possible please state your

Description

Clicked on Update tab, the page says: "There is a problem with your VERSION file. Please do a full update to create a valid VERSION file."

What did you do to debug the issue

Logged in per ssh, removed /system/sdcard/VERSION and ran ./autoupdate.sh -u user:token (with my username and token). The update ran through successfully and the cam did reboot. The VERSION file now contains: {"date":"2022-12-30T12:40:39Z","repo":"EliasKotlyar/Xiaomi-Dafang-Hacks","branch":"master","commit":"5d70997"}

The update page still says: "There is a problem with your VERSION file. Please do a full update to create a valid VERSION file."

Evidence

I did set Settings > System > Updates > Github Token to my username:token

On the UI under Custom Firmware, Repository it says: EliasKotlyar/Xiaomi-Dafang-Hacks, Branch: master, Force full update: yes When clicking Update custom firmware I get that the update process start had an error and the VERSION file was set to contain: {"date":"null","repo":"EliasKotlyar/Xiaomi-Dafang-Hacks","branch":"master","commit":"null"}

The update log shows:

Starting AutoUpdate on branch master Forcing update. Version file missing. Upgrade to last commit null Getting list of remote files. Number of file to update 0 No files to update.

to remedy, I removed the VERSION file and ran ./autoupdate.sh -u username:token

The update page still says: "There is a problem with your VERSION file. Please do a full update to create a valid VERSION file."