HA Supervised - How to move from UNSUPPORTED to SUPPORTED

@petro - As noob to python and linux but with alot of patience, time and (what I think is a somewhat) good aptitude, how do I migrate RPI that has two host processes running as well as a few cron jobs, and also HAS, from “Raspbian GNU/Linux 11 (bullseye)” to “Debian 11 (Bullseye)”?

I have a suggestion but not sure how to do it. Given that within HA I have full configuration backups so I can restore all of the HA settings with no issue (and have done so in the past) using the add-on “Home Assistant Google Drive Backup” - my question ultimately comes down to:

What backup system/software (preferably with a UI) can I use that will allow me to restore specific files and configurations on the host (just two processes and some cron jobs) after I have blown one OS away and installed the second OS from scratch?

I just back up the configuration folder for HA to source control. I’m currently using GIT, but I did use mercurial for a while. Both have steep learning curves, but it’s really easy to move between versions once you learn the CLI. You can also use both of those backup systems with interfaces. For mercurial I used TortiouseHG. For Git I use GitKraken or VSCode. GitKraken doesn’t let you use private repos. Both VSCode and TortiousHG are “harder” to use than GitKraken.

Thank you but what about the last paragraph - the items on the host is my main concern - weewx is a VERY process involved with huge number of moving pieces and add-ons - (note the below link and then the images on the right side of that web page)

https://weewx.com/support.html

Sounds like a question for the Weewx support community. I googled “move weewx to another computer” and found this:

https://groups.google.com/g/weewx-user/c/LukRChVm6R4

Hope it helps.

1 Like

Right, and it seems like there’s a containerized version of weewx here

1 Like

@123 Thank you!

@petro Thank you! Seems like I have alot to learn… So haos uses containers as well and I would have this (weewx) in one of them, managed by HA? So confused lol

I seem to have been able to fix the cgroup error by adding systemd.unified_cgroup_hierarchy=false to /boot/cmdline.txt on raspbian on a RPi CM4.

1 Like

If you see aboive I tried “=0” and it caused me all manner of issues, but the core issue is the wrong OS… I am doing some research tro see if weewx can run on Debian instead of Raspbian - and if it can, then I am going to bite the bulket and reinstall everything from scratch… UGH!

Since I am doing some research tro see if weewx can run on Debian instead of Raspbian - and if it can, then I am going to bite the bulket and reinstall everything from scratch…

  1. Can VNC be used on Debian (for headless use)?
  2. Can weewx run on debian?

Yes, have a look at TightVNC

Installing either of those is likely to lead to you still being Unsupported.

Just thinking aloud…since HA is not a commercial product, what does ‘unsupported’ actually mean?

People with questions normally end up here at the forum, and normally get answers quick enough.
So far I have heard nobody say ‘hey, I know the answer, but your system is not supported, so i’m not going to tell’:thinking:

So, what is the relevance of running an ‘unsupported’ HA??? :innocent:

Yes. Install instructions are here: https://weewx.com/docs/debian.htm

In this context it means that the Supervisor reports Unsupported and things stop working.

@Tinkerer Hmm… so you mean to say there is no difference between Unsupported and UnHealthy??
I know for sure unhealthy makes things stop (tried it) but unsupported should not…

Pretty sure unhealthy means the system will stop you from updating until you fix it, where unsupported means things may break and “good luck”.

Thanks @petro, That is what i also understood.

And since HA is not a commercial product and comes without any guarantees, i just find the term unsupported meaningless :wink:

must be something different in your install than mine. I also got the same error for system-resolved, but I enabled it anyway and the error went away. In the end I had to re-install the supervisor since other issues popped up. Right now the only remaining issue is that I get a supervisor error when I attempt a backup, and there is nothing in the log. I may end of with a complete re-install too if any other issues develop. I updated the OS (apt-get upgrade) and HA to 11.0. Should have done one at a time, not sure which one was the case of all my errors.

I decided to set it up from scratch on the RPI, the below will get you up and running on debian headless - the below notes are as much as for me as for others but why not share :slight_smile:

So, hope this is useful - worked FLAWLESSLY (see proof at the bottom!)


Prep:
-4. Disable all automations in HA
-3. Disable manual DNS in the router
-2. Change ethernet settings on the PC to DNS (I was pointing everything to adguard on the rpi)
-1. reboot the pc
-0. Gracefully just shut down the PI from the VNC menu.

