trying to PR the Partition documentation, but I cant seem to do so because I am not authorized. Forked, and wrote this https://github.com/Mariusthvdb/operating-system/blob/dev/Documentation/partition.md#power-supply because of https://community.home-assistant.io/t/pi4-ssd-too-much-to-handle-for-powersupply-replace-with/313606/15?u=mariusthvdb
#devs_os-archived
1 messages Β· Page 3 of 1
Pascal, could you please have a look? Both to the PR, and preferably to the issue...
PR's done, thanks @dusk phoenix . Would still appreciate comments on the issue itself π
ok, next question on the matter: using the partition install, I want to change SSD's. Ordered a new, bigger and faster, and (hope) more efficient one π how can I copy/move the content of my current SSD to the new one?
o wait, I posted to the wrong # I fear. My pardon. will repost in #330990055533576204
sorry to get back here, but I do think it now is a dev- issue.. can I link #330990055533576204 message
the official partition install is quite impossible to reboot the host. A powered hub has back-power preventing the Pi, a tweaked USB cord (no red power wire) doesnt reboot either
apparently a 3.5+A PS does work (Thanasis) but these are not obvious in all regions. Believe a list of positively tested Hubs/PS's/usb cables should be provided in the install method, or people might burn their PI's...
Hello devs
I am trying to boot odroid c2 image on khadas vim1 yes I am using short cut method to test my theory
wrt #330990055533576204 message the OS uses partition ids to mount the rootfs, so it should work
Flashed c2 image on sd card.
Flashed Vim1 mainline uboot
Replaced dtb
Ok
please see if you can find the mistake here
I am trying to look for what I missed
ok I will edit the boot.scr can you point me to the boot.txt on the git will save some of my time
That might be a problem:
Unknown command 'setexpr' - try 'help'
Yeah
looking at the load mmc io is switched between c2 and vim1 uboot
You built your own U-Boot right? I think I'd try to add the HAOS sauce to it so the default script works
We use devnum which is provided by U-Boot, so it should work on any mmc device afaik
Na too lazy for that but using pre-built binary provided by the khadas maintainer using mainline uboot with some patches
idk why setexp is not in the mainline uboot
Its not that much, just this patch:
https://github.com/home-assistant/operating-system/tree/dev/buildroot-external/patches/uboot/2021.04
And this configs:
https://github.com/home-assistant/operating-system/blob/dev/buildroot-external/bootloader/uboot.config
It is, its not enabled in the build you are using
fileenv is an extra patch though
ok I will look for setexp patch
well setexp is part of uboot maybe just need to enable it as you said
If I could get it to work with vim1 then it will work with vim3 also using n2 image
the manufacture need send us 1-2 samples for each supported device that we can test with (new releases ect..)
I reach out khadas a year before and they had no interests to run HAOS
new profile pic π
thanks
Ok I will check with them. I doubt I can convince them as they also have hardware shortage.
tried compiling uboot for vim2 and it fails with some error using the khadas tool.
fails to compile dtc
Thanks for the replies devs. I gave it multiple tries but the uboot which I build doesnt build. Maybe the deps are not supported for the dtc the tool was using
I will try again tomorrow as I have asked the maintainer to add setexp and fileenv support to his builds.
Also will discuss about Khadas devices for hass
wait I have $100 coupon from Khadas store. @rare sable or @latent wigeon if you want to use it to buy khadas devices then I am willing to let you use it.
I have this since 6 months now as win yearly forum contributor price.
Can get 2 khadas VIm1
I am personally more interested in Vim3 π
That will be 1 device only
without the case maybe I can convince them to send case for free hahaha
Do you have a Vim3?
I have yes
VIm1 , vim2, vim3 Edge-V
all donation except vim1 which I purchase to begin my aarch64 journey π
I have dropped a message to Khadas manager. So either its 2 x Vim1 frm my coupon or 1 x vim3 frm my coupon and Khadas send one by themselve.
Lets see what response I get π
oh dear Vim3 basic is $99 i thought it was VIm3 pro. which have 4gb ram. anyways lets see.
Ok I will stop talking to myself. Off to sleep Bye guys see you again tomorrow
Thanks!
pvizeli did most of the work in the past, now its mostly me
Hello
@dusk phoenix and @rare sable
Is 2 devices needed to add official support ?
Khadas team will let me know their discussion today hopefully.
Ideally yes.
Sounds good!
If i dont get a reply frm Khadas by sunday then I will go ahead and order Vim3 for you @dusk phoenix While I will build vim1 support myself
@upper nebula that is very kind. Let's hope that Khadas response
@dusk phoenix
one step closer
Patched khadas vim1 with fileenv and setexp
https://paste.ubuntu.com/p/4Rdksnt6Jx/
Next it is stuck somewhere so mostly need device specific changes to boot.scr
Cannot find the partition
https://paste.ubuntu.com/p/smQGFs9m4s/
Done π
https://paste.ubuntu.com/p/GDR4pFtw9n/
Hass OS On Khadas Vim1 Now need to see why services are failing
Looks good.
Khadas Vim1 setting up supervisor.
All good works so much better than rpi3B+
Next need to prepare an image out of my sd card to flash it on the emmc π
Cool congrats! So what was the cause for the boot issue?
uboot one ?
missing setexp and fileenv as you suggested
for rootfs not found it was wrong PARTUUID in boot.scr
Yeah Rpi 3 shows its age. Plus I assume you are using eMMC?
vim1 still on sd card so far and still runs so smooth coz of the higher clock soc and ram
how does the hass os tool build images ? dockers
which host is needed ?
Its buildroot and we have script which build the whole thing using inside a container
The image building process is rather custom scripts
Yes I am following it but I know its huge and will take me long time to understand so I dont want to get into it much
instead I can help support with finding ways to get it working while you can see if you want to add support and maintain it or not
To build I use this command usually:
./scripts/enter.sh make O=output_odroid_c4 odroid_c4
(with that I have a separate output dir for each board)
odroid_c4 -> ./buildroot-external/configs/odroid_c4_defconfig
Ideally you want to create a custom khadas_vim1_defconfig + add what is necessary in ./buildroot-external/board/khadas/vim1/
Since its the same SoC I guess you shoudl be able to just copy ./buildroot-external/board/hardkernel/odroid-c2/hassos-hook.sh, adjust the device tree which should copied and then the image should be generated with all the right firmware etc.
@dusk phoenix
PARTUUID="4861cc6c-06" on C2 Image while its uboot-boot.ush have PARTUUID=48617373-06
This is on official image
That should not be the case. We set the UUID to 48617373-06 in buildroot-external/scripts/hdd-image.sh
But the actual image of c2 have something different.
I have created an image manual for Khadas Vim1 will be doing some test on it then will create an emmc installer image which will flash the hass image on emmc.
Need minimum 16gb coz i used 16gb card as test image which I write back as img
https://www.fkardame.com/2021/06/12/home-assistant-khadas-vim1/
A tiny blog to document the work.
Yes. We use rauc for update, and U-Boot is one of the items we update.
Nice!
Is there a specific reason you chose U-Boot 2021.07-rc4 (e.g. is it known to be required or might 2021.04 work too?)
Reason I ask, U-Boot sometimes causes a bit of trouble to update, so I usually don't jump on every release. And 2021.07 might be one of the skipped ones
The OS will resize the data partition to maximum available size on first boot
I used it coz it is coming from Khadas official uboot support guy with khadas specific patches
Great
I see. Do you have a link to a git tree?
uboot is upstream git
Damn Khadas Vim1 is like double the speed of RPI3B+ when loading grafana
even though both have exact same soc just 100mhz overclockedon each core
when does the kernel get updated ? or does it stays on lts as long as it can ?
ok off to bed see you later
Hey @upper nebula I am not an "official" developer but I did implement the Odroid-C4 support. I was fortunate in that it's very similar to the Odroid-N2, so I didn't have to do much. I sometimes found it helpful to refer to Armbian source to see how various bits are put together...
Thanks
I am looking at hardkernel-boot pkg and will follow something similar and make khadas-boot pkg
Hi haos devs and thanks to @rare sable for inviting me as a haos dev myself. What an honor! However, before contributing more, what is the exact procedure for accepting/merging pull requests? Is there some documentation on the accepted development process (how and where - which branch? - to merge changes, when is review by another haos dev necessary and when not?). So you see I do have some questions here and hope perhaps @dusk phoenix or @rare sable can provide me some fist hand information to better know your development process...
@bleak tide since there aren't that many devs on OS, we don't have a very firm development process. Pascal for the most part transferred "ownership" to me. Typically, I test my changes at least on one platform locally and then create a pull request. Sometimes the PR is to just have it double checked by the CI pipeline, but depending on the change (especially if a bit more involved/or even controversial) I ask @rare sable to double check/give feedback on it. If I don't plan on doing a dev/release build, I usually let the PR sit there in case somebody else feels like reviewing it (which unfortunately doesn't happen all that often π ).
All merge request should go to dev branch. Whatever is labeled rel-6 (or whatever is the current stable release) I'll backport before releasing the next stable. In this release cycle I built the rc's from dev branch, but I might do it differently with the next release cycle (I am planning to branch off a rc branch when releasing the first rc so development can continue while stabilizing on the rc branch). Since there are very few contributions currently, I'll expect developers to create PR's to the dev branch only and tag them if they feel it should be backported. I'll review/approve from all contributors.
We have two Github build pipelines: .github/workflows/dev.yml which requires manual trigger via Github actions, builds get pushed to https://os-builds.home-assistant.io/ and the dev channel if successful. Then there is .github/workflows/release.yml which builds on Github release and builds get pushed to the beta channel. From there we promote it to stable manually, if deemed stable worthy :).
@dusk phoenix Thanks for the details. This is highly appreciated. So, did I get it right? All PR should be merged to the dev branch regardless if they are labeled with "rel-6"? So this is just some information for you to don't forget to backport them to the "rel-6" branch when you are preparing a new stable release, right? So I should not directly commit/merge to the rel-6 branch if I want some change to be merged for the 6.x line of HAos, right? And I will of course leave it to you to prepare new stable releases but eventually let the dev workflow to generate new development builds.
Yes, that is correct, generally to dev branch and I use the label rel-6 as backport marker. There are situation where dev diverged/moved on so that a fix only really applies for the rel-6 branch, in that case a PR to rel-6 is ok.
Stable releases is a bit of work since I usually check it on various boards, so it depends a bit on schedule on my side when to prepare such a release. Development build I pretty much can build whenever.
https://www.khadas.com/amp/it-s-all-about-vim3?__twitter_impression=true
Vim3 blog post includes home assistant name
On a side note, the VIM3 may soon be getting official support from Home Assistant OS as well, and we want to thank the open source community for their efforts!
I see... I don't remember promising anything π We'll see
Yea but I dont think it will take much time but anyways enjoy ur vacation first π
https://forum.radxa.com/t/introduce-the-radxa-zero/6550?u=spikerguy
Another AMlogic device
Interesting, seems to be their first one
A bit more on the lower end, but nice price
is there any reason the home assistant host os on rasppi would be sending constant arp requests?
31148 916.611785 Raspberr_ce:b3:6d Broadcast ARP 60 Who has 192.168.86.64? Tell 192.168.86.65
31157 917.530036 Raspberr_ce:b3:6d Broadcast ARP 60 Who has 192.168.86.64? Tell 192.168.86.65
31158 917.530036 Raspberr_ce:b3:6d Broadcast ARP 60 Who has 192.168.86.64? Tell 192.168.86.65
31163 918.659450 Raspberr_ce:b3:6d Broadcast ARP 60 Who has 192.168.86.64? Tell 192.168.86.65
31164 918.659450 Raspberr_ce:b3:6d Broadcast ARP 60 Who has 192.168.86.64? Tell 192.168.86.65
seems to go away when the host os is restarting
and it's usually for the address right below the HA server address
The reason is probably that some component wants to send something to 192.168.86.64. I guess the question is what tries to send a IP packet to 192.168.86.64 (which in turn leads to said ARP request).
It would be on par with vim1 though.
Yeah its even a bit faster probably, as its the S905Y2 clocked at 1.8GHz. But the VIM1 starts at 2GB, whereas this starts at 512MB. Definitly not where you want to run HA on π
But yeah, the 4GB LPDDR4 with 16GB eMMC, WiFi5/BT5 @45$ is really a nice price!
Yes with a decent heatsink and case it would be good. Just Ethernet is missing though.
Any progress on Vim1 ?
I have installed the HomeAssitant OS inside proxmox. Everything works. Now I connected a Ralink Wifi dongle to my host and add this to the HAOS VM. nmcli does not detect the wifi dongle. Am I right that there are no Ralink drivers in the ova build ?
lsusb
@woven crypt yes, came up previously also on the issue tracker: https://github.com/home-assistant/operating-system/issues/1443
planning to add them.
Hello Devs
Hope this is not the wrong place to ask, but I imagine what I want to ask doesn't yet exist...
Problem: installation of hassio on RPi is too cumbersome and time consuming considering how much interaction is required by the installer.
Question : similar to the wpa_supplicant.conf file that is put in the boot partition of a RPi's SD card prior to installation, could a similar text file be inserted into the Hassio image boot partition to activate all the config and installation steps I would do right up to the point of being ready to add Iot devices?
WHY? I experiment with my setup quite a bit and seem to mess up my setup. I would imagine it using a package manager like YARN to install all the integrations, usb adapters and add-ons, docker images to be ready to go on MY network so I just need to add devices.
This could all be provisioned using something like the reprap configurator that would output the text/yaml/json files to be added to the SD card image.
Optionally, a repository of "configurations" for specific versions of parts could exist to duplicate a popular combination of integrations and hardware parts that are working together (known as parts working together). In my mind, it would be similar to docker hub for Home Assistant where I just add my network details and secrets file.
This would save many users hours or even days it takes to have a working starting place, which could dramatically speed up user adoption of the platform.
This is the wrong place (#general-archived are fitting), and what you are describing already exist https://www.home-assistant.io/common-tasks/os/#snapshots
Thank you. I will ask there, but FYI, I am not talking about backups, I am talking about automated installation
... according to known, working recipes of of parts
Devs channel are for people they want develop something
Hello, new here, used the HAOS KVM qcow2 image to provision a VM, was absolutely shocked to see it drop me to a HA CLI that i could change files from or reboot the VM from, is that something normal? Removing the video and serial components are one thing, but really no login prompt ? Should i just do a supervised install instead ?
This is a developer channel
you could always log in as root, so this just eliminates the need to do that
you can install whatever you want - this isn't a security issue
@latent wigeon that's the problem, there is no login prompt, you just get the root shell
Whatβs the problem with that?
anyone with half a brain in your network can just destroy your install
if you don't remove the spice interface anything on your host can just about do that
was just curious if i did something wrong in the install that made it drop to an un-secure state
Not really. They either have to have physical access to the device or network access to the machine, which you can protect
No, thatβs by design
In the future, please use your install method channel, not the dev channels
roger that, thanks
Physical yes, network no
I was thinking network to a machine running a VM, which should be protected
I ran in the past the HAiOS in VM and it went smooth, now i change π₯οΈ and wanted to do the same but now i have an issue. The VM runs well until I have to call it in the browser I'm not able to open it anymore. Who can help me
Home assistant cli is failing to start on boot in a test image, Agner seems busy so I am asking here
Was it more discussion of allowing more override for things like files, mounts, add nfs4 and samba file systems etc for a bit more user controlled flexibility of loading custom code at boot on home assistant os? I canβt see it compromise os if the user can make a mount point to mount a nfs share in for example media.
We have an open RFC for implementing mounting into our eco system. Only that way will be allowed. Once a developer will implement that, we have a solution
All other workaround will not get merged
We doing it right or nothing
If you want customized OS, use debian and supervised
Yeah I think I raised that rfc. Im happy to hear its in the pipeline. I donβt think customised os is the correct wording, but configured os. Im all for simplicity and keep it stable so I see the problem in opening it up. I hope that rfc get traction at one point. Good job on the os π
Hello devs. Good to see the new release.
Was expecting vim3 but it's still not there yet.
Meanwhile, you can use dev releases. You will be able to upgrade to stable: https://os-builds.home-assistant.io/7.0.dev20210826/
Hi all, any hint on how to install a dev release of OS?
I'm struggling with Raspberry stops responding after few hours if I install anything newer than OS 6.0 and I'd like to try the 7.0...
#330990055533576204 can help you with that
TY!
all - trying to troubleshoot the RPi4 crashing issue (#1119). trying to run journalctl and I get a response "unknown command". any idea what I'm doing wrong?
I should clarify that this is via ssh on the debug port 22222 login as root
maybe the PATH is wrong?
yeah I see I am at "ha>" do you know how to get to "/root" per https://developers.home-assistant.io/docs/operating-system/debugging/
Definitly works here:
$ ssh -p 22222 root@ha-shelf1-rpi4.lan
Welcome to Home Assistant OS.
Use `ha` to access the Home Assistant CLI.
# whereis journalctl
journalctl: /usr/bin/journalctl
Ah so you have HAOS 5.x? Use login to access the shell
^^fixed it. thank you sir
you're welcome
Hello Devs, hows everything ?
I have build image for Khadas vim1 using agners hassos branch
Supervisor cannot be started as the upstream source doesnt have it known
where is this defined ?
No version found for ghcr.io/home-assistant/khadas-vim1-homeassistant
We need to use odroid-c2 as it is present upstream
I am making Khadas specific changes here
https://github.com/spikerguy/operating-system/tree/add-khadas-vim1-v2
Can someone advice me on this ? Agner is travelling so he might not be able to respond.
In last nights image I was able to get hass_cli up as compared to previous dev images.
Now supervisor seems to be configured to use khadas-vim1 where it should use odroid-c2 instead
great thanks, Do I have to rebuild the whole thing again or can I just rebuild the supervisor docker ?
I have no clue how that works π
No problem I have removed docker_cli and rebuild it
now supervisor is up yeayyy
next ethernet is not visible
so must have missing something in kernel
yeay it up π
hello hi
I ran into an issue while booting from USB, but I found the solution and I am submitting a PR to fix it
is there a specific way I should do it (e.g. which branch should I merge into, PR format, etc.)
@sharp girder whoops missed that comment. Just create a PR for the dev branch
looking to make a PR which grabs the Apex driver source directly from Google instead of how it's obtaining it now, since the current version that's bundled with HassOS (1.0) is out of date (new version is 1.1) and seems to have significant performance improvements with Coral M.2 cards -- any suggestions on where to start? I can't find any reference to Apex at the moment either in operating-system or the buildroot repo, other than some build flags
here are the Coral docs for building it directly into the kernel as a module
Buildroot allows to build kernel modules. Have a look at the intel-e1000e package https://github.com/home-assistant/operating-system/tree/dev/buildroot-external/package/intel-e1000e
@dusk phoenix curious why you bumped disk size from 1GB to 1280MB in https://github.com/home-assistant/operating-system/commit/762f098c14b64fedcb0f5041d2c10852cd424896#diff-651ffc5d57ea89033d2499efe38b15ee83abd92de3bb71019f5eb337c5520fe3
@plain steppe without it docker load of the last image would fail. For some reason docker load requires temporarily more disk space.... In the end the effective image is the same size (reported by du, or even a couple of megabytes smaller)
gotcha. figured it was something dumb like that
Hehe yeah its kinda dumb. But it fits in that allocated 2GB image we have, so why not π€·ββοΈ
Also since we mount now with discard option set, it actually leads to a slightly smaller image afaik.
(as in, more sparse... In the end it probably doesn't matter since we write zeros anyways)
Actually was thinking about creating bmap images, so we could distribute sparse images one can flash faster. Probably not really useful for the average user, but can speed up flashing for testing etc.
oh cool i didn't know about bmap
i'm trying to sync our tree up to haos dev. we're still on 4.19 kernel and its causing problems with the new v1.4 rpi4 boards
lots of interesting changes recently π
happy to see buildroot is a submodule now
also xz perf improvements. i was using pigz locally because gzip is so slow
lots of good clean up to hassos-expand
the new ha-cli looks very interesting.. where is the cli.sh its invoking onto tty1?
cli.sh is running in the CLI container: https://github.com/home-assistant/plugin-cli
aha thanks, so ha banner does the info display
yes
Thanks! I will look into this
Moved and extended some of the developer documentation to our developer website (https://developers.home-assistant.io/), PR is pending, reviews welcome π
https://github.com/home-assistant/developers.home-assistant/pull/1075
You can see a preview of that developer website here:
https://deploy-preview-1075--developers-home-assistant.netlify.app/docs/operating-system/getting-started
huh i'm noticing that after rauc install <file> the owner on the file changes to root
What kind of patch?
Interesting. Is that also taking hardlinks into account π
Ah wait, hardlinks share permissions. So should be fine I guess.
for rpi I2c, is the dtparam i2c1 or i2c_vc
I see different things on https://www.home-assistant.io/common-tasks/os#enable-i2c vs Documentation/boards/raspberrypi/README.md
doh different boards
am i remembering correctly there is something during rauc update that doesn't overwrite the old /mnt/boot/config.txt?
aha boot hacks in rauc-hook
Can someone explain me how release images are built? When I build image from dev branch than it shows developement images everywhere.
I see release branches not sure if that's the way it needs to be built
@upper nebula the preliminary dev documentation mentioned above is probably the best description available currently, especially the deployment section:
https://deploy-preview-1075--developers-home-assistant.netlify.app/docs/operating-system/deployment
Thanks thats what I was looking for
@dusk phoenix I'm trying to do some kernel print debugging and it doesn't seem to work. is this the right approach? https://github.com/tmm1/rpi-linux/commit/ddf3e507096d28e307896f75f242042958be81bd
Yeah that should work
There are other primitives in that driver it seems:
sd_printk(KERN_WARNING, sdkp, "sd_revalidate_disk: Memory "
"allocation failure.\n");
but shouldn't matter
Are you sure the kernel got properly rebuilt and deployed?
it didn't the first dozen times but now atleast uname shows the correct version. I'll bump the version number too to make sure
thanks!
is there an easier way to do incremental kernel rebuild, vs rm -rf output/build/linux-custom
oh I didn't have the drive plugged in! I see the debug logs now yay
https://www.spinics.net/lists/linux-scsi/msg159347.html this patch seems to describe the same issue I was experiencing
I think deleting the right dotfile in that dir should be enough in theory. I mostly end up rm -rf'ing too..
Hm. Interesting, so trim not working?
yea so we have been using consumer usb drives and they are becoming very slow after heavy usage
I found that many drives now are SMR, and it requires TRIM to allow the platter to garbage collect
but they don't use UASP so the kernel doesn't know it supports TRIM, or for readcapa16 drives it assumes WS16 for trim which fails
it is possible in userland via sg3-utils to query the same info and set the provisioning mode manually. there are a few rpi tutorials about that https://www.jeffgeerling.com/blog/2020/enabling-trim-on-external-ssd-on-raspberry-pi
I think we need a little userland script to implement the same logic as the kernel and set provisioning mode (https://gist.github.com/cathay4t/e80e02a737242a5f3824606543631bfe)
follow up to that patch here: https://www.spinics.net/lists/linux-scsi/msg160058.html
So there are two trim methods, and it should be using the other one?
yea
it seems to assume all drives over a certain size will support writesame16 instead of checking the capabilities
here's example of two drives i have attached to my RPI. both are capable of TRIM, but one comes in as provisioning_mode=full and the other as provisioning_mode=writesame_16
if i change both to unmap i can run fstrim and it works
So how do you change them to unmap?
Ah I see udev
I mean we can start add those drives to udev rules I guess...
or is there someting in the kernel for device specific quirks or so?
udev having such feature to doing that. It's also used for audio a lot. Most audio devices will not work correct on kernel without proper udev rules
Hi, all! What about https://github.com/home-assistant/operating-system/pull/1621 ? Will anyone look into it?
Hi @wide meteor yes, its on my todo. I briefly looked at it already, I'll get back to you tomorrow.
One thing I am concerned about is this: https://github.com/home-assistant/architecture/blob/master/adr/0017-hardware-screening-os.md?plain=1#L18
Can I buy the device in the EU currently?
Currently Jethome works mainly on the Russian market, but they have many plans to distribute products around the world. You can buy controllers online https://jhome.ru/catalog/controllers/ or write to sales@jethome.ru or sales@jhome.ru. JetHome are willing to consider cooperation with HA. Contacts for this: Pavel Sokolov email: pavel@jethome.ru or @hackercb on Telegram.
If you need, Jethome can send the devices to you for testing purposes. In any case, I will support integration as long as necessary, or JetHome will do it.
I running the HA OS in an VM on proxmox. I want to shrink the VM data disk. How can I shrink the disk inside the HA OS ?
@woven cryptyou would shut it down and do that from within proxmox
and this channel is for discussion of development of HA OS, not support
#330990055533576204 is for support
@wide meteor wrt cooperation I am the wrong person to discuss this. Please reach out to us using hello@home-assistant.io.
i'm wrong person too) I'm just doing the integration
@dusk phoenix Hi. I have corrected the code according to your comments. As for the swap file, the question remains whether I create it in the right place?
just a smol request: include netcat for people with haos on a pi with rescue trouble
to make sharing easier and reduce the amount of images landing in #330990055533576204
e.g.
mount | nc -N x0.at 9999
so people can share their output without pasting lots of images.
thank you for your attention
We have curl, how about http://ix.io/ ?
In the end both options are not that user friendly and ideal. Also they won't work in the HA CLI
although usually when users are on that stage they are already in the host console
and anything beats pictures of their glared up screens of the logs
The question is, will you really get the right thing if you ask them to type the above nc command? I mean, typos, wrong pipe... besides that they won't see the output of mount them self...
in either case, a pin in the channel/psa in the forums/short description in motd about it would be nice for them to have, maybe a alias to which they can just pipe in their output...
alias sendtohelp="2>&1 | nc -N x0.at 9999" would be enough I imagine
Ok, but then how about using ix.io/curl?
both work, just make it easy for them
Dumping /dev/vcs* might be interesting as well
These types of sites change/stops working frequently.
We should not add that to the OS.
If we want to use something like that we need to run our own
x0.at is available here
https://github.com/Rouji/single_php_filehost
I can set it up for text only on that free oracle server atx mentioned if you want π guess not
Not sure if its worth hosting something on our own π
It is if we want this functionality on the Os
I fear the maintance burdon: abuse etc. for these kind of things are usually rather high
I donβt disagree with that
I was considering using https://0x0.st/, but it seems down/DDOS'ed or something at the moment π
< HTTP/2 400
< server: nginx
< date: Wed, 10 Nov 2021 15:39:50 GMT
< content-type: text/html; charset=utf-8
< content-length: 19
<
Segmentation fault
Exactly
was just a suggestion, you decide about the need for this.
which is weird because if you try a jpeg it works
You just need to find the right width π
I guess stdout redirect is better in most cases
Yeah, I tried to get a screendump. You can get the current ttys content from /dev/vcsX
Two aliases
alias send-to-ix.io="curl -F 'f:1=<-' ix.io"
alias send-screen-to-ix.io="cat /dev/vcs$(cat /sys/class/tty/tty0/active | cut -b 4-) | fold -w $(stty size | cut -d ' ' -f 2) | send-to-ix.io"
I just tried ssh'ing into the host using port 22222 like I used to be able to but this time when I entered login it simply closed the connection. Did something change? I just wanted to look something up but I can't figure out how to get to the host filesystem anymore
ssh will drop you at a shell prompt
Did you actually type βloginβ while at a shell prompt?
I did, I didn't realize it was updated so that was no longer necessary. Cogneato got me sorted
Sorry about the cross-post, accidently released a version of an addon I maintain that was broken so was trying to fix it before other users updated
sorry to bother you, I tried adding the alx ethernet driver as mentioned before, sadly I failed (not my skillset) so left a quick issue on gh!
wow what a guy, he already did it
I'm trying to enable host ssh to my HA Blue box (https://developers.home-assistant.io/docs/operating-system/debugging/#generating-ssh-keys) . I had this on the RPi I was previously using and it worked fine. However on the Blue it doesn't open port 22222 (port 22222: Connection refused). I tried deleting the authorized_keys file and rebooting to clear any existing keys. Then putting my id_rsa.pub file back on (as authorized_keys) and "import from USB" from Supervisor but the port is not opening. Supervisor logs show
[supervisor.os.manager] Synchronizing configuration from USB with Home Assistant Operating System.
21-11-27 12:07:37 INFO (MainThread) [supervisor.host.services] Restarting local service hassos-config.service
Does this procedure still work?
I'm just getting started with the ability to do some development. I have a homeassistant_os install on an HA Blue device. I am trying to debug an exception that occurs in the aiohttp library on my production setup. I have installed the Remote Python Debugger integration and am able to connect to my HA machine.
I mapped Visual Studio Code to a git clone of core (and checked out tags/2021.11.5 to match my production code) and I can pause a thread and step through code. I need to set a breakpoint in a file in the python packages (/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py). What's the best way to map that? Should I just scp the folder from my HA machine to my MacBook so it matches? Since the Python packages are dynamically populated via pip, I can't just clone a repo for that...
@tight ember posted a code wall, it is moved here --> https://hastebin.com/fuqamosodo
I ended up pulling over just the aiohttp subdirectory to my MacBook and mapping it locally. This is my launch.config π
I hit the breakpoint I needed! Now to debug...
Trying to build generic-x86-64 from the dev branch, but getting 404's when it goes to download intel-e1000e bits - anyone else seen similar?
Not sure if it's my build env, as this is an 'out-of-tree' module?
ah, url changed, will open PR π
merged, thanks for the PR. The reason we did not see it on CI is because we cache the downloads π
Hi!
Does the the /boot/Config.txt file live somewhere?
Iβm trying to rotate the display on my 7 inch pi touch screen.
Iβm able to SSH into the host ok. Just not seeing a /boot folderβ¦
Never mind. Found it.
It was in /mnt/boot
Greetings, hope the holidays have been good so far. Is there some sort of troubleshooting guide for moving the datadisk in OS 7? I've been trying to move the datadisk on a SeeedStudio Odyssey to an internal 500 GB SATA hard disk. The Odyssey has been working extremely well, and boots from a 120GB m.2 SATA SSD on an internal m.2 connector. I can see both the SSD (sda, sda1-sda8) and the HDD (sdb) when I go to the Hardware option in the Supervisor. But when I go to the 'move datadisk' option, I get a 'No suitable attached devices found' message. If I connect the Odyssey to a monitor and keyboard, I can partition the HDD, and have tried with no partitions, FAT, ext2 and ext4 partitions.... what else can I try?
I have also tested the HDD with windows, and I can partition, format and use the drive.
@muted pawn use #330990055533576204 for questions.
Thanks, realized I had posted at the wrong place, and have already asked the question there... cheers!
π working on updating our fork again
i think rpcbind is missing a dependency.. saw this on one boot:
Oct 12 08:24:07 dvr-server systemd[1]: Starting RPC Bind...
Oct 12 08:24:07 dvr-server rpcbind[198]: rpcbind: /var/run/rpcbind.lock: No such file or directory
Oct 12 08:24:07 dvr-server systemd[1]: rpcbind.service: Main process exited, code=exited, status=1/FAILURE
π€¦ββοΈ never mind, BR2_PACKAGE_NFS_UTILS=y is something i added
FYI there is a patchset which will properly detect unmap capable drives over scsi and usb, including SSDs and SMR HDD: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/linux.git/log/?h=5.18/discovery
i missed the HA Yellow announcements.. looks like a fun project
latest patchset which I confirmed fixes the fstrim issue on SMR drives not using UAS, like many WD Elements
wrote up the issue in a bit more detail here: https://github.com/raspberrypi/linux/pull/4832
Whops, missed those messages π
You have to get one! π
fstrim on SMR drive: Interesting! Are those SSDs? Or is fstrim also important for non-SSDs nowadays?
Oh ok, read up on it on wikipedia now, magnetic drive which need fstrim. I don't think I had request for support for it on HAOS for it, but we'd like to improve support for separate media storage disks etc.
What people reported having problems is having VM disk size not reflecting the used size inside the container. Afaik, most VM solutions nowadays should support fstrim, at least on SCSI devices, but it seems that it doesn't behave for some (https://github.com/home-assistant/operating-system/issues/1578)
@dusk phoenix interesting.. if you can run our distro-diskinfo in one of those VMs and share output I can see if the virtual scsi is reporting itself as trim capable and if this patch would help
oh I guess sg3utils would be required also
maybe something to os-agent that we can read it as property
Is GitHub actions for OS build using standard/shared runners? Notice build time is ~=30mins - trying to get similar with GitLab-CIβ¦
No, its a hosted runner on a Ryzen 3900X machine
Hi there,
I was trying to logon via ssh using this documentation: https://developers.home-assistant.io/docs/operating-system/debugging/
but after 2 hours no luck
I formatted an usb stuck to ext4, generated a key pair with ssh-keygen on linux
moved the id_rsa.pub to authorized_keys file on a stick calld "CONFIG"
It does not work. port 22222 is not even open now
I'm also trying to get ssh access to the host system and failing to get it working. I generated the key with puttygen and made my usb drive in windows with NTFS formatting.
the "Import from USB" in the system settings UI doesn't seem to do anything either
Is there something I can look for in the logs or something?
Does it matter what kind of key I make (RSA, ECDSA, etc.)?
Hi,
Is there anyway to add a kernel module to the OS please ?
(I want to add ipset).
Hello!!
https://github.com/home-assistant/buildroot/tree/master/board/hardkernel/odroidxu4
that location has a boot.ini file, but the XU4 release has a boot.scr file instead of the boot.ini that is shown in the repo source. i was unable to find where this boot.scr came from (the contents look like RAUC but googling lines has not pinned it down) it has some extra jibberish characters (hopefully not a binary blob) in the head of the file.
The file is getting in the way of my boot environment as well. works with SD card but not my EMMC.
I'm looking for the kernel config file and any patches used to build kernel for odroid N2 and N2+, are these available? Tried a few of the links posted above they appear to be stale and don't include hardkernel N2 boards.
also any concept about what could cause systemctl status init-stage2 failed.
ββdocker-99269a00000b14cc3718d354b435c180a7416ba30e5d1ba7564f2c6ce74b1643.scope
β ββ9516 s6-svscan -t0 /var/run/s6/services
β ββ9597 foreground if /etc/s6/init/init-stage2-redirfd foreground if if s6-echo -n -- [s6-init] making user provided >
!!!!!
init-stage2 failed.
!!!!!
β ββ9598 s6-supervise s6-fdholderd
β ββ9609 foreground s6-setsid -gq -- with-contenv backtick -D 0 -n S6_LOGGING printcontenv S6_LOGGING importas S6_LOGGING S6_LOGGING>
β ββ9750 sleep infinity
This is a straight debian bullseye system with supervised install. Kernel version 5.15.26. I'm trying to help the disto maintainer fix a few issues.
Just tried HA on the odroid N2 debian release and it gets the same init-stage2 failed error.
odroid debian bullseye release
Any info on when will be the OS parched to kernel version 5.10.102?
There is a huge security issue with the current kernel version :
It is not likely as much of a factor here given the environment, but @dusk phoenix had mentioned there would be a update
Working on it
Thank You for the info!
Any interest in adding support for radxa zero2?
Is there any way to make sysctl settings persistent or would it be considered to at least increase the default rmem_max/rmem_default over Linux very restrictive defaults values of only 200K as I see there is at least one minor tweak for multicast. I maintain an addon that streams from cloud based cameras over WebRTC via UDP and, during initial startup, or when there are other small burst of CPU activity, the default buffer can be overrun in just a few hundred milliseconds and lead to significant video artifacts even though the resources are more than capable of handling the overall packet rate with slightly more buffering. Increasing the rmem_max/rmem_default, even to just 1MB, makes a huge difference in reliability and is a common tuning step for Linux when dealing with UDP traffic, but of course I can't do this from the addon container (at least, I can't figure out a way).
Sorry if this isn't the best place to ask this question, but it's not really a bug, just curious if things like this would ever be considered.
Yeah, currently is no plan to have custom values for things like this (also hard to maintain with too much customizing on it). I guess we can talk about better value that we provide @dusk phoenix ?
Ideally we should pick a sensible value for our use case which "just works". Usually its worth checking what others are doing (generic distros, or specific distros like OpenWrt).
For the rmem_max/rmem_default case, at least my ArchLinux seems to use 200k as well. I am not against increasing it by default, if we can reasonably say that it has no major downsides ...
Thank you very much for the for the response. It's fairly well known that 200K is very limited for modern, high bit rate RTP streams using UDP over fast links. Sure, for my Intel powered systems they can probably keep up just fine, but the poor RPi struggles quite a bit more. The default kernel settings are largely optimized for minimum memory usage with 100's/1000's of connections vs maximum performance of a small number of connections. There are lots of recommendations around to increase it to 25MB, but I think that is extreme. I've seen dramatic improvement in going from 200K to 1MB, minor improvement from 1MB to 2MB (during very high load with many streams), and little to no difference for values beyond that size. The only real risk I see is potential for slight increase in memory usage, however, socket buffers are allocated on demand from kernel memory and Linux has limits on total number of pages that can be used for all socket buffers (net.ipv4.tcp_mem & udp_mem) which are dynamically calculated during boot, so I think that risk is very low. However, I do understand risk of even minor changes for a project with so many users. I saw there already was at least one minor tweak for multicast so I hoped it might be considered. For now, I've managed to create a small udev rule file that users can drop into /etc/udev/rules.d as that seems to be one of the few places that allow for persistent changes. A high bar for some users, but at least an option. Thanks for your consideration.
Hi,
Is there any ETA tracking or similar on when PR merged on dev can be on master ?
I see that there is nftables and ipset in dev but not yet in master branch.
I want to upgrade to os 8.0 rc1 but get error: 22-04-08 06:40:19 WARNING (MainThread) [supervisor.jobs] 'OSManager.update' blocked from execution, system is not running - CoreState.FREEZE
Error connecting to GitHub
Hey, I just noticed that the latest RC releases (8.0.rc1 and 8.0.rc2) in github are not marked as prerelease.
Is this a mistake or should I use somehting else to determine latest stable version (such as https://version.home-assistant.io/stable.json )?
stable.json is the ultimate arbitrator. I don't think GitHub has any influence other than displaying differently in GH releases
Hi π
I'm trying to build my own image
but my changes are not taken in account ...
@sage crown posted a code wall, it is moved here --> https://hastebin.com/acebixuseg
do you know the differences between "image" and "images" ?
because only "images" links seems to be used to build the image
Hello! Can anyone tell me if this still works?
https://developers.home-assistant.io/docs/operating-system/debugging/
I formatted a USB with mkfs.ext4 and created /CONFIG/authorized_keys and imported it the USB stick, the logs say it restarted hassos-config.service but the system isn't showing ssh on 22222 with nmap.... ?
Yes should still work
@lavish thunder note that you don't need to create a CONFIG directory if you use the USB flash drive import method
You need to name it (mkfs.ext4 -L CONFIG ...)
Thanks mate, that was my issue, I somehow missed the volume label should be CONFIG... Cheers!
Hiya folks -- I'm following the debugging guide at https://developers.home-assistant.io/docs/operating-system/debugging/ and have gotten my 22222 SSH setup just fine. But when logged into that SSH server, I don't seem to have access to docker nor systemctl etc. I know there was a change to have SSH open into a HA CLI container, but is there a way to SSH to the true host file system anymore? Like, I want to be able to inspect the actual core python packages.
I'm not really sure what the issue you are having is, unless you are somehow getting connected to the add-on ssh. The below is how it works for me:
C:\>ssh -p22222 root@homeassistant
Welcome to Home Assistant OS.
Use `ha` to access the Home Assistant CLI.
# docker --version
Docker version 20.10.9, build 20.10.9
# systemctl --version
systemd 249 (249)
+PAM -AUDIT -SELINUX +APPARMOR -IMA -SMACK -SECCOMP +GCRYPT +GNUTLS +OPENSSL -ACL +BLKID +CURL -ELFUTILS -FIDO2 -IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE -BZIP2 -LZ4 -XZ +ZLIB -ZSTD -XKBCOMMON -UTMP -SYSVINIT default-hierarchy=hybrid
#
I just had the second issue with the OS RC not restarting. On RC 2 I had to reinstall on RC3 I had to do remove power and reboot. Not seeing anything in the logs that seem helpful. Is anyone else seeing this on the RPI4?
Not so far. So it got stuck during reboot? Anything on the screen? Is that using USB SSD?
It is usb boot. I posted the logs last time. This time I was away from the house when I updated and the browser did not load. Nothing showing on the PI screen. I removed power and everything came back up. I asked this question as the last 2 RCs did not come up correctly for me after the update.
I've had no issues with rc2 on a pi4 but it is not using external boot
Is anyone working on support for the ODROID-M1 yet? If not, what would be the process to get cracking on it? I've read https://developers.home-assistant.io/docs/operating-system and just wondering where to start, since we already have other ODROID images. I tried all the other ODROID images (N2,N2+,C2,C4 and XU4) and none of them worked (petitboot threw exception and exited to shell during device scanning) on the M1.
I've never worked with machines that require DTBO files, so some docs on how all that works would be needed too.
@thorny viper not that I am aware of. There is a feature request thread in the community, and I posted some thoughts at one point: https://community.home-assistant.io/t/add-support-for-odroid-m1/408257/7
I think I saw a first patch adding support for the board in upstream Linux on the ML recently, but it was lacking PCIe afaicr
The device tree is part of the kernel source. Despite its similar name, the ODROID-M1 is a fastly different machien than N2/C2/C4/XU4 since its using a Rockchip SoC. In fact, its probably more similar to ASUS Tinker Board than anything else we support π
Probably the biggest challenge is U-Boot. We use upstream 2022.01 U-Boot for all supported boards, and ideally like to do so for every new board as well. Basically, the steps are: Creating a new board directory in hardkernel subdirectory, figuring out if and how upstream U-Boot supports that board. If yes, potentially patch U-Boot and build it for the target, if no, try using a dowstream U-Boot (not really preferred!). Next up the kernel, it seems that the SoC is supported, but a custom device tree needs to be used which is not part of 5.15 we are using. Hence this needs patching of the kernel. Then make sure the dtb gets build and deployed. This should be fairly straight forward.
As for docs: Bootlin has great documentation how to work/develop with/for embedded Linux systems: https://bootlin.com/docs/
Often its also worth checking what others are doing, especially the ones which use their own U-Boot/kernel builds, like Armbian. It seems support is not there yet https://forum.armbian.com/topic/20260-odroid-m1/
@dusk phoenix Thanks a bunch for the feedback. Now I at least know how to approach things. Not sure if I'll find time to work on it, but I know where to look.
It looks like the instructions on how to get ssh access to the OS for development purposes is no longer accurate with recent changes in the UI. Specifically https://developers.home-assistant.io/docs/operating-system/debugging/#ssh-access-to-the-host. Does anyone know how to get full SSH access now?
Yeah that is https://github.com/home-assistant/developers.home-assistant/issues/1321 Per Zack Barett, you now are supposed to use the cli (although in at the moment you can still cheat by navigating to /hassio/system via url editing, and using the old page).
I just tried RC 4 and it doesn't look like it is coming up. I'm at 15 minutes and nothing is showing on my attached monitor. I'll wait another 1/2 hours and see if anything happens.
That is with SSD right? It must be related to the firmware or U-Boot not being able to enumerating the USB SSD properly
What type of SSD controller and SSD is that? Does reboot work normally?
What kind of power supply are you using?
This is an SSD Kingston, with Startec 3.1 controller. The reboot does not work, screen is blank, screen works without SSD plugged in. Power supply is rated at 4A and I have the SSD on a hub. I have had issues which each of the RCs. I do not believe this is a power issue.
But reboot did work with 7.6?
It did
I just reinstalled via etcher and it is booting now
I will try the update via cli when I finish the restore. This is what worked last time. It did not work via the UI
So powering it off and back on does not help?
It left it with a blank screen. On one of the RCs ( I believe 3) it did. On one, I had to do a restore.
Ok, but before doing a restore, in the current state, when you remove power and put it back, does it boot now? Or really nothing, just blank screen?
I removed power twice and both times the screen was just blank. I am doing a restore now.
I checked to make sure it wasn't a screen issue and tried it without the SSD attached and the screen came on.
Also there is a restore issue. I do not see the onboarding option.
I just updated a bunch of Raspberry Pis (specifically, a 2xRPi 4 with SD card, 1xRPi 3 Plus with Samsung USB flash drive, and RPi 3 with regular SD), so each one of them came back online no problem, so it is definitly not a generic issue.
It is some Firmware/U-Boot <-> USB SSD interaction (once again)....
What would you like me to try?
I would hate to have you release 8 and see the issues that effected a small group of us for almost a year.
Are you familiar with USB to UART (TTL) cables for Raspberry Pis? Do you have one?
I mean there is no issue about this in the issue tracker, is there?
I mean, specifically for OS 8.x
I had an issue, but closed it as I thought it was on my end (operator error). I have had issues with each one. After the the last restore I installed from CLI and it worked. After the RC3 I powered off and back on and it worked.
I do have a usb to uart that I use to flash devices. Not sure if this is what you are looking for?
HiLetgo CP2102 USB 2.0 to TTL Module Serial Converter Adapter Module USB to TTL Downloader With Jumper Wires
HiLetgo
Yeah probably works. So you can reproduce the issue right? When you restore with 7.6 now, and update again, it will happen again?
No idea. I am still restoring. What I was going to try next was CLI as this worked last time. I can do what ever you think is best.
Yeah I think a good approach is to make sure you have a workflow which reproduces the problem. Ideally it should be a "minimalistic" work flow (with as few as possible external variables). From how you describe it, (hanging at boot), it should not really be related to your installation. So that begs the question: Is it also happening without restoring first? Just start a new instance and update right a way?
Shouldn't really matter, probably CLI is better since you would get direct feedback in case the update command fails
I test now with a StarTech.com USB3S2SAT3CB & Intel 520 Series S-ATA Disk.
Do you want me to try directly to RC 3?
OK. Trying from CLI now.
I don't think you see any more here as from the cli, it says system shutting down.
I think it is working from CLI as the screen says waiting for supervisor
maybe I talked to soon as the screen is now blank
No activity on the ssd or screen
What now?
You can connect that SSD to your PC correct? Can you find the config.txt on the first partition and make the following adjustments:
I have the file open
windows 10
Ok, connect the USB to TTL adapter you have as documented here:
https://www.jeffgeerling.com/blog/2021/attaching-raspberry-pis-serial-console-uart-debugging
Then download PuTTY from here:
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
and configure it to use the COM port of your USB to serial adapter
The speed setting must be 115200
Not understanding. You want me to connect the pi to the adapter and the adapter to the PC?
So no USB to SSD?
Once config.txt is adjusted as above, save the file and eject the disk from your PC and connect it back to the Pi
This combination seems to work fine here. I can update to rc4 and reboot without issues.
With the config.txt change the pi looks like it is booting
Hm
It is booting and my screen is loading
Did you have any other config.txt options adjusted or added?
I only changed the one item you said to change. Whether there was others I have not idea.
Everything is up again.
Can you reboot 2-3 times to see if that really is reproducible?
Do you mean restart or reboot the pi?
What's the difference? π Software reboot
One turns off the power, the restart only restarts HA?
I'll power down and restart.
any idea where they moved the shutdown on the new menu?
doing it from CLI as I can't find it in the new menus
System -> Hardware
It did not come up first time. I removed power twice and then it rebooted.
It enables log output on the serial console (UART). The Raspberry Pi firmware tells the bootloader (U-Boot) and the subsequent Kernel to show a console on TXD 14/RXD 15 GPIO pins
But it shouldn't really matter
So something is staying charged (stored) that is clearing after power removed for a short time. I am going to unplug the pi for 10 seconds and then power on to confirm my theory.
It boot right up
any chance a register is not being flushed?
reboot 2 more time (with power unplugged for 10 seconds) and it worked each time.
Its probably more related to an initialization issue of some kind.
It is unclear why I cannot reproduce this
It is a Raspberry Pi 4 correct? How old is the device? Maybe it depends on the firmware flashed on the RPi4 itself.
RPI 4, 4 G. I was one of the people that had upgrade issues for almost a year (1119). I have not reflashed the device in most like a year. I'll be out for a while. If you need more info, let me know and I will get it to you later today.
I do remember and recognize you, but I didn't remember anymore if it was indeed RPi 4 π
Hi,
I am not sure if this is the correct place, but I couldn't find better topic for this.
Since I upgraded to 2022.5, (QEMU image running on Proxmox VE), HASS is randomly restarted by the Supervisor.
Here's the log messages of the Supervisor:
**
22-05-09 21:33:42 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config: 22-05-09 21:33:42 WARNING (MainThread) [supervisor.misc.tasks] Watchdog miss API response from Home Assistant 22-05-09 21:36:44 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config: 22-05-09 21:36:44 ERROR (MainThread) [supervisor.misc.tasks] Watchdog found a problem with Home Assistant API! 22-05-09 21:36:44 INFO (SyncWorker_5) [supervisor.docker.interface] Restarting ghcr.io/home-assistant/qemux86-64-homeassistant 22-05-09 21:40:24 WARNING (MainThread) [supervisor.homeassistant.websocket] Connection is closed
Tried to search online, so many similar symptoms, but different cause.
172.30.32.1 is the IP I see on eth0 when I ssh to HASS, but its not the IP address of HASS and its not even the subnet of my internal network - so not sure what is the purpose of this address...
Hi @sly beacon , this channel is not really for user support, use #330990055533576204 . If you think its a bug, collect the information and create a ticket https://github.com/home-assistant/operating-system/.
After I have fallen into the Case sensitive State Pit from making an Automation with UI - is it somehow possible either to ensure correct cases or simply make all states Uppercase?
Not seeing the 8.0 release. By the way the # homeassistant_os says archive channel . Is this still used?
hey, I've been reading the rauc docs for an hour and a half and I can't figure out how I can use it to upgrade my hassos device to a dev build I just made. Isn't there some way to just disable the signature verification when I'm doing an explicit rauc install from the OS shell?
i've built a self-signed rauc update by making my own key/cert using the "PKI Setup" instructions from the rauc docs: https://rauc.readthedocs.io/en/latest/examples.html#pki-setup
and I've copied the certificate over and tried using --keychain=../path/to/cert or --conf=../path/to/config (with the config setting the keychain) but I still always get this error:
40% Verifying signature failed.
40% Checking bundle failed.
100% Installing failed.
LastError: signature verification failed: Verify error:self signed certificate
@oblique remnant sorry missed your message. Did you replace the CA certificates here? https://github.com/home-assistant/operating-system/tree/dev/buildroot-external/ota
We operate a full CA, so maybe that is different. Maybe needs special config, not sure
no worries
We do have a dev CA, I should be able to create a cert for you
I figured out a workflow that's okay: I can copy the squashfs over (via ssh or similar) and use rauc write-slot (or whatever it was called) to put the rootfs (and kernel, if changed) into the other slot
and then switch over with rauc status
Hehe, yeah I guess that works too π
that was good enough for what I was doing anyway π
Ok, yeah for rootfs replacement its probably quite straight forward. I guess you also have to replace the kernel modules match
Feel free to PM me in case you want a cert
you mean when the kernel version changes?
Yeah or signature... e.g. when adding drivers.
I did a manual upgrade (backup, reflash all, restore) to dev on my first attempt
after that I flashed only the rootfs... I think?
and i added a bluetooth module
might remember wrong though
cool, I think I'm good right now but I'll get back to it if it turns out useful π
btw, I put up this PR yesterday for the Hardkernel Odroid 5B Wifi/BT module: https://github.com/home-assistant/operating-system/pull/1899
Wifi is working perfectly for me now with that PR + the upstream fix for usb_modeswitch (haven't sent it to the buildroot mailing list yet)
generally, do you patch/add things in buildroot-external while getting them merged upstream?
I didn't really think about it yesterday, but the rtl8821cu driver could be upstreamed as well (if they'll take it)
and the usb_modeswitch fix could go in buildroot-external in the meantime to have the dongle work out of the box for the next haos release
I did not upstream a lot from buildroot-external so far. Some stuff is quite custom, and some just needs quite some work
I do have some patches on buildroot/ itself, those I try to upstream as much as possible.
Upstream is always better, but its by me to live in buildroot-external.
Is there no firmware needed?
Oh I see, you are talking about `usb_modeswitch which is upstream. We can add it to our fork for now, but please send the patch upstream.
Create a PR to this branch: https://github.com/home-assistant/buildroot/tree/2022.02.x-haos
okay, should I put it together with the bluetooth module?
You mean in one PR? Fine by me, just separate commits
Or do you mean the rtl8821cu package? I would leave that in buildroot-external, since its a new package
the other thing I've been working on is bluetooth audio in haos, so far I've seen only posts in the forums etc. doing it on supervised installs
actually the only real "low-level" change it needed for me was enabling BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_AUDIO
at that point I could pair and connect to a bluetooth speaker and pulseaudio would see it
Cool, yeah haven't looked at Bluetooth audio so far
I had to run ha audio reload to make the devices show up in the UI though
Nice! Would Supervisor pick it up?
Oh I see, yeah ideally we should automate that too. I guess you used bluetoothctl directly?
the problem might be to delay addon starts if they are configured to use that device
yeah
or maybe pulseaudio can somehow make a dummy device until the real output shows up?
that would be preferrable I guess. definitely a lot to figure out still to make it a smooth experience
Yeah not sure how pluggable devices work exactly with Pulseaudio. I'd guess udev is involved, since its all Lennart stuff π
udev for alsa as far as I know, but bluetooth is separate
theres two pa modules (module-bluetooth-discover and moodule-bluez5-discover)
and they just dynamically add/remove the sink... but thats a bit of a problem if someone relies on being connected to a specific sink on start
there may be pa modules to deal with this sort of situation, don't know
right now basically when I start the system, I have to open bluetoothctl and initiate the connection, then run ha audio reload and restart any addons that are configured with bluetooth output
at that point it works great
It seems there are D-Bus signals: https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/DBus/Core/
after something like 2h bluetooth disconnects but I had a look at the logs last time and it actually looks like the cheap USB speaker I also have somehow crashes and takes down all of pulseaudio with it ^^
There is a NewCard signal
oh yeah its definitely possible to notice and add/remove a dummy sink
I rather wonder if/how its possible to have the other application not notice/care
but I dont know much about how the addon audio integration is handled right now
I've seen the supervisor creates some config files and mounts them into the containers
Yeah also not that familiar with that code base tbh.
Yeah we recently talked about that, would be nice if we could improve how we communicate with the plug-ins
specifically regarding audio? Or rather bashio etc?
General plug ins
Hi, I just want to thank the Home Assistant developers for providing Home Assistant Operating System 8.0, including the linux kernel 5.15 that has the ntfs3 driver with write support for NTFS partitions. Here is my short and grateful story:
Today I tried using some udev rules to automount my pendrives into the media directory (using https://gist.github.com/eklex/c5fac345de5be9d9bc420510617c86b5) and I found out I could not write to the drive. I realized it was because the ntfs kernel driver provides read-only support, and I remembered that there was a new ntfs3 driver available on Linux 5.15 (https://www.phoronix.com/scan.php?page=news_item&px=NTFS3-For-Linux-5.15). I upgraded to Home Assistant OS 8.0 and, with minor changes to the udev rules, I could adapt them to select the ntfs3 driver if appropriate instead of the ntfs driver (https://gist.github.com/zeehio/7c67d531236e39496c39b3c5c3b3f268).
I was very fortunate to try this just today, a few days after the release of Home Assistant OS 8.0 on github. I guess you may not consider this ntfs3 feature to be relevant for most users, but it has been very convenient for me.
Thank you all for your work.
that is depricated, we use the pulseaudio protocol
Hm, so the PulseAudio API directly? https://freedesktop.org/software/pulseaudio/doxygen/
yes
but also that have an event system
and we have an clickup to feed this events into our event bus like docker events
from pull to push
I see, it would involve adding https://github.com/mhthies/pulsectl-asyncio to Supervisor
yeah, the library is new, we have also an clickup to replace the library
@oblique remnant so it would mean getting into Supervisor development π πͺ
What is a clickup?
That is a task management system we use at Nabu Casa.
what you're saying is, the supervisor should trigger audio reload (internally, not via CLI) when the pulseaudio devices change, right?
btw, i've noticed that once an addon is started with a bluetooth speaker, I can turn that speaker off and on and it reconnects smoothly π
i haven't actually tested if it works even when the addon is started without the speaker connected, if we're lucky it might even
Yeah basically. And the way to implement that is not via D-Bus (as I suggested first), but via pulsectl-asyncio library.
Nice! I guess that is bluez automatically connecting again.
And pulseaudio under the hood picking that up as well.
yeah, there's probably some pulseaudio module loaded that does the fallback behaviour
moving streams to a dummy sink/source and back
@latent wigeon i use 'login' and looked around and found /mnt/data/supervisor/tmp/ had 5 directories. 18.5G 2.8G 213G 8K 41G totalling 275G in the Host OS. Two from 2021. With what seems parts of backup. <adonn>/tar.gz or tgz i forget. cleaned out and now i have space back. Thanks.
hello.. I have been seeing increase in cpu util from the hass proc running in venv, is there a way to debug this to see what HA is busy with.. this is a rather busy installation with large number of integrations / devices / automations.. etc.. e.g. now if I go to developer tools, it takes upwards of 10-15 seconds to load the page..
the OS run it on a container not at a venv
as a best practice u mean ?
as you are on the OS channel: https://github.com/home-assistant/architecture/blob/master/adr/0015-home-assistant-os.md
that is what we support, running somethings different is not a good idea and you will also not get support for this
btw, this is the developer channel not support channel
oh okay I follow.. its been running well for 4 years so I didnt convert to the OS .. I ll give it a go .. thank you ..
On TrueNAS 13.0 - does anyone know how I update to Cargo edition 2021?
Before I update I'm not able to update HA to 2022.7.*
Is there any os testing channel
Sorry if I am at the wrong subgroup, but my config directory shows amongst others the following entries:
-rwx------ 1 jan jan 0 jul 19 10:32 home-assistant.log.fault
-rwx------ 1 jan jan 466665472 jul 19 12:34 home-assistant_v2.db
?????????? ? ? ? ? ? home-assistant_v2.db.corrupt.2021-10-17T02:12:00.805531+00:00
?????????? ? ? ? ? ? home-assistant_v2.db.corrupt.2022-01-18T16:20:15.695854+00:00
-rwx------ 1 jan jan 65536 jul 19 12:34 home-assistant_v2.db-shm
Apparently a problem with the file system (a SSD drive hooked up to a PI4).
I can I repair this ?
Thanks in advance, Yann
Not really.
This probably belongs to Support #general-archived
how do i configure z2m in the new os8.3?
or where may i ask?
i always get "no need to configure"...
has nothing to do with the OS, and this isn't a support channel. #zwave-archived or #zigbee-archived depending on what you mean by "z2m"