alienatedsec / yi-hack-v5

Even newer Custom Firmware for Xiaomi Cameras based on Hi3518ev200 Chipset. It includes free RTSP, ONVIF and other improvements based on the work by roleoroleo
GNU General Public License v3.0
739 stars 87 forks source link

OTA FW upgrade shows no value for "Available:" #326

Closed reef-actor closed 4 months ago

reef-actor commented 5 months ago

When running on 0.4.0 I noticed both the "Latest" and "Pre-Release" available values were blank and trying to upgrade resulted in "Firmware download failed". I recently reflashed 0.38 and the issue was still there. I have now manually upgraded to 0.4.1d (by copying the tgz) and still have the issue.

The camera has unrestricted internet access.

Are there any log files that might reveal any issues?

g1za commented 5 months ago

I experienced the same problem and I also recently re-flashed to v.0.3.8. When I tried to update to the latest pre-release from the interface the problem appeared again so I'm updating manually too.

alienatedsec commented 5 months ago

Are there any log files that might reveal any issues?

Unfortunately, no log files to check - however, you could run the command from the console and see what will be reported back.

Release check

/usr/bin/wget -O - https://api.github.com/repos/alienatedsec/yi-hack-v5/releases/latest 2>&1 | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'

Pre-release check

/usr/bin/wget -O - https://api.github.com/repos/alienatedsec/yi-hack-v5/releases 2>&1 | grep -B 4 '"prerelease": true' | awk -F '"' '{print $4; exit}'
g1za commented 5 months ago

For me the output of the release command is 0.4.0, while for the pre-release is 0.4.1d

EDIT: current situation immagine

alienatedsec commented 5 months ago

It could be the browser then - does not allow to execution of javascript

g1za commented 5 months ago

I remember I used to launch updates from the interface and JS seems to be enabled. BTW... if it was a JS issue, should not we experience the same in saving settings, deleting recordings and so on?

immagine

EDIT: I also reloaded some previously saved settings file from the interface

alienatedsec commented 5 months ago

I remember I used to launch updates from the interface and JS seems to be enabled. BTW... if it was a JS issue, should not we experience the same in saving settings, deleting recordings and so on?

immagine

EDIT: I also reloaded some previously saved settings file from the interface

Firefox? Maybe try another browser?

g1za commented 5 months ago

Same (Chrome)

immagine

MichlW commented 5 months ago

The same happens to me on all cameras. Even in ssh console its the same empty answer:

/home/yi-hack-v5 # /usr/bin/wget -O - https://api.github.com/repos/alienatedsec/yi-hack-v5/releases/latest 2>&1 | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'
/home/yi-hack-v5 #

There is an TLS error:

/home/yi-hack-v5 # /usr/bin/wget -O - https://api.github.com/repos/alienatedsec/yi-hack-v5/releases/latest 2>&1
Connecting to api.github.com (140.82.121.5:443)
wget: note: TLS certificate validation not implemented
wget: TLS error from peer (alert code 80): 80
wget: error getting response: Connection reset by peer
reef-actor commented 5 months ago

There is an TLS error:

This is the same issue I have

g1za commented 5 months ago

Apologies I need to amend my previous comment. With SSH I also get empty answers: /home/yi-hack-v5 # /usr/bin/wget -O - https://api.github.com/repos/alienatedsec/ yi-hack-v5/releases/latest 2>&1 | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\ 1/'

/home/yi-hack-v5 # /usr/bin/wget -O - https://api.github.com/repos/alienatedsec/ yi-hack-v5/releases 2>&1 | grep -B 4 '"prerelease": true' | awk -F '"' '{print $ 4; exit}'

and the same TLS message

alienatedsec commented 5 months ago

I started experiencing the same issue recently - something broke and need to find what :)

roleoroleo commented 5 months ago

busybox must be updated to 1.36.1 This will fix the problem.

alienatedsec commented 5 months ago

Thanks @roleoroleo

I started yesterday and will need to rework the whole baseline to prevent this and some other issues.

Rushmed commented 5 months ago

How to update busybox?

alienatedsec commented 5 months ago

@Rushmed you have to wait for another release

alienatedsec commented 5 months ago

Please follow and test if needed https://github.com/alienatedsec/yi-hack-v5/releases/tag/0.4.1e

reef-actor commented 4 months ago

Please follow and test if needed https://github.com/alienatedsec/yi-hack-v5/releases/tag/0.4.1e

image

Brilliant work!

alienatedsec commented 4 months ago

Please beware that a new baseline is not final, so upgrades via WebUI are prevented until finalised with the latest release.

I just need two more issues fixing to release the latest version.

muava12 commented 2 months ago

i still in ver 2.3.8, and baseline ver 0.3.8. can i manually put 0.4.0 somewhere using FTP and update the firmware.. since i far away from my cctv right now