Then -

  1. Cannot Get the RPI headless yet, that is down the road, work with the bare metal:
    A. Use RPI (super tiny hdmi) cable to plug in a monitor
    B. Wired (USB) Mouse
    C. Wired (USB) Keyboard

  2. Get the 64 bit linux image here, put it on the PC:
    Tested images
    On that web site, I selected this one:
    Build Date: Release Family Tested Hardware File Links*:
    2022.01.21 11 (Bullseye) 4 4 (4GB) xz-compressed image 378.82 MB, 2022-01-21 10:41:-0600

    The actual link to the above file as of 11/4/22 was:
    https://raspi.debian.net/tested/20220121_raspi_4_bullseye.img.xz

    Then move, “20220121_raspi_4_bullseye.img.xz” somewhere handy on the PC (I put it in R:)

  3. Install debian on the spare SSD (so your work will generally go faster):

    Plug the SSD into the PC
    Using RPI Imager app on the PC, use the image downloaded in #02 to install Debian onto the ssd

  4. Boot up the RPI

    A. Attach the SSD with plain debian to the RPI
    B. Boot up the RPI
    C. After a huge number of bootup messages, it will come to a prompt like this:

    Debian GNU/Linux 11 rpi4-20220121 tty1
    rpi4-20220121 login:

    Type “root” and press enter (root has no password yet).

  5. Linux configuration (with lightweight desktop):

    Update the OS:
    apt update
    apt upgrade
    Install sudo:
    apt install sudo
    Install grep:
    apt install grep
    Add the first user
    adduser pi (answer prompts to put in the password (""), then “”, just press enter for the rest of the prompts)
    Grant that user the rights to use sudo
    su root
    /sbin/usermod -aG sudo pi
    Then to prove the user “pi” has access to sudo:
    su pi
    sudo reboot
    Give the root user a password:
    sudo passwd root
    reboot
    Set up the desktop environment (note that gnome does not work with wireless keyboards if the USB stub is plugged into the RPI directly)
    tasksel
    LXDE is the one that the Raspberry Pi OS is based on (most familiar),
    so use the space bar to select that (ONLY) and tab over to Ok and press enter.
    It then asks for a keyboard, just select the default -
    You can install multiple desktops but I am not doing that as this has to be as lightweight and fast as
    possible, on bootup in a previous attempt using gnome the desktop was a little sluggish so I
    uninstalled it and then afterwards at bootup
    It leaves some directories behind and also there were alot of error messages at bootup from that point… ugh
    reboot
    As it is a struggle to get to the command prompt - right click on any icon on the bottom left
    of the screen other than the first one, and select:
    “Application Launch Bar” Settings

    • and there under shell you can add BASH to the launch bar.
  6. Let’s go headless!
    A. Server setup on the RPI:
    The VNC viewer is only free if you are using what came with raspbian I believe - and I also had
    some problems instaling it. Therefore I decided upon rxdp on the RPI, which we will access
    through windows RDP (and Android somehow later!):
    sudo apt install xrdp
    Then to check status to make sure it is running:
    sudo systemctl status xrdp
    To make sure it is always running at startup:
    sudo systemctl enable xrdp
    Check this again to make sure it is still running:
    sudo systemctl status xrdp
    To get and verify the IP address of the RPI:
    ip addr
    B. Set up the RDP access from Windows:
    Click start, search and run “Remote Desktop”
    Use the above ip address (from “ip addr”)
    Save it to the desktop for convenience
    Test it.
    Then gracefully shut down and unplug the PI, then remove the bare metal keyboard and mouse,
    and plug the power back in the pi again -
    Test reconnecting to it from the RDP only!

That results in this squeaky clean puppy that runs with a much lower cpu and 20 degrees lower temperatures - totally supported:

System Information

version core-2022.11.1
installation_type Home Assistant Supervised
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.7
os_name Linux
os_version 5.10.0-19-arm64
arch aarch64
timezone America/New_York
config_dir /config

Home Assistant Community Store

GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4423
Installed Version 1.28.3
Stage running
Available Repositories 1200
Downloaded Repositories 22

AccuWeather

can_reach_server ok
remaining_requests 41

Home Assistant Cloud

logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok

Home Assistant Supervisor

host_os Debian GNU/Linux 11 (bullseye)
update_channel stable
supervisor_version supervisor-2022.11.dev0401
agent_version 1.4.1
docker_version 20.10.21
disk_total 917.0 GB
disk_used 10.4 GB
healthy true
supported true
supervisor_api ok
version_api ok
installed_addons Log Viewer (0.14.0), Samba share (10.0.0), Home Assistant Google Drive Backup (0.108.4), File editor (5.4.1), Duck DNS (1.15.0), AdGuard Home (4.7.4), Terminal & SSH (9.6.1), Core DNS Override (0.1.1), Mosquitto broker (6.1.3), AppDaemon (0.9.3)

Dashboards

dashboards 4
resources 15
views 25
mode storage

Recorder

oldest_recorder_run October 4, 2022 at 2:29 PM
current_recorder_run November 4, 2022 at 11:33 PM
estimated_db_size 1443.68 MiB
database_engine sqlite
database_version 3.38.5
1 Like