Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
reef-actor opened this issue Jan 20, 2024 · 19 comments
Closed

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

reef-actor opened this issue Jan 20, 2024 · 19 comments
Assignees
Labels
bug Something isn't working

Comments

@reef-actor
Copy link
Contributor

reef-actor commented Jan 20, 2024

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.

  • Firmware Version: 0.4.0, 0.4.1d
  • Device: Outdoor 1080
  • Model: 9CUS

The camera has unrestricted internet access.

Are there any log files that might reveal any issues?

@reef-actor reef-actor added the bug Something isn't working label Jan 20, 2024
@g1za
Copy link

g1za commented Jan 22, 2024

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
Copy link
Owner

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
Copy link

g1za commented Jan 22, 2024

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
Copy link
Owner

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

@g1za
Copy link

g1za commented Jan 22, 2024

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
Copy link
Owner

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
Copy link

g1za commented Jan 22, 2024

Same (Chrome)

immagine

@MichlW
Copy link

MichlW commented Jan 22, 2024

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
Copy link
Contributor Author

There is an TLS error:

This is the same issue I have

@g1za
Copy link

g1za commented Jan 23, 2024

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
Copy link
Owner

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

@roleoroleo
Copy link
Collaborator

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

@alienatedsec
Copy link
Owner

Thanks @roleoroleo

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

@Rushmed
Copy link

Rushmed commented Jan 29, 2024

How to update busybox?

@alienatedsec
Copy link
Owner

@Rushmed you have to wait for another release

@alienatedsec
Copy link
Owner

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

@reef-actor
Copy link
Contributor Author

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

image

Brilliant work!

@alienatedsec
Copy link
Owner

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
Copy link

muava12 commented Apr 22, 2024

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

@alienatedsec alienatedsec unpinned this issue Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants