Skip to content

Flashing with Etcher results in faulty DNS behavior. #28706

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

Closed
DamianosS opened this issue Aug 28, 2023 · 9 comments
Closed

Flashing with Etcher results in faulty DNS behavior. #28706

DamianosS opened this issue Aug 28, 2023 · 9 comments
Labels
balena issue related to balena etcher installation

Comments

@DamianosS
Copy link

Feedback

Several users encountered DNS related problems after incomplete Balena Etcher flashing.
When using USBimager as an alternative we didn't have problems so far.

Maybe this is worthwhile to be mentioned in the dcoumentation.

You can find documentation and comments regarding that issue in the community forum:
[Flashing hard drive get stuck at 31% (balena fetcher)](https://community.home-assistant.io/t/flashing-hard-drive-get-stuck-at-31-balena-fetcher/604336)](https://community.home-assistant.io/t/flashing-hard-drive-get-stuck-at-31-balena-fetcher/604336/44)

URL

https://www.home-assistant.io/installation/generic-x86-64/

Version

2023.8.4

Additional information

No response

@github-actions
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved.
If this issue is still relevant, please let us know by leaving a comment 👍
This issue has now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale The PR had no activity for quite some time, and is marked as Stale label Oct 27, 2023
@DamianosS
Copy link
Author

The issue still persists regarding the documentation, suggesting the use of Balena Etcher.
Since the described way lead to errors and questionable behaviour, the documentation should be updated.
I'm more than happy to support to this, just tell me what to do.

@DamianosS DamianosS changed the title Flshing with Etcher results in faulty DNS behavior. Flashing with Etcher results in faulty DNS behavior. Nov 2, 2023
@github-actions github-actions bot removed the Stale The PR had no activity for quite some time, and is marked as Stale label Nov 2, 2023
@k8gg
Copy link

k8gg commented Nov 2, 2023

Not stalled.

@seelem02
Copy link

I had this exact issue. Flashing got to 32% for me, but as HAOS appeared to boot fine, it looked like the flashing completed, and perhaps it was just a graphics issue that meant the screen wasn't updating. In fact it absolutely didn't complete. The most noticeable issue was DNS not working properly, but adding DNS servers didn't fix it.
The problem appears to be with Balena Etcher. I tried multiple Live OS's, and various methods. In the end, following this guide actually worked:

https://community.home-assistant.io/t/how-to-install-home-assistant-on-generic-x86-64-using-live-os/567210

Note that this guide seems to install a different (older) version of Balena Etcher, and despite a number of errors during install, it works fine and writes the image to the disk without any errors.

Definitely worth mentioning it in the guide that if you do not see Balena Etcher flash to 100% and verify, then it likely hasn't worked, even though the OS may boot and look ok. I suspect there are quite a few people out there with slightly knackered installs due to this one.

@c0ffeeca7 c0ffeeca7 added the balena issue related to balena etcher label Nov 24, 2023
@agners
Copy link
Member

agners commented Nov 24, 2023

@DamianosS I was able to reproduce the problem and this is really very curious 😅

So I think for one, it just seems that balenaEtcher is not a good fit for Ubuntu 22.04, at least when using the Live version. It requires libfuse2, and then crashes as it seems 🙈

The outcome of the whole situation is really interesting, it seems that balenaEtcher corrupted the CoreDNS binary inside the DNS plug-in on Home Assistant, which lead to those DNS issues people have reported 🤯 .

In any case, It think the better approach here is to use the built-in "Disks" utility of Ubuntu. The main reason the guide is using balenaEtcher is since it is available on all platform (in case people flash it from a host using USB-to-S-ATA adapter) and it supports verify (however, that is moot point since it crashes 🙈 ). So this means we have to split the guides in two separate flows.

USBimager does look interesting. What don't like too much is that it doesn't support AppImage and uses x11 by default on Linux.

c0ffeeca7 added a commit that referenced this issue Nov 24, 2023
- to use restore disk image from Ubuntu instead of using Balena Etcher to install HAOS
- Restructure procedures to favor the live Operating System from USB over the Balena Etcher method
- Reason: according to the issue tracker, there seem to be recurring issues with the Balena Etcher method
- Adresses feedback provided in #29684, #28961, and #28706
@DamianosS
Copy link
Author

DamianosS commented Nov 25, 2023

@agners, I see your point. However, since the documentation suggests Ubuntu Live as the jump-off point, and Balena Etcher gives userd a hard time, shouldn’t it suggest the USBimager alternative?

@agners
Copy link
Member

agners commented Nov 28, 2023

@DamianosS USBImager would probably work too, but Ubuntu has a built-in tool called Disks which even can handle xz images directly. Initially we did not use that tool because it adds another flow to document. But given the problems, I think this is the best option as it doesn't require installing anything additionally.

@c0ffeeca7 created a PR adjusting the documentation in #29997.

@DamianosS
Copy link
Author

Agree. If there’s a build-in tool, so the user wouldn’t need to download anything, it’s of course the preferable way! Thanks a lot, @agners!

c0ffeeca7 added a commit that referenced this issue Nov 28, 2023
* Installation generic x86: add steps

- to use restore disk image from Ubuntu instead of using Balena Etcher to install HAOS
- Restructure procedures to favor the live Operating System from USB over the Balena Etcher method
- Reason: according to the issue tracker, there seem to be recurring issues with the Balena Etcher method
- Adresses feedback provided in #29684, #28961, and #28706

* fix formatting

* Add notice, fix step numbers

* Apply suggestions from code review

Co-authored-by: Stefan Agner <stefan@agner.ch>

* Apply suggestions from code review

Co-authored-by: Stefan Agner <stefan@agner.ch>

* Fix structure

* Update procedure and screenshots

* Fix formatting

* Small rephrase

* Tweaks

* Fix typo

* Add note to decompress image file if installation fails

- as indicated by #28961

* Apply suggestions from code review

Co-authored-by: Stefan Agner <stefan@agner.ch>

* Update source/_includes/installation/operating_system.md

Co-authored-by: Stefan Agner <stefan@agner.ch>

* Rephrase caution statement

* Apply suggestions from code review

Co-authored-by: Stefan Agner <stefan@agner.ch>

---------

Co-authored-by: Stefan Agner <stefan@agner.ch>
@c0ffeeca7
Copy link
Contributor

Resolved by #29997

@github-actions github-actions bot locked and limited conversation to collaborators Dec 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
balena issue related to balena etcher installation
Projects
None yet
Development

No branches or pull requests

5 participants