Jump to content

Recommended Posts

Posted
6 minutes ago, Assilsa said:

Supervised works perfectly with add-ons on this image?

We don't know if it works perfectly. We cannot afford doing extensive testing. We rely on user feedback in that matter.

Posted

New version (v24.11) with even more targets has been released. Home assistant takes few minutes and might require reboot at first install or there will be some errors related to privileges. This gets away after waiting few minutes and reboot. Testing was done on Odroid M1.

 

Latest: https://github.com/armbian/distribution/releases/tag/24.11.1

Previous: https://github.com/armbian/distribution/releases/tag/24.8.4

Posted

After I run Home Asssistant on Rock 5C, do install in ssd USB, sometime error "compile.sh[5185]: Unhealthy detected, restarting". And my Home Assistant not stable, sometime self-restart. How to fix?

Posted
8 hours ago, Dang Ky said:

How to fix?


This is fix, just perhaps too noisy. If you don't want to see those messages, change this on your system:
https://github.com/armbian/os/commit/36fc679bbb38cdff4223e14a0552c638f577d56b

 

Without you will have your HA always unhealthy. Background:
https://github.com/home-assistant/supervisor/issues/4381

 

8 hours ago, Dang Ky said:

Unhealthy detected, restarting

 

This should happen only once after reboot. As we are running a vendor kernel on those devices, there could be issues beyond our control. Once LTS kernel will be available for this HW, we recommend to switch to it. I am running HA, with the exact same method, on Odroid N2 running mainline kernel. Everything works perfectly stable for months.

Posted

Without Apparmor Home Assistant is not fully functional so you need to install the module properly. I followed the instructions on this thread but Apparmor still does not work, this is the output:

 

root@localhost:~# aa-status
apparmor module is loaded.
apparmor filesystem is not mounted.

 

Does anyone know a solution to get Apparmor working on Armbian?

Posted
8 hours ago, TonyB said:

Apparmor working on Armbian?

 

which hardware platform / kernel ?

Posted
5 minutes ago, Igor said:

which hardware platform / kernel

25.2.2 for Raspberry Pi 4 Model B running Armbian Linux 6.12.17-current-bcm2711

 

Posted

Run this as root:

echo " systemd.unified_cgroup_hierarchy=0 apparmor=1 security=apparmor" >> /boot/firmware/cmdline.txt
reboot


This works for me (after adding this):

 

Spoiler
igorp@rpizero2w:~$ sudo aa-status
apparmor module is loaded.
106 profiles are loaded.
11 profiles are in enforce mode.
   /usr/bin/man
   lsb_release
   man_filter
   man_groff
   nvidia_modprobe
   nvidia_modprobe//kmod
   plasmashell
   plasmashell//QtWebEngineProcess
   rsyslogd
   unix-chkpwd
   unprivileged_userns
4 profiles are in complain mode.
   transmission-cli
   transmission-daemon
   transmission-gtk
   transmission-qt
0 profiles are in prompt mode.
0 profiles are in kill mode.
91 profiles are in unconfined mode.
   1password
   Discord
   MongoDB Compass
   QtWebEngineProcess
   balena-etcher
   brave
   buildah
   busybox
   cam
   ch-checkns
   ch-run
   chrome
   crun
   devhelp
   element-desktop
   epiphany
   evolution
   firefox
   flatpak
   foliate
   geary
   github-desktop
   goldendict
   ipa_verify
   kchmviewer
   keybase
   lc-compliance
   libcamerify
   linux-sandbox
   loupe
   lxc-attach
   lxc-create
   lxc-destroy
   lxc-execute
   lxc-stop
   lxc-unshare
   lxc-usernsexec
   mmdebstrap
   msedge
   nautilus
   notepadqq
   obsidian
   opam
   opera
   pageedit
   podman
   polypane
   privacybrowser
   qcam
   qmapshack
   qutebrowser
   rootlesskit
   rpm
   rssguard
   runc
   sbuild
   sbuild-abort
   sbuild-adduser
   sbuild-apt
   sbuild-checkpackages
   sbuild-clean
   sbuild-createchroot
   sbuild-destroychroot
   sbuild-distupgrade
   sbuild-hold
   sbuild-shell
   sbuild-unhold
   sbuild-update
   sbuild-upgrade
   scide
   signal-desktop
   slack
   slirp4netns
   steam
   stress-ng
   surfshark
   systemd-coredump
   thunderbird
   toybox
   trinity
   tup
   tuxedo-control-center
   userbindmount
   uwsgi-core
   vdens
   virtiofsd
   vivaldi-bin
   vpnns
   vscode
   wike
   wpcom
1 processes have profiles defined.
1 processes are in enforce mode.
   /usr/sbin/rsyslogd (866) rsyslogd
0 processes are in complain mode.
0 processes are in prompt mode.
0 processes are in kill mode.
0 processes are unconfined but have a profile defined.
0 processes are in mixed mode.

 

 

Fixes: 
https://github.com/armbian/os/pull/289

https://github.com/armbian/configng/pull/466

 

Posted
1 hour ago, Igor said:

This works for me (after adding this): (on Ubuntu, Debian still missing something ...)

So on Debian doesn't work? Apparmor is required on Home Assistant, I tried also Armbian with preinstalled Home Assistant and saw that even in this version Apparmor does not work.

Posted
9 minutes ago, TonyB said:

So on Debian doesn't work? Apparmor is required on Home Assistant, I tried also Armbian with preinstalled Home Assistant and saw that even in this version Apparmor does not work.


It works. I messed up something. Just add that to the cmdline.txt and it should work - works for me. I am fixing now installation methods and testing to make sure everything is alright.

 

9 minutes ago, TonyB said:

even in this version Apparmor does not work.


Yes, it doesn't work there too - same method is used. It will be fixed for both ASAP.

Posted
10 hours ago, Igor said:

It works. I messed up something. Just add that to the cmdline.txt and it should work - works for me. I am fixing now installation methods and testing to make sure everything is alright.

I followed your instructions on a clean install but the result is not changed, aa-status output is the same and Home Assistant continues to ask for Apparmor. 

Posted
1 hour ago, TonyB said:

aa-status output is the same and Home Assistant continues to ask for Apparmor. 

 

Make sure all parameters of /boot/firmware/cmdline.txt are one after another, in one line.

 

This is correct way on a clean target:

 

sed -i '/./ s/$/ systemd.unified_cgroup_hierarchy=0 apparmor=1 security=apparmor/' /boot/firmware/cmdline.txt

 

I haven't done with all the testings and will continue tomorrow. I have to check major targets, not just Rpi.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines