Check again that you truly don’t have swap enabled. I don’t see errors in your log paste so not sure where you were catching that error.
Lastly try using a simpler config… meaning just take the stock config, change the password to something other than empty and just copy in my init_command line. Meaning just test with that first w/o the ssh key, etc. Here’s mine:
@JZhass I just wanted to say thank you for creating this thread and for your solution to increase swap size in Hassos. I eventually got it right and it seemed to cure a problem that I was having when HA froze up and crashed repeatedly. Seems that it was caused by swap usage at 100%.
Really grateful for your method, keep up the good work!
@Spiro, it’s actually really simple… forget HassOS for a sec and ask yourself this: can I use an SSD for Linux? The obvious answer is yes you can… and guess what, you’ll want swap space on it. Same goes for Windows, the page file is used all the time because some OS components are programmed NOT to use RAM and use the page file instead (if available, of course because it can be disabled).
My point is that you should never be afraid to “use” your hardware for its designated purpose. Will it die? Yes eventually but that could be 5 years, 10 years or even 20 years. The key to your dilemma is to have superior backup strategy where losing a drive can be easily recovered. So that’s my take on it
Use something like Acronis True Image or one I’ve been loving lately DiskGenius to grab a bare metal backup. That’s the way to solve your worry.
Do you have the correct string as well? (I’m trying to do this as well and are getting the same error as you)
Never-mind: I just grabbed the yaml from here:
@thomasw and @the-programmer weird that two happened at the same time. Are you guys able to just copy and paste the full command from the 1st post as-is and save? After it saves it will re-format the single line into multiple but you shouldn’t care. I want to make sure the very first post has a well formatted, copy paste friendly command and you guys are scaring me
Sorry for scaring you. However it is just a coincidence. See also this one from vsauce:
Anyway, personally I would prefer to get a yaml line since that is somehow more accurate when copy-pasting.
However I am thinking of creating an issue/feature request on the home assistant bugtracker if someone can make an add-on for this task.
For me, this should be solved soon when I switch to a PI 4 (4Gb) in a home assistant yellow.