Banana Pi - armbian
hardware info on main page.
Links
armbian, armbian for Banana Pi,
more links
Home Assistant install armbian, autostart using systemd,
local links
Work log
2023-02-04: armbian - rebooted, new Debian version
tingo@kg-bpi:~$ cat /etc/debian_version
11.6
new kernel
tingo@kg-bpi:~$ uname -a Linux kg-bpi 5.15.89-sunxi #22.11.4 SMP Mon Jan 23 21:58:30 UTC 2023 armv7l GNU/Linux
2023-02-04: armbian - apt - upgrade
tingo@kg-bpi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: apache2-bin armbian-config armbian-firmware avahi-autoipd base-files bash bind9-dnsutils bind9-host bind9-libs bsdextrautils bsdutils chrony cmake cmake-data composer curl dbus dirmngr distro-info-data dnsutils dpkg dpkg-dev fdisk git git-man gnupg gnupg-l10n gnupg-utils gnupg2 gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv gzip ifenslave isc-dhcp-client libapache2-mod-php7.4 libarchive13 libblkid1 libc-bin libc-dev-bin libc-l10n libc6 libc6-dev libconfuse-common libconfuse-dev libconfuse2 libcryptsetup12 libcurl3-gnutls libcurl4 libdbus-1-3 libdlt2 libdpkg-perl libexpat1 libexpat1-dev libfdisk1 libfreetype6 libgmp10 libgnutls30 libgssapi-krb5-2 libhttp-parser2.9 libk5crypto3 libkrb5-3 libkrb5support0 libksba8 libldap-2.4-2 libldap-common liblzma5 libmount1 libnginx-mod-http-echo libnm0 libnss-myhostname libntfs-3g883 libpam-systemd libpcre2-8-0 libpolkit-agent-1-0 libpolkit-gobject-1-0 libsasl2-2 libsasl2-modules-db libseccomp2 libsmartcols1 libssl-dev libssl1.1 libsystemd0 libtasn1-6 libtiff5 libtirpc-common libtirpc-dev libtirpc3 libudev1 libuuid1 libxml2 libxslt1.1 linux-dtb-current-sunxi linux-image-current-sunxi linux-libc-dev linux-u-boot-bananapi-current locales logrotate mount nano network-manager nginx-common nginx-light ntfs-3g openssh-client openssh-server openssh-sftp-server openssl php-symfony-console php-symfony-filesystem php-symfony-finder php-symfony-process php7.4 php7.4-cli php7.4-common php7.4-curl php7.4-fpm php7.4-gd php7.4-intl php7.4-json php7.4-mbstring php7.4-opcache php7.4-readline php7.4-sqlite3 php7.4-xml php7.4-zip policykit-1 python-pip-whl python3-pip rfkill rsyslog sudo systemd systemd-sysv sysvinit-utils tzdata udev unzip util-linux vim vim-common vim-runtime wget wireless-regdb xxd xz-utils zlib1g zlib1g-dev 152 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 146 MB of archives. After this operation, 57.6 MB disk space will be freed. [..] Current default time zone: 'Europe/Oslo' Local time is now: Sat Feb 4 11:43:52 CET 2023. Universal Time is now: Sat Feb 4 10:43:52 UTC 2023. Run 'dpkg-reconfigure tzdata' if you wish to change it. [..] Processing triggers for initramfs-tools (0.140) ... update-initramfs: Generating /boot/initrd.img-5.15.89-sunxi update-initramfs: Converting to u-boot format Processing triggers for libc-bin (2.31-13+deb11u5) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for php7.4-cli (7.4.33-1+deb11u1) ... Processing triggers for php7.4-fpm (7.4.33-1+deb11u1) ... Processing triggers for libapache2-mod-php7.4 (7.4.33-1+deb11u1) ... Warning: Could not load Apache 2.4 maintainer script helper.
only a reboot remains.
2023-02-04: armbian - time to upgrade?
tingo@kg-bpi:~$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye tingo@kg-bpi:~$ cat /etc/debian_version 11.1
free space
tingo@kg-bpi:~$ df -h / Filesystem Size Used Avail Use% Mounted on /dev/mmcblk0p1 15G 5.5G 8.9G 39% /
check if stuff acn be removed or cleaned away first. apt - autoremove
tingo@kg-bpi:~$ sudo apt autoremove Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 152 not upgraded.
apt - autoclean
tingo@kg-bpi:~$ sudo apt autoclean Reading package lists... Done Building dependency tree... Done Reading state information... Done Del armbian-config 21.08.2 [127 kB] Del armbian-firmware 21.08.2 [7,916 kB]
2023-01-21: apt - update
tingo@kg-bpi:~$ sudo apt update [..] 150 packages can be upgraded. Run 'apt list --upgradable' to see them. N: Repository 'http://httpredir.debian.org/debian bullseye InRelease' changed its 'Version' value from '11.4' to '11.6'
2023-01-15: Home Assistant - upgrade to 2023.1.4
tingo@kg-bpi:~$ source ~/.venv/homeassistant/bin/activate (homeassistant) tingo@kg-bpi:~$ pip3 install --upgrade homeassistant Requirement already satisfied: homeassistant in ./.venv/homeassistant/lib/python3.9/site-packages (2022.11.5) Collecting homeassistant Downloading homeassistant-2023.1.4-py3-none-any.whl (21.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 21.1/21.1 MB 575.2 kB/s eta 0:00:00 Requirement already satisfied: bcrypt==3.1.7 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.1.7) Requirement already satisfied: aiohttp==3.8.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.8.1) Requirement already satisfied: requests==2.28.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.28.1) Requirement already satisfied: lru-dict==1.1.8 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.1.8) Requirement already satisfied: yarl==1.8.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.8.1) Collecting attrs==22.1.0 Downloading attrs-22.1.0-py2.py3-none-any.whl (58 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.8/58.8 KB 552.0 kB/s eta 0:00:00 Requirement already satisfied: certifi>=2021.5.30 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2021.10.8) Requirement already satisfied: ifaddr==0.1.7 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.1.7) Requirement already satisfied: async-timeout==4.0.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.0.2) Collecting home-assistant-bluetooth==1.9.2 Downloading home_assistant_bluetooth-1.9.2.tar.gz (10 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: python-slugify==4.0.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.0.1) Requirement already satisfied: voluptuous==0.13.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.13.1) Requirement already satisfied: awesomeversion==22.9.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (22.9.0) Collecting httpx==0.23.2 Downloading httpx-0.23.2-py3-none-any.whl (86 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 86.2/86.2 KB 436.3 kB/s eta 0:00:00 Requirement already satisfied: pyyaml==6.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (6.0) Requirement already satisfied: pip<22.4,>=21.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (22.0.4) Requirement already satisfied: PyJWT==2.5.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.5.0) Requirement already satisfied: orjson==3.8.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.8.1) Requirement already satisfied: typing-extensions<5.0,>=4.4.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.4.0) Requirement already satisfied: cryptography==38.0.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (38.0.3) Collecting ciso8601==2.3.0 Downloading ciso8601-2.3.0.tar.gz (26 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: jinja2==3.1.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.1.2) Requirement already satisfied: atomicwrites-homeassistant==1.4.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.4.1) Requirement already satisfied: astral==2.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.2) Requirement already satisfied: voluptuous-serialize==2.5.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.5.0) Requirement already satisfied: multidict<7.0,>=4.5 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (6.0.2) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (2.0.12) Requirement already satisfied: aiosignal>=1.1.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.2.0) Requirement already satisfied: frozenlist>=1.1.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.3.0) Requirement already satisfied: pytz in ./.venv/homeassistant/lib/python3.9/site-packages (from astral==2.2->homeassistant) (2021.3) Requirement already satisfied: cffi>=1.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.15.0) Requirement already satisfied: six>=1.4.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.16.0) Requirement already satisfied: httpcore<0.17.0,>=0.15.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.23.2->homeassistant) (0.15.0) Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.23.2->homeassistant) (1.5.0) Requirement already satisfied: sniffio in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.23.2->homeassistant) (1.2.0) Requirement already satisfied: MarkupSafe>=2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from jinja2==3.1.2->homeassistant) (2.1.0) Requirement already satisfied: text-unidecode>=1.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from python-slugify==4.0.1->homeassistant) (1.3) Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from requests==2.28.1->homeassistant) (1.26.8) Requirement already satisfied: idna<4,>=2.5 in ./.venv/homeassistant/lib/python3.9/site-packages (from requests==2.28.1->homeassistant) (3.3) Requirement already satisfied: pycparser in ./.venv/homeassistant/lib/python3.9/site-packages (from cffi>=1.1->bcrypt==3.1.7->homeassistant) (2.21) Requirement already satisfied: anyio==3.* in ./.venv/homeassistant/lib/python3.9/site-packages (from httpcore<0.17.0,>=0.15.0->httpx==0.23.2->homeassistant) (3.5.0) Requirement already satisfied: h11<0.13,>=0.11 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpcore<0.17.0,>=0.15.0->httpx==0.23.2->homeassistant) (0.12.0) Building wheels for collected packages: ciso8601, home-assistant-bluetooth Building wheel for ciso8601 (pyproject.toml) ... done Created wheel for ciso8601: filename=ciso8601-2.3.0-cp39-cp39-linux_armv7l.whl size=35224 sha256=f3e473a722312be4643046cc6aa35b578d29baf1e52a6395bca2a6aa496169bf Stored in directory: /home/tingo/.cache/pip/wheels/27/60/c3/7db442d55c9a26ebfbe9d05ce281f045005d5c40296b1fa332 Building wheel for home-assistant-bluetooth (pyproject.toml) ... done Created wheel for home-assistant-bluetooth: filename=home_assistant_bluetooth-1.9.2-cp39-cp39-manylinux_2_31_armv7l.whl size=280017 sha256=5c6a1b8bd78e5c4eb1fe21204e81aea38ba71c8ac02c48f296ccfc1137bcc742 Stored in directory: /home/tingo/.cache/pip/wheels/57/30/f6/898821727d9035387a3768c58ff4e004d781bbf61d8787f998 Successfully built ciso8601 home-assistant-bluetooth Installing collected packages: ciso8601, home-assistant-bluetooth, attrs, httpx, homeassistant Attempting uninstall: ciso8601 Found existing installation: ciso8601 2.2.0 Uninstalling ciso8601-2.2.0: Successfully uninstalled ciso8601-2.2.0 Attempting uninstall: home-assistant-bluetooth Found existing installation: home-assistant-bluetooth 1.6.0 Uninstalling home-assistant-bluetooth-1.6.0: Successfully uninstalled home-assistant-bluetooth-1.6.0 Attempting uninstall: attrs Found existing installation: attrs 21.2.0 Uninstalling attrs-21.2.0: Successfully uninstalled attrs-21.2.0 Attempting uninstall: httpx Found existing installation: httpx 0.23.0 Uninstalling httpx-0.23.0: Successfully uninstalled httpx-0.23.0 Attempting uninstall: homeassistant Found existing installation: homeassistant 2022.11.5 Uninstalling homeassistant-2022.11.5: Successfully uninstalled homeassistant-2022.11.5 Successfully installed attrs-22.1.0 ciso8601-2.3.0 home-assistant-bluetooth-1.9.2 homeassistant-2023.1.4 httpx-0.23.2 WARNING: You are using pip version 22.0.4; however, version 22.3.1 is available. You should consider upgrading via the '/home/tingo/.venv/homeassistant/bin/python3.9 -m pip install --upgrade pip' command.
first start
(homeassistant) tingo@kg-bpi:~$ hass --open-ui 2023-01-15 19:08:37.729 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: person, analytics 2023-01-15 19:10:54.332 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //home/tingo/.homeassistant/home-assistant_v2.db was shutdown cleanly 2023-01-15 19:10:54.343 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: http, recorder 2023-01-15 19:11:04.289 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds. 2023-01-15 19:18:37.593 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: ssdp 2023-01-15 19:31:23.314 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: bluetooth 2023-01-15 19:31:36.674 ERROR (MainThread) [homeassistant.components.media_player] The squeezebox platform for the media_player integration does not support platform setup. Please remove it from your config. 2023-01-15 19:31:54.165 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds. 2023-01-15 19:31:54.170 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds. 2023-01-15 19:31:54.176 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds. 2023-01-15 19:31:54.187 WARNING (MainThread) [homeassistant.setup] Setup of input_select is taking over 10 seconds. 2023-01-15 19:31:54.193 WARNING (MainThread) [homeassistant.setup] Setup of script is taking over 10 seconds. 2023-01-15 19:31:54.196 WARNING (MainThread) [homeassistant.setup] Setup of automation is taking over 10 seconds. 2023-01-15 19:31:54.401 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Home Assistant Website' for version integration not ready yet: Timeout of 10 seconds was reached while fetching version for haio; Retrying in background 2023-01-15 19:31:54.446 ERROR (MainThread) [pysqueezebox.server] Failed communicating with LMS: <class 'asyncio.exceptions.TimeoutError'> 2023-01-15 19:32:31.633 WARNING (MainThread) [homeassistant.setup] Setup of default_config is taking over 10 seconds. 2023-01-15 19:32:46.127 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for sonoff-rf-bridge @ 10.1.161.22: Error connecting to ('10.1.161.22', 6053): [Errno 113] Connect call failed ('10.1.161.22', 6053) 2023-01-15 19:32:55.043 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: version, mqtt, mill, season, default_config, esphome 2023-01-15 19:33:39.359 WARNING (MainThread) [homeassistant.bootstrap] Support for the running Python version 3.9.2 is deprecated and will be removed in Home Assistant 2023.2; Please upgrade Python to 3.10 2023-01-15 19:33:39.544 WARNING (SyncWorker_0) [homeassistant.bootstrap] Unable to open the Home Assistant UI in a browser. Open it yourself at http://127.0.0.1:8123 2023-01-15 19:34:00.453 ERROR (MainThread) [homeassistant.components.automation.update_battery_status_group_members] update_battery_status_group_members: Error executing script. Invalid data for call_service at pos 1: Entity ID is an invalid entity ID for dictionary value @ data['entities'] 2023-01-15 19:34:00.489 ERROR (MainThread) [homeassistant.components.automation.update_battery_status_group_members] Error while executing automation automation.update_battery_status_group_members: Entity ID is an invalid entity ID for dictionary value @ data['entities'] 2023-01-15 19:35:00.440 ERROR (MainThread) [homeassistant.components.automation.update_battery_status_group_members] update_battery_status_group_members: Error executing script. Invalid data for call_service at pos 1: Entity ID is an invalid entity ID for dictionary value @ data['entities'] 2023-01-15 19:35:00.461 ERROR (MainThread) [homeassistant.components.automation.update_battery_status_group_members] Error while executing automation automation.update_battery_status_group_members: Entity ID is an invalid entity ID for dictionary value @ data['entities'] 2023-01-15 19:36:00.419 ERROR (MainThread) [homeassistant.components.automation.update_battery_status_group_members] update_battery_status_group_members: Error executing script. Invalid data for call_service at pos 1: Entity ID is an invalid entity ID for dictionary value @ data['entities'] 2023-01-15 19:36:00.441 ERROR (MainThread) [homeassistant.components.automation.update_battery_status_group_members] Error while executing automation automation.update_battery_status_group_members: Entity ID is an invalid entity ID for dictionary value @ data['entities']
took a while.
2022-12-04: Home Assistant - upgrade to 2022.11.5
tingo@kg-bpi:~$ source ~/.venv/homeassistant/bin/activate (homeassistant) tingo@kg-bpi:~$ (homeassistant) tingo@kg-bpi:~$ pip3 install --upgrade homeassistant Requirement already satisfied: homeassistant in ./.venv/homeassistant/lib/python3.9/site-packages (2022.10.1) Collecting homeassistant Downloading homeassistant-2022.11.5-py3-none-any.whl (20.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 20.1/20.1 MB 1.4 MB/s eta 0:00:00 Requirement already satisfied: atomicwrites-homeassistant==1.4.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.4.1) Requirement already satisfied: bcrypt==3.1.7 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.1.7) Requirement already satisfied: python-slugify==4.0.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.0.1) Requirement already satisfied: httpx==0.23.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.23.0) Collecting orjson==3.8.1 Downloading orjson-3.8.1-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (280 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 280.2/280.2 KB 1.9 MB/s eta 0:00:00 Requirement already satisfied: aiohttp==3.8.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.8.1) Requirement already satisfied: requests==2.28.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.28.1) Requirement already satisfied: lru-dict==1.1.8 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.1.8) Requirement already satisfied: certifi>=2021.5.30 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2021.10.8) Requirement already satisfied: yarl==1.8.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.8.1) Requirement already satisfied: ifaddr==0.1.7 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.1.7) Requirement already satisfied: awesomeversion==22.9.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (22.9.0) Requirement already satisfied: attrs==21.2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (21.2.0) Requirement already satisfied: voluptuous==0.13.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.13.1) Requirement already satisfied: pip<22.4,>=21.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (22.0.4) Requirement already satisfied: PyJWT==2.5.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.5.0) Requirement already satisfied: voluptuous-serialize==2.5.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.5.0) Requirement already satisfied: jinja2==3.1.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.1.2) Requirement already satisfied: ciso8601==2.2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.2.0) Collecting typing-extensions<5.0,>=4.4.0 Using cached typing_extensions-4.4.0-py3-none-any.whl (26 kB) Collecting home-assistant-bluetooth==1.6.0 Downloading home_assistant_bluetooth-1.6.0-py3-none-any.whl (8.8 kB) Requirement already satisfied: async-timeout==4.0.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.0.2) Requirement already satisfied: pyyaml==6.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (6.0) Collecting cryptography==38.0.3 Downloading cryptography-38.0.3.tar.gz (599 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 599.9/599.9 KB 2.4 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: astral==2.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.2) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (2.0.12) Requirement already satisfied: aiosignal>=1.1.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (6.0.2) Requirement already satisfied: frozenlist>=1.1.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.3.0) Requirement already satisfied: pytz in ./.venv/homeassistant/lib/python3.9/site-packages (from astral==2.2->homeassistant) (2021.3) Requirement already satisfied: six>=1.4.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.16.0) Requirement already satisfied: cffi>=1.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.15.0) Collecting bleak>=0.19.0 Downloading bleak-0.19.5-py3-none-any.whl (132 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.9/132.9 KB 2.1 MB/s eta 0:00:00 Requirement already satisfied: sniffio in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.23.0->homeassistant) (1.2.0) Requirement already satisfied: httpcore<0.16.0,>=0.15.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.23.0->homeassistant) (0.15.0) Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.23.0->homeassistant) (1.5.0) Requirement already satisfied: MarkupSafe>=2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from jinja2==3.1.2->homeassistant) (2.1.0) Requirement already satisfied: text-unidecode>=1.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from python-slugify==4.0.1->homeassistant) (1.3) Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from requests==2.28.1->homeassistant) (1.26.8) Requirement already satisfied: idna<4,>=2.5 in ./.venv/homeassistant/lib/python3.9/site-packages (from requests==2.28.1->homeassistant) (3.3) Requirement already satisfied: dbus-fast<2.0.0,>=1.22.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from bleak>=0.19.0->home-assistant-bluetooth==1.6.0->homeassistant) (1.24.0) Requirement already satisfied: pycparser in ./.venv/homeassistant/lib/python3.9/site-packages (from cffi>=1.1->bcrypt==3.1.7->homeassistant) (2.21) Requirement already satisfied: h11<0.13,>=0.11 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpcore<0.16.0,>=0.15.0->httpx==0.23.0->homeassistant) (0.12.0) Requirement already satisfied: anyio==3.* in ./.venv/homeassistant/lib/python3.9/site-packages (from httpcore<0.16.0,>=0.15.0->httpx==0.23.0->homeassistant) (3.5.0) Building wheels for collected packages: cryptography Building wheel for cryptography (pyproject.toml) ... done Created wheel for cryptography: filename=cryptography-38.0.3-cp39-cp39-linux_armv7l.whl size=2457106 sha256=29e495f6ed346e589c4ce85540cd552def0cc19d61ab2d91ef6513f0b235b5d7 Stored in directory: /home/tingo/.cache/pip/wheels/ad/3d/41/161cdc2d488a45c7a68a460998f2d0d5c8ef7b7065cf61ac1b Successfully built cryptography Installing collected packages: typing-extensions, orjson, cryptography, bleak, home-assistant-bluetooth, homeassistant Attempting uninstall: typing-extensions Found existing installation: typing_extensions 4.1.1 Uninstalling typing_extensions-4.1.1: Successfully uninstalled typing_extensions-4.1.1 Attempting uninstall: orjson Found existing installation: orjson 3.7.11 Uninstalling orjson-3.7.11: Successfully uninstalled orjson-3.7.11 Attempting uninstall: cryptography Found existing installation: cryptography 38.0.1 Uninstalling cryptography-38.0.1: Successfully uninstalled cryptography-38.0.1 Attempting uninstall: bleak Found existing installation: bleak 0.18.1 Uninstalling bleak-0.18.1: Successfully uninstalled bleak-0.18.1 Attempting uninstall: home-assistant-bluetooth Found existing installation: home-assistant-bluetooth 1.3.0 Uninstalling home-assistant-bluetooth-1.3.0: Successfully uninstalled home-assistant-bluetooth-1.3.0 Attempting uninstall: homeassistant Found existing installation: homeassistant 2022.10.1 Uninstalling homeassistant-2022.10.1: Successfully uninstalled homeassistant-2022.10.1 Successfully installed bleak-0.19.5 cryptography-38.0.3 home-assistant-bluetooth-1.6.0 homeassistant-2022.11.5 orjson-3.8.1 typing-extensions-4.4.0 WARNING: You are using pip version 22.0.4; however, version 22.3.1 is available. You should consider upgrading via the '/home/tingo/.venv/homeassistant/bin/python3.9 -m pip install --upgrade pip' command.
first start
homeassistant) tingo@kg-bpi:~$ hass --open-ui 2022-12-04 19:14:22.293 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: analytics 2022-12-04 19:15:33.225 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //home/tingo/.homeassistant/home-assistant_v2.db was shutdown cleanly 2022-12-04 19:15:33.630 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: recorder 2022-12-04 19:23:53.591 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: bluetooth, cloud 2022-12-04 19:24:16.890 ERROR (MainThread) [homeassistant.components.media_player] The squeezebox platform for the media_player integration does not support platform setup. Please remove it from your config. 2022-12-04 19:24:40.782 WARNING (MainThread) [homeassistant.components.media_player] Setup of media_player platform dlna_dmr is taking over 10 seconds. 2022-12-04 19:24:40.786 WARNING (MainThread) [homeassistant.components.media_player] Setup of media_player platform dlna_dmr is taking over 10 seconds. 2022-12-04 19:24:40.826 ERROR (MainThread) [pysqueezebox.server] Failed communicating with LMS: <class 'asyncio.exceptions.TimeoutError'> 2022-12-04 19:24:56.183 WARNING (MainThread) [homeassistant.setup] Setup of default_config is taking over 10 seconds. 2022-12-04 19:25:09.615 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for sonoff-rf-bridge @ 10.1.161.22: Error connecting to ('10.1.161.22', 6053): [Errno 113] Connect call failed ('10.1.161.22', 6053) 2022-12-04 19:25:23.650 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: mill, mqtt, version, season, default_config, esphome 2022-12-04 19:25:26.204 WARNING (SyncWorker_8) [homeassistant.bootstrap] Unable to open the Home Assistant UI in a browser. Open it yourself at http://127.0.0.1:8123
2022-10-09: Home Assistant - another upgrade
tingo@kg-bpi:~$ source ~/.venv/homeassistant/bin/activate (homeassistant) tingo@kg-bpi:~$ (homeassistant) tingo@kg-bpi:~$ pip3 install --upgrade homeassistant Requirement already satisfied: homeassistant in ./.venv/homeassistant/lib/python3.9/site-packages (2022.5.5) Collecting homeassistant Downloading homeassistant-2022.10.1-py3-none-any.whl (19.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 19.7/19.7 MB 1.7 MB/s eta 0:00:00 Requirement already satisfied: aiohttp==3.8.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.8.1) Requirement already satisfied: python-slugify==4.0.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.0.1) Requirement already satisfied: ciso8601==2.2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.2.0) Requirement already satisfied: async-timeout==4.0.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.0.2) Requirement already satisfied: voluptuous-serialize==2.5.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.5.0) Requirement already satisfied: certifi>=2021.5.30 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2021.10.8) Requirement already satisfied: pyyaml==6.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (6.0) Collecting httpx==0.23.0 Downloading httpx-0.23.0-py3-none-any.whl (84 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.8/84.8 KB 1.1 MB/s eta 0:00:00 Collecting requests==2.28.1 Downloading requests-2.28.1-py3-none-any.whl (62 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 KB 880.5 kB/s eta 0:00:00 Requirement already satisfied: ifaddr==0.1.7 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.1.7) Requirement already satisfied: bcrypt==3.1.7 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.1.7) Requirement already satisfied: voluptuous==0.13.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.13.1) Collecting home-assistant-bluetooth==1.3.0 Downloading home_assistant_bluetooth-1.3.0-py3-none-any.whl (8.8 kB) Collecting jinja2==3.1.2 Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 KB 2.2 MB/s eta 0:00:00 Collecting atomicwrites-homeassistant==1.4.1 Downloading atomicwrites_homeassistant-1.4.1-py2.py3-none-any.whl (7.1 kB) Collecting cryptography==38.0.1 Downloading cryptography-38.0.1.tar.gz (599 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 599.4/599.4 KB 2.4 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting orjson==3.7.11 Downloading orjson-3.7.11-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (280 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 280.2/280.2 KB 2.2 MB/s eta 0:00:00 Requirement already satisfied: typing-extensions<5.0,>=3.10.0.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.1.1) Collecting awesomeversion==22.9.0 Downloading awesomeversion-22.9.0-py3-none-any.whl (12 kB) Collecting lru-dict==1.1.8 Downloading lru-dict-1.1.8.tar.gz (10 kB) Preparing metadata (setup.py) ... done Collecting PyJWT==2.5.0 Downloading PyJWT-2.5.0-py3-none-any.whl (20 kB) Requirement already satisfied: attrs==21.2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (21.2.0) Requirement already satisfied: astral==2.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.2) Collecting yarl==1.8.1 Downloading yarl-1.8.1.tar.gz (172 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 172.3/172.3 KB 1.9 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: pip<22.3,>=21.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (22.0.4) Requirement already satisfied: aiosignal>=1.1.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (6.0.2) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (2.0.12) Requirement already satisfied: frozenlist>=1.1.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.3.0) Requirement already satisfied: pytz in ./.venv/homeassistant/lib/python3.9/site-packages (from astral==2.2->homeassistant) (2021.3) Requirement already satisfied: six>=1.4.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.16.0) Requirement already satisfied: cffi>=1.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.15.0) Collecting bleak>=0.14.3 Downloading bleak-0.18.1-py3-none-any.whl (128 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 128.8/128.8 KB 2.1 MB/s eta 0:00:00 Requirement already satisfied: sniffio in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.23.0->homeassistant) (1.2.0) Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.23.0->homeassistant) (1.5.0) Collecting httpcore<0.16.0,>=0.15.0 Downloading httpcore-0.15.0-py3-none-any.whl (68 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 68.4/68.4 KB 883.7 kB/s eta 0:00:00 Requirement already satisfied: MarkupSafe>=2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from jinja2==3.1.2->homeassistant) (2.1.0) Requirement already satisfied: text-unidecode>=1.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from python-slugify==4.0.1->homeassistant) (1.3) Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from requests==2.28.1->homeassistant) (1.26.8) Requirement already satisfied: idna<4,>=2.5 in ./.venv/homeassistant/lib/python3.9/site-packages (from requests==2.28.1->homeassistant) (3.3) Collecting dbus-fast<2.0.0,>=1.4.0 Downloading dbus-fast-1.33.0.tar.gz (61 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 KB 883.4 kB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: pycparser in ./.venv/homeassistant/lib/python3.9/site-packages (from cffi>=1.1->bcrypt==3.1.7->homeassistant) (2.21) Requirement already satisfied: h11<0.13,>=0.11 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpcore<0.16.0,>=0.15.0->httpx==0.23.0->homeassistant) (0.12.0) Requirement already satisfied: anyio==3.* in ./.venv/homeassistant/lib/python3.9/site-packages (from httpcore<0.16.0,>=0.15.0->httpx==0.23.0->homeassistant) (3.5.0) Building wheels for collected packages: cryptography, lru-dict, yarl, dbus-fast Building wheel for cryptography (pyproject.toml) ... done Created wheel for cryptography: filename=cryptography-38.0.1-cp39-cp39-linux_armv7l.whl size=2457071 sha256=bd7eaecb83e455bdedcc62f2f213d75f440a3047759eaea6fcd9ff2daa6713cf Stored in directory: /home/tingo/.cache/pip/wheels/5d/04/37/556f7f49f79db641e8b483872a24bdc6eb560e31e337b1f8bf Building wheel for lru-dict (setup.py) ... done Created wheel for lru-dict: filename=lru_dict-1.1.8-cp39-cp39-linux_armv7l.whl size=24244 sha256=731a8d38ab02663600f49b73a13a608466a2004914e5e2730c51145322ba9f10 Stored in directory: /home/tingo/.cache/pip/wheels/22/e7/12/6c9e0f0f2c8484904d3f86647694abbea080046aec8426933e Building wheel for yarl (pyproject.toml) ... done Created wheel for yarl: filename=yarl-1.8.1-cp39-cp39-linux_armv7l.whl size=204433 sha256=522cbaa0a8cdd87f95dcb44c79a13ebd46bef1e245c341f0d6f1747220673dd0 Stored in directory: /home/tingo/.cache/pip/wheels/5f/b3/e8/8e9829e063b11e43799fbe97f90dc6b123275822e2553ecbc2 Building wheel for dbus-fast (pyproject.toml) ... done Created wheel for dbus-fast: filename=dbus_fast-1.33.0-cp39-cp39-manylinux_2_31_armv7l.whl size=1834432 sha256=be69e1a82a3af68a75124201b9a51fbf6141cc57fa17c7cc0ea49104c3759466 Stored in directory: /home/tingo/.cache/pip/wheels/8e/d0/65/326c609957911c4c39b5ca8baca7baac17c22543e0ae608703 Successfully built cryptography lru-dict yarl dbus-fast Installing collected packages: lru-dict, yarl, requests, PyJWT, orjson, jinja2, dbus-fast, awesomeversion, atomicwrites-homeassistant, httpcore, cryptography, bleak, httpx, home-assistant-bluetooth, homeassistant Attempting uninstall: lru-dict Found existing installation: lru-dict 1.1.7 Uninstalling lru-dict-1.1.7: Successfully uninstalled lru-dict-1.1.7 Attempting uninstall: yarl Found existing installation: yarl 1.7.2 Uninstalling yarl-1.7.2: Successfully uninstalled yarl-1.7.2 Attempting uninstall: requests Found existing installation: requests 2.27.1 Uninstalling requests-2.27.1: Successfully uninstalled requests-2.27.1 Attempting uninstall: PyJWT Found existing installation: PyJWT 2.3.0 Uninstalling PyJWT-2.3.0: Successfully uninstalled PyJWT-2.3.0 Attempting uninstall: jinja2 Found existing installation: Jinja2 3.1.1 Uninstalling Jinja2-3.1.1: Successfully uninstalled Jinja2-3.1.1 Attempting uninstall: awesomeversion Found existing installation: awesomeversion 22.2.0 Uninstalling awesomeversion-22.2.0: Successfully uninstalled awesomeversion-22.2.0 Attempting uninstall: httpcore Found existing installation: httpcore 0.14.7 Uninstalling httpcore-0.14.7: Successfully uninstalled httpcore-0.14.7 Attempting uninstall: cryptography Found existing installation: cryptography 36.0.2 Uninstalling cryptography-36.0.2: Successfully uninstalled cryptography-36.0.2 Attempting uninstall: httpx Found existing installation: httpx 0.22.0 Uninstalling httpx-0.22.0: Successfully uninstalled httpx-0.22.0 Attempting uninstall: homeassistant Found existing installation: homeassistant 2022.5.5 Uninstalling homeassistant-2022.5.5: Successfully uninstalled homeassistant-2022.5.5 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. hass-nabucasa 0.54.0 requires cryptography<37.0,>=2.8, but you have cryptography 38.0.1 which is incompatible. Successfully installed PyJWT-2.5.0 atomicwrites-homeassistant-1.4.1 awesomeversion-22.9.0 bleak-0.18.1 cryptography-38.0.1 dbus-fast-1.33.0 home-assistant-bluetooth-1.3.0 homeassistant-2022.10.1 httpcore-0.15.0 httpx-0.23.0 jinja2-3.1.2 lru-dict-1.1.8 orjson-3.7.11 requests-2.28.1 yarl-1.8.1 WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available. You should consider upgrading via the '/home/tingo/.venv/homeassistant/bin/python3.9 -m pip install --upgrade pip' command.
try again
(homeassistant) tingo@kg-bpi:~$ pip3 install --upgrade homeassistant Requirement already satisfied: homeassistant in ./.venv/homeassistant/lib/python3.9/site-packages (2022.10.1) Requirement already satisfied: ciso8601==2.2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.2.0) Requirement already satisfied: astral==2.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.2) Requirement already satisfied: home-assistant-bluetooth==1.3.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.3.0) Requirement already satisfied: async-timeout==4.0.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.0.2) Requirement already satisfied: yarl==1.8.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.8.1) Requirement already satisfied: certifi>=2021.5.30 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2021.10.8) Requirement already satisfied: pyyaml==6.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (6.0) Requirement already satisfied: lru-dict==1.1.8 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.1.8) Requirement already satisfied: bcrypt==3.1.7 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.1.7) Requirement already satisfied: requests==2.28.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.28.1) Requirement already satisfied: awesomeversion==22.9.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (22.9.0) Requirement already satisfied: ifaddr==0.1.7 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.1.7) Requirement already satisfied: PyJWT==2.5.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.5.0) Requirement already satisfied: cryptography==38.0.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (38.0.1) Requirement already satisfied: typing-extensions<5.0,>=3.10.0.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.1.1) Requirement already satisfied: httpx==0.23.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.23.0) Requirement already satisfied: atomicwrites-homeassistant==1.4.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.4.1) Requirement already satisfied: voluptuous==0.13.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.13.1) Requirement already satisfied: attrs==21.2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (21.2.0) Requirement already satisfied: aiohttp==3.8.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.8.1) Requirement already satisfied: voluptuous-serialize==2.5.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.5.0) Requirement already satisfied: jinja2==3.1.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.1.2) Requirement already satisfied: pip<22.3,>=21.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (22.0.4) Requirement already satisfied: python-slugify==4.0.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.0.1) Requirement already satisfied: orjson==3.7.11 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.7.11) Requirement already satisfied: aiosignal>=1.1.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (6.0.2) Requirement already satisfied: frozenlist>=1.1.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.3.0) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (2.0.12) Requirement already satisfied: pytz in ./.venv/homeassistant/lib/python3.9/site-packages (from astral==2.2->homeassistant) (2021.3) Requirement already satisfied: cffi>=1.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.15.0) Requirement already satisfied: six>=1.4.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.16.0) Requirement already satisfied: bleak>=0.14.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from home-assistant-bluetooth==1.3.0->homeassistant) (0.18.1) Requirement already satisfied: sniffio in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.23.0->homeassistant) (1.2.0) Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.23.0->homeassistant) (1.5.0) Requirement already satisfied: httpcore<0.16.0,>=0.15.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.23.0->homeassistant) (0.15.0) Requirement already satisfied: MarkupSafe>=2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from jinja2==3.1.2->homeassistant) (2.1.0) Requirement already satisfied: text-unidecode>=1.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from python-slugify==4.0.1->homeassistant) (1.3) Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from requests==2.28.1->homeassistant) (1.26.8) Requirement already satisfied: idna<4,>=2.5 in ./.venv/homeassistant/lib/python3.9/site-packages (from requests==2.28.1->homeassistant) (3.3) Requirement already satisfied: dbus-fast<2.0.0,>=1.4.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from bleak>=0.14.3->home-assistant-bluetooth==1.3.0->homeassistant) (1.33.0) Requirement already satisfied: pycparser in ./.venv/homeassistant/lib/python3.9/site-packages (from cffi>=1.1->bcrypt==3.1.7->homeassistant) (2.21) Requirement already satisfied: anyio==3.* in ./.venv/homeassistant/lib/python3.9/site-packages (from httpcore<0.16.0,>=0.15.0->httpx==0.23.0->homeassistant) (3.5.0) Requirement already satisfied: h11<0.13,>=0.11 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpcore<0.16.0,>=0.15.0->httpx==0.23.0->homeassistant) (0.12.0) WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available. You should consider upgrading via the '/home/tingo/.venv/homeassistant/bin/python3.9 -m pip install --upgrade pip' command.
first start
(homeassistant) tingo@kg-bpi:~$ hass --open-ui 2022-10-09 20:31:34.104 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: image 2022-10-09 20:32:43.883 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: analytics 2022-10-09 20:33:50.712 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //home/tingo/.homeassistant/home-assistant_v2.db was shutdown cleanly 2022-10-09 20:34:17.422 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: usb 2022-10-09 20:35:38.857 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: zeroconf 2022-10-09 21:28:52.958 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: cloud 2022-10-09 21:30:04.742 WARNING (MainThread) [homeassistant.setup] Setup of hardware is taking over 10 seconds. 2022-10-09 21:30:20.563 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: dlna_dmr, mqtt, mill 2022-10-09 21:30:43.362 ERROR (MainThread) [homeassistant.components.media_player] The squeezebox platform for the media_player integration does not support platform setup. Please remove it from your config. 2022-10-09 21:31:21.696 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: mqtt, mill, version, binary_sensor.workday, binary_sensor.mqtt, binary_sensor.version, binary_sensor.version_2 2022-10-09 21:31:32.277 WARNING (MainThread) [homeassistant.setup] Setup of default_config is taking over 10 seconds. 2022-10-09 21:31:45.999 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for sonoff-rf-bridge @ 10.1.161.22: Error connecting to ('10.1.161.22', 6053): [Errno 113] Connect call failed ('10.1.161.22', 6053) 2022-10-09 21:32:20.901 WARNING (SyncWorker_2) [homeassistant.bootstrap] Unable to open the Home Assistant UI in a browser. Open it yourself at http://127.0.0.1:8123 2022-10-09 21:32:21.076 WARNING (Recorder) [homeassistant.components.recorder.migration] Database is about to upgrade. Schema version: 26 2022-10-09 21:32:21.138 WARNING (Recorder) [homeassistant.components.recorder.migration] Adding columns data_id to table events. Note: this can take several minutes on large databases and slow computers. Please be patient! 2022-10-09 21:32:21.195 WARNING (Recorder) [homeassistant.components.recorder.migration] Adding index `ix_events_data_id` to database. Note: this can take several minutes on large databases and slow computers. Please be patient! 2022-10-09 21:32:23.544 WARNING (Recorder) [homeassistant.components.recorder.migration] Adding columns origin_idx to table events. Note: this can take several minutes on large databases and slow computers. Please be patient! 2022-10-09 21:32:25.649 WARNING (Recorder) [homeassistant.components.recorder.migration] Adding columns origin_idx, context_id, context_user_id, context_parent_id to table states. Note: this can take several minutes on large databases and slow computers. Please be patient! 2022-10-09 21:32:25.728 WARNING (Recorder) [homeassistant.components.recorder.migration] Column context_id already exists on states, continuing 2022-10-09 21:32:25.739 WARNING (Recorder) [homeassistant.components.recorder.migration] Column context_user_id already exists on states, continuing 2022-10-09 21:32:25.756 WARNING (Recorder) [homeassistant.components.recorder.migration] Adding index `ix_states_context_id` to database. Note: this can take several minutes on large databases and slow computers. Please be patient! 2022-10-09 21:32:26.346 WARNING (Recorder) [homeassistant.components.recorder.migration] Adding index `ix_statistics_meta_statistic_id` to database. Note: this can take several minutes on large databases and slow computers. Please be patient!
it took a while, but it finished. Good.
2022-07-16: mmcblk0p1 - apt - update
tingo@kg-bpi:~$ sudo apt update [..] 127 packages can be upgraded. Run 'apt list --upgradable' to see them. N: Repository 'http://httpredir.debian.org/debian bullseye InRelease' changed its 'Version' value from '11.1' to '11.4'
2022-05-28: Home Assistant upgraded to version 2022.5.5.
2022-05-28: Home Assistant - upgrade again
(homeassistant) tingo@kg-bpi:~$ pip3 install --upgrade homeassistant Requirement already satisfied: homeassistant in ./.venv/homeassistant/lib/python3.9/site-packages (2022.4.1) Collecting homeassistant Downloading homeassistant-2022.5.5-py3-none-any.whl (17.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.7/17.7 MB 1.7 MB/s eta 0:00:00 Requirement already satisfied: attrs==21.2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (21.2.0) Requirement already satisfied: ifaddr==0.1.7 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.1.7) Requirement already satisfied: awesomeversion==22.2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (22.2.0) Requirement already satisfied: httpx==0.22.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.22.0) Requirement already satisfied: typing-extensions<5.0,>=3.10.0.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.1.1) Requirement already satisfied: ciso8601==2.2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.2.0) Requirement already satisfied: yarl==1.7.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.7.2) Collecting jinja2==3.1.1 Downloading Jinja2-3.1.1-py3-none-any.whl (132 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.6/132.6 KB 313.1 kB/s eta 0:00:00 Requirement already satisfied: requests==2.27.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.27.1) Requirement already satisfied: bcrypt==3.1.7 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.1.7) Requirement already satisfied: pyyaml==6.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (6.0) Requirement already satisfied: async-timeout==4.0.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.0.2) Collecting cryptography==36.0.2 Downloading cryptography-36.0.2.tar.gz (572 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 572.1/572.1 KB 1.8 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: atomicwrites==1.4.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.4.0) Requirement already satisfied: astral==2.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.2) Requirement already satisfied: certifi>=2021.5.30 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2021.10.8) Requirement already satisfied: python-slugify==4.0.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.0.1) Requirement already satisfied: voluptuous-serialize==2.5.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.5.0) Requirement already satisfied: pip<22.1,>=21.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (22.0.4) Requirement already satisfied: aiohttp==3.8.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.8.1) Collecting voluptuous==0.13.1 Downloading voluptuous-0.13.1-py3-none-any.whl (29 kB) Requirement already satisfied: PyJWT==2.3.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.3.0) Requirement already satisfied: aiosignal>=1.1.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (6.0.2) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (2.0.12) Requirement already satisfied: frozenlist>=1.1.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.3.0) Requirement already satisfied: pytz in ./.venv/homeassistant/lib/python3.9/site-packages (from astral==2.2->homeassistant) (2021.3) Requirement already satisfied: cffi>=1.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.15.0) Requirement already satisfied: six>=1.4.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.16.0) Requirement already satisfied: httpcore<0.15.0,>=0.14.5 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.22.0->homeassistant) (0.14.7) Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.22.0->homeassistant) (1.5.0) Requirement already satisfied: sniffio in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.22.0->homeassistant) (1.2.0) Requirement already satisfied: MarkupSafe>=2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from jinja2==3.1.1->homeassistant) (2.1.0) Requirement already satisfied: text-unidecode>=1.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from python-slugify==4.0.1->homeassistant) (1.3) Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from requests==2.27.1->homeassistant) (1.26.8) Requirement already satisfied: idna<4,>=2.5 in ./.venv/homeassistant/lib/python3.9/site-packages (from requests==2.27.1->homeassistant) (3.3) Requirement already satisfied: pycparser in ./.venv/homeassistant/lib/python3.9/site-packages (from cffi>=1.1->bcrypt==3.1.7->homeassistant) (2.21) Requirement already satisfied: anyio==3.* in ./.venv/homeassistant/lib/python3.9/site-packages (from httpcore<0.15.0,>=0.14.5->httpx==0.22.0->homeassistant) (3.5.0) Requirement already satisfied: h11<0.13,>=0.11 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpcore<0.15.0,>=0.14.5->httpx==0.22.0->homeassistant) (0.12.0) Building wheels for collected packages: cryptography Building wheel for cryptography (pyproject.toml) ... done Created wheel for cryptography: filename=cryptography-36.0.2-cp39-cp39-linux_armv7l.whl size=2664547 sha256=6510773ea4c93dc80573f532ad5b2c39d6e4595457dc926d5a5ab67c8289170e Stored in directory: /home/tingo/.cache/pip/wheels/5c/b1/b8/304c39415d360affffeb99c040f4891b00210cadf0763c43e6 Successfully built cryptography Installing collected packages: voluptuous, jinja2, cryptography, homeassistant Attempting uninstall: voluptuous Found existing installation: voluptuous 0.12.2 Uninstalling voluptuous-0.12.2: Successfully uninstalled voluptuous-0.12.2 Attempting uninstall: jinja2 Found existing installation: Jinja2 3.1.0 Uninstalling Jinja2-3.1.0: Successfully uninstalled Jinja2-3.1.0 Attempting uninstall: cryptography Found existing installation: cryptography 35.0.0 Uninstalling cryptography-35.0.0: Successfully uninstalled cryptography-35.0.0 Attempting uninstall: homeassistant Found existing installation: homeassistant 2022.4.1 Uninstalling homeassistant-2022.4.1: Successfully uninstalled homeassistant-2022.4.1 Successfully installed cryptography-36.0.2 homeassistant-2022.5.5 jinja2-3.1.1 voluptuous-0.13.1 WARNING: You are using pip version 22.0.4; however, version 22.1.1 is available. You should consider upgrading via the '/home/tingo/.venv/homeassistant/bin/python3.9 -m pip install --upgrade pip' command.
first start
(homeassistant) tingo@kg-bpi:~$ hass --open-ui 2022-05-28 23:49:07 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: recorder 2022-05-28 23:49:07 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //home/tingo/.homeassistant/home-assistant_v2.db was shutdown cleanly 2022-05-28 23:55:24 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: image 2022-05-28 23:57:13 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: http, input_text, tag, counter, met, group, input_boolean, input_number, input_select, sun, timer, version, mill, system_health, input_button, zone, input_datetime, scene, scene.homeassistant, media_source, logbook, tellstick, plant, binary_sensor 2022-05-28 23:57:16 ERROR (MainThread) [homeassistant.components.media_player] The squeezebox platform for the media_player integration does not support platform setup. Please remove it from your config. 2022-05-28 23:57:35 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds. 2022-05-28 23:57:35 WARNING (MainThread) [homeassistant.setup] Setup of counter is taking over 10 seconds. 2022-05-28 23:57:35 WARNING (MainThread) [homeassistant.setup] Setup of group is taking over 10 seconds. 2022-05-28 23:57:35 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds. 2022-05-28 23:57:35 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds. 2022-05-28 23:57:35 WARNING (MainThread) [homeassistant.setup] Setup of input_select is taking over 10 seconds. 2022-05-28 23:57:35 WARNING (MainThread) [homeassistant.setup] Setup of timer is taking over 10 seconds. 2022-05-28 23:57:35 WARNING (MainThread) [homeassistant.setup] Setup of input_button is taking over 10 seconds. 2022-05-28 23:57:35 WARNING (MainThread) [homeassistant.setup] Setup of zone is taking over 10 seconds. 2022-05-28 23:57:35 WARNING (MainThread) [homeassistant.setup] Setup of input_datetime is taking over 10 seconds. 2022-05-28 23:57:35 WARNING (MainThread) [homeassistant.components.binary_sensor] Setup of binary_sensor platform workday is taking over 10 seconds. 2022-05-28 23:57:35 WARNING (MainThread) [homeassistant.setup] Setup of script is taking over 10 seconds. 2022-05-28 23:57:35 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Home Assistant Website' for version integration not ready yet: Timeout of 10 seconds was reached while fetching version for haio; Retrying in background 2022-05-28 23:57:52 WARNING (MainThread) [homeassistant.setup] Setup of default_config is taking over 10 seconds. 2022-05-28 23:58:00 WARNING (SyncWorker_1) [homeassistant.bootstrap] Unable to open the Home Assistant UI in a browser. Open it yourself at http://127.0.0.1:8123 2022-05-28 23:58:00 WARNING (Recorder) [homeassistant.components.recorder.migration] Database is about to upgrade. Schema version: 25 2022-05-28 23:58:00 WARNING (Recorder) [homeassistant.components.recorder.migration] Adding index `ix_statistics_runs_start` to database. Note: this can take several minutes on large databases and slow computers. Please be patient! 2022-05-28 23:58:01 ERROR (MainThread) [homeassistant.components.automation.update_battery_status_group_members] update_battery_status_group_members: Error executing script. Invalid data for call_service at pos 1: Entity ID is an invalid entity ID for dictionary value @ data['entities'] 2022-05-28 23:58:01 ERROR (MainThread) [homeassistant.components.automation.update_battery_status_group_members] Error while executing automation automation.update_battery_status_group_members: Entity ID is an invalid entity ID for dictionary value @ data['entities'] 2022-05-28 23:59:00 ERROR (MainThread) [homeassistant.components.automation.update_battery_status_group_members] update_battery_status_group_members: Error executing script. Invalid data for call_service at pos 1: Entity ID is an invalid entity ID for dictionary value @ data['entities'] 2022-05-28 23:59:00 ERROR (MainThread) [homeassistant.components.automation.update_battery_status_group_members] Error while executing automation automation.update_battery_status_group_members: Entity ID is an invalid entity ID for dictionary value @ data['entities'] 2022-05-29 00:00:00 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'None' has no attribute 'attributes' when rendering '{% macro battery_level() %} {% for entity_id in states.group.battery_status.attributes.entity_id if ( not ( is_state_attr(entity_id, 'battery_alert_disabled', true) or is_state_attr(entity_id, 'restored', true) ) and states(entity_id) is not none and ( ( ( states(entity_id) is number or states(entity_id) | length == states(entity_id)| int(default=0) | string | length or states(entity_id) | length == states(entity_id)| float(default=0) | string | length ) and states(entity_id) | int < states.input_number.battery_alert_threshold_max.state | int(default=0) and states(entity_id) | int > states.input_number.battery_alert_threshold_min.state | int(default=0) ) or states(entity_id) | lower == 'low' or states(entity_id) | lower == 'unknown' or states(entity_id) | lower == 'unavailable' ) ) -%} {{ state_attr(entity_id, "friendly_name") }} ({{ states(entity_id) }}) {% endfor -%} {% endmacro %} {{ battery_level() | trim == "" }}' 2022-05-29 00:00:00 WARNING (MainThread) [homeassistant.helpers.script] Error in 'condition' evaluation: In 'template' condition: UndefinedError: 'None' has no attribute 'attributes' 2022-05-29 00:00:00 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'None' has no attribute 'attributes' when rendering '{% macro battery_level() %} {% for entity_id in states.group.battery_status.attributes.entity_id if ( not ( is_state_attr(entity_id, 'battery_alert_disabled', true) or is_state_attr(entity_id, 'restored', true) ) and states(entity_id) is not none and ( ( ( states(entity_id) is number or states(entity_id) | length == states(entity_id)| int(default=0) | string | length or states(entity_id) | length == states(entity_id)| float(default=0) | string | length ) and states(entity_id) | int < states.input_number.battery_alert_threshold_max.state | int(default=0) and states(entity_id) | int > states.input_number.battery_alert_threshold_min.state | int(default=0) ) or states(entity_id) | lower == 'low' or states(entity_id) | lower == 'unknown' or states(entity_id) | lower == 'unavailable' ) ) -%} {{ state_attr(entity_id, "friendly_name") }} ({{ states(entity_id) }}) {% endfor -%} {% endmacro %} {{ battery_level() | trim != "" }}' 2022-05-29 00:00:00 WARNING (MainThread) [homeassistant.helpers.script] Error in 'condition' evaluation: In 'template' condition: UndefinedError: 'None' has no attribute 'attributes' 2022-05-29 00:00:00 ERROR (MainThread) [homeassistant.components.automation.update_battery_status_group_members] update_battery_status_group_members: Error executing script. Invalid data for call_service at pos 1: Entity ID is an invalid entity ID for dictionary value @ data['entities'] 2022-05-29 00:00:00 ERROR (MainThread) [homeassistant.components.automation.update_battery_status_group_members] Error while executing automation automation.update_battery_status_group_members: Entity ID is an invalid entity ID for dictionary value @ data['entities']
hmm, battery automation update needed?
2022-04-10: Home Assistant upgraded to version 2022.4.1.
2022-04-10: Home Assistant - another upgrade
tingo@kg-bpi:~$ source ~/.venv/homeassistant/bin/activate (homeassistant) tingo@kg-bpi:~$ pip3 install --upgrade homeassistant Requirement already satisfied: homeassistant in ./.venv/homeassistant/lib/python3.9/site-packages (2022.3.4) Collecting homeassistant Downloading homeassistant-2022.4.1-py3-none-any.whl (17.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.3/17.3 MB 1.3 MB/s eta 0:00:00 Requirement already satisfied: atomicwrites==1.4.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.4.0) Requirement already satisfied: yarl==1.7.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.7.2) Requirement already satisfied: astral==2.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.2) Requirement already satisfied: pyyaml==6.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (6.0) Requirement already satisfied: async-timeout==4.0.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.0.2) Collecting httpx==0.22.0 Downloading httpx-0.22.0-py3-none-any.whl (84 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.2/84.2 KB 1.2 MB/s eta 0:00:00 Requirement already satisfied: aiohttp==3.8.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.8.1) Collecting jinja2==3.1.0 Downloading Jinja2-3.1.0-py3-none-any.whl (132 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.6/132.6 KB 2.0 MB/s eta 0:00:00 Requirement already satisfied: python-slugify==4.0.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.0.1) Requirement already satisfied: pip<22.1,>=21.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (22.0.4) Requirement already satisfied: awesomeversion==22.2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (22.2.0) Requirement already satisfied: voluptuous-serialize==2.5.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.5.0) Requirement already satisfied: attrs==21.2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (21.2.0) Requirement already satisfied: cryptography==35.0.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (35.0.0) Requirement already satisfied: ciso8601==2.2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.2.0) Requirement already satisfied: voluptuous==0.12.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.12.2) Requirement already satisfied: bcrypt==3.1.7 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.1.7) Requirement already satisfied: requests==2.27.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.27.1) Requirement already satisfied: certifi>=2021.5.30 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2021.10.8) Requirement already satisfied: typing-extensions<5.0,>=3.10.0.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.1.1) Requirement already satisfied: ifaddr==0.1.7 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.1.7) Collecting PyJWT==2.3.0 Downloading PyJWT-2.3.0-py3-none-any.whl (16 kB) Requirement already satisfied: multidict<7.0,>=4.5 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (6.0.2) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (2.0.12) Requirement already satisfied: frozenlist>=1.1.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.3.0) Requirement already satisfied: aiosignal>=1.1.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.2.0) Requirement already satisfied: pytz in ./.venv/homeassistant/lib/python3.9/site-packages (from astral==2.2->homeassistant) (2021.3) Requirement already satisfied: cffi>=1.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.15.0) Requirement already satisfied: six>=1.4.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.16.0) Requirement already satisfied: sniffio in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.22.0->homeassistant) (1.2.0) Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.22.0->homeassistant) (1.5.0) Requirement already satisfied: httpcore<0.15.0,>=0.14.5 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.22.0->homeassistant) (0.14.7) Requirement already satisfied: MarkupSafe>=2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from jinja2==3.1.0->homeassistant) (2.1.0) Requirement already satisfied: text-unidecode>=1.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from python-slugify==4.0.1->homeassistant) (1.3) Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from requests==2.27.1->homeassistant) (1.26.8) Requirement already satisfied: idna<4,>=2.5 in ./.venv/homeassistant/lib/python3.9/site-packages (from requests==2.27.1->homeassistant) (3.3) Requirement already satisfied: pycparser in ./.venv/homeassistant/lib/python3.9/site-packages (from cffi>=1.1->bcrypt==3.1.7->homeassistant) (2.21) Requirement already satisfied: anyio==3.* in ./.venv/homeassistant/lib/python3.9/site-packages (from httpcore<0.15.0,>=0.14.5->httpx==0.22.0->homeassistant) (3.5.0) Requirement already satisfied: h11<0.13,>=0.11 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpcore<0.15.0,>=0.14.5->httpx==0.22.0->homeassistant) (0.12.0) Installing collected packages: PyJWT, jinja2, httpx, homeassistant Attempting uninstall: PyJWT Found existing installation: PyJWT 2.1.0 Uninstalling PyJWT-2.1.0: Successfully uninstalled PyJWT-2.1.0 Attempting uninstall: jinja2 Found existing installation: Jinja2 3.0.3 Uninstalling Jinja2-3.0.3: Successfully uninstalled Jinja2-3.0.3 Attempting uninstall: httpx Found existing installation: httpx 0.21.3 Uninstalling httpx-0.21.3: Successfully uninstalled httpx-0.21.3 Attempting uninstall: homeassistant Found existing installation: homeassistant 2022.3.4 Uninstalling homeassistant-2022.3.4: Successfully uninstalled homeassistant-2022.3.4 Successfully installed PyJWT-2.3.0 homeassistant-2022.4.1 httpx-0.22.0 jinja2-3.1.0
first start
(homeassistant) tingo@kg-bpi:~$ hass --open-ui 2022-04-10 20:18:52 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: recorder 2022-04-10 20:18:52 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //home/tingo/.homeassistant/home-assistant_v2.db was shutdown cleanly 2022-04-10 20:20:51 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: http, input_number, media_source, input_text, system_health, logbook, input_select, zone, input_datetime, scene, group, counter, tag, plant, sun, input_button, timer, input_boolean, mqtt 2022-04-10 20:21:12 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds. 2022-04-10 20:21:12 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds. 2022-04-10 20:21:12 WARNING (MainThread) [homeassistant.setup] Setup of input_select is taking over 10 seconds. 2022-04-10 20:21:12 WARNING (MainThread) [homeassistant.setup] Setup of zone is taking over 10 seconds. 2022-04-10 20:21:12 WARNING (MainThread) [homeassistant.setup] Setup of input_datetime is taking over 10 seconds. 2022-04-10 20:21:12 WARNING (MainThread) [homeassistant.setup] Setup of group is taking over 10 seconds. 2022-04-10 20:21:12 WARNING (MainThread) [homeassistant.setup] Setup of counter is taking over 10 seconds. 2022-04-10 20:21:12 WARNING (MainThread) [homeassistant.setup] Setup of input_button is taking over 10 seconds. 2022-04-10 20:21:12 WARNING (MainThread) [homeassistant.setup] Setup of timer is taking over 10 seconds. 2022-04-10 20:21:12 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds. 2022-04-10 20:21:17 ERROR (MainThread) [homeassistant.components.media_player] The squeezebox platform for the media_player integration does not support platform setup. Please remove it from your config. 2022-04-10 20:39:38 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: esphome, mobile_app 2022-04-10 20:39:50 WARNING (MainThread) [homeassistant.setup] Setup of default_config is taking over 10 seconds. 2022-04-10 20:40:47 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: cast 2022-04-10 20:40:47 WARNING (SyncWorker_2) [homeassistant.bootstrap] Unable to open the Home Assistant UI in a browser. Open it yourself at http://127.0.0.1:8123 2022-04-10 20:40:47 WARNING (Recorder) [homeassistant.components.recorder.migration] Database is about to upgrade. Schema version: 24 2022-04-10 20:40:47 WARNING (Recorder) [homeassistant.components.recorder.migration] Adding columns attributes_id to table states. Note: this can take several minutes on large databases and slow computers. Please be patient! 2022-04-10 20:40:47 WARNING (Recorder) [homeassistant.components.recorder.migration] Adding index `ix_states_attributes_id` to database. Note: this can take several minutes on large databases and slow computers. Please be patient!
2022-03-12: Home Assistant upgraded to version 2022.3.4.
2022-03-12: Home Assistant - another upgrade
tingo@kg-bpi:~$ source ~/.venv/homeassistant/bin/activate (homeassistant) tingo@kg-bpi:~$ pip3 install --upgrade homeassistant Requirement already satisfied: homeassistant in ./.venv/homeassistant/lib/python3.9/site-packages (2022.3.3) Collecting homeassistant Downloading homeassistant-2022.3.4-py3-none-any.whl (17.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.2/17.2 MB 1.8 MB/s eta 0:00:00 Requirement already satisfied: httpx==0.21.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.21.3) Requirement already satisfied: cryptography==35.0.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (35.0.0) Requirement already satisfied: yarl==1.7.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.7.2) Requirement already satisfied: ciso8601==2.2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.2.0) Requirement already satisfied: PyJWT==2.1.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.1.0) Requirement already satisfied: voluptuous==0.12.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.12.2) Requirement already satisfied: python-slugify==4.0.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.0.1) Requirement already satisfied: ifaddr==0.1.7 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.1.7) Requirement already satisfied: pyyaml==6.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (6.0) Requirement already satisfied: atomicwrites==1.4.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.4.0) Requirement already satisfied: aiohttp==3.8.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.8.1) Requirement already satisfied: async-timeout==4.0.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.0.2) Requirement already satisfied: attrs==21.2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (21.2.0) Requirement already satisfied: pip<22.1,>=21.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (22.0.4) Requirement already satisfied: astral==2.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.2) Requirement already satisfied: jinja2==3.0.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.0.3) Requirement already satisfied: requests==2.27.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.27.1) Requirement already satisfied: typing-extensions<5.0,>=3.10.0.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.1.1) Requirement already satisfied: awesomeversion==22.2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (22.2.0) Requirement already satisfied: bcrypt==3.1.7 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.1.7) Requirement already satisfied: certifi>=2021.5.30 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2021.10.8) Requirement already satisfied: voluptuous-serialize==2.5.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.5.0) Requirement already satisfied: multidict<7.0,>=4.5 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (6.0.2) Requirement already satisfied: aiosignal>=1.1.2 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.2.0) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (2.0.12) Requirement already satisfied: frozenlist>=1.1.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.3.0) Requirement already satisfied: pytz in ./.venv/homeassistant/lib/python3.9/site-packages (from astral==2.2->homeassistant) (2021.3) Requirement already satisfied: cffi>=1.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.15.0) Requirement already satisfied: six>=1.4.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.16.0) Requirement already satisfied: httpcore<0.15.0,>=0.14.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.21.3->homeassistant) (0.14.7) Requirement already satisfied: sniffio in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.21.3->homeassistant) (1.2.0) Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpx==0.21.3->homeassistant) (1.5.0) Requirement already satisfied: MarkupSafe>=2.0 in ./.venv/homeassistant/lib/python3.9/site-packages (from jinja2==3.0.3->homeassistant) (2.1.0) Requirement already satisfied: text-unidecode>=1.3 in ./.venv/homeassistant/lib/python3.9/site-packages (from python-slugify==4.0.1->homeassistant) (1.3) Requirement already satisfied: idna<4,>=2.5 in ./.venv/homeassistant/lib/python3.9/site-packages (from requests==2.27.1->homeassistant) (3.3) Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.venv/homeassistant/lib/python3.9/site-packages (from requests==2.27.1->homeassistant) (1.26.8) Requirement already satisfied: pycparser in ./.venv/homeassistant/lib/python3.9/site-packages (from cffi>=1.1->bcrypt==3.1.7->homeassistant) (2.21) Requirement already satisfied: anyio==3.* in ./.venv/homeassistant/lib/python3.9/site-packages (from httpcore<0.15.0,>=0.14.0->httpx==0.21.3->homeassistant) (3.5.0) Requirement already satisfied: h11<0.13,>=0.11 in ./.venv/homeassistant/lib/python3.9/site-packages (from httpcore<0.15.0,>=0.14.0->httpx==0.21.3->homeassistant) (0.12.0) Installing collected packages: homeassistant Attempting uninstall: homeassistant Found existing installation: homeassistant 2022.3.3 Uninstalling homeassistant-2022.3.3: Successfully uninstalled homeassistant-2022.3.3 Successfully installed homeassistant-2022.3.4
first start
(homeassistant) tingo@kg-bpi:~$ hass --open-ui 2022-03-12 14:30:52 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //home/tingo/.homeassistant/home-assistant_v2.db was shutdown cleanly 2022-03-12 14:31:01 ERROR (MainThread) [homeassistant.components.media_player] The squeezebox platform for the media_player integration does not support platform setup. Please remove it from your config. 2022-03-12 14:31:08 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds. 2022-03-12 14:31:11 WARNING (SyncWorker_1) [homeassistant.bootstrap] Unable to open the Home Assistant UI in a browser. Open it yourself at http://127.0.0.1:8123
well, it started quickly now.
2022-03-12: Home Assistant installed - version 2022.3.3.
2022-03-12: install Home Assistant in a venv
tingo@kg-bpi:~$ mkdir -p ~/.venv/homeassistant tingo@kg-bpi:~$ cd ~/.venv/homeassistant tingo@kg-bpi:~/.venv/homeassistant$ python3.9 -m venv . tingo@kg-bpi:~/.venv/homeassistant$ source bin/activate
install a required package
(homeassistant) tingo@kg-bpi:~/.venv/homeassistant$ python3 -m pip install wheel Collecting wheel Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB) Installing collected packages: wheel Successfully installed wheel-0.37.1
install Home Assistant
Collecting homeassistant Downloading homeassistant-2022.3.3-py3-none-any.whl (17.2 MB) |████████████████████████████████| 17.2 MB 12 kB/s Collecting async-timeout==4.0.2 Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB) Collecting python-slugify==4.0.1 Downloading python-slugify-4.0.1.tar.gz (11 kB) Collecting typing-extensions<5.0,>=3.10.0.2 Downloading typing_extensions-4.1.1-py3-none-any.whl (26 kB) Collecting aiohttp==3.8.1 Downloading aiohttp-3.8.1.tar.gz (7.3 MB) |████████████████████████████████| 7.3 MB 19 kB/s Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing wheel metadata ... done Collecting yarl==1.7.2 Downloading yarl-1.7.2.tar.gz (168 kB) |████████████████████████████████| 168 kB 3.3 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting PyJWT==2.1.0 Downloading PyJWT-2.1.0-py3-none-any.whl (16 kB) Collecting attrs==21.2.0 Downloading attrs-21.2.0-py2.py3-none-any.whl (53 kB) |████████████████████████████████| 53 kB 142 kB/s Collecting bcrypt==3.1.7 Downloading bcrypt-3.1.7.tar.gz (42 kB) |████████████████████████████████| 42 kB 130 kB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting atomicwrites==1.4.0 Using cached atomicwrites-1.4.0-py2.py3-none-any.whl (6.8 kB) Collecting ciso8601==2.2.0 Downloading ciso8601-2.2.0.tar.gz (18 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting voluptuous-serialize==2.5.0 Downloading voluptuous_serialize-2.5.0-py3-none-any.whl (6.8 kB) Collecting httpx==0.21.3 Downloading httpx-0.21.3-py3-none-any.whl (83 kB) |████████████████████████████████| 83 kB 276 kB/s Collecting ifaddr==0.1.7 Using cached ifaddr-0.1.7-py2.py3-none-any.whl (10 kB) Collecting certifi>=2021.5.30 Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB) |████████████████████████████████| 149 kB 3.9 MB/s Collecting jinja2==3.0.3 Downloading Jinja2-3.0.3-py3-none-any.whl (133 kB) |████████████████████████████████| 133 kB 3.2 MB/s Collecting pip<22.1,>=21.0 Downloading pip-22.0.4-py3-none-any.whl (2.1 MB) |████████████████████████████████| 2.1 MB 3.8 MB/s Collecting cryptography==35.0.0 Downloading cryptography-35.0.0.tar.gz (559 kB) |████████████████████████████████| 559 kB 3.5 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting astral==2.2 Downloading astral-2.2-py2.py3-none-any.whl (30 kB) Collecting pyyaml==6.0 Downloading PyYAML-6.0.tar.gz (124 kB) |████████████████████████████████| 124 kB 4.1 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting requests==2.27.1 Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB) |████████████████████████████████| 63 kB 202 kB/s Collecting awesomeversion==22.2.0 Downloading awesomeversion-22.2.0-py3-none-any.whl (12 kB) Collecting voluptuous==0.12.2 Downloading voluptuous-0.12.2.tar.gz (48 kB) |████████████████████████████████| 48 kB 592 kB/s Collecting frozenlist>=1.1.1 Downloading frozenlist-1.3.0.tar.gz (65 kB) |████████████████████████████████| 65 kB 333 kB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting aiosignal>=1.1.2 Downloading aiosignal-1.2.0-py3-none-any.whl (8.2 kB) Collecting multidict<7.0,>=4.5 Using cached multidict-6.0.2.tar.gz (50 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting charset-normalizer<3.0,>=2.0 Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB) Collecting pytz Downloading pytz-2021.3-py2.py3-none-any.whl (503 kB) |████████████████████████████████| 503 kB 3.9 MB/s Collecting six>=1.4.1 Downloading six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting cffi>=1.1 Using cached cffi-1.15.0-cp39-cp39-linux_armv7l.whl Collecting sniffio Downloading sniffio-1.2.0-py3-none-any.whl (10 kB) Collecting rfc3986[idna2008]<2,>=1.3 Downloading rfc3986-1.5.0-py2.py3-none-any.whl (31 kB) Collecting httpcore<0.15.0,>=0.14.0 Downloading httpcore-0.14.7-py3-none-any.whl (68 kB) |████████████████████████████████| 68 kB 677 kB/s Collecting MarkupSafe>=2.0 Downloading MarkupSafe-2.1.0.tar.gz (18 kB) Collecting text-unidecode>=1.3 Downloading text_unidecode-1.3-py2.py3-none-any.whl (78 kB) |████████████████████████████████| 78 kB 813 kB/s Collecting urllib3<1.27,>=1.21.1 Downloading urllib3-1.26.8-py2.py3-none-any.whl (138 kB) |████████████████████████████████| 138 kB 3.9 MB/s Collecting idna<4,>=2.5 Downloading idna-3.3-py3-none-any.whl (61 kB) |████████████████████████████████| 61 kB 910 kB/s Collecting pycparser Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB) Collecting h11<0.13,>=0.11 Downloading h11-0.12.0-py3-none-any.whl (54 kB) |████████████████████████████████| 54 kB 421 kB/s Collecting anyio==3.* Downloading anyio-3.5.0-py3-none-any.whl (79 kB) |████████████████████████████████| 79 kB 943 kB/s Building wheels for collected packages: aiohttp, bcrypt, ciso8601, cryptography, python-slugify, pyyaml, voluptuous, yarl, frozenlist, MarkupSafe, multidict Building wheel for aiohttp (PEP 517) ... done Created wheel for aiohttp: filename=aiohttp-3.8.1-cp39-cp39-linux_armv7l.whl size=1123297 sha256=022924d43cfb9cdea0f8ff185d0a512d148c5fbddc69332129af9d9f08fc1eb7 Stored in directory: /home/tingo/.cache/pip/wheels/18/3d/16/11bf4b984ebad9a308297e1dd7ece9703314c8a4361f770e4f Building wheel for bcrypt (PEP 517) ... done Created wheel for bcrypt: filename=bcrypt-3.1.7-cp39-cp39-linux_armv7l.whl size=50643 sha256=f115195a15acd034a215d801b956c08b9480cea2ecaa85a2afc09cdeb39d2d0e Stored in directory: /home/tingo/.cache/pip/wheels/a2/df/9f/3e737db43b7e03632c1c23099d36e022c9fc5fb98e1b283fd2 Building wheel for ciso8601 (PEP 517) ... done Created wheel for ciso8601: filename=ciso8601-2.2.0-cp39-cp39-linux_armv7l.whl size=27176 sha256=aa707d2d638a06b7dd3df7fd27bfb1f082f6f6f3be3b427200a73b3b6748433a Stored in directory: /home/tingo/.cache/pip/wheels/eb/ef/30/b91c5119b2581a9d66d18f827d53432f85417ffab180f3e5b8 Building wheel for cryptography (PEP 517) ... done Created wheel for cryptography: filename=cryptography-35.0.0-cp39-cp39-linux_armv7l.whl size=2580989 sha256=0e477e088043c8d1d3c2d79012c3a82c81315e16acb9f45e276ffc5ba83425df Stored in directory: /home/tingo/.cache/pip/wheels/f1/d7/44/fc98c2fb1e604449451fd55b56541981ffe114efafe756bef1 Building wheel for python-slugify (setup.py) ... done Created wheel for python-slugify: filename=python_slugify-4.0.1-py2.py3-none-any.whl size=6769 sha256=2ac92ed42de6984fed8115b68127bc2814d8a007f406288ec3f1156f2b3d2f85 Stored in directory: /home/tingo/.cache/pip/wheels/84/5b/00/3ebff44b1e0a380d959960828803a9486ff2433728cceff666 Building wheel for pyyaml (PEP 517) ... done Created wheel for pyyaml: filename=PyYAML-6.0-cp39-cp39-linux_armv7l.whl size=45333 sha256=c1ee8f09986d380519264d8a8e0fb2b7a2d67b88a4488f8018595e3052b64c48 Stored in directory: /home/tingo/.cache/pip/wheels/b4/0f/9a/d6af48581dda678920fccfb734f5d9f827c6ed5b4074c7eda8 Building wheel for voluptuous (setup.py) ... done Created wheel for voluptuous: filename=voluptuous-0.12.2-py3-none-any.whl size=29552 sha256=318391b9156078f72a25aab9f4c9c8e29631bcaa94d747f97dd248d7e3c1a8ae Stored in directory: /home/tingo/.cache/pip/wheels/50/80/ab/ab37c8824a928c42a261bce71227504b6ef12276ef28f0667b Building wheel for yarl (PEP 517) ... done Created wheel for yarl: filename=yarl-1.7.2-cp39-cp39-linux_armv7l.whl size=262588 sha256=c4f1105570021f22c4046117cdb3e721b090ed85646443fd7433e0602900ad72 Stored in directory: /home/tingo/.cache/pip/wheels/3e/e9/a4/bbd1e7a4e1fc40ad57fd56f9a0d51fffe8bbe47a4d90000e89 Building wheel for frozenlist (PEP 517) ... done Created wheel for frozenlist: filename=frozenlist-1.3.0-cp39-cp39-linux_armv7l.whl size=133016 sha256=3c039d0b216bdeef099171f445c9c54cd0e3821a9a9476a6dc14363925396641 Stored in directory: /home/tingo/.cache/pip/wheels/6c/40/a6/94154198a95bc69c502a31a77b0b0e191157ca964182ea1e13 Building wheel for MarkupSafe (setup.py) ... done Created wheel for MarkupSafe: filename=MarkupSafe-2.1.0-cp39-cp39-linux_armv7l.whl size=24654 sha256=c60925ccab06669e611c61720e370067a975fe873ab0c0691d740c74f1ad4ef3 Stored in directory: /home/tingo/.cache/pip/wheels/16/88/dd/1451425829c7e1cf4b1b875282ca6757858e5068703a1e10d7 Building wheel for multidict (PEP 517) ... done Created wheel for multidict: filename=multidict-6.0.2-cp39-cp39-linux_armv7l.whl size=109422 sha256=e6916d616cd65c11252262b9cb0132f8a574031068bfafd743d66546403abaab Stored in directory: /home/tingo/.cache/pip/wheels/09/2e/af/35665f2dc3fdfa03603e3164d8d900effca39bd1ca5598f8d2 Successfully built aiohttp bcrypt ciso8601 cryptography python-slugify pyyaml voluptuous yarl frozenlist MarkupSafe multidict Installing collected packages: sniffio, idna, rfc3986, pycparser, multidict, h11, frozenlist, certifi, anyio, yarl, voluptuous, urllib3, text-unidecode, six, pytz, MarkupSafe, httpcore, charset-normalizer, cffi, attrs, async-timeout, aiosignal, voluptuous-serialize, typing-extensions, requests, pyyaml, python-slugify, PyJWT, pip, jinja2, ifaddr, httpx, cryptography, ciso8601, bcrypt, awesomeversion, atomicwrites, astral, aiohttp, homeassistant Attempting uninstall: pip Found existing installation: pip 20.3.4 Uninstalling pip-20.3.4: Successfully uninstalled pip-20.3.4 Successfully installed MarkupSafe-2.1.0 PyJWT-2.1.0 aiohttp-3.8.1 aiosignal-1.2.0 anyio-3.5.0 astral-2.2 async-timeout-4.0.2 atomicwrites-1.4.0 attrs-21.2.0 awesomeversion-22.2.0 bcrypt-3.1.7 certifi-2021.10.8 cffi-1.15.0 charset-normalizer-2.0.12 ciso8601-2.2.0 cryptography-35.0.0 frozenlist-1.3.0 h11-0.12.0 homeassistant-2022.3.3 httpcore-0.14.7 httpx-0.21.3 idna-3.3 ifaddr-0.1.7 jinja2-3.0.3 multidict-6.0.2 pip-22.0.4 pycparser-2.21 python-slugify-4.0.1 pytz-2021.3 pyyaml-6.0 requests-2.27.1 rfc3986-1.5.0 six-1.16.0 sniffio-1.2.0 text-unidecode-1.3 typing-extensions-4.1.1 urllib3-1.26.8 voluptuous-0.12.2 voluptuous-serialize-2.5.0 yarl-1.7.2
start it
(homeassistant) tingo@kg-bpi:~/.venv/homeassistant$ hass --open-ui 2022-03-12 01:48:11 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //home/tingo/.homeassistant/home-assistant_v2.db was shutdown cleanly 2022-03-12 01:48:12 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=22 from 2022-03-11 23:15:36.554902) 2022-03-12 02:36:20 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: cloud 2022-03-12 02:37:32 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: tellstick 2022-03-12 02:37:47 ERROR (MainThread) [homeassistant.components.media_player] The squeezebox platform for the media_player integration does not support platform setup. Please remove it from your config. 2022-03-12 02:38:46 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: met 2022-03-12 02:39:52 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: esphome 2022-03-12 02:41:45 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: cast 2022-03-12 02:41:45 WARNING (SyncWorker_6) [homeassistant.bootstrap] Unable to open the Home Assistant UI in a browser. Open it yourself at http://127.0.0.1:8123
Wow. Took nearly an hour (about 53 minutes) for first startup to complete.
2022-03-12: check and install Home Assistant dependencies check
tingo@kg-bpi:~$ sudo apt list python3 python3-dev python3-venv python3-pip libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff5 libturbojpeg0-dev tzdata Listing... Done autoconf/stable,now 2.69-14 all [installed,automatic] build-essential/stable,now 12.9 armhf [installed] libffi-dev/stable,now 3.3-6 armhf [installed] libjpeg-dev/stable,now 1:2.0.6-4 armhf [installed] libopenjp2-7/stable 2.4.0-3 armhf libssl-dev/stable,stable-security,now 1.1.1k-1+deb11u1 armhf [installed] libtiff5/stable,now 4.2.0-1 armhf [installed,automatic] libturbojpeg0-dev/stable 1:2.0.6-4 armhf python3-dev/stable,now 3.9.2-3 armhf [installed] python3-pip/stable,now 20.3.4-4 all [installed] python3-venv/stable 3.9.2-3 armhf python3/stable,now 3.9.2-3 armhf [installed,automatic] tzdata/stable-updates,now 2021a-1+deb11u2 all [installed] zlib1g-dev/stable,now 1:1.2.11.dfsg-2 armhf [installed]
install missing
tingo@kg-bpi:~$ sudo apt install libopenjp2-7 libturbojpeg0-dev python3-venv Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libturbojpeg0 python3.9-venv The following NEW packages will be installed: libopenjp2-7 libturbojpeg0 libturbojpeg0-dev python3-venv python3.9-venv 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. Need to get 478 kB of archives. After this operation, 1,085 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://httpredir.debian.org/debian bullseye/main armhf libopenjp2-7 armhf 2.4.0-3 [154 kB] Get:2 http://httpredir.debian.org/debian bullseye/main armhf libturbojpeg0 armhf 1:2.0.6-4 [146 kB] Get:3 http://httpredir.debian.org/debian bullseye/main armhf libturbojpeg0-dev armhf 1:2.0.6-4 [171 kB] Get:4 http://httpredir.debian.org/debian bullseye/main armhf python3.9-venv armhf 3.9.2-1 [5,396 B] Get:5 http://httpredir.debian.org/debian bullseye/main armhf python3-venv armhf 3.9.2-3 [1,188 B] Fetched 478 kB in 0s (1,105 kB/s) Selecting previously unselected package libopenjp2-7:armhf. (Reading database ... 41758 files and directories currently installed.) Preparing to unpack .../libopenjp2-7_2.4.0-3_armhf.deb ... Unpacking libopenjp2-7:armhf (2.4.0-3) ... Selecting previously unselected package libturbojpeg0:armhf. Preparing to unpack .../libturbojpeg0_1%3a2.0.6-4_armhf.deb ... Unpacking libturbojpeg0:armhf (1:2.0.6-4) ... Selecting previously unselected package libturbojpeg0-dev:armhf. Preparing to unpack .../libturbojpeg0-dev_1%3a2.0.6-4_armhf.deb ... Unpacking libturbojpeg0-dev:armhf (1:2.0.6-4) ... Selecting previously unselected package python3.9-venv. Preparing to unpack .../python3.9-venv_3.9.2-1_armhf.deb ... Unpacking python3.9-venv (3.9.2-1) ... Selecting previously unselected package python3-venv. Preparing to unpack .../python3-venv_3.9.2-3_armhf.deb ... Unpacking python3-venv (3.9.2-3) ... Setting up libturbojpeg0:armhf (1:2.0.6-4) ... Setting up libturbojpeg0-dev:armhf (1:2.0.6-4) ... Setting up libopenjp2-7:armhf (2.4.0-3) ... Setting up python3.9-venv (3.9.2-1) ... Setting up python3-venv (3.9.2-3) ... Processing triggers for libc-bin (2.31-13+deb11u2) ...
2022-03-12: Home Assistant - try to start it - nope fails as before.
2022-03-12: restart the machine
2022-03-12: apt - clean up stuff
tingo@kg-bpi:~$ sudo apt remove --purge python3-multidict Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages will be REMOVED: python3-multidict* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 153 kB disk space will be freed. Do you want to continue? [Y/n] y dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device (Reading database ... 41757 files and directories currently installed.) Removing python3-multidict (5.1.0-1) ... dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device
autoremove
tingo@kg-bpi:~$ sudo apt autoremove Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
autoclean
tingo@kg-bpi:~$ sudo apt autoclean Reading package lists... Done Building dependency tree... Done Reading state information... Done
install multidict again
tingo@kg-bpi:~$ sudo apt install python3-multidict Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed: python3-multidict 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 36.6 kB of archives. After this operation, 153 kB of additional disk space will be used. Get:1 http://httpredir.debian.org/debian bullseye/main armhf python3-multidict armhf 5.1.0-1 [36.6 kB] Fetched 36.6 kB in 0s (182 kB/s) dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device Selecting previously unselected package python3-multidict. (Reading database ... 41732 files and directories currently installed.) Preparing to unpack .../python3-multidict_5.1.0-1_armhf.deb ... dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device Unpacking python3-multidict (5.1.0-1) ... dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device Setting up python3-multidict (5.1.0-1) ... dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device
2022-03-11: Home Assistant - upgrade. I stopped Home Assistant, then
tingo@kg-bpi:~$ sudo pip3 install --upgrade homeassistant Collecting homeassistant Downloading homeassistant-2022.3.3-py3-none-any.whl (17.2 MB) |████████████████████████████████| 17.2 MB 8.1 kB/s Requirement already satisfied, skipping upgrade: aiohttp==3.8.1 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.8.1) Requirement already satisfied, skipping upgrade: astral==2.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.2) Requirement already satisfied, skipping upgrade: attrs==21.2.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (21.2.0) Collecting awesomeversion==22.2.0 Downloading awesomeversion-22.2.0-py3-none-any.whl (12 kB) Collecting pip<22.1,>=21.0 Downloading pip-22.0.4-py3-none-any.whl (2.1 MB) |████████████████████████████████| 2.1 MB 49 kB/s Requirement already satisfied, skipping upgrade: voluptuous==0.12.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (0.12.2) Requirement already satisfied, skipping upgrade: bcrypt==3.1.7 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.1.7) Requirement already satisfied, skipping upgrade: voluptuous-serialize==2.5.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.5.0) Requirement already satisfied, skipping upgrade: python-slugify==4.0.1 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (4.0.1) Requirement already satisfied, skipping upgrade: PyJWT==2.1.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.1.0) Requirement already satisfied, skipping upgrade: jinja2==3.0.3 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.0.3) Requirement already satisfied, skipping upgrade: ciso8601==2.2.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.2.0) Requirement already satisfied, skipping upgrade: ifaddr==0.1.7 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (0.1.7) Requirement already satisfied, skipping upgrade: yarl==1.7.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (1.7.2) Requirement already satisfied, skipping upgrade: httpx==0.21.3 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (0.21.3) Requirement already satisfied, skipping upgrade: async-timeout==4.0.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (4.0.2) Requirement already satisfied, skipping upgrade: pyyaml==6.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (6.0) Requirement already satisfied, skipping upgrade: cryptography==35.0.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (35.0.0) Requirement already satisfied, skipping upgrade: requests==2.27.1 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.27.1) Requirement already satisfied, skipping upgrade: typing-extensions<5.0,>=3.10.0.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.10.0.2) Requirement already satisfied, skipping upgrade: certifi>=2021.5.30 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2021.10.8) Requirement already satisfied, skipping upgrade: atomicwrites==1.4.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (1.4.0) Requirement already satisfied, skipping upgrade: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (5.2.0) Requirement already satisfied, skipping upgrade: charset-normalizer<3.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (2.0.7) Requirement already satisfied, skipping upgrade: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (1.2.0) Requirement already satisfied, skipping upgrade: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (1.2.0) Requirement already satisfied, skipping upgrade: pytz in /usr/local/lib/python3.9/dist-packages (from astral==2.2->homeassistant) (2021.3) Requirement already satisfied, skipping upgrade: six>=1.4.1 in /usr/local/lib/python3.9/dist-packages (from bcrypt==3.1.7->homeassistant) (1.16.0) Requirement already satisfied, skipping upgrade: cffi>=1.1 in /usr/local/lib/python3.9/dist-packages (from bcrypt==3.1.7->homeassistant) (1.15.0) Requirement already satisfied, skipping upgrade: text-unidecode>=1.3 in /usr/local/lib/python3.9/dist-packages (from python-slugify==4.0.1->homeassistant) (1.3) Requirement already satisfied, skipping upgrade: MarkupSafe>=2.0 in /usr/local/lib/python3.9/dist-packages (from jinja2==3.0.3->homeassistant) (2.0.1) Requirement already satisfied, skipping upgrade: idna>=2.0 in /usr/local/lib/python3.9/dist-packages (from yarl==1.7.2->homeassistant) (3.3) Requirement already satisfied, skipping upgrade: sniffio in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.3->homeassistant) (1.2.0) Requirement already satisfied, skipping upgrade: httpcore<0.15.0,>=0.14.0 in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.3->homeassistant) (0.14.3) Requirement already satisfied, skipping upgrade: rfc3986[idna2008]<2,>=1.3 in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.3->homeassistant) (1.5.0) Requirement already satisfied, skipping upgrade: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests==2.27.1->homeassistant) (1.26.7) Requirement already satisfied, skipping upgrade: pycparser in /usr/local/lib/python3.9/dist-packages (from cffi>=1.1->bcrypt==3.1.7->homeassistant) (2.21) Requirement already satisfied, skipping upgrade: h11<0.13,>=0.11 in /usr/local/lib/python3.9/dist-packages (from httpcore<0.15.0,>=0.14.0->httpx==0.21.3->homeassistant) (0.12.0) Requirement already satisfied, skipping upgrade: anyio==3.* in /usr/local/lib/python3.9/dist-packages (from httpcore<0.15.0,>=0.14.0->httpx==0.21.3->homeassistant) (3.3.4) Installing collected packages: awesomeversion, pip, homeassistant Attempting uninstall: awesomeversion Found existing installation: awesomeversion 22.1.0 Uninstalling awesomeversion-22.1.0: Successfully uninstalled awesomeversion-22.1.0 Attempting uninstall: pip Found existing installation: pip 20.2.4 Uninstalling pip-20.2.4: Successfully uninstalled pip-20.2.4 Attempting uninstall: homeassistant Found existing installation: homeassistant 2022.2.9 Uninstalling homeassistant-2022.2.9: Successfully uninstalled homeassistant-2022.2.9 Successfully installed awesomeversion-22.2.0 homeassistant-2022.3.3 pip-22.0.4
try to start it
[..] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for multidict ERROR: Could not build wheels for multidict, which is required to install pyproject.toml-based projects [..]
ouch, lots of those. try to install python3-multidict via apt apt - install - python3-multidict
tingo@kg-bpi:~$ sudo apt install python3-multidict Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed: python3-multidict 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 36.6 kB of archives. After this operation, 153 kB of additional disk space will be used. Get:1 http://httpredir.debian.org/debian bullseye/main armhf python3-multidict armhf 5.1.0-1 [36.6 kB] Fetched 36.6 kB in 0s (139 kB/s) Selecting previously unselected package python3-multidict. (Reading database ... 41732 files and directories currently installed.) Preparing to unpack .../python3-multidict_5.1.0-1_armhf.deb ... Unpacking python3-multidict (5.1.0-1) ... Setting up python3-multidict (5.1.0-1) ...
and try starting Home assistant again
tingo@kg-bpi:~$ hass --open-ui 2022-03-11 23:50:30 ERROR (SyncWorker_2) [homeassistant.util.package] Unable to install package aiohttp_cors==0.7.0: error: subprocess-exited-with-error × Building wheel for multidict (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [83 lines of output] ********************* * Accelerated build * ********************* running bdist_wheel running build running build_py creating build creating build/lib.linux-armv7l-3.9 creating build/lib.linux-armv7l-3.9/multidict copying multidict/_multidict_py.py -> build/lib.linux-armv7l-3.9/multidict copying multidict/_multidict_base.py -> build/lib.linux-armv7l-3.9/multidict copying multidict/_compat.py -> build/lib.linux-armv7l-3.9/multidict copying multidict/_abc.py -> build/lib.linux-armv7l-3.9/multidict copying multidict/__init__.py -> build/lib.linux-armv7l-3.9/multidict running egg_info warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files found matching 'multidict/_multidict.html' warning: no previously-included files found matching 'multidict/*.so' warning: no previously-included files found matching 'multidict/*.pyd' warning: no previously-included files found matching 'multidict/*.pyd' no previously-included directories found matching 'docs/_build' writing manifest file 'multidict.egg-info/SOURCES.txt' copying multidict/__init__.pyi -> build/lib.linux-armv7l-3.9/multidict copying multidict/py.typed -> build/lib.linux-armv7l-3.9/multidict running build_ext creating build/temp.linux-armv7l-3.9 creating build/temp.linux-armv7l-3.9/multidict arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.9 -c multidict/_multidict.c -o build/temp.linux-armv7l-3.9/multidict/_multidict.o -O2 -std=c99 -Wall -Wsign-compare -Wconversion -fno-strict-aliasing -pedantic multidict/_multidict.c: In function ‘getversion’: multidict/_multidict.c:1650:36: warning: conversion from ‘uint64_t’ {aka ‘long long unsigned int’} to ‘long unsigned int’ may change value [-Wconversion] 1650 | return PyLong_FromUnsignedLong(pair_list_version(pairs)); | ^~~~~~~~~~~~~~~~~~~~~~~~ arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 build/temp.linux-armv7l-3.9/multidict/_multidict.o -L/usr/lib -o build/lib.linux-armv7l-3.9/multidict/_multidict.cpython-39-arm-linux-gnueabihf.so running install running install_lib Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module> main() File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 261, in build_wheel return _build_backend().build_wheel(wheel_directory, config_settings, File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 216, in build_wheel return self._build_with_temp_dir(['bdist_wheel'], '.whl', File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 202, in _build_with_temp_dir self.run_setup() File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 253, in run_setup super(_BuildMetaLegacyBackend, File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 145, in run_setup exec(compile(code, __file__, 'exec'), locals()) File "setup.py", line 92, in <module> setup(ext_modules=extensions, **args) File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 967, in run_commands self.run_command(cmd) File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 986, in run_command cmd_obj.run() File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 259, in run self.run_command('install') File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 986, in run_command cmd_obj.run() File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/install.py", line 578, in run self.run_command(cmd_name) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 985, in run_command cmd_obj.ensure_finalized() File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 107, in ensure_finalized self.finalize_options() File "/usr/lib/python3/dist-packages/setuptools/command/install_lib.py", line 17, in finalize_options self.set_undefined_options('install',('install_layout','install_layout')) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 290, in set_undefined_options setattr(self, dst_option, getattr(src_cmd_obj, src_option)) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 103, in __getattr__ raise AttributeError(attr) AttributeError: install_layout [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for multidict ERROR: Could not build wheels for multidict, which is required to install pyproject.toml-based projects [..]
2022-02-27: Home Assistant got upgraded to version 2022.2.9.
2022-02-27: Home Assistant - upgrade. I stopped Home Assistant, then
tingo@kg-bpi:~$ sudo pip3 install --upgrade homeassistant Collecting homeassistant Downloading homeassistant-2022.2.9-py3-none-any.whl (16.3 MB) |████████████████████████████████| 16.3 MB 25 kB/s Requirement already satisfied, skipping upgrade: cryptography==35.0.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (35.0.0) Requirement already satisfied, skipping upgrade: awesomeversion==22.1.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (22.1.0) Requirement already satisfied, skipping upgrade: python-slugify==4.0.1 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (4.0.1) Requirement already satisfied, skipping upgrade: aiohttp==3.8.1 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.8.1) Requirement already satisfied, skipping upgrade: attrs==21.2.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (21.2.0) Requirement already satisfied, skipping upgrade: atomicwrites==1.4.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (1.4.0) Requirement already satisfied, skipping upgrade: astral==2.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.2) Requirement already satisfied, skipping upgrade: ifaddr==0.1.7 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (0.1.7) Requirement already satisfied, skipping upgrade: pip<20.3,>=8.0.3 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (20.2.4) Requirement already satisfied, skipping upgrade: certifi>=2021.5.30 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2021.10.8) Requirement already satisfied, skipping upgrade: bcrypt==3.1.7 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.1.7) Requirement already satisfied, skipping upgrade: requests==2.27.1 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.27.1) Requirement already satisfied, skipping upgrade: async-timeout==4.0.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (4.0.2) Requirement already satisfied, skipping upgrade: PyJWT==2.1.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.1.0) Requirement already satisfied, skipping upgrade: voluptuous-serialize==2.5.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.5.0) Requirement already satisfied, skipping upgrade: httpx==0.21.3 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (0.21.3) Requirement already satisfied, skipping upgrade: voluptuous==0.12.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (0.12.2) Requirement already satisfied, skipping upgrade: ciso8601==2.2.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.2.0) Requirement already satisfied, skipping upgrade: pyyaml==6.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (6.0) Requirement already satisfied, skipping upgrade: jinja2==3.0.3 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.0.3) Requirement already satisfied, skipping upgrade: yarl==1.7.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (1.7.2) Requirement already satisfied, skipping upgrade: typing-extensions<5.0,>=3.10.0.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.10.0.2) Requirement already satisfied, skipping upgrade: cffi>=1.12 in /usr/local/lib/python3.9/dist-packages (from cryptography==35.0.0->homeassistant) (1.15.0) Requirement already satisfied, skipping upgrade: text-unidecode>=1.3 in /usr/local/lib/python3.9/dist-packages (from python-slugify==4.0.1->homeassistant) (1.3) Requirement already satisfied, skipping upgrade: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (1.2.0) Requirement already satisfied, skipping upgrade: charset-normalizer<3.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (2.0.7) Requirement already satisfied, skipping upgrade: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (1.2.0) Requirement already satisfied, skipping upgrade: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (5.2.0) Requirement already satisfied, skipping upgrade: pytz in /usr/local/lib/python3.9/dist-packages (from astral==2.2->homeassistant) (2021.3) Requirement already satisfied, skipping upgrade: six>=1.4.1 in /usr/local/lib/python3.9/dist-packages (from bcrypt==3.1.7->homeassistant) (1.16.0) Requirement already satisfied, skipping upgrade: idna<4,>=2.5; python_version >= "3" in /usr/local/lib/python3.9/dist-packages (from requests==2.27.1->homeassistant) (3.3) Requirement already satisfied, skipping upgrade: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests==2.27.1->homeassistant) (1.26.7) Requirement already satisfied, skipping upgrade: rfc3986[idna2008]<2,>=1.3 in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.3->homeassistant) (1.5.0) Requirement already satisfied, skipping upgrade: sniffio in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.3->homeassistant) (1.2.0) Requirement already satisfied, skipping upgrade: httpcore<0.15.0,>=0.14.0 in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.3->homeassistant) (0.14.3) Requirement already satisfied, skipping upgrade: MarkupSafe>=2.0 in /usr/local/lib/python3.9/dist-packages (from jinja2==3.0.3->homeassistant) (2.0.1) Requirement already satisfied, skipping upgrade: pycparser in /usr/local/lib/python3.9/dist-packages (from cffi>=1.12->cryptography==35.0.0->homeassistant) (2.21) Requirement already satisfied, skipping upgrade: anyio==3.* in /usr/local/lib/python3.9/dist-packages (from httpcore<0.15.0,>=0.14.0->httpx==0.21.3->homeassistant) (3.3.4) Requirement already satisfied, skipping upgrade: h11<0.13,>=0.11 in /usr/local/lib/python3.9/dist-packages (from httpcore<0.15.0,>=0.14.0->httpx==0.21.3->homeassistant) (0.12.0) Installing collected packages: homeassistant Attempting uninstall: homeassistant Found existing installation: homeassistant 2022.2.0 Uninstalling homeassistant-2022.2.0: Successfully uninstalled homeassistant-2022.2.0 Successfully installed homeassistant-2022.2.9 WARNING: You are using pip version 20.2.4; however, version 22.0.3 is available. You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
try to start it
tingo@kg-bpi:~$ hass --open-ui 2022-02-27 17:40:19 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: person, cloud 2022-02-27 17:41:20 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for stage 1 - moving forward 2022-02-27 17:41:21 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: input_select, system_health, timer, input_button, group, input_boolean, input_number, zone, scene, plant, input_text, counter, tag, input_datetime, media_source, script, energy 2022-02-27 17:42:21 ERROR (MainThread) [homeassistant.components.media_player] The squeezebox platform for the media_player integration does not support platform setup. Please remove it from your config. 2022-02-27 17:42:39 WARNING (MainThread) [homeassistant.components.binary_sensor] Setup of binary_sensor platform workday is taking over 10 seconds. 2022-02-27 17:42:39 WARNING (MainThread) [homeassistant.components.switch] Setup of switch platform tellstick is taking over 10 seconds. 2022-02-27 17:42:39 WARNING (MainThread) [homeassistant.components.binary_sensor] Setup of binary_sensor platform updater is taking over 10 seconds. 2022-02-27 17:42:39 ERROR (MainThread) [pysqueezebox.server] Failed communicating with LMS: <class 'asyncio.exceptions.TimeoutError'> 2022-02-27 17:42:44 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: climate.mill 2022-02-27 17:43:17 WARNING (SyncWorker_0) [homeassistant.bootstrap] Unable to open the Home Assistant UI in a browser. Open it yourself at http://127.0.0.1:8123 2022-02-27 17:44:00 ERROR (MainThread) [homeassistant.components.automation.update_battery_status_group_members] update_battery_status_group_members: Error executing script. Invalid data for call_service at pos 1: Entity ID is an invalid entity ID for dictionary value @ data['entities'] 2022-02-27 17:44:00 ERROR (MainThread) [homeassistant.components.automation.update_battery_status_group_members] Error while executing automation automation.update_battery_status_group_members: Entity ID is an invalid entity ID for dictionary value @ data['entities']
as usual, first strtup takes a while (things get installed in background)
2022-02-02: Home Assistant got upgraded to version 2022.2.0.
2022-02-02: Home Assistant - upgrade. I stopped Home Assistant, then
tingo@kg-bpi:~$ sudo pip3 install --upgrade homeassistant Requirement already satisfied: homeassistant in /usr/local/lib/python3.9/dist-packages (2021.12.9) Collecting homeassistant Downloading homeassistant-2022.2.0-py3-none-any.whl (16.3 MB) |████████████████████████████████| 16.3 MB 39 kB/s Collecting httpx==0.21.3 Downloading httpx-0.21.3-py3-none-any.whl (83 kB) |████████████████████████████████| 83 kB 520 kB/s Requirement already satisfied: voluptuous==0.12.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (0.12.2) Requirement already satisfied: astral==2.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.2) Collecting requests==2.27.1 Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB) |████████████████████████████████| 63 kB 400 kB/s Requirement already satisfied: ciso8601==2.2.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.2.0) Requirement already satisfied: pyyaml==6.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (6.0) Requirement already satisfied: python-slugify==4.0.1 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (4.0.1) Requirement already satisfied: certifi>=2021.5.30 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2021.10.8) Collecting pip<20.3,>=8.0.3 Using cached pip-20.2.4-py2.py3-none-any.whl (1.5 MB) Requirement already satisfied: PyJWT==2.1.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.1.0) Requirement already satisfied: voluptuous-serialize==2.5.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.5.0) Collecting yarl==1.7.2 Downloading yarl-1.7.2.tar.gz (168 kB) |████████████████████████████████| 168 kB 3.9 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Requirement already satisfied: ifaddr==0.1.7 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (0.1.7) Requirement already satisfied: typing-extensions<5.0,>=3.10.0.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.10.0.2) Collecting awesomeversion==22.1.0 Downloading awesomeversion-22.1.0-py3-none-any.whl (12 kB) Requirement already satisfied: attrs==21.2.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (21.2.0) Requirement already satisfied: atomicwrites==1.4.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (1.4.0) Collecting async-timeout==4.0.2 Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB) Requirement already satisfied: cryptography==35.0.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (35.0.0) Requirement already satisfied: jinja2==3.0.3 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.0.3) Requirement already satisfied: bcrypt==3.1.7 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.1.7) Requirement already satisfied: aiohttp==3.8.1 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.8.1) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (2.0.7) Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (5.2.0) Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (1.2.0) Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (1.2.0) Requirement already satisfied: pytz in /usr/local/lib/python3.9/dist-packages (from astral==2.2->homeassistant) (2021.3) Requirement already satisfied: six>=1.4.1 in /usr/local/lib/python3.9/dist-packages (from bcrypt==3.1.7->homeassistant) (1.16.0) Requirement already satisfied: cffi>=1.1 in /usr/local/lib/python3.9/dist-packages (from bcrypt==3.1.7->homeassistant) (1.15.0) Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.3->homeassistant) (1.5.0) Requirement already satisfied: sniffio in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.3->homeassistant) (1.2.0) Requirement already satisfied: httpcore<0.15.0,>=0.14.0 in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.3->homeassistant) (0.14.3) Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.9/dist-packages (from jinja2==3.0.3->homeassistant) (2.0.1) Requirement already satisfied: text-unidecode>=1.3 in /usr/local/lib/python3.9/dist-packages (from python-slugify==4.0.1->homeassistant) (1.3) Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests==2.27.1->homeassistant) (3.3) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests==2.27.1->homeassistant) (1.26.7) Requirement already satisfied: pycparser in /usr/local/lib/python3.9/dist-packages (from cffi>=1.1->bcrypt==3.1.7->homeassistant) (2.21) Requirement already satisfied: anyio==3.* in /usr/local/lib/python3.9/dist-packages (from httpcore<0.15.0,>=0.14.0->httpx==0.21.3->homeassistant) (3.3.4) Requirement already satisfied: h11<0.13,>=0.11 in /usr/local/lib/python3.9/dist-packages (from httpcore<0.15.0,>=0.14.0->httpx==0.21.3->homeassistant) (0.12.0) Building wheels for collected packages: yarl Building wheel for yarl (PEP 517) ... done Created wheel for yarl: filename=yarl-1.7.2-cp39-cp39-linux_armv7l.whl size=262585 sha256=bbca533fd163461ff51e5be16144813de822632701b543543a225ac1818c10e1 Stored in directory: /root/.cache/pip/wheels/3e/e9/a4/bbd1e7a4e1fc40ad57fd56f9a0d51fffe8bbe47a4d90000e89 Successfully built yarl Installing collected packages: yarl, async-timeout, requests, pip, httpx, awesomeversion, homeassistant Attempting uninstall: yarl Found existing installation: yarl 1.6.3 Uninstalling yarl-1.6.3: Successfully uninstalled yarl-1.6.3 Attempting uninstall: async-timeout Found existing installation: async-timeout 4.0.0 Uninstalling async-timeout-4.0.0: Successfully uninstalled async-timeout-4.0.0 Attempting uninstall: requests Found existing installation: requests 2.26.0 Uninstalling requests-2.26.0: Successfully uninstalled requests-2.26.0 Attempting uninstall: pip Found existing installation: pip 20.3.4 Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr Can't uninstall 'pip'. No files were found to uninstall. Attempting uninstall: httpx Found existing installation: httpx 0.21.0 Uninstalling httpx-0.21.0: Successfully uninstalled httpx-0.21.0 Attempting uninstall: awesomeversion Found existing installation: awesomeversion 21.11.0 Uninstalling awesomeversion-21.11.0: Successfully uninstalled awesomeversion-21.11.0 Attempting uninstall: homeassistant Found existing installation: homeassistant 2021.12.9 Uninstalling homeassistant-2021.12.9: Successfully uninstalled homeassistant-2021.12.9 Successfully installed async-timeout-4.0.2 awesomeversion-22.1.0 homeassistant-2022.2.0 httpx-0.21.3 pip-20.2.4 requests-2.27.1 yarl-1.7.2
try starting it
tingo@kg-bpi:~$ hass --open-ui 2022-02-02 20:09:45 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //home/tingo/.homeassistant/home-assistant_v2.db was shutdown cleanly 2022-02-02 20:16:04 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: cloud 2022-02-02 20:16:51 ERROR (MainThread) [homeassistant.components.media_player] The squeezebox platform for the media_player integration does not support platform setup. Please remove it from your config. 2022-02-02 20:17:21 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: binary_sensor.workday 2022-02-02 20:18:25 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: esphome 2022-02-02 20:19:01 WARNING (SyncWorker_5) [homeassistant.bootstrap] Unable to open the Home Assistant UI in a browser. Open it yourself at http://127.0.0.1:8123 2022-02-02 20:19:01 WARNING (Recorder) [homeassistant.components.recorder.migration] Database is about to upgrade. Schema version: 23 2022-02-02 20:19:02 WARNING (Recorder) [homeassistant.components.recorder.migration] Adding index `ix_statistics_statistic_id_start` to database. Note: this can take several minutes on large databases and slow computers. Please be patient! 2022-02-02 20:19:03 WARNING (Recorder) [homeassistant.components.recorder.migration] Adding index `ix_statistics_short_term_statistic_id_start` to database. Note: this can take several minutes on large databases and slow computers. Please be patient!
(as usual, lots of python modules gets upgraded in the background on first start) after waiting until most of the sensors show up, I decided that it was good enough.
2022-01-15: pip3 - upgrade pip
tingo@kg-bpi:~$ sudo /usr/bin/python3 -m pip install --upgrade pip Collecting pip Downloading pip-21.3.1-py3-none-any.whl (1.7 MB) |████████████████████████████████| 1.7 MB 2.9 MB/s Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 20.2.4 Uninstalling pip-20.2.4: Successfully uninstalled pip-20.2.4 ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts. We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default. homeassistant 2021.12.9 requires pip<20.3,>=8.0.3, but you'll have pip 21.3.1 which is incompatible. Successfully installed pip-21.3.1
ok, bad move?
tingo@kg-bpi:~$ pip3 --version pip 21.3.1 from /usr/local/lib/python3.9/dist-packages/pip (python 3.9)
yes, reinstall from Debian repository
tingo@kg-bpi:~$ sudo apt reinstall python3-pip Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 337 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://httpredir.debian.org/debian bullseye/main armhf python3-pip all 20.3.4-4 [337 kB] Fetched 337 kB in 0s (1,265 kB/s) (Reading database ... 41732 files and directories currently installed.) Preparing to unpack .../python3-pip_20.3.4-4_all.deb ... Unpacking python3-pip (20.3.4-4) over (20.3.4-4) ... Setting up python3-pip (20.3.4-4) ... Processing triggers for man-db (2.9.4-2) ...
test
tingo@kg-bpi:~$ pip3 --version pip 21.3.1 from /usr/local/lib/python3.9/dist-packages/pip (python 3.9) tingo@kg-bpi:~$ sudo pip3 --version pip 21.3.1 from /usr/local/lib/python3.9/dist-packages/pip (python 3.9)
ok, remove first, then install
tingo@kg-bpi:~$ sudo apt remove --purge python3-pip Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: python-pip-whl python3-pkg-resources python3-setuptools python3-wheel Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: python3-pip* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 1,274 kB disk space will be freed. Do you want to continue? [Y/n] (Reading database ... 41731 files and directories currently installed.) Removing python3-pip (20.3.4-4) ... Processing triggers for man-db (2.9.4-2) ... tingo@kg-bpi:~$ sudo apt install python3-pip Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed: python3-pip 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 337 kB of archives. After this operation, 1,274 kB of additional disk space will be used. Get:1 http://httpredir.debian.org/debian bullseye/main armhf python3-pip all 20.3.4-4 [337 kB] Fetched 337 kB in 0s (1,512 kB/s) Selecting previously unselected package python3-pip. (Reading database ... 41496 files and directories currently installed.) Preparing to unpack .../python3-pip_20.3.4-4_all.deb ... Unpacking python3-pip (20.3.4-4) ... Setting up python3-pip (20.3.4-4) ... Processing triggers for man-db (2.9.4-2) ...
and test
tingo@kg-bpi:~$ pip3 --version pip 21.3.1 from /usr/local/lib/python3.9/dist-packages/pip (python 3.9) tingo@kg-bpi:~$ sudo pip3 --version pip 21.3.1 from /usr/local/lib/python3.9/dist-packages/pip (python 3.9)
try using pip3 then
tingo@kg-bpi:~$ sudo pip3 uninstall pip Found existing installation: pip 21.3.1 Uninstalling pip-21.3.1: Would remove: /usr/bin/pip /usr/bin/pip3 /usr/local/bin/pip /usr/local/bin/pip3 /usr/local/bin/pip3.9 /usr/local/lib/python3.9/dist-packages/pip-21.3.1.dist-info/* /usr/local/lib/python3.9/dist-packages/pip/* Proceed (Y/n)? y Successfully uninstalled pip-21.3.1 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
checking
tingo@kg-bpi:~$ sudo pip3 --version
sudo: pip3: command not found
tingo@kg-bpi:~$ pip3 --version
-bash: /usr/local/bin/pip3: No such file or directory
reinstall via apt
tingo@kg-bpi:~$ sudo apt install python3-pip Reading package lists... Done Building dependency tree... Done Reading state information... Done python3-pip is already the newest version (20.3.4-4). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. tingo@kg-bpi:~$ sudo apt install --reinstall python3-pip Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 337 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://httpredir.debian.org/debian bullseye/main armhf python3-pip all 20.3.4-4 [337 kB] Fetched 337 kB in 0s (1,831 kB/s) (Reading database ... 41732 files and directories currently installed.) Preparing to unpack .../python3-pip_20.3.4-4_all.deb ... Unpacking python3-pip (20.3.4-4) over (20.3.4-4) ... Setting up python3-pip (20.3.4-4) ... Processing triggers for man-db (2.9.4-2) ...
and do check
tingo@kg-bpi:~$ sudo pip3 --version pip 20.3.4 from /usr/lib/python3/dist-packages/pip (python 3.9) tingo@kg-bpi:~$ pip3 --version -bash: /usr/local/bin/pip3: No such file or directory tingo@kg-bpi:~$ which pip3 /usr/bin/pip3 tingo@kg-bpi:~$ pip3 --version -bash: /usr/local/bin/pip3: No such file or directory tingo@kg-bpi:~$ `which pip3` --version pip 20.3.4 from /usr/lib/python3/dist-packages/pip (python 3.9)
puh.
2022-01-15: Home Assistant - 2021.12.9 is installed.
2022-01-15: Home Assistant - upgrade. I stopped Home Assistant, then
tingo@kg-bpi:~$ sudo pip3 install --upgrade homeassistant Collecting homeassistant Downloading homeassistant-2021.12.9-py3-none-any.whl (15.4 MB) |████████████████████████████████| 15.4 MB 19 kB/s Requirement already satisfied, skipping upgrade: async-timeout==4.0.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (4.0.0) Requirement already satisfied, skipping upgrade: httpx==0.21.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (0.21.0) Requirement already satisfied, skipping upgrade: ciso8601==2.2.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.2.0) Requirement already satisfied, skipping upgrade: voluptuous-serialize==2.5.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.5.0) Requirement already satisfied, skipping upgrade: yarl==1.6.3 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (1.6.3) Requirement already satisfied, skipping upgrade: atomicwrites==1.4.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (1.4.0) Requirement already satisfied, skipping upgrade: voluptuous==0.12.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (0.12.2) Requirement already satisfied, skipping upgrade: certifi>=2021.5.30 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2021.10.8) Requirement already satisfied, skipping upgrade: cryptography==35.0.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (35.0.0) Requirement already satisfied, skipping upgrade: awesomeversion==21.11.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (21.11.0) Requirement already satisfied, skipping upgrade: bcrypt==3.1.7 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.1.7) Requirement already satisfied, skipping upgrade: aiohttp==3.8.1 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.8.1) Requirement already satisfied, skipping upgrade: PyJWT==2.1.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.1.0) Requirement already satisfied, skipping upgrade: requests==2.26.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.26.0) Requirement already satisfied, skipping upgrade: pyyaml==6.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (6.0) Requirement already satisfied, skipping upgrade: pip<20.3,>=8.0.3 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (20.2.4) Requirement already satisfied, skipping upgrade: attrs==21.2.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (21.2.0) Requirement already satisfied, skipping upgrade: python-slugify==4.0.1 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (4.0.1) Requirement already satisfied, skipping upgrade: ifaddr==0.1.7 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (0.1.7) Requirement already satisfied, skipping upgrade: jinja2==3.0.3 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.0.3) Requirement already satisfied, skipping upgrade: astral==2.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.2) Requirement already satisfied, skipping upgrade: typing-extensions>=3.6.5 in /usr/local/lib/python3.9/dist-packages (from async-timeout==4.0.0->homeassistant) (3.10.0.2) Requirement already satisfied, skipping upgrade: sniffio in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.0->homeassistant) (1.2.0) Requirement already satisfied, skipping upgrade: charset-normalizer in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.0->homeassistant) (2.0.7) Requirement already satisfied, skipping upgrade: rfc3986[idna2008]<2,>=1.3 in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.0->homeassistant) (1.5.0) Requirement already satisfied, skipping upgrade: httpcore<0.15.0,>=0.14.0 in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.0->homeassistant) (0.14.3) Requirement already satisfied, skipping upgrade: multidict>=4.0 in /usr/local/lib/python3.9/dist-packages (from yarl==1.6.3->homeassistant) (5.2.0) Requirement already satisfied, skipping upgrade: idna>=2.0 in /usr/local/lib/python3.9/dist-packages (from yarl==1.6.3->homeassistant) (3.3) Requirement already satisfied, skipping upgrade: cffi>=1.12 in /usr/local/lib/python3.9/dist-packages (from cryptography==35.0.0->homeassistant) (1.15.0) Requirement already satisfied, skipping upgrade: six>=1.4.1 in /usr/local/lib/python3.9/dist-packages (from bcrypt==3.1.7->homeassistant) (1.16.0) Requirement already satisfied, skipping upgrade: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (1.2.0) Requirement already satisfied, skipping upgrade: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (1.2.0) Requirement already satisfied, skipping upgrade: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests==2.26.0->homeassistant) (1.26.7) Requirement already satisfied, skipping upgrade: text-unidecode>=1.3 in /usr/local/lib/python3.9/dist-packages (from python-slugify==4.0.1->homeassistant) (1.3) Requirement already satisfied, skipping upgrade: MarkupSafe>=2.0 in /usr/local/lib/python3.9/dist-packages (from jinja2==3.0.3->homeassistant) (2.0.1) Requirement already satisfied, skipping upgrade: pytz in /usr/local/lib/python3.9/dist-packages (from astral==2.2->homeassistant) (2021.3) Requirement already satisfied, skipping upgrade: anyio==3.* in /usr/local/lib/python3.9/dist-packages (from httpcore<0.15.0,>=0.14.0->httpx==0.21.0->homeassistant) (3.3.4) Requirement already satisfied, skipping upgrade: h11<0.13,>=0.11 in /usr/local/lib/python3.9/dist-packages (from httpcore<0.15.0,>=0.14.0->httpx==0.21.0->homeassistant) (0.12.0) Requirement already satisfied, skipping upgrade: pycparser in /usr/local/lib/python3.9/dist-packages (from cffi>=1.12->cryptography==35.0.0->homeassistant) (2.21) Installing collected packages: homeassistant Attempting uninstall: homeassistant Found existing installation: homeassistant 2021.12.7 Uninstalling homeassistant-2021.12.7: Successfully uninstalled homeassistant-2021.12.7 Successfully installed homeassistant-2021.12.9 WARNING: You are using pip version 20.2.4; however, version 21.3.1 is available. You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
try to start it
tingo@kg-bpi:~$ hass --open-ui 2022-01-15 13:31:20 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: cloud 2022-01-15 13:31:20 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for stage 1 - moving forward 2022-01-15 13:31:26 WARNING (MainThread) [homeassistant.components.squeezebox.media_player] The 'host' option near /home/tingo/.homeassistant/configuration.yaml:75 is deprecated, please remove it from your configuration 2022-01-15 13:31:30 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds. 2022-01-15 13:31:35 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds. 2022-01-15 13:31:35 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds. 2022-01-15 13:31:35 WARNING (MainThread) [homeassistant.setup] Setup of input_select is taking over 10 seconds. 2022-01-15 13:31:37 WARNING (MainThread) [homeassistant.components.media_player] Setup of media_player platform squeezebox is taking over 10 seconds. 2022-01-15 13:31:58 WARNING (SyncWorker_3) [homeassistant.bootstrap] Unable to open the Home Assistant UI in a browser. Open it yourself at http://127.0.0.1:8123 2022-01-15 13:32:00 ERROR (MainThread) [homeassistant.components.automation.update_battery_status_group_members] update_battery_status_group_members: Error executing script. Invalid data for call_service at pos 1: Entity ID is an invalid entity ID for dictionary value @ data['entities'] 2022-01-15 13:32:00 ERROR (MainThread) [homeassistant.components.automation.update_battery_status_group_members] Error while executing automation automation.update_battery_status_group_members: Entity ID is an invalid entity ID for dictionary value @ data['entities']
2022-01-01: Home Assistant - 2021.12.7 is installed.
2022-01-01: Home Assistant - upgrade. I stopped Home Assistant, then
tingo@kg-bpi:~$ sudo pip3 install --upgrade homeassistant Collecting homeassistant Downloading homeassistant-2021.12.7-py3-none-any.whl (15.4 MB) |████████████████████████████████| 15.4 MB 8.7 kB/s Requirement already satisfied, skipping upgrade: pip<20.3,>=8.0.3 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (20.2.4) Requirement already satisfied, skipping upgrade: awesomeversion==21.11.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (21.11.0) Requirement already satisfied, skipping upgrade: ifaddr==0.1.7 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (0.1.7) Requirement already satisfied, skipping upgrade: async-timeout==4.0.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (4.0.0) Requirement already satisfied, skipping upgrade: httpx==0.21.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (0.21.0) Collecting voluptuous-serialize==2.5.0 Downloading voluptuous_serialize-2.5.0-py3-none-any.whl (6.8 kB) Requirement already satisfied, skipping upgrade: astral==2.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.2) Requirement already satisfied, skipping upgrade: cryptography==35.0.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (35.0.0) Requirement already satisfied, skipping upgrade: python-slugify==4.0.1 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (4.0.1) Requirement already satisfied, skipping upgrade: bcrypt==3.1.7 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.1.7) Requirement already satisfied, skipping upgrade: PyJWT==2.1.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.1.0) Requirement already satisfied, skipping upgrade: voluptuous==0.12.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (0.12.2) Requirement already satisfied, skipping upgrade: certifi>=2021.5.30 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2021.10.8) Requirement already satisfied, skipping upgrade: jinja2==3.0.3 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.0.3) Requirement already satisfied, skipping upgrade: requests==2.26.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.26.0) Requirement already satisfied, skipping upgrade: aiohttp==3.8.1 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.8.1) Requirement already satisfied, skipping upgrade: yarl==1.6.3 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (1.6.3) Requirement already satisfied, skipping upgrade: atomicwrites==1.4.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (1.4.0) Requirement already satisfied, skipping upgrade: attrs==21.2.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (21.2.0) Requirement already satisfied, skipping upgrade: ciso8601==2.2.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.2.0) Requirement already satisfied, skipping upgrade: pyyaml==6.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (6.0) Requirement already satisfied, skipping upgrade: typing-extensions>=3.6.5 in /usr/local/lib/python3.9/dist-packages (from async-timeout==4.0.0->homeassistant) (3.10.0.2) Requirement already satisfied, skipping upgrade: httpcore<0.15.0,>=0.14.0 in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.0->homeassistant) (0.14.3) Requirement already satisfied, skipping upgrade: sniffio in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.0->homeassistant) (1.2.0) Requirement already satisfied, skipping upgrade: rfc3986[idna2008]<2,>=1.3 in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.0->homeassistant) (1.5.0) Requirement already satisfied, skipping upgrade: charset-normalizer in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.0->homeassistant) (2.0.7) Requirement already satisfied, skipping upgrade: pytz in /usr/local/lib/python3.9/dist-packages (from astral==2.2->homeassistant) (2021.3) Requirement already satisfied, skipping upgrade: cffi>=1.12 in /usr/local/lib/python3.9/dist-packages (from cryptography==35.0.0->homeassistant) (1.15.0) Requirement already satisfied, skipping upgrade: text-unidecode>=1.3 in /usr/local/lib/python3.9/dist-packages (from python-slugify==4.0.1->homeassistant) (1.3) Requirement already satisfied, skipping upgrade: six>=1.4.1 in /usr/local/lib/python3.9/dist-packages (from bcrypt==3.1.7->homeassistant) (1.16.0) Requirement already satisfied, skipping upgrade: MarkupSafe>=2.0 in /usr/local/lib/python3.9/dist-packages (from jinja2==3.0.3->homeassistant) (2.0.1) Requirement already satisfied, skipping upgrade: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests==2.26.0->homeassistant) (1.26.7) Requirement already satisfied, skipping upgrade: idna<4,>=2.5; python_version >= "3" in /usr/local/lib/python3.9/dist-packages (from requests==2.26.0->homeassistant) (3.3) Requirement already satisfied, skipping upgrade: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (1.2.0) Requirement already satisfied, skipping upgrade: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (1.2.0) Requirement already satisfied, skipping upgrade: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (5.2.0) Requirement already satisfied, skipping upgrade: h11<0.13,>=0.11 in /usr/local/lib/python3.9/dist-packages (from httpcore<0.15.0,>=0.14.0->httpx==0.21.0->homeassistant) (0.12.0) Requirement already satisfied, skipping upgrade: anyio==3.* in /usr/local/lib/python3.9/dist-packages (from httpcore<0.15.0,>=0.14.0->httpx==0.21.0->homeassistant) (3.3.4) Requirement already satisfied, skipping upgrade: pycparser in /usr/local/lib/python3.9/dist-packages (from cffi>=1.12->cryptography==35.0.0->homeassistant) (2.21) Installing collected packages: voluptuous-serialize, homeassistant Attempting uninstall: voluptuous-serialize Found existing installation: voluptuous-serialize 2.4.0 Uninstalling voluptuous-serialize-2.4.0: Successfully uninstalled voluptuous-serialize-2.4.0 Attempting uninstall: homeassistant Found existing installation: homeassistant 2021.12.3 Uninstalling homeassistant-2021.12.3: Successfully uninstalled homeassistant-2021.12.3 Successfully installed homeassistant-2021.12.7 voluptuous-serialize-2.5.0 WARNING: You are using pip version 20.2.4; however, version 21.3.1 is available. You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
try starting it
tingo@kg-bpi:~$ hass --open-ui 2022-01-01 14:33:08 WARNING (MainThread) [homeassistant.setup] Setup of timer is taking over 10 seconds. 2022-01-01 14:33:09 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: http, timer, scene, scene.homeassistant, logbook, counter, media_source, input_number, tellstick, tag, input_boolean, group, mill, input_datetime, plant, met, input_text, system_health, zone, input_select, binary_sensor 2022-01-01 14:33:11 WARNING (MainThread) [homeassistant.components.squeezebox.media_player] The 'host' option near /home/tingo/.homeassistant/configuration.yaml:75 is deprecated, please remove it from your configuration 2022-01-01 14:33:15 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds. 2022-01-01 14:33:15 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds. 2022-01-01 14:34:21 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: cast, media_player.dlna_dmr, media_player.dlna_dmr_2 2022-01-01 14:34:23 WARNING (SyncWorker_11) [homeassistant.bootstrap] Unable to open the Home Assistant UI in a browser. Open it yourself at http://127.0.0.1:8123
2021-12-19: Home Assistant - 2021.12.3 is installed.
2021-12-19: Home Assistant - upgrade. I stopped Home Assistant, then
tingo@kg-bpi:~$ sudo pip3 install --upgrade homeassistant Collecting homeassistant Downloading homeassistant-2021.12.3-py3-none-any.whl (15.3 MB) |████████████████████████████████| 15.3 MB 28 kB/s Requirement already satisfied, skipping upgrade: pyyaml==6.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (6.0) Collecting ifaddr==0.1.7 Downloading ifaddr-0.1.7-py2.py3-none-any.whl (10 kB) Collecting httpx==0.21.0 Downloading httpx-0.21.0-py3-none-any.whl (83 kB) |████████████████████████████████| 83 kB 217 kB/s Collecting jinja2==3.0.3 Downloading Jinja2-3.0.3-py3-none-any.whl (133 kB) |████████████████████████████████| 133 kB 3.5 MB/s Requirement already satisfied, skipping upgrade: bcrypt==3.1.7 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (3.1.7) Collecting cryptography==35.0.0 Downloading cryptography-35.0.0.tar.gz (559 kB) |████████████████████████████████| 559 kB 3.4 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Requirement already satisfied, skipping upgrade: certifi>=2021.5.30 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2021.10.8) Requirement already satisfied, skipping upgrade: voluptuous-serialize==2.4.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.4.0) Collecting async-timeout==4.0.0 Downloading async_timeout-4.0.0-py3-none-any.whl (6.1 kB) Requirement already satisfied, skipping upgrade: voluptuous==0.12.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (0.12.2) Collecting atomicwrites==1.4.0 Downloading atomicwrites-1.4.0-py2.py3-none-any.whl (6.8 kB) Requirement already satisfied, skipping upgrade: attrs==21.2.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (21.2.0) Requirement already satisfied, skipping upgrade: PyJWT==2.1.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.1.0) Requirement already satisfied, skipping upgrade: astral==2.2 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.2) Requirement already satisfied, skipping upgrade: requests==2.26.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.26.0) Collecting aiohttp==3.8.1 Downloading aiohttp-3.8.1.tar.gz (7.3 MB) |████████████████████████████████| 7.3 MB 16 kB/s Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing wheel metadata ... done Collecting awesomeversion==21.11.0 Downloading awesomeversion-21.11.0-py3-none-any.whl (13 kB) Requirement already satisfied, skipping upgrade: yarl==1.6.3 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (1.6.3) Requirement already satisfied, skipping upgrade: ciso8601==2.2.0 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (2.2.0) Requirement already satisfied, skipping upgrade: python-slugify==4.0.1 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (4.0.1) Requirement already satisfied, skipping upgrade: pip<20.3,>=8.0.3 in /usr/local/lib/python3.9/dist-packages (from homeassistant) (20.2.4) Collecting httpcore<0.15.0,>=0.14.0 Downloading httpcore-0.14.3-py3-none-any.whl (56 kB) |████████████████████████████████| 56 kB 979 kB/s Requirement already satisfied, skipping upgrade: rfc3986[idna2008]<2,>=1.3 in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.0->homeassistant) (1.5.0) Requirement already satisfied, skipping upgrade: charset-normalizer in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.0->homeassistant) (2.0.7) Requirement already satisfied, skipping upgrade: sniffio in /usr/local/lib/python3.9/dist-packages (from httpx==0.21.0->homeassistant) (1.2.0) Requirement already satisfied, skipping upgrade: MarkupSafe>=2.0 in /usr/local/lib/python3.9/dist-packages (from jinja2==3.0.3->homeassistant) (2.0.1) Requirement already satisfied, skipping upgrade: cffi>=1.1 in /usr/local/lib/python3.9/dist-packages (from bcrypt==3.1.7->homeassistant) (1.15.0) Requirement already satisfied, skipping upgrade: six>=1.4.1 in /usr/local/lib/python3.9/dist-packages (from bcrypt==3.1.7->homeassistant) (1.16.0) Requirement already satisfied, skipping upgrade: typing-extensions>=3.6.5 in /usr/local/lib/python3.9/dist-packages (from async-timeout==4.0.0->homeassistant) (3.10.0.2) Requirement already satisfied, skipping upgrade: pytz in /usr/local/lib/python3.9/dist-packages (from astral==2.2->homeassistant) (2021.3) Requirement already satisfied, skipping upgrade: idna<4,>=2.5; python_version >= "3" in /usr/local/lib/python3.9/dist-packages (from requests==2.26.0->homeassistant) (3.3) Requirement already satisfied, skipping upgrade: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests==2.26.0->homeassistant) (1.26.7) Requirement already satisfied, skipping upgrade: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp==3.8.1->homeassistant) (5.2.0) Collecting aiosignal>=1.1.2 Downloading aiosignal-1.2.0-py3-none-any.whl (8.2 kB) Collecting frozenlist>=1.1.1 Downloading frozenlist-1.2.0.tar.gz (65 kB) |████████████████████████████████| 65 kB 940 kB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Requirement already satisfied, skipping upgrade: text-unidecode>=1.3 in /usr/local/lib/python3.9/dist-packages (from python-slugify==4.0.1->homeassistant) (1.3) Requirement already satisfied, skipping upgrade: anyio==3.* in /usr/local/lib/python3.9/dist-packages (from httpcore<0.15.0,>=0.14.0->httpx==0.21.0->homeassistant) (3.3.4) Requirement already satisfied, skipping upgrade: h11<0.13,>=0.11 in /usr/local/lib/python3.9/dist-packages (from httpcore<0.15.0,>=0.14.0->httpx==0.21.0->homeassistant) (0.12.0) Requirement already satisfied, skipping upgrade: pycparser in /usr/local/lib/python3.9/dist-packages (from cffi>=1.1->bcrypt==3.1.7->homeassistant) (2.21) Building wheels for collected packages: cryptography, aiohttp, frozenlist Building wheel for cryptography (PEP 517) ... done Created wheel for cryptography: filename=cryptography-35.0.0-cp39-cp39-linux_armv7l.whl size=2581151 sha256=2f319e0c8b09e466cf16d9f5613d0738795c3cbf190197db7d6f7757d5ef3551 Stored in directory: /root/.cache/pip/wheels/f1/d7/44/fc98c2fb1e604449451fd55b56541981ffe114efafe756bef1 Building wheel for aiohttp (PEP 517) ... done Created wheel for aiohttp: filename=aiohttp-3.8.1-cp39-cp39-linux_armv7l.whl size=1125600 sha256=b22266ac6d1899ab627f248c2ec46daaba5d1f4f0fe06d8d68df9b1d53ff5a68 Stored in directory: /root/.cache/pip/wheels/18/3d/16/11bf4b984ebad9a308297e1dd7ece9703314c8a4361f770e4f Building wheel for frozenlist (PEP 517) ... done Created wheel for frozenlist: filename=frozenlist-1.2.0-cp39-cp39-linux_armv7l.whl size=177682 sha256=11744a769b3984b33cd242694991c90142098ce439b5cbb7b33df12979adde15 Stored in directory: /root/.cache/pip/wheels/20/b6/a7/fef79ecda1f4c84b4a38bee45e3f10ae088752105d7e480382 Successfully built cryptography aiohttp frozenlist Installing collected packages: ifaddr, httpcore, httpx, jinja2, cryptography, async-timeout, atomicwrites, frozenlist, aiosignal, aiohttp, awesomeversion, homeassistant Attempting uninstall: httpcore Found existing installation: httpcore 0.13.7 Uninstalling httpcore-0.13.7: Successfully uninstalled httpcore-0.13.7 Attempting uninstall: httpx Found existing installation: httpx 0.19.0 Uninstalling httpx-0.19.0: Successfully uninstalled httpx-0.19.0 Attempting uninstall: jinja2 Found existing installation: Jinja2 3.0.2 Uninstalling Jinja2-3.0.2: Successfully uninstalled Jinja2-3.0.2 Attempting uninstall: cryptography Found existing installation: cryptography 3.4.8 Uninstalling cryptography-3.4.8: Successfully uninstalled cryptography-3.4.8 Attempting uninstall: async-timeout Found existing installation: async-timeout 3.0.1 Uninstalling async-timeout-3.0.1: Successfully uninstalled async-timeout-3.0.1 Attempting uninstall: aiohttp Found existing installation: aiohttp 3.7.4.post0 Uninstalling aiohttp-3.7.4.post0: Successfully uninstalled aiohttp-3.7.4.post0 Attempting uninstall: awesomeversion Found existing installation: awesomeversion 21.10.1 Uninstalling awesomeversion-21.10.1: Successfully uninstalled awesomeversion-21.10.1 Attempting uninstall: homeassistant Found existing installation: homeassistant 2021.11.3 Uninstalling homeassistant-2021.11.3: Successfully uninstalled homeassistant-2021.11.3 Successfully installed aiohttp-3.8.1 aiosignal-1.2.0 async-timeout-4.0.0 atomicwrites-1.4.0 awesomeversion-21.11.0 cryptography-35.0.0 frozenlist-1.2.0 homeassistant-2021.12.3 httpcore-0.14.3 httpx-0.21.0 ifaddr-0.1.7 jinja2-3.0.3 WARNING: You are using pip version 20.2.4; however, version 21.3.1 is available. You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
try starting it
tingo@kg-bpi:~$ hass --open-ui 2021-12-19 22:08:14 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: recorder 2021-12-19 22:08:14 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //home/tingo/.homeassistant/home-assistant_v2.db was shutdown cleanly 2021-12-19 22:11:34 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: http, tag, scene, scene.homeassistant, input_text, zone, input_number, media_source, plant, input_datetime, timer, group, input_select, input_boolean, logbook, counter, system_health 2021-12-19 22:12:00 WARNING (MainThread) [homeassistant.components.squeezebox.media_player] The 'host' option near /home/tingo/.homeassistant/configuration.yaml:75 is deprecated, please remove it from your configuration 2021-12-19 22:12:42 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: tts 2021-12-19 22:13:34 WARNING (SyncWorker_2) [homeassistant.bootstrap] Unable to open the Home Assistant UI in a browser. Open it yourself at http://127.0.0.1:8123 2021-12-19 22:17:10 WARNING (MainThread) [homeassistant.components.squeezebox.media_player] The 'host' option is deprecated, please remove it from your configuration
yes, it works.
2021-11-15: bpi - bolt - update via composer
tingo@kg-bpi:/var/www/sites/logb$ composer update Loading composer repositories with package information Updating dependencies Lock file operations: 5 installs, 40 updates, 2 removals - Removing ircmaxell/password-compat (v1.0.4) - Removing paragonie/random_compat (v9.99.99) - Upgrading bolt/bolt (v3.7.0 => 3.7.4.1) - Upgrading bolt/filesystem (v2.5.2 => v2.5.3) - Upgrading composer/ca-bundle (1.2.6 => 1.3.1) - Upgrading composer/composer (1.9.2 => 2.1.12) - Locking composer/metadata-minifier (1.0.0) - Upgrading composer/semver (1.5.1 => 3.2.6) - Upgrading composer/spdx-licenses (1.5.2 => 1.5.5) - Upgrading composer/xdebug-handler (1.4.0 => 2.0.2) - Upgrading doctrine/annotations (v1.8.0 => 1.13.2) - Upgrading doctrine/cache (1.10.0 => 1.12.1) - Upgrading doctrine/collections (1.6.4 => 1.6.8) - Upgrading doctrine/dbal (v2.10.1 => 2.13.5) - Locking doctrine/deprecations (v0.5.3) - Upgrading doctrine/event-manager (1.1.0 => 1.1.1) - Upgrading doctrine/lexer (1.2.0 => 1.2.1) - Upgrading doctrine/persistence (1.3.6 => 1.3.8) - Upgrading doctrine/reflection (v1.1.0 => 1.2.2) - Upgrading embed/embed (v3.4.2 => 3.4.17) - Upgrading erusev/parsedown-extra (0.7.1 => 0.8.1) - Upgrading filp/whoops (2.7.1 => 2.14.4) - Upgrading guzzlehttp/promises (v1.3.1 => 1.5.1) - Upgrading justinrainbow/json-schema (5.2.9 => 5.2.11) - Upgrading league/flysystem (1.0.63 => 1.1.5) - Locking league/mime-type-detection (1.8.0) - Upgrading monolog/monolog (1.25.3 => 1.26.1) - Locking psr/cache (1.0.1) - Upgrading psr/log (1.1.2 => 1.1.4) - Locking react/promise (v2.8.0) - Upgrading seld/jsonlint (1.7.2 => 1.8.3) - Upgrading seld/phar-utils (1.0.2 => 1.1.2) - Upgrading stecman/symfony-console-completion (0.10.1 => 0.11.0) - Upgrading symfony/polyfill-ctype (v1.13.1 => v1.23.0) - Upgrading symfony/polyfill-intl-icu (v1.13.1 => v1.23.0) - Upgrading symfony/polyfill-mbstring (v1.13.1 => v1.23.1) - Upgrading symfony/polyfill-php54 (v1.13.1 => v1.20.0) - Upgrading symfony/polyfill-php55 (v1.13.1 => v1.20.0) - Upgrading symfony/polyfill-php56 (v1.13.1 => v1.20.0) - Upgrading symfony/polyfill-php70 (v1.13.1 => v1.20.0) - Upgrading symfony/polyfill-php71 (v1.13.1 => v1.20.0) - Upgrading symfony/polyfill-util (v1.13.1 => v1.23.0) - Upgrading symfony/requirements-checker (v1.1.5 => v1.1.8) - Upgrading twig/twig (v1.42.4 => v1.44.5) - Upgrading ua-parser/uap-php (v3.9.4 => v3.9.14) - Upgrading webmozart/assert (1.6.0 => 1.10.0) - Upgrading webmozart/glob (4.1.0 => 4.4.0) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 5 installs, 40 updates, 2 removals - Downloading composer/ca-bundle (1.3.1) - Downloading ua-parser/uap-php (v3.9.14) - Downloading symfony/polyfill-ctype (v1.23.0) - Downloading twig/twig (v1.44.5) - Downloading symfony/polyfill-mbstring (v1.23.1) - Downloading psr/log (1.1.4) - Downloading symfony/polyfill-util (v1.23.0) - Downloading monolog/monolog (1.26.1) - Downloading symfony/polyfill-intl-icu (v1.23.0) - Downloading stecman/symfony-console-completion (0.11.0) - Downloading guzzlehttp/promises (1.5.1) - Downloading filp/whoops (2.14.4) - Downloading erusev/parsedown-extra (0.8.1) - Downloading embed/embed (3.4.17) - Downloading doctrine/event-manager (1.1.1) - Downloading doctrine/deprecations (v0.5.3) - Downloading doctrine/cache (1.12.1) - Downloading doctrine/dbal (2.13.5) - Downloading seld/phar-utils (1.1.2) - Downloading seld/jsonlint (1.8.3) - Downloading react/promise (v2.8.0) - Downloading justinrainbow/json-schema (5.2.11) - Downloading composer/xdebug-handler (2.0.2) - Downloading composer/spdx-licenses (1.5.5) - Downloading composer/semver (3.2.6) - Downloading composer/metadata-minifier (1.0.0) - Downloading composer/composer (2.1.12) - Downloading webmozart/assert (1.10.0) - Downloading webmozart/glob (4.4.0) - Downloading league/mime-type-detection (1.8.0) - Downloading league/flysystem (1.1.5) - Downloading bolt/filesystem (v2.5.3) - Downloading symfony/requirements-checker (v1.1.8) - Downloading psr/cache (1.0.1) - Downloading doctrine/lexer (1.2.1) - Downloading doctrine/annotations (1.13.2) - Downloading doctrine/reflection (1.2.2) - Downloading doctrine/collections (1.6.8) - Downloading doctrine/persistence (1.3.8) - Downloading bolt/bolt (3.7.4.1) - Removing paragonie/random_compat (v9.99.99) - Removing ircmaxell/password-compat (v1.0.4) - Upgrading composer/ca-bundle (1.2.6 => 1.3.1): Extracting archive - Upgrading ua-parser/uap-php (v3.9.4 => v3.9.14): Extracting archive - Upgrading symfony/polyfill-ctype (v1.13.1 => v1.23.0): Extracting archive - Upgrading twig/twig (v1.42.4 => v1.44.5): Extracting archive - Removing symfony/polyfill-php56 (v1.13.1) - Installing symfony/polyfill-php56 (v1.20.0) - Removing symfony/polyfill-php55 (v1.13.1) - Installing symfony/polyfill-php55 (v1.20.0) - Removing symfony/polyfill-php54 (v1.13.1) - Installing symfony/polyfill-php54 (v1.20.0) - Upgrading symfony/polyfill-mbstring (v1.13.1 => v1.23.1): Extracting archive - Upgrading psr/log (1.1.2 => 1.1.4): Extracting archive - Upgrading symfony/polyfill-util (v1.13.1 => v1.23.0): Extracting archive - Removing symfony/polyfill-php70 (v1.13.1) - Installing symfony/polyfill-php70 (v1.20.0) - Upgrading monolog/monolog (1.25.3 => 1.26.1): Extracting archive - Upgrading symfony/polyfill-intl-icu (v1.13.1 => v1.23.0): Extracting archive - Upgrading stecman/symfony-console-completion (0.10.1 => 0.11.0): Extracting archive - Upgrading guzzlehttp/promises (v1.3.1 => 1.5.1): Extracting archive - Upgrading filp/whoops (2.7.1 => 2.14.4): Extracting archive - Upgrading erusev/parsedown-extra (0.7.1 => 0.8.1): Extracting archive - Upgrading embed/embed (v3.4.2 => 3.4.17): Extracting archive - Upgrading doctrine/event-manager (1.1.0 => 1.1.1): Extracting archive - Installing doctrine/deprecations (v0.5.3): Extracting archive - Upgrading doctrine/cache (1.10.0 => 1.12.1): Extracting archive - Upgrading doctrine/dbal (v2.10.1 => 2.13.5): Extracting archive - Upgrading seld/phar-utils (1.0.2 => 1.1.2): Extracting archive - Upgrading seld/jsonlint (1.7.2 => 1.8.3): Extracting archive - Installing react/promise (v2.8.0): Extracting archive - Upgrading justinrainbow/json-schema (5.2.9 => 5.2.11): Extracting archive - Upgrading composer/xdebug-handler (1.4.0 => 2.0.2): Extracting archive - Upgrading composer/spdx-licenses (1.5.2 => 1.5.5): Extracting archive - Upgrading composer/semver (1.5.1 => 3.2.6): Extracting archive - Installing composer/metadata-minifier (1.0.0): Extracting archive - Upgrading composer/composer (1.9.2 => 2.1.12): Extracting archive - Upgrading webmozart/assert (1.6.0 => 1.10.0): Extracting archive - Upgrading webmozart/glob (4.1.0 => 4.4.0): Extracting archive - Installing league/mime-type-detection (1.8.0): Extracting archive - Upgrading league/flysystem (1.0.63 => 1.1.5): Extracting archive - Removing symfony/polyfill-php71 (v1.13.1) - Installing symfony/polyfill-php71 (v1.20.0) - Upgrading bolt/filesystem (v2.5.2 => v2.5.3): Extracting archive - Upgrading symfony/requirements-checker (v1.1.5 => v1.1.8): Extracting archive - Installing psr/cache (1.0.1): Extracting archive - Upgrading doctrine/lexer (1.2.0 => 1.2.1): Extracting archive - Upgrading doctrine/annotations (v1.8.0 => 1.13.2): Extracting archive - Upgrading doctrine/reflection (v1.1.0 => 1.2.2): Extracting archive - Upgrading doctrine/collections (1.6.4 => 1.6.8): Extracting archive - Upgrading doctrine/persistence (1.3.6 => 1.3.8): Extracting archive - Upgrading bolt/bolt (v3.7.0 => 3.7.4.1): Extracting archive Package bolt/pathogen is abandoned, you should avoid using it. No replacement was suggested. Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead. Package silex/silex is abandoned, you should avoid using it. Use symfony/flex instead. Package silex/web-profiler is abandoned, you should avoid using it. Use symfony/web-profiler-bundle instead. Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead. Generating autoload files 29 packages you are using are looking for funding. Use the `composer fund` command to find out more! > Bolt\Composer\ScriptHandler::updateProject > Bolt\Composer\ScriptHandler::installAssets Installing bolt_assets to /var/www/sites/logb/public/bolt-public PHP Fatal error: Class Symfony\Component\Console\Style\SymfonyStyle contains 4 abstract methods and must therefore be declared abstract or implement the remaining methods (Symfony\Component\Console\Output\OutputInterface::isQuiet, Symfony\Component\Console\Output\OutputInterface::isVerbose, Symfony\Component\Console\Output\OutputInterface::isVeryVerbose, ...) in /var/www/sites/logb/vendor/symfony/console/Style/SymfonyStyle.php on line 33 Fatal error: Class Symfony\Component\Console\Style\SymfonyStyle contains 4 abstract methods and must therefore be declared abstract or implement the remaining methods (Symfony\Component\Console\Output\OutputInterface::isQuiet, Symfony\Component\Console\Output\OutputInterface::isVerbose, Symfony\Component\Console\Output\OutputInterface::isVeryVerbose, ...) in /var/www/sites/logb/vendor/symfony/console/Style/SymfonyStyle.php on line 33
hmm, ok. Go ahead with the cache clear
tingo@kg-bpi:/var/www/sites/logb$ sudo -u www-data -g www-data php app/nut cache:clear Flushing Bolt's cache ===================== [OK] Cache cleared!
and database update
tingo@kg-bpi:/var/www/sites/logb$ sudo -u www-data -g www-data php app/nut database:update [OK] Your database is already up to date.
Yes, that worked. Now Bolt 3.7.4 is in.
2021-11-15: bpi - bolt does not work, I think some php-related packages are missing. Try to fix that. apt install
tingo@kg-bpi:~$ sudo apt install php7.4-curl php7.4-fpm php7.4-gd php7.4-intl php7.4-mbstring php7.4-sqlite3 php7.4-xml php7.4-zip Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: fontconfig-config fonts-dejavu-core libdeflate0 libfontconfig1 libfreetype6 libgd3 libjbig0 libtiff5 libwebp6 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxpm4 libxslt1.1 libzip4 Suggested packages: libgd-tools php-pear The following NEW packages will be installed: fontconfig-config fonts-dejavu-core libdeflate0 libfontconfig1 libfreetype6 libgd3 libjbig0 libtiff5 libwebp6 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxpm4 libxslt1.1 libzip4 php7.4-curl php7.4-fpm php7.4-gd php7.4-intl php7.4-mbstring php7.4-sqlite3 php7.4-xml php7.4-zip 0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded. Need to get 6,096 kB of archives. After this operation, 14.4 MB of additional disk space will be used. [..] Warning: Could not load Apache 2.4 maintainer script helper. Processing triggers for php7.4-cli (7.4.25-1+deb11u1) ... Processing triggers for php7.4-fpm (7.4.25-1+deb11u1) ...
after fixing /etc/nginx/global/php-fpm.conf too and restarting nginx, I get a bit further. Lines changed
#fastcgi_pass unix:/run/php/php7.3-fpm.sock; fastcgi_pass unix:/run/php/php7.4-fpm.sock;
I also need composer
tingo@kg-bpi:~$ sudo apt install composer Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: jsonlint php-composer-ca-bundle php-composer-semver php-composer-spdx-licenses php-composer-xdebug-handler php-json-schema php-psr-container php-psr-log php-react-promise php-symfony-console php-symfony-filesystem php-symfony-finder php-symfony-polyfill-php80 php-symfony-process php-symfony-service-contracts Suggested packages: fossil mercurial subversion php-symfony-event-dispatcher php-symfony-lock php-symfony-service-implementation The following NEW packages will be installed: composer jsonlint php-composer-ca-bundle php-composer-semver php-composer-spdx-licenses php-composer-xdebug-handler php-json-schema php-psr-container php-psr-log php-react-promise php-symfony-console php-symfony-filesystem php-symfony-finder php-symfony-polyfill-php80 php-symfony-process php-symfony-service-contracts 0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded. Need to get 746 kB of archives. After this operation, 3,963 kB of additional disk space will be used. [..] Setting up composer (2.0.9-2) ... Processing triggers for man-db (2.9.4-2) ...
2021-11-14: bpi - homeassistant - second start
tingo@kg-bpi:~$ hass --open-ui 2021-11-14 23:23:11 WARNING (MainThread) [homeassistant.components.squeezebox.media_player] The 'host' option near /home/tingo/.homeassistant/configuration.yaml:75 is deprecated, please remove it from your configuration 2021-11-14 23:23:11 WARNING (MainThread) [homeassistant.components.squeezebox.media_player] The 'password' option near /home/tingo/.homeassistant/configuration.yaml:75 is deprecated, please remove it from your configuration 2021-11-14 23:23:12 WARNING (MainThread) [homeassistant.components.squeezebox.media_player] The 'username' option near /home/tingo/.homeassistant/configuration.yaml:75 is deprecated, please remove it from your configuration 2021-11-14 23:23:21 WARNING (SyncWorker_0) [homeassistant.bootstrap] Unable to open the Home Assistant UI in a browser. Open it yourself at http://127.0.0.1:8123
much quicker now.
2021-11-14: bpi - homeassistant - try starting it
tingo@kg-bpi:~$ hass --open-ui 2021-11-14 22:01:08 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //home/tingo/.homeassistant/home-assistant_v2.db was shutdown cleanly 2021-11-14 22:51:33 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: cloud 2021-11-14 22:53:12 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: met 2021-11-14 22:55:23 WARNING (MainThread) [homeassistant.components.squeezebox.media_player] The 'host' option near /home/tingo/.homeassistant/configuration.yaml:75 is deprecated, please remove it from your configuration 2021-11-14 22:55:23 WARNING (MainThread) [homeassistant.components.squeezebox.media_player] The 'password' option near /home/tingo/.homeassistant/configuration.yaml:75 is deprecated, please remove it from your configuration 2021-11-14 22:55:23 WARNING (MainThread) [homeassistant.components.squeezebox.media_player] The 'username' option near /home/tingo/.homeassistant/configuration.yaml:75 is deprecated, please remove it from your configuration 2021-11-14 22:55:23 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: squeezebox, media_player.squeezebox 2021-11-14 22:57:33 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for stage 2 - moving forward 2021-11-14 23:14:46 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: zeroconf 2021-11-14 23:16:55 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for bootstrap - moving forward 2021-11-14 23:16:55 WARNING (SyncWorker_4) [homeassistant.bootstrap] Unable to open the Home Assistant UI in a browser. Open it yourself at http://127.0.0.1:8123 2021-11-14 23:16:56 WARNING (Recorder) [homeassistant.components.recorder.migration] Database is about to upgrade. Schema version: 9 2021-11-14 23:16:56 WARNING (Recorder) [homeassistant.components.recorder.migration] Adding index `ix_states_old_state_id` to database. Note: this can take several minutes on large databases and slow computers. Please be patient!
that took some time (a few hours). Additionally,. I get warnings like these
2021-11-14 23:21:00 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'mappingproxy object' has no attribute 'icon' when rendering '{%- for item in states.sensor if ( not is_state_attr(item.entity_id, 'hidden', true) and ( is_state_attr(item.entity_id, 'device_class', 'battery') or 'battery' in item.attributes.icon | lower or (item.entity_id | lower).endswith('_bat') or (item.name | lower).endswith('_bat') ) or ( ( 'battery' in item.entity_id | lower or 'battery' in item.name | lower ) and ( item.attributes.icon is not defined ) and ( not is_state_attr(item.entity_id, 'battery_alert_disabled', true) ) and ( not is_state_attr(item.entity_id, 'restored', true) ) ) ) -%} {{ item.entity_id }}{% if not loop.last %}, {% endif %} {%- endfor -%}'
probably the battery warning automation.
2021-11-14: bpi - homeassistant - install it again
tingo@kg-bpi:~$ sudo pip3 install homeassistant Collecting homeassistant Downloading homeassistant-2021.11.3-py3-none-any.whl (14.5 MB) |████████████████████████████████| 14.5 MB 31 kB/s Collecting pyyaml==6.0 Downloading PyYAML-6.0.tar.gz (124 kB) |████████████████████████████████| 124 kB 3.5 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting yarl==1.6.3 Downloading yarl-1.6.3.tar.gz (176 kB) |████████████████████████████████| 176 kB 3.7 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting jinja2==3.0.2 Downloading Jinja2-3.0.2-py3-none-any.whl (133 kB) |████████████████████████████████| 133 kB 3.9 MB/s Collecting pip<20.3,>=8.0.3 Downloading pip-20.2.4-py2.py3-none-any.whl (1.5 MB) |████████████████████████████████| 1.5 MB 3.1 MB/s Collecting bcrypt==3.1.7 Using cached bcrypt-3.1.7.tar.gz (42 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting PyJWT==2.1.0 Downloading PyJWT-2.1.0-py3-none-any.whl (16 kB) Collecting certifi>=2021.5.30 Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB) |████████████████████████████████| 149 kB 3.6 MB/s Collecting aiohttp==3.7.4.post0 Downloading aiohttp-3.7.4.post0.tar.gz (1.1 MB) |████████████████████████████████| 1.1 MB 3.8 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting attrs==21.2.0 Downloading attrs-21.2.0-py2.py3-none-any.whl (53 kB) |████████████████████████████████| 53 kB 473 kB/s Collecting httpx==0.19.0 Downloading httpx-0.19.0-py3-none-any.whl (77 kB) |████████████████████████████████| 77 kB 1.1 MB/s Collecting python-slugify==4.0.1 Using cached python-slugify-4.0.1.tar.gz (11 kB) Collecting cryptography==3.4.8 Downloading cryptography-3.4.8.tar.gz (546 kB) |████████████████████████████████| 546 kB 2.8 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting voluptuous==0.12.2 Downloading voluptuous-0.12.2.tar.gz (48 kB) |████████████████████████████████| 48 kB 1.1 MB/s Collecting ciso8601==2.2.0 Downloading ciso8601-2.2.0.tar.gz (18 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting async-timeout==3.0.1 Using cached async_timeout-3.0.1-py3-none-any.whl (8.2 kB) Collecting astral==2.2 Downloading astral-2.2-py2.py3-none-any.whl (30 kB) Collecting requests==2.26.0 Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB) |████████████████████████████████| 62 kB 213 kB/s Collecting awesomeversion==21.10.1 Downloading awesomeversion-21.10.1-py3-none-any.whl (13 kB) Collecting voluptuous-serialize==2.4.0 Using cached voluptuous_serialize-2.4.0-py3-none-any.whl (6.7 kB) Collecting multidict<7.0,>=4.5 Downloading multidict-5.2.0.tar.gz (49 kB) |████████████████████████████████| 49 kB 1.2 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting chardet<5.0,>=2.0 Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB) |████████████████████████████████| 178 kB 3.8 MB/s Collecting typing-extensions>=3.6.5 Downloading typing_extensions-3.10.0.2-py3-none-any.whl (26 kB) Collecting pytz Downloading pytz-2021.3-py2.py3-none-any.whl (503 kB) |████████████████████████████████| 503 kB 3.9 MB/s Collecting cffi>=1.1 Using cached cffi-1.15.0-cp39-cp39-linux_armv7l.whl Collecting six>=1.4.1 Downloading six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting charset-normalizer Downloading charset_normalizer-2.0.7-py3-none-any.whl (38 kB) Collecting sniffio Using cached sniffio-1.2.0-py3-none-any.whl (10 kB) Collecting rfc3986[idna2008]<2,>=1.3 Downloading rfc3986-1.5.0-py2.py3-none-any.whl (31 kB) Collecting httpcore<0.14.0,>=0.13.3 Downloading httpcore-0.13.7-py3-none-any.whl (58 kB) |████████████████████████████████| 58 kB 1.3 MB/s Collecting MarkupSafe>=2.0 Downloading MarkupSafe-2.0.1.tar.gz (18 kB) Collecting text-unidecode>=1.3 Using cached text_unidecode-1.3-py2.py3-none-any.whl (78 kB) Collecting idna<4,>=2.5 Downloading idna-3.3-py3-none-any.whl (61 kB) |████████████████████████████████| 61 kB 882 kB/s Collecting urllib3<1.27,>=1.21.1 Downloading urllib3-1.26.7-py2.py3-none-any.whl (138 kB) |████████████████████████████████| 138 kB 3.3 MB/s Collecting pycparser Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB) Collecting anyio==3.* Downloading anyio-3.3.4-py3-none-any.whl (78 kB) |████████████████████████████████| 78 kB 790 kB/s Collecting h11<0.13,>=0.11 Downloading h11-0.12.0-py3-none-any.whl (54 kB) |████████████████████████████████| 54 kB 376 kB/s Building wheels for collected packages: aiohttp, bcrypt, ciso8601, cryptography, python-slugify, pyyaml, voluptuous, yarl, MarkupSafe, multidict Building wheel for aiohttp (PEP 517) ... done Created wheel for aiohttp: filename=aiohttp-3.7.4.post0-cp39-cp39-linux_armv7l.whl size=1273212 sha256=8cfd112b207992eec65bd29f7b7283d73c22dffa12942e203f8667513065bc79 Stored in directory: /root/.cache/pip/wheels/c4/06/b4/2ded700b7df0d2d89cbdb230e87224e210320e91d430c9dd45 Building wheel for bcrypt (PEP 517) ... done Created wheel for bcrypt: filename=bcrypt-3.1.7-cp39-cp39-linux_armv7l.whl size=53097 sha256=dcdeaa225708d59a9a7e81bc2f53a23bc00b027450504b49a55fc4366b1b5350 Stored in directory: /root/.cache/pip/wheels/a2/df/9f/3e737db43b7e03632c1c23099d36e022c9fc5fb98e1b283fd2 Building wheel for ciso8601 (PEP 517) ... done Created wheel for ciso8601: filename=ciso8601-2.2.0-cp39-cp39-linux_armv7l.whl size=29280 sha256=dec6ad91a0c47aa9f5ddd65553c073b4ee09dab426aea876f40232eb5fd82307 Stored in directory: /root/.cache/pip/wheels/eb/ef/30/b91c5119b2581a9d66d18f827d53432f85417ffab180f3e5b8 Building wheel for cryptography (PEP 517) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /tmp/tmpbpdrxjgt_in_process.py build_wheel /tmp/tmpb_f2efx3 cwd: /tmp/pip-install-u8yohsn0/cryptography_30ad23fd5911460da9778e6bbf085265 Complete output (165 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-armv7l-3.9 creating build/lib.linux-armv7l-3.9/cryptography copying src/cryptography/utils.py -> build/lib.linux-armv7l-3.9/cryptography copying src/cryptography/fernet.py -> build/lib.linux-armv7l-3.9/cryptography copying src/cryptography/exceptions.py -> build/lib.linux-armv7l-3.9/cryptography copying src/cryptography/__init__.py -> build/lib.linux-armv7l-3.9/cryptography copying src/cryptography/__about__.py -> build/lib.linux-armv7l-3.9/cryptography creating build/lib.linux-armv7l-3.9/cryptography/x509 copying src/cryptography/x509/oid.py -> build/lib.linux-armv7l-3.9/cryptography/x509 copying src/cryptography/x509/ocsp.py -> build/lib.linux-armv7l-3.9/cryptography/x509 copying src/cryptography/x509/name.py -> build/lib.linux-armv7l-3.9/cryptography/x509 copying src/cryptography/x509/general_name.py -> build/lib.linux-armv7l-3.9/cryptography/x509 copying src/cryptography/x509/extensions.py -> build/lib.linux-armv7l-3.9/cryptography/x509 copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-armv7l-3.9/cryptography/x509 copying src/cryptography/x509/base.py -> build/lib.linux-armv7l-3.9/cryptography/x509 copying src/cryptography/x509/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/x509 creating build/lib.linux-armv7l-3.9/cryptography/hazmat copying src/cryptography/hazmat/_types.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat copying src/cryptography/hazmat/_oid.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat copying src/cryptography/hazmat/_der.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat copying src/cryptography/hazmat/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat creating build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives creating build/lib.linux-armv7l-3.9/cryptography/hazmat/bindings copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/bindings creating build/lib.linux-armv7l-3.9/cryptography/hazmat/backends copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends creating build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/twofactor creating build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/serialization copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/serialization copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/serialization copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/serialization copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/serialization copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/serialization creating build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/kdf creating build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/ciphers creating build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric creating build/lib.linux-armv7l-3.9/cryptography/hazmat/bindings/openssl copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/bindings/openssl copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/bindings/openssl copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/bindings/openssl creating build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl running egg_info writing src/cryptography.egg-info/PKG-INFO writing dependency_links to src/cryptography.egg-info/dependency_links.txt writing requirements to src/cryptography.egg-info/requires.txt writing top-level names to src/cryptography.egg-info/top_level.txt reading manifest file 'src/cryptography.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching 'docs/_build' warning: no previously-included files found matching 'vectors' warning: no previously-included files matching '*' found under directory 'vectors' warning: no previously-included files matching '*' found under directory '.github' warning: no previously-included files found matching 'release.py' warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching 'codecov.yml' warning: no previously-included files found matching '.readthedocs.yml' warning: no previously-included files found matching 'dev-requirements.txt' warning: no previously-included files found matching 'tox.ini' warning: no previously-included files found matching 'mypy.ini' warning: no previously-included files matching '*' found under directory '.zuul.d' warning: no previously-included files matching '*' found under directory '.zuul.playbooks' adding license file 'LICENSE' adding license file 'LICENSE.APACHE' adding license file 'LICENSE.BSD' adding license file 'LICENSE.PSF' writing manifest file 'src/cryptography.egg-info/SOURCES.txt' copying src/cryptography/py.typed -> build/lib.linux-armv7l-3.9/cryptography running build_ext generating cffi module 'build/temp.linux-armv7l-3.9/_padding.c' creating build/temp.linux-armv7l-3.9 generating cffi module 'build/temp.linux-armv7l-3.9/_openssl.c' running build_rust =============================DEBUG ASSISTANCE============================= If you are seeing a compilation error please try the following steps to successfully install cryptography: 1) Upgrade to the latest pip and try again. This will fix errors for most users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip 2) Read https://cryptography.io/en/latest/installation.html for specific instructions for your platform. 3) Check our frequently asked questions for more information: https://cryptography.io/en/latest/faq.html 4) Ensure you have a recent Rust toolchain installed: https://cryptography.io/en/latest/installation.html#rust 5) If you are experiencing issues with Rust for *this release only* you may set the environment variable `CRYPTOGRAPHY_DONT_BUILD_RUST=1`. =============================DEBUG ASSISTANCE============================= error: can't find Rust compiler If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler. To update pip, run: pip install --upgrade pip and then retry package installation. If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain. This package requires Rust >=1.41.0. ---------------------------------------- ERROR: Failed building wheel for cryptography Building wheel for python-slugify (setup.py) ... done Created wheel for python-slugify: filename=python_slugify-4.0.1-py2.py3-none-any.whl size=6767 sha256=af7f6fff7a60ad233133b72f2b3db1025274991616d6cc3def447d499707930f Stored in directory: /root/.cache/pip/wheels/84/5b/00/3ebff44b1e0a380d959960828803a9486ff2433728cceff666 Building wheel for pyyaml (PEP 517) ... done Created wheel for pyyaml: filename=PyYAML-6.0-cp39-cp39-linux_armv7l.whl size=45331 sha256=cb1b933e08e41c3b19640edf7008c49b1b26c7e429b483fea08962cd07fa898e Stored in directory: /root/.cache/pip/wheels/b4/0f/9a/d6af48581dda678920fccfb734f5d9f827c6ed5b4074c7eda8 Building wheel for voluptuous (setup.py) ... done Created wheel for voluptuous: filename=voluptuous-0.12.2-py3-none-any.whl size=29552 sha256=f413bd978cc071116828b0bb6f94025606bf0a67670b3b40c2c1b4c46a289168 Stored in directory: /root/.cache/pip/wheels/50/80/ab/ab37c8824a928c42a261bce71227504b6ef12276ef28f0667b Building wheel for yarl (PEP 517) ... done Created wheel for yarl: filename=yarl-1.6.3-cp39-cp39-linux_armv7l.whl size=266684 sha256=b665bec33ebd42638c82755215a144df95ac132c39edee0c8c5cdaa6e4b74c17 Stored in directory: /root/.cache/pip/wheels/c2/03/d3/a7ea30efd0c84c03fd1caf7757949a1dedf797361267741ef0 Building wheel for MarkupSafe (setup.py) ... done Created wheel for MarkupSafe: filename=MarkupSafe-2.0.1-cp39-cp39-linux_armv7l.whl size=25358 sha256=f144f3917742c52ee7f7dd997ddc5264360e16099aae9382334692d103a3b9c3 Stored in directory: /root/.cache/pip/wheels/9f/6d/c8/1f59b07cf85ae842908006ec28f4477f7e4578df72c3eb0e46 Building wheel for multidict (PEP 517) ... done Created wheel for multidict: filename=multidict-5.2.0-cp39-cp39-linux_armv7l.whl size=123681 sha256=a3d4772d6f670f1361b5011533709cf18e5c21305ed07684a394f3dd52bb3a89 Stored in directory: /root/.cache/pip/wheels/07/65/1c/0a6efe34fe0a18f6bdd9441a8d8c16615fe3285098aa2c0898 Successfully built aiohttp bcrypt ciso8601 python-slugify pyyaml voluptuous yarl MarkupSafe multidict Failed to build cryptography ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
so, is here a rust compiler package? Hmm, rustc perhaps
tingo@kg-bpi:~$ sudo apt install rustc Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libllvm11 libstd-rust-1.48 libstd-rust-dev libz3-4 Suggested packages: rust-doc rust-src lld-11 Recommended packages: cargo rust-gdb | rust-lldb The following NEW packages will be installed: libllvm11 libstd-rust-1.48 libstd-rust-dev libz3-4 rustc 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. Need to get 67.5 MB of archives. After this operation, 285 MB of additional disk space will be used. [..] Processing triggers for man-db (2.9.4-2) ... Processing triggers for libc-bin (2.31-13+deb11u2) ...
re-try homeassistant install
tingo@kg-bpi:~$ sudo pip3 install homeassistant Collecting homeassistant Using cached homeassistant-2021.11.3-py3-none-any.whl (14.5 MB) Collecting jinja2==3.0.2 Using cached Jinja2-3.0.2-py3-none-any.whl (133 kB) Collecting pyyaml==6.0 Using cached PyYAML-6.0-cp39-cp39-linux_armv7l.whl Collecting requests==2.26.0 Using cached requests-2.26.0-py2.py3-none-any.whl (62 kB) Collecting voluptuous-serialize==2.4.0 Using cached voluptuous_serialize-2.4.0-py3-none-any.whl (6.7 kB) Collecting pip<20.3,>=8.0.3 Using cached pip-20.2.4-py2.py3-none-any.whl (1.5 MB) Collecting PyJWT==2.1.0 Using cached PyJWT-2.1.0-py3-none-any.whl (16 kB) Collecting python-slugify==4.0.1 Using cached python_slugify-4.0.1-py2.py3-none-any.whl Collecting astral==2.2 Using cached astral-2.2-py2.py3-none-any.whl (30 kB) Collecting httpx==0.19.0 Using cached httpx-0.19.0-py3-none-any.whl (77 kB) Collecting cryptography==3.4.8 Using cached cryptography-3.4.8.tar.gz (546 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting bcrypt==3.1.7 Using cached bcrypt-3.1.7-cp39-cp39-linux_armv7l.whl Collecting certifi>=2021.5.30 Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB) Collecting awesomeversion==21.10.1 Using cached awesomeversion-21.10.1-py3-none-any.whl (13 kB) Collecting voluptuous==0.12.2 Using cached voluptuous-0.12.2-py3-none-any.whl Collecting attrs==21.2.0 Using cached attrs-21.2.0-py2.py3-none-any.whl (53 kB) Collecting async-timeout==3.0.1 Using cached async_timeout-3.0.1-py3-none-any.whl (8.2 kB) Collecting ciso8601==2.2.0 Using cached ciso8601-2.2.0-cp39-cp39-linux_armv7l.whl Collecting yarl==1.6.3 Using cached yarl-1.6.3-cp39-cp39-linux_armv7l.whl Collecting aiohttp==3.7.4.post0 Using cached aiohttp-3.7.4.post0-cp39-cp39-linux_armv7l.whl Collecting chardet<5.0,>=2.0 Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB) Collecting multidict<7.0,>=4.5 Using cached multidict-5.2.0-cp39-cp39-linux_armv7l.whl Collecting typing-extensions>=3.6.5 Using cached typing_extensions-3.10.0.2-py3-none-any.whl (26 kB) Collecting pytz Using cached pytz-2021.3-py2.py3-none-any.whl (503 kB) Collecting six>=1.4.1 Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting cffi>=1.1 Using cached cffi-1.15.0-cp39-cp39-linux_armv7l.whl Collecting charset-normalizer Using cached charset_normalizer-2.0.7-py3-none-any.whl (38 kB) Collecting sniffio Using cached sniffio-1.2.0-py3-none-any.whl (10 kB) Collecting rfc3986[idna2008]<2,>=1.3 Using cached rfc3986-1.5.0-py2.py3-none-any.whl (31 kB) Collecting httpcore<0.14.0,>=0.13.3 Using cached httpcore-0.13.7-py3-none-any.whl (58 kB) Collecting MarkupSafe>=2.0 Using cached MarkupSafe-2.0.1-cp39-cp39-linux_armv7l.whl Collecting text-unidecode>=1.3 Using cached text_unidecode-1.3-py2.py3-none-any.whl (78 kB) Collecting idna<4,>=2.5 Using cached idna-3.3-py3-none-any.whl (61 kB) Collecting urllib3<1.27,>=1.21.1 Using cached urllib3-1.26.7-py2.py3-none-any.whl (138 kB) Collecting pycparser Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB) Collecting anyio==3.* Using cached anyio-3.3.4-py3-none-any.whl (78 kB) Collecting h11<0.13,>=0.11 Using cached h11-0.12.0-py3-none-any.whl (54 kB) Building wheels for collected packages: cryptography Building wheel for cryptography (PEP 517) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /tmp/tmp4qz5uznr_in_process.py build_wheel /tmp/tmp47adp1ag cwd: /tmp/pip-install-z5qnbcbk/cryptography_c7486f2f84b9420da7b6cbd1cab0afca Complete output (153 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-armv7l-3.9 creating build/lib.linux-armv7l-3.9/cryptography copying src/cryptography/utils.py -> build/lib.linux-armv7l-3.9/cryptography copying src/cryptography/fernet.py -> build/lib.linux-armv7l-3.9/cryptography copying src/cryptography/exceptions.py -> build/lib.linux-armv7l-3.9/cryptography copying src/cryptography/__init__.py -> build/lib.linux-armv7l-3.9/cryptography copying src/cryptography/__about__.py -> build/lib.linux-armv7l-3.9/cryptography creating build/lib.linux-armv7l-3.9/cryptography/x509 copying src/cryptography/x509/oid.py -> build/lib.linux-armv7l-3.9/cryptography/x509 copying src/cryptography/x509/ocsp.py -> build/lib.linux-armv7l-3.9/cryptography/x509 copying src/cryptography/x509/name.py -> build/lib.linux-armv7l-3.9/cryptography/x509 copying src/cryptography/x509/general_name.py -> build/lib.linux-armv7l-3.9/cryptography/x509 copying src/cryptography/x509/extensions.py -> build/lib.linux-armv7l-3.9/cryptography/x509 copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-armv7l-3.9/cryptography/x509 copying src/cryptography/x509/base.py -> build/lib.linux-armv7l-3.9/cryptography/x509 copying src/cryptography/x509/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/x509 creating build/lib.linux-armv7l-3.9/cryptography/hazmat copying src/cryptography/hazmat/_types.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat copying src/cryptography/hazmat/_oid.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat copying src/cryptography/hazmat/_der.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat copying src/cryptography/hazmat/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat creating build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives creating build/lib.linux-armv7l-3.9/cryptography/hazmat/bindings copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/bindings creating build/lib.linux-armv7l-3.9/cryptography/hazmat/backends copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends creating build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/twofactor creating build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/serialization copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/serialization copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/serialization copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/serialization copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/serialization copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/serialization creating build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/kdf creating build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/ciphers creating build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/primitives/asymmetric creating build/lib.linux-armv7l-3.9/cryptography/hazmat/bindings/openssl copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/bindings/openssl copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/bindings/openssl copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/bindings/openssl creating build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-armv7l-3.9/cryptography/hazmat/backends/openssl running egg_info writing src/cryptography.egg-info/PKG-INFO writing dependency_links to src/cryptography.egg-info/dependency_links.txt writing requirements to src/cryptography.egg-info/requires.txt writing top-level names to src/cryptography.egg-info/top_level.txt reading manifest file 'src/cryptography.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching 'docs/_build' warning: no previously-included files found matching 'vectors' warning: no previously-included files matching '*' found under directory 'vectors' warning: no previously-included files matching '*' found under directory '.github' warning: no previously-included files found matching 'release.py' warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching 'codecov.yml' warning: no previously-included files found matching '.readthedocs.yml' warning: no previously-included files found matching 'dev-requirements.txt' warning: no previously-included files found matching 'tox.ini' warning: no previously-included files found matching 'mypy.ini' warning: no previously-included files matching '*' found under directory '.zuul.d' warning: no previously-included files matching '*' found under directory '.zuul.playbooks' adding license file 'LICENSE' adding license file 'LICENSE.APACHE' adding license file 'LICENSE.BSD' adding license file 'LICENSE.PSF' writing manifest file 'src/cryptography.egg-info/SOURCES.txt' copying src/cryptography/py.typed -> build/lib.linux-armv7l-3.9/cryptography running build_ext generating cffi module 'build/temp.linux-armv7l-3.9/_padding.c' creating build/temp.linux-armv7l-3.9 generating cffi module 'build/temp.linux-armv7l-3.9/_openssl.c' running build_rust =============================DEBUG ASSISTANCE============================= If you are seeing a compilation error please try the following steps to successfully install cryptography: 1) Upgrade to the latest pip and try again. This will fix errors for most users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip 2) Read https://cryptography.io/en/latest/installation.html for specific instructions for your platform. 3) Check our frequently asked questions for more information: https://cryptography.io/en/latest/faq.html 4) Ensure you have a recent Rust toolchain installed: https://cryptography.io/en/latest/installation.html#rust 5) If you are experiencing issues with Rust for *this release only* you may set the environment variable `CRYPTOGRAPHY_DONT_BUILD_RUST=1`. =============================DEBUG ASSISTANCE============================= error: [Errno 2] No such file or directory: 'cargo' ---------------------------------------- ERROR: Failed building wheel for cryptography Failed to build cryptography ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
ok, I need cargo too
tingo@kg-bpi:~$ sudo apt install cargo Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libgit2-1.1 libhttp-parser2.9 libmbedcrypto3 libmbedtls12 libmbedx509-0 Suggested packages: cargo-doc The following NEW packages will be installed: cargo libgit2-1.1 libhttp-parser2.9 libmbedcrypto3 libmbedtls12 libmbedx509-0 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 3,286 kB of archives. After this operation, 10.1 MB of additional disk space will be used. [..] Processing triggers for man-db (2.9.4-2) ... Processing triggers for libc-bin (2.31-13+deb11u2) ...
try to install homeassistant again
tingo@kg-bpi:~$ sudo pip3 install homeassistant Collecting homeassistant Using cached homeassistant-2021.11.3-py3-none-any.whl (14.5 MB) Collecting astral==2.2 Using cached astral-2.2-py2.py3-none-any.whl (30 kB) Collecting httpx==0.19.0 Using cached httpx-0.19.0-py3-none-any.whl (77 kB) Collecting async-timeout==3.0.1 Using cached async_timeout-3.0.1-py3-none-any.whl (8.2 kB) Collecting awesomeversion==21.10.1 Using cached awesomeversion-21.10.1-py3-none-any.whl (13 kB) Collecting cryptography==3.4.8 Using cached cryptography-3.4.8.tar.gz (546 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting attrs==21.2.0 Using cached attrs-21.2.0-py2.py3-none-any.whl (53 kB) Collecting voluptuous==0.12.2 Using cached voluptuous-0.12.2-py3-none-any.whl Collecting PyJWT==2.1.0 Using cached PyJWT-2.1.0-py3-none-any.whl (16 kB) Collecting bcrypt==3.1.7 Using cached bcrypt-3.1.7-cp39-cp39-linux_armv7l.whl Collecting ciso8601==2.2.0 Using cached ciso8601-2.2.0-cp39-cp39-linux_armv7l.whl Collecting pyyaml==6.0 Using cached PyYAML-6.0-cp39-cp39-linux_armv7l.whl Collecting aiohttp==3.7.4.post0 Using cached aiohttp-3.7.4.post0-cp39-cp39-linux_armv7l.whl Collecting yarl==1.6.3 Using cached yarl-1.6.3-cp39-cp39-linux_armv7l.whl Collecting pip<20.3,>=8.0.3 Using cached pip-20.2.4-py2.py3-none-any.whl (1.5 MB) Collecting jinja2==3.0.2 Using cached Jinja2-3.0.2-py3-none-any.whl (133 kB) Collecting python-slugify==4.0.1 Using cached python_slugify-4.0.1-py2.py3-none-any.whl Collecting requests==2.26.0 Using cached requests-2.26.0-py2.py3-none-any.whl (62 kB) Collecting certifi>=2021.5.30 Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB) Collecting voluptuous-serialize==2.4.0 Using cached voluptuous_serialize-2.4.0-py3-none-any.whl (6.7 kB) Collecting chardet<5.0,>=2.0 Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB) Collecting multidict<7.0,>=4.5 Using cached multidict-5.2.0-cp39-cp39-linux_armv7l.whl Collecting typing-extensions>=3.6.5 Using cached typing_extensions-3.10.0.2-py3-none-any.whl (26 kB) Collecting pytz Using cached pytz-2021.3-py2.py3-none-any.whl (503 kB) Collecting six>=1.4.1 Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting cffi>=1.1 Using cached cffi-1.15.0-cp39-cp39-linux_armv7l.whl Collecting rfc3986[idna2008]<2,>=1.3 Using cached rfc3986-1.5.0-py2.py3-none-any.whl (31 kB) Collecting sniffio Using cached sniffio-1.2.0-py3-none-any.whl (10 kB) Collecting charset-normalizer Using cached charset_normalizer-2.0.7-py3-none-any.whl (38 kB) Collecting httpcore<0.14.0,>=0.13.3 Using cached httpcore-0.13.7-py3-none-any.whl (58 kB) Collecting MarkupSafe>=2.0 Using cached MarkupSafe-2.0.1-cp39-cp39-linux_armv7l.whl Collecting text-unidecode>=1.3 Using cached text_unidecode-1.3-py2.py3-none-any.whl (78 kB) Collecting idna<4,>=2.5 Using cached idna-3.3-py3-none-any.whl (61 kB) Collecting urllib3<1.27,>=1.21.1 Using cached urllib3-1.26.7-py2.py3-none-any.whl (138 kB) Collecting pycparser Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB) Collecting anyio==3.* Using cached anyio-3.3.4-py3-none-any.whl (78 kB) Collecting h11<0.13,>=0.11 Using cached h11-0.12.0-py3-none-any.whl (54 kB) Building wheels for collected packages: cryptography Building wheel for cryptography (PEP 517) ... done Created wheel for cryptography: filename=cryptography-3.4.8-cp39-cp39-linux_armv7l.whl size=1990171 sha256=e209cd235960ba08f6c2bbf2e5f2740100d45863cf7cca91a05d830d6f643918 Stored in directory: /root/.cache/pip/wheels/28/ea/c2/e48100a4f4674263f982c899942ed5225966b37b47e9b631f6 Successfully built cryptography Installing collected packages: sniffio, idna, rfc3986, pycparser, multidict, h11, anyio, yarl, voluptuous, urllib3, typing-extensions, text-unidecode, six, pytz, MarkupSafe, httpcore, charset-normalizer, chardet, cffi, certifi, attrs, async-timeout, voluptuous-serialize, requests, pyyaml, python-slugify, PyJWT, pip, jinja2, httpx, cryptography, ciso8601, bcrypt, awesomeversion, astral, aiohttp, homeassistant Attempting uninstall: pip Found existing installation: pip 20.3.4 Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr Can't uninstall 'pip'. No files were found to uninstall. Successfully installed MarkupSafe-2.0.1 PyJWT-2.1.0 aiohttp-3.7.4.post0 anyio-3.3.4 astral-2.2 async-timeout-3.0.1 attrs-21.2.0 awesomeversion-21.10.1 bcrypt-3.1.7 certifi-2021.10.8 cffi-1.15.0 chardet-4.0.0 charset-normalizer-2.0.7 ciso8601-2.2.0 cryptography-3.4.8 h11-0.12.0 homeassistant-2021.11.3 httpcore-0.13.7 httpx-0.19.0 idna-3.3 jinja2-3.0.2 multidict-5.2.0 pip-20.2.4 pycparser-2.21 python-slugify-4.0.1 pytz-2021.3 pyyaml-6.0 requests-2.26.0 rfc3986-1.5.0 six-1.16.0 sniffio-1.2.0 text-unidecode-1.3 typing-extensions-3.10.0.2 urllib3-1.26.7 voluptuous-0.12.2 voluptuous-serialize-2.4.0 yarl-1.6.3
2021-11-14: bpi - mosquitto - I had to change pid_file in /etc/mosquitto/mosquitto.conf from
pid_file /var/run/mosquitto.pid
to
pid_file /run/mosquitto/mosquitto.pid
and I had to create a config file to allow network connections
tingo@kg-bpi:~$ cat /etc/mosquitto/conf.d/bpi.conf
listener 1883
2021-11-14: bpi - I had to fix NetworkManager's setup for dhcp client by creating this file
tingo@kg-bpi:~$ cat /etc/NetworkManager/conf.d/30-dhcp-client.conf [main] dhcp=dhclient
2021-11-14: bpi - reboot - Debian 11.1 is in
tingo@kg-core2$ ssh bpi ____ ____ _ | __ )| _ \(_) | _ \| |_) | | | |_) | __/| | |____/|_| |_| Welcome to Debian GNU/Linux 11 (bullseye) with Linux 5.10.60-sunxi System load: 12% Up time: 21 min Memory usage: 7% of 997M IP: 10.1.150.61 10.1.161.33 CPU temp: 32°C Usage of /: 51% of 15G Last login: Sun Nov 14 19:47:26 2021 from 10.1.150.52
debian
tingo@kg-bpi:~$ cat /etc/debian_version
11.1
armbian
tingo@kg-bpi:~$ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
whoops.
2021-11-14: bpi - apt - upgrade to Bullseye first minimal
tingo@kg-bpi:~$ sudo apt upgrade --without-new-pkgs Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: libbison-dev libf2fs-format4 libf2fs5 usb.ids Use 'sudo apt autoremove' to remove them. The following packages have been kept back: alsa-utils apache2-bin apt apt-utils aptitude aptitude-common bc bind9-host binutils binutils-arm-linux-gnueabihf binutils-common bsdmainutils btrfs-progs build-essential chrony cmake cmake-data composer cpp device-tree-compiler dirmngr dnsutils e2fsprogs g++ gcc gir1.2-glib-2.0 gnupg gnupg-l10n gnupg-utils gnupg2 gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv groff-base haveged html2text iproute2 iptables isc-dhcp-client jq libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libapt-pkg-perl libarchive13 libasan5 libasound2 libasound2-data libatomic1 libbind9-161 libbinutils libbrotli1 libbsd0 libc-bin libc-dev-bin libc6 libc6-dev libcaca0 libcc1-0 libcryptsetup12 libcurl3-gnutls libdigest-sha-perl libexpat1 libexpat1-dev libext2fs2 libffi-dev libgd3 libgirepository-1.0-1 libglib2.0-0 libgnutls30 libgomp1 libiptc0 libirs161 libisccc161 libisccfg163 libiw30 libjq1 libldap-2.4-2 liblist-moreutils-perl liblocale-gettext-perl liblwres161 libnginx-mod-http-echo libnm0 libnss-myhostname libntfs-3g883 libp11-kit0 libpam-modules libpam-modules-bin libpam-systemd libparted2 libpci3 libpng16-16 libpolkit-agent-1-0 libpolkit-gobject-1-0 libproc-processtable-perl libpython3-dev libpython3-stdlib librtmp1 libsensors5 libsigc++-2.0-0v5 libslang2 libsqlite3-0 libstdc++6 libsystemd0 libtcl8.6 libtiff5 libubsan1 libuchardet0 libudev1 libwebp6 libwrap0 libwrap0-dev libxapian30 libxml2 libxslt1.1 libxtables12 locales login man-db mawk mime-support mosquitto network-manager nginx-common nginx-light ntfs-3g openssh-client openssh-server openssh-sftp-server parted passwd pciutils perl perl-base php php-common php-composer-semver php-symfony-console php-symfony-debug policykit-1 procps python-pip-whl python3 python3-apt python3-cffi-backend python3-dbus python3-dev python3-distutils python3-gi python3-lib2to3 python3-minimal python3-pip python3-pycurl rng-tools rsync rsyslog screen sysfsutils systemd udev unattended-upgrades util-linux vim vim-common vim-runtime wget wpasupplicant The following packages will be upgraded: apt-transport-https autoconf automake autotools-dev avahi-autoipd base-files base-passwd bash bash-completion bison bridge-utils bsdutils bzip2 ca-certificates command-not-found console-setup console-setup-linux coreutils cpio cpufrequtils crda cron curl dash dbus debconf debconf-utils debian-archive-keyring debianutils dh-python dialog diffutils distro-info-data dmsetup dosfstools dpkg dpkg-dev ethtool evtest expect f2fs-tools f3 fake-hwclock fbset fdisk findutils flex fontconfig-config fonts-dejavu-core fping fuse gir1.2-packagekitglib-1.0 git git-man grep gzip hdparm hostname htop ifenslave ifupdown init init-system-helpers initramfs-tools initramfs-tools-core iotop iozone3 iperf3 iputils-arping iputils-ping iso-codes iw jsonlint kbd keyboard-configuration klibc-utils kmod less libacl1 libapparmor1 libapr1 libassuan0 libattr1 libaudit-common libaudit1 libbison-dev libblkid1 libbluetooth3 libbz2-1.0 libc-l10n libcap-ng0 libcap2 libcap2-bin libcom-err2 libconfuse-common libconfuse-dev libconfuse2 libcpufreq0 libcurl4 libdaemon0 libdb5.3 libdbus-1-3 libdebconfclient0 libdevmapper1.02.1 libdpkg-perl libedit2 libelf1 liberror-perl libestr0 libev4 libexporter-tiny-perl libfastjson4 libfdisk1 libfontconfig1 libfreetype6 libfstrm0 libftdi-dev libftdi1 libfuse2 libgcrypt20 libgdbm-compat4 libgdbm6 libgeoip1 libgmp10 libgpg-error0 libgpm2 libgssapi-krb5-2 libidn11 libidn2-0 libiperf0 libjansson4 libjpeg-dev libjpeg62-turbo libjpeg62-turbo-dev libk5crypto3 libkeyutils1 libklibc libkmod2 libkrb5-3 libkrb5support0 libksba8 libldap-common liblmdb0 liblognorm5 liblua5.2-0 liblz4-1 liblzma5 liblzo2-2 libmagic-mgc libmagic1 libmm-glib0 libmnl0 libmount1 libmpc3 libmpfr6 libncurses6 libncursesw6 libnetfilter-conntrack3 libnewt0.52 libnftnl11 libnghttp2-14 libnl-3-200 libnl-3-dev libnl-genl-3-200 libnl-genl-3-dev libnl-route-3-200 libnpth0 libonig5 libpackagekit-glib2-18 libpam-runtime libpam0g libpcre2-8-0 libpcre3 libpcsclite1 libpipeline1 libpopt0 libprotobuf-c1 libpsl5 libqrencode4 libregexp-assemble-perl librhash0 libsamplerate0 libsasl2-2 libsasl2-modules-db libseccomp2 libselinux1 libsemanage-common libsemanage1 libsensors-config libsepol1 libsigsegv2 libsmartcols1 libsodium23 libss2 libssh2-1 libssl-dev libssl1.1 libsysfs2 libtasn1-6 libteamdctl0 libtinfo6 libunistring2 libusb-1.0-0 libutempter0 libuuid1 libuv1 libx11-6 libx11-data libxau6 libxcb1 libzip4 libzstd1 logrotate lsb-base lsb-release lsof m4 make mount nano ncurses-base ncurses-bin ncurses-term net-tools netbase netcat-openbsd networkd-dispatcher openssl patch php-composer-ca-bundle php-composer-spdx-licenses php-composer-xdebug-handler php-json-schema php-psr-log php-symfony-filesystem php-symfony-finder php-symfony-process pinentry-curses psmisc python-apt-common python3-distro-info python3-software-properties qrencode readline-common resolvconf rfkill sensible-utils software-properties-common stress sudo sysstat systemd-sysv sysvinit-utils tar tcl-expect tcl8.6 toilet toilet-fonts tzdata u-boot-tools ucf unicode-data unzip usb.ids usbutils whiptail wireguard-tools wireless-regdb wireless-tools xkb-data xxd xz-utils zip zlib1g zlib1g-dev 275 upgraded, 0 newly installed, 0 to remove and 171 not upgraded. Need to get 74.4 MB of archives. After this operation, 13.4 MB of additional disk space will be used. [..] Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. Processing triggers for initramfs-tools (0.140) ... update-initramfs: Generating /boot/initrd.img-5.10.60-sunxi update-initramfs: Converting to u-boot format
full upgrade
tingo@kg-bpi:~$ sudo apt full-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: bsdmainutils cpp-8 dh-python fontconfig-config fonts-dejavu-core gcc-9-base jsonlint libasan5 libbind9-161 libbison-dev libboost-iostreams1.67.0 libboost-system1.67.0 libcwidget3v5 libdeflate0 libdns1104 libdns1110 libf2fs-format4 libf2fs5 libfontconfig1 libfreetype6 libgd3 libgeoip1 libhavege1 libicu63 libip6tc0 libiptc0 libirs161 libisc1100 libisc1105 libisccc161 libisccfg163 libisl19 libjbig0 libjsoncpp1 liblua5.2-0 liblwres161 libmpdec2 libperl5.28 libprocps7 libpython3.7 libpython3.7-dev libpython3.7-minimal libpython3.7-stdlib libtiff5 libwebp6 libwebsockets8 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxpm4 libxslt1.1 libzip4 ncal perl-modules-5.28 php-composer-ca-bundle php-composer-semver php-composer-spdx-licenses php-composer-xdebug-handler php-json-schema php-psr-log php-symfony-debug php-symfony-filesystem php-symfony-finder php-symfony-polyfill-php80 php-symfony-process python3.7-minimal usb.ids Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: composer g++-8 gcc-8 libapache2-mod-php7.3 libgcc-8-dev libpolkit-backend-1-0 libstdc++-8-dev php-symfony-console php7.3 php7.3-cli php7.3-common php7.3-curl php7.3-fpm php7.3-gd php7.3-intl php7.3-json php7.3-mbstring php7.3-opcache php7.3-readline php7.3-sqlite3 php7.3-xml php7.3-zip python3.7 python3.7-dev The following NEW packages will be installed: bind9-dnsutils bind9-libs bsdextrautils cpp-10 g++-10 gcc-10 gcc-10-base gcc-9-base libapache2-mod-php7.4 libapt-pkg6.0 libasan6 libatopology2 libboost-iostreams1.74.0 libbpf0 libcbor0 libcjson1 libcrypt-dev libcrypt1 libctf-nobfd0 libctf0 libcwidget4 libdeflate0 libdlt2 libdns-export1110 libdns1110 libfdt1 libffi7 libfido2-1 libgcc-10-dev libgcc-s1 libhavege2 libhogweed6 libicu67 libip4tc2 libip6tc2 libisc-export1105 libisc1105 libisl23 libjs-jquery libjs-sphinxdoc libjs-underscore libjson-c5 libjsoncpp24 liblist-moreutils-xs-perl liblua5.3-0 libmaxminddb0 libmd0 libmosquitto1 libmpdec3 libnettle8 libnsl-dev libnsl2 libperl5.32 libprocps8 libpython3.9 libpython3.9-dev libpython3.9-minimal libpython3.9-stdlib libreadline8 libstdc++-10-dev libtirpc-common libtirpc-dev libtirpc3 libwebsockets16 libxxhash0 libyaml-0-2 logsave mailcap media-types mksh ncal pci.ids perl-modules-5.32 php-symfony-polyfill-php80 php7.4 php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline python3-pkg-resources python3-setuptools python3-wheel python3.9 python3.9-dev python3.9-minimal rng-tools-debian runit-helper The following packages will be upgraded: alsa-utils apache2-bin apt apt-utils aptitude aptitude-common bc bind9-host binutils binutils-arm-linux-gnueabihf binutils-common bsdmainutils btrfs-progs build-essential chrony cmake cmake-data cpp device-tree-compiler dirmngr dnsutils e2fsprogs g++ gcc gir1.2-glib-2.0 gnupg gnupg-l10n gnupg-utils gnupg2 gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv groff-base haveged html2text iproute2 iptables isc-dhcp-client jq libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libapt-pkg-perl libarchive13 libasan5 libasound2 libasound2-data libatomic1 libbind9-161 libbinutils libbrotli1 libbsd0 libc-bin libc-dev-bin libc6 libc6-dev libcaca0 libcc1-0 libcryptsetup12 libcurl3-gnutls libdigest-sha-perl libexpat1 libexpat1-dev libext2fs2 libffi-dev libgd3 libgirepository-1.0-1 libglib2.0-0 libgnutls30 libgomp1 libiptc0 libirs161 libisccc161 libisccfg163 libiw30 libjq1 libldap-2.4-2 liblist-moreutils-perl liblocale-gettext-perl liblwres161 libnginx-mod-http-echo libnm0 libnss-myhostname libntfs-3g883 libp11-kit0 libpam-modules libpam-modules-bin libpam-systemd libparted2 libpci3 libpng16-16 libpolkit-agent-1-0 libpolkit-gobject-1-0 libproc-processtable-perl libpython3-dev libpython3-stdlib librtmp1 libsensors5 libsigc++-2.0-0v5 libslang2 libsqlite3-0 libstdc++6 libsystemd0 libtcl8.6 libtiff5 libubsan1 libuchardet0 libudev1 libwebp6 libwrap0 libwrap0-dev libxapian30 libxml2 libxslt1.1 libxtables12 locales login man-db mawk mime-support mosquitto network-manager nginx-common nginx-light ntfs-3g openssh-client openssh-server openssh-sftp-server parted passwd pciutils perl perl-base php php-common php-composer-semver php-symfony-debug policykit-1 procps python-pip-whl python3 python3-apt python3-cffi-backend python3-dbus python3-dev python3-distutils python3-gi python3-lib2to3 python3-minimal python3-pip python3-pycurl rng-tools rsync rsyslog screen sysfsutils systemd udev unattended-upgrades util-linux vim vim-common vim-runtime wget wpasupplicant 169 upgraded, 88 newly installed, 24 to remove and 0 not upgraded. Need to get 160 MB of archives. After this operation, 183 MB of additional disk space will be used. [..] update-initramfs: Generating /boot/initrd.img-5.10.60-sunxi update-initramfs: Converting to u-boot format Processing triggers for php7.4-cli (7.4.25-1+deb11u1) ... Processing triggers for libapache2-mod-php7.4 (7.4.25-1+deb11u1) ... Warning: Could not load Apache 2.4 maintainer script helper.
autoremove
tingo@kg-bpi:~$ sudo apt autoremove Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages will be REMOVED: bsdmainutils cpp-8 dh-python fontconfig-config fonts-dejavu-core jsonlint libasan5 libbind9-161 libbison-dev libboost-iostreams1.67.0 libboost-system1.67.0 libcwidget3v5 libdeflate0 libdns1104 libdns1110 libf2fs-format4 libf2fs5 libfontconfig1 libfreetype6 libgd3 libgeoip1 libhavege1 libicu63 libip6tc0 libiptc0 libirs161 libisc1100 libisc1105 libisccc161 libisccfg163 libisl19 libjbig0 libjsoncpp1 liblua5.2-0 liblwres161 libmpdec2 libperl5.28 libprocps7 libpython3.7 libpython3.7-dev libpython3.7-minimal libpython3.7-stdlib libtiff5 libwebp6 libwebsockets8 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxpm4 libxslt1.1 libzip4 ncal perl-modules-5.28 php-composer-ca-bundle php-composer-semver php-composer-spdx-licenses php-composer-xdebug-handler php-json-schema php-psr-log php-symfony-debug php-symfony-filesystem php-symfony-finder php-symfony-polyfill-php80 php-symfony-process python3.7-minimal usb.ids 0 upgraded, 0 newly installed, 68 to remove and 0 not upgraded. After this operation, 206 MB disk space will be freed. [..] Processing triggers for man-db (2.9.4-2) ... Processing triggers for libc-bin (2.31-13+deb11u2) ...
autoclean
tingo@kg-bpi:~$ sudo apt autoclean Reading package lists... Done Building dependency tree... Done Reading state information... Done Del libapt-pkg5.0 1.8.2.3 [880 kB] Del php7.3-json 7.3.29-1~deb10u1 [16.3 kB] Del libcurl4 7.64.0-4+deb10u2 [298 kB] Del libntfs-3g883 1:2017.3.23AR.3-3+deb10u1 [162 kB] Del libonig5 6.9.1-1 [153 kB] Del udev 241-7~deb10u8 [1,251 kB] Del libapt-inst2.0 1.8.2.3 [200 kB] Del libkrb5-3 1.17-3+deb10u2 [323 kB] Del php7.3-intl 7.3.29-1~deb10u1 [107 kB] Del libgnutls30 3.6.7-4+deb10u7 [1,065 kB] Del libxml2 2.9.4+dfsg1-7+deb10u2 [597 kB] Del iproute2 4.20.0-2+deb10u1 [771 kB] Del libjpeg62-turbo 1:1.5.2-2+deb10u1 [113 kB] Del libpython3.7-dev 3.7.3-2+deb10u3 [47.2 MB] Del php7.3-mbstring 7.3.29-1~deb10u1 [477 kB] Del libpython3.7-stdlib 3.7.3-2+deb10u3 [1,660 kB] Del libpython3.7-minimal 3.7.3-2+deb10u3 [582 kB] Del libwebp6 0.6.1-2+deb10u1 [229 kB] Del libisc1100 1:9.11.5.P4+dfsg-5.1+deb10u5 [428 kB] Del python3.7-minimal 3.7.3-2+deb10u3 [1,466 kB] Del libapache2-mod-php7.3 7.3.29-1~deb10u1 [1,125 kB] Del systemd 241-7~deb10u8 [3,284 kB] Del php7.3-readline 7.3.29-1~deb10u1 [10.5 kB] Del libssl1.1 1.1.1d-0+deb10u7 [1,300 kB] Del apt 1.8.2.3 [1,368 kB] Del sudo 1.8.27-1+deb10u3 [1,210 kB] Del libldap-2.4-2 2.4.47+dfsg-3+deb10u6 [202 kB] Del apt-transport-https 1.8.2.3 [149 kB] Del libpython3.7 3.7.3-2+deb10u3 [1,281 kB] Del libnginx-mod-http-echo 1.14.2-2+deb10u4 [102 kB] Del php7.3-zip 7.3.29-1~deb10u1 [17.9 kB] Del libssl-dev 1.1.1d-0+deb10u7 [1,598 kB] Del libisccfg163 1:9.11.5.P4+dfsg-5.1+deb10u5 [259 kB] Del libdns-export1104 1:9.11.5.P4+dfsg-5.1+deb10u5 [897 kB] Del openssl 1.1.1d-0+deb10u7 [818 kB] Del php7.3-sqlite3 7.3.29-1~deb10u1 [20.8 kB] Del python3-apt 1.8.4.3 [169 kB] Del libnss-myhostname 241-7~deb10u8 [120 kB] Del libsystemd0 241-7~deb10u8 [308 kB] Del iputils-arping 3:20180629-2+deb10u2 [19.4 kB] Del php7.3 7.3.29-1~deb10u1 [47.1 kB] Del libisc-export1100 1:9.11.5.P4+dfsg-5.1+deb10u5 [363 kB] Del php7.3-cli 7.3.29-1~deb10u1 [1,173 kB] Del device-tree-compiler 1.4.7-4 [240 kB] Del libx11-6 2:1.6.7-1+deb10u2 [698 kB] Del bind9-host 1:9.11.5.P4+dfsg-5.1+deb10u5 [268 kB] Del php7.3-fpm 7.3.29-1~deb10u1 [1,185 kB] Del libgcrypt20 1.8.4-5+deb10u1 [501 kB] Del libzstd1 1.3.8+dfsg-3+deb10u2 [205 kB] Del ca-certificates 20200601~deb10u2 [166 kB] Del libbind9-161 1:9.11.5.P4+dfsg-5.1+deb10u5 [245 kB] Del python3.7 3.7.3-2+deb10u3 [330 kB] Del libmagic1 1:5.35-4+deb10u2 [110 kB] Del libpam-systemd 241-7~deb10u8 [195 kB] Del libklibc 2.0.6-1+deb10u1 [52.1 kB] Del unzip 6.0-23+deb10u2 [158 kB] Del libbrotli1 1.0.7-2+deb10u1 [260 kB] Del php7.3-gd 7.3.29-1~deb10u1 [23.0 kB] Del python3.7-dev 3.7.3-2+deb10u3 [509 kB] Del libbluetooth3 5.50-1.2~deb10u2 [93.2 kB] Del libx11-data 2:1.6.7-1+deb10u2 [299 kB] Del libp11-kit0 0.23.15-2+deb10u1 [292 kB] Del apt-utils 1.8.2.3 [405 kB] Del python-apt-common 1.8.4.3 [96.3 kB] Del screen 4.6.2-3+deb10u1 [563 kB] Del libuv1 1.24.1-1+deb10u1 [98.3 kB] Del libjpeg-dev 1:1.5.2-2+deb10u1 [57.7 kB] Del libgssapi-krb5-2 1.17-3+deb10u2 [137 kB] Del avahi-autoipd 0.7-4+deb10u1 [53.8 kB] Del isc-dhcp-client 4.4.1-2+deb10u1 [315 kB] Del libjpeg62-turbo-dev 1:1.5.2-2+deb10u1 [184 kB] Del php7.3-common 7.3.29-1~deb10u1 [533 kB] Del debian-archive-keyring 2019.1+deb10u1 [93.5 kB] Del ntfs-3g 1:2017.3.23AR.3-3+deb10u1 [401 kB] Del wpasupplicant 2:2.7+git20190128+0c1e29f-6+deb10u3 [1,081 kB] Del libkrb5support0 1.17-3+deb10u2 [62.4 kB] Del klibc-utils 2.0.6-1+deb10u1 [86.1 kB] Del libcurl3-gnutls 7.64.0-4+deb10u2 [296 kB] Del libnettle6 3.4.1-1+deb10u1 [228 kB] Del libudev1 241-7~deb10u8 [144 kB] Del wireguard-tools 1.0.20200827-1~bpo10+1 [78.9 kB] Del nginx-common 1.14.2-2+deb10u4 [121 kB] Del systemd-sysv 241-7~deb10u8 [100 kB] Del iputils-ping 3:20180629-2+deb10u2 [41.9 kB] Del nginx-light 1.14.2-2+deb10u4 [433 kB] Del php7.3-opcache 7.3.29-1~deb10u1 [159 kB] Del libtiff5 4.1.0+git191117-2~deb10u2 [252 kB] Del composer 1.8.4-1+deb10u1 [337 kB] Del libk5crypto3 1.17-3+deb10u2 [119 kB] Del libglib2.0-0 2.58.3-2+deb10u3 [1,102 kB] Del apache2-bin 2.4.38-3+deb10u5 [1,149 kB] Del curl 7.64.0-4+deb10u2 [257 kB] Del libirs161 1:9.11.5.P4+dfsg-5.1+deb10u5 [235 kB] Del jq 1.5+dfsg-2+b1 [59.6 kB] Del php7.3-xml 7.3.29-1~deb10u1 [87.6 kB] Del libbsd0 0.9.1-2+deb10u1 [104 kB] Del liblz4-1 1.8.3-1+deb10u1 [51.2 kB] Del libjq1 1.5+dfsg-2+b1 [122 kB] Del libsqlite3-0 3.27.2-3+deb10u1 [560 kB] Del libldap-common 2.4.47+dfsg-3+deb10u6 [90.0 kB] Del libmagic-mgc 1:5.35-4+deb10u2 [242 kB] Del liblwres161 1:9.11.5.P4+dfsg-5.1+deb10u5 [247 kB] Del libdns1104 1:9.11.5.P4+dfsg-5.1+deb10u5 [1,095 kB] Del php7.3-curl 7.3.29-1~deb10u1 [26.9 kB] Del libisccc161 1:9.11.5.P4+dfsg-5.1+deb10u5 [234 kB] Del dnsutils 1:9.11.5.P4+dfsg-5.1+deb10u5 [359 kB] Del groff-base 1.22.4-3+deb10u1 [828 kB] Del zip 3.0-11+b1 [228 kB] Del libhogweed4 3.4.1-1+deb10u1 [130 kB]
ready for a reboot now.
2021-11-14: bpi - prepare apt sources.list for upgrade to Bullseye:
tingo@kg-bpi:~/work/20211114_bullseye_upgrade$ sudo sed -i 's/buster/bullseye/g' /etc/apt/sources.list
then fix up debian security line. Result:
tingo@kg-bpi:~/work/20211114_bullseye_upgrade$ grep security /etc/apt/sources.list
deb http://security.debian.org/ bullseye-security main contrib non-free
#deb-src http://security.debian.org/ bullseye-security main contrib non-free
and armbian.list
tingo@kg-bpi:~/work/20211114_bullseye_upgrade$ cat /etc/apt/sources.list.d/armbian.list
deb http://mirrors.dotsrc.org/armbian-apt/ buster main buster-utils buster-desktop
tingo@kg-bpi:~/work/20211114_bullseye_upgrade$ sudo sed -i 's/buster/bullseye/g' /etc/apt/sources.list.d/*
tingo@kg-bpi:~/work/20211114_bullseye_upgrade$ cat /etc/apt/sources.list.d/armbian.list
deb http://mirrors.dotsrc.org/armbian-apt/ bullseye main bullseye-utils bullseye-desktop
2021-11-14: bpi - apt - update & upgrade
tingo@kg-bpi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: apache2-bin armbian-config armbian-firmware base-files bind9-host debconf debconf-utils distro-info-data dnsutils libapache2-mod-php7.3 libbind9-161 libdns-export1104 libdns1104 libgssapi-krb5-2 libirs161 libisc-export1100 libisc1100 libisccc161 libisccfg163 libk5crypto3 libkrb5-3 libkrb5support0 liblwres161 libtiff5 linux-libc-dev php7.3 php7.3-cli php7.3-common php7.3-curl php7.3-fpm php7.3-gd php7.3-intl php7.3-json php7.3-mbstring php7.3-opcache php7.3-readline php7.3-sqlite3 php7.3-xml php7.3-zip psmisc tzdata 41 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 21.5 MB of archives. After this operation, 2,048 B disk space will be freed. [..] Warning: Could not load Apache 2.4 maintainer script helper. [..] Processing triggers for man-db (2.8.5-2) ...
autoclean
tingo@kg-bpi:~$ sudo apt autoclean Reading package lists... Done Building dependency tree Reading state information... Done Del base-files 10.3+deb10u10 [69.9 kB] Del distro-info-data 0.41+deb10u3 [6,640 B] Del tzdata 2021a-0+deb10u1 [266 kB]
2021-09-21: bpi - finally, I can boot the machine again, and test that Home Assistant, the bolt blog and everything else works - it does. Phew!
2021-09-21: bpi - I used the "other bpi" SD card as a resource, and fixed up broken files and links in /boot, and now the SD card boots again. I used
sudo apt autoremove
to configure packages (apt upgrade just wanted to install that broken hostapd package)
tingo@kg-bpi:~$ sudo apt autoremove [..] dpkg: error processing package hostapd (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration [..] Errors were encountered while processing: hostapd E: Sub-process /usr/bin/dpkg returned an error code (1)
try to remove hostapd
tingo@kg-bpi:~$ sudo apt remove hostapd Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: hostapd 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 769 kB disk space will be freed. Do you want to continue? [Y/n] y dpkg: error processing package hostapd (--remove): package is in a very bad inconsistent state; you should reinstall it before attempting a removal Errors were encountered while processing: hostapd E: Sub-process /usr/bin/dpkg returned an error code (1)
ok, use dpkg to forcibly remove it then
tingo@kg-bpi:~$ sudo dpkg --purge --force-all hostapd dpkg: warning: overriding problem because --force enabled: dpkg: warning: package is in a very bad inconsistent state; you should reinstall it before attempting a removal (Reading database ... 39666 files and directories currently installed.) Removing hostapd (3:2.9-102~armbian20.05.2+1) ... Purging configuration files for hostapd (3:2.9-102~armbian20.05.2+1) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for systemd (241-7~deb10u8) ...
then check with apt update, apt upgrade, apt autoremove that there is nothing more to do.
2021-09-21: other bpi - booted a SD card with armbian 20.08.1, I had to try the boot several times before it stopped trying to boot over the network.
I then ran sudo apt update; sudo apt upgrade
.
2021-09-21: bpi - I tried to shutdown the machine 4 times, but the shutdown command just returned
tingo@kg-bpi:~$ sudo shutdown -r now tingo@kg-bpi:~$ sudo shutdown -r now tingo@kg-bpi:~$ sudo shutdown -r now tingo@kg-bpi:~$ sudo shutdown -r now
something isn't right here. Next, cut the power
2021-09-19: bpi - apt - update and upgrade
tingo@kg-bpi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following NEW packages will be installed: jq libjq1 libonig5 zip The following packages will be upgraded: apache2-bin apt apt-transport-https apt-utils armbian-config armbian-firmware avahi-autoipd base-files bind9-host ca-certificates composer curl debian-archive-keyring device-tree-compiler distro-info-data dnsutils groff-base hostapd iproute2 iputils-arping iputils-ping isc-dhcp-client klibc-utils libapache2-mod-php7.3 libapt-inst2.0 libapt-pkg5.0 libbind9-161 libbluetooth3 libbrotli1 libbsd0 libcurl3-gnutls libcurl4 libdns-export1104 libdns1104 libgcrypt20 libglib2.0-0 libgnutls30 libgssapi-krb5-2 libhogweed4 libirs161 libisc-export1100 libisc1100 libisccc161 libisccfg163 libjpeg-dev libjpeg62-turbo libjpeg62-turbo-dev libk5crypto3 libklibc libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common liblwres161 liblz4-1 libmagic-mgc libmagic1 libnettle6 libnginx-mod-http-echo libnss-myhostname libntfs-3g883 libp11-kit0 libpam-systemd libpython3.7 libpython3.7-dev libpython3.7-minimal libpython3.7-stdlib libsqlite3-0 libssl-dev libssl1.1 libsystemd0 libtiff5 libudev1 libuv1 libwebp6 libx11-6 libx11-data libxml2 libzstd1 linux-dtb-current-sunxi linux-image-current-sunxi linux-libc-dev linux-u-boot-bananapi-current nginx-common nginx-light ntfs-3g openssl php7.3 php7.3-cli php7.3-common php7.3-curl php7.3-fpm php7.3-gd php7.3-intl php7.3-json php7.3-mbstring php7.3-opcache php7.3-readline php7.3-sqlite3 php7.3-xml php7.3-zip python-apt-common python3-apt python3.7 python3.7-dev python3.7-minimal screen sudo systemd systemd-sysv tzdata udev unzip wireguard-tools wpasupplicant 115 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 140 MB of archives. After this operation, 5,261 kB of additional disk space will be used. [..] Preparing to unpack .../74-hostapd_3%3a2.9-102~armbian21.05.1+1_armhf.deb ... Failed to reload daemon: Connection timed out Failed to retrieve unit state: Connection timed out Failed to stop hostapd.service: Connection timed out See system logs and 'systemctl status hostapd.service' for details. [..] (here I had to kill the process manually via `sudo kill -QUIT 32215`) See system logs and 'systemctl status hostapd.service' for details. Quit invoke-rc.d: initscript hostapd, action "stop" failed. dpkg: warning: old hostapd package pre-removal script subprocess returned error exit status 1 dpkg: trying script from the new package instead ... Failed to reload daemon: Connection timed out Failed to retrieve unit state: Connection timed out Failed to stop hostapd.service: Connection timed out See system logs and 'systemctl status hostapd.service' for details. (I killed this one too) Quit dpkg: error processing archive /tmp/apt-dpkg-install-mivlhm/74-hostapd_3%3a2.9-102~armbian21.05.1+1_armhf.deb (--unpack): new hostapd package pre-removal script subprocess returned error exit status 1 Failed to reload daemon: Connection timed out Failed to reload daemon: Connection timed out Failed to retrieve unit state: Connection timed out Failed to start hostapd.service: Connection timed out See system logs and 'systemctl status hostapd.service' for details. Unpacking wireguard-tools (1.0.20200827-1~bpo10+1) over (1.0.20200513-1~bpo10+1) ... Failed to reload daemon: Connection timed out Preparing to unpack .../98-wpasupplicant_2%3a2.7+git20190128+0c1e29f-6+deb10u3_armhf.deb ... Unpacking wpasupplicant (2:2.7+git20190128+0c1e29f-6+deb10u3) over (2:2.7+git20190128+0c1e29f-6+deb10u2) ... Failed to reload daemon: Connection timed out Errors were encountered while processing: /tmp/apt-dpkg-install-mivlhm/74-hostapd_3%3a2.9-102~armbian21.05.1+1_armhf.deb E: Sub-process /usr/bin/dpkg returned an error code (1) W: Operation was interrupted before it could finish
so try again
tingo@kg-bpi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: hostapd 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 106 not fully installed or removed. Need to get 0 B/401 kB of archives. After this operation, 0 B of additional disk space will be used. [..] Setting up systemd (241-7~deb10u8) ... Failed to try-restart systemd-networkd.service: Connection timed out See system logs and 'systemctl status systemd-networkd.service' for details. [..]
unfortunately, this command never completed (I waited 2 days)
2021-09-19: other bpi - testing armbian 21.08
tingo@kg-core2$ ssh 10.1.161.32 ____ ____ _ | __ )| _ \(_) | _ \| |_) | | | |_) | __/| | |____/|_| |_| Welcome to Armbian 21.08.1 Bullseye with Linux 5.10.60-sunxi System load: 14% Up time: 7 min Memory usage: 8% of 991M IP: 10.1.161.32 CPU temp: 39°C Usage of /: 17% of 7.2G Last login: Sun Sep 19 17:29:01 2021 from 10.1.150.52 tingo@bananapi:~$
os info
tingo@bananapi:~$ cat /etc/armbian-image-release # PLEASE DO NOT EDIT THIS FILE BOARD=bananapi BOARD_NAME="Banana Pi" BOARDFAMILY=sun7i BUILD_REPOSITORY_URL=git@github.com:armbian/build BUILD_REPOSITORY_COMMIT=aec64805a DISTRIBUTION_CODENAME=bullseye DISTRIBUTION_STATUS=supported VERSION=21.08.1 LINUXFAMILY=sunxi ARCH=arm IMAGE_TYPE=stable BOARD_TYPE=conf INITRD_ARCH=arm KERNEL_IMAGE_TYPE=Image IMAGE_UUID=2a7dfb86-72f1-4bc3-a029-1958f4859ee5 tingo@bananapi:~$ cat /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=bananapi BOARD_NAME="Banana Pi" BOARDFAMILY=sun7i BUILD_REPOSITORY_URL=git@github.com:armbian/build BUILD_REPOSITORY_COMMIT=aec64805a DISTRIBUTION_CODENAME=bullseye DISTRIBUTION_STATUS=supported VERSION=21.08.1 LINUXFAMILY=sunxi ARCH=arm IMAGE_TYPE=stable BOARD_TYPE=conf INITRD_ARCH=arm KERNEL_IMAGE_TYPE=Image BRANCH=current tingo@bananapi:~$ cat /etc/os-release PRETTY_NAME="Armbian 21.08.1 Bullseye" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" tingo@bananapi:~$ cat /etc/debian_version 11.0
kernel
tingo@bananapi:~$ uname -a Linux bananapi 5.10.60-sunxi #21.08.1 SMP Wed Aug 25 18:19:32 UTC 2021 armv7l GNU/Linux
which python version?
tingo@bananapi:~$ python3 --version
Python 3.9.2
3.9 - nice.
2021-08-28: bpi - armbian - and this in /var/log/messages
Aug 28 01:48:38 kg-bpi kernel: [10178.549587] Modules linked in: rfkill ch341 usbserial axp20x_adc evdev lima gpu_sched su n4i_gpadc_iio sun4i_ts sunxi_cir sun4i_ss sunxi_cedrus(C) sun4i_drm_hdmi zram uio_pdrv_genirq display_connector uio cpufre q_dt ip_tables x_tables autofs4 axp20x_usb_power industrialio sun4i_gpadc pinctrl_axp209 sunxi phy_generic realtek Aug 28 01:48:38 kg-bpi kernel: [10178.604442] CPU: 0 PID: 3464 Comm: kworker/0:0 Tainted: G C 5.8.16-sunxi #20.08.14 Aug 28 01:48:38 kg-bpi kernel: [10178.626713] Hardware name: Allwinner sun7i (A20) Family Aug 28 01:48:38 kg-bpi kernel: [10178.645787] Workqueue: events output_poll_execute Aug 28 01:48:38 kg-bpi kernel: [10178.664259] PC is at sun4i_hdmi_audio_destroy+0xe/0x30 [sun4i_drm_hdmi] Aug 28 01:48:38 kg-bpi kernel: [10178.684585] LR is at sun4i_hdmi_disable+0x21/0x50 [sun4i_drm_hdmi] Aug 28 01:48:38 kg-bpi kernel: [10178.704418] pc : [<bf85b51e>] lr : [<bf85b911>] psr: 60020033 Aug 28 01:48:38 kg-bpi kernel: [10178.724487] sp : ee2abd58 ip : 00000001 fp : ed806c80 Aug 28 01:48:38 kg-bpi kernel: [10178.743422] r10: 00000000 r9 : c0c2ecd4 r8 : 00000000 Aug 28 01:48:38 kg-bpi kernel: [10178.762254] r7 : 00000000 r6 : bf85d3d4 r5 : edec6bc0 r4 : edec6840 Aug 28 01:48:38 kg-bpi kernel: [10178.782377] r3 : c0f04fc8 r2 : 00000000 r1 : bf85dd14 r0 : 00000000 Aug 28 01:48:38 kg-bpi kernel: [10178.802469] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA Thumb Segment none Aug 28 01:48:38 kg-bpi kernel: [10178.823502] Control: 50c5387d Table: 6ce6c06a DAC: 00000051 Aug 28 01:48:38 kg-bpi kernel: [10179.969016] ---[ end trace cb5e2a2a95c67901 ]---
2021-08-27: bpi - armbian - this evening, I had to reset a couple of circuit breakers that had tripped. For some reason, the banana pi didn't boot properly the first and the second time (I unplugged the power adapter), but when I connected a hdmi monitor and tried for the third time it booted without problems.
2020-11-07: bpi - armbian - mosquitto - I created a minimal config for mosquitto
tingo@kg-bpi:~$ more /etc/mosquitto/mosquitto.conf # Place your local configuration in /etc/mosquitto/conf.d/ # # A full description of the configuration file is at # /usr/share/doc/mosquitto/examples/mosquitto.conf.example pid_file /var/run/mosquitto.pid persistence true persistence_location /var/lib/mosquitto/ log_dest file /var/log/mosquitto/mosquitto.log password_file /etc/mosquitto/bpi.passwords include_dir /etc/mosquitto/conf.d
and used mosquitto_passwd to create and update the password file:
tingo@kg-bpi:~$ ll /etc/mosquitto/bpi.passwords -rw-r--r-- 1 root root 123 Nov 7 20:53 /etc/mosquitto/bpi.passwords
seems to be good enough.
2020-11-07: bpi - armbian - apt - install mosquitto to get a mqtt broker
tingo@kg-bpi:~$ sudo apt install mosquitto Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libev4 libwebsockets8 Suggested packages: apparmor The following NEW packages will be installed: libev4 libwebsockets8 mosquitto 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 267 kB of archives. After this operation, 518 kB of additional disk space will be used. [..] Created symlink /etc/systemd/system/multi-user.target.wants/mosquitto.service ��� /lib/systemd/system/mosquitto.service. Processing triggers for systemd (241-7~deb10u4) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10) ...
hmm, is it started?
tingo@kg-bpi:~$ systemctl status mosquitto.service ��� mosquitto.service - Mosquitto MQTT v3.1/v3.1.1 Broker Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2020-11-07 20:28:01 CET; 55s ago Docs: man:mosquitto.conf(5) man:mosquitto(8) Main PID: 5434 (mosquitto) Tasks: 1 (limit: 2136) Memory: 916.0K CGroup: /system.slice/mosquitto.service ������5434 /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf Nov 07 20:28:01 kg-bpi systemd[1]: Starting Mosquitto MQTT v3.1/v3.1.1 Broker... Nov 07 20:28:01 kg-bpi systemd[1]: Started Mosquitto MQTT v3.1/v3.1.1 Broker.
yes - need to configure it
2020-11-07: bpi - armbian - homeassistant - the first start of 0.117.5 revealed that a few things was missing
apt - install zlib1g-dev, libjpeg-dev, pip3 - install pillow via 'sudo pip3 install pillow'
and the log file for next startup
2020-11-07 20:00:57 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=31 from 2020-11-07 18:35:26.267907) 2020-11-07 20:06:04 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for stage 1 - moving forward 2020-11-07 20:06:05 ERROR (MainThread) [homeassistant.config] Platform error: sensor - Integration 'yr' not found. 2020-11-07 20:07:04 WARNING (MainThread) [homeassistant.components.squeezebox.media_player] The 'host' option is deprecated, please remove it from your configuration 2020-11-07 20:07:04 WARNING (MainThread) [homeassistant.components.squeezebox.media_player] The 'password' option is deprecated, please remove it from your configuration 2020-11-07 20:07:04 WARNING (MainThread) [homeassistant.components.squeezebox.media_player] The 'username' option is deprecated, please remove it from your configuration 2020-11-07 20:07:06 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: zeroconf, met, mqtt, tellstick 2020-11-07 20:07:06 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry configuration.yaml for mqtt Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/homeassistant/config_entries.py", line 234, in async_setup result = await component.async_setup_entry(hass, self) # type: ignore File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/mqtt/__init__.py", line 553, in async_setup_entry await hass.data[DATA_MQTT].async_connect() File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/mqtt/__init__.py", line 805, in async_connect self.conf[CONF_BROKER], KeyError: 'broker' 2020-11-07 20:07:14 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2410733872] Error handling message: required key not provided @ data['category']. Got None 2020-11-07 20:07:19 WARNING (MainThread) [homeassistant.components.media_player] The websocket command media_player_thumbnail is deprecated. Use /api/media_player_proxy instead 2020-11-07 20:07:19 WARNING (MainThread) [homeassistant.components.media_player] The websocket command media_player_thumbnail is deprecated. Use /api/media_player_proxy instead 2020-11-07 20:07:29 WARNING (MainThread) [homeassistant.components.media_player] The websocket command media_player_thumbnail is deprecated. Use /api/media_player_proxy instead 2020-11-07 20:07:37 WARNING (MainThread) [homeassistant.bootstrap] Support for the running Python version 3.7.3 is deprecated and will be removed in the first release after December 7, 2020. Please upgrade Python to 3.8.0 or higher. 2020-11-07 20:07:37 ERROR (MainThread) [homeassistant.helpers.event] Error while processing state changed for sensor.stueplante_fuktighet Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/homeassistant/helpers/event.py", line 258, in _async_state_change_dispatcher hass.async_run_hass_job(job, event) File "/usr/local/lib/python3.7/dist-packages/homeassistant/core.py", line 434, in async_run_hass_job hassjob.target(*args) File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/plant/__init__.py", line 189, in _state_changed_event self.state_changed(event.data.get("entity_id"), event.data.get("new_state")) File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/plant/__init__.py", line 204, in state_changed value = int(float(value)) ValueError: could not convert string to float: 'None' 2020-11-07 20:07:37 WARNING (SyncWorker_26) [homeassistant.bootstrap] Unable to open the Home Assistant UI in a browser. Open it yourself at http://127.0.0.1:8123 2020-11-07 20:08:00 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2543086928] Error handling message: required key not provided @ data['category']. Got None 2020-11-07 20:08:01 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2408183984] Error handling message: required key not provided @ data['category']. Got None 2020-11-07 20:08:07 WARNING (MainThread) [homeassistant.components.media_player] The websocket command media_player_thumbnail is deprecated. Use /api/media_player_proxy instead
ok, lets see, I need to set up an mqtt broker.
2020-11-07: bpi - armbian - homeassistant - upgrade (let's see if this works. Before the upgrade I have HA version 0.104.3). I stopped HA, then
tingo@kg-bpi:~$ sudo pip3 install --upgrade homeassistant [..] Found existing installation: homeassistant 0.104.3 Uninstalling homeassistant-0.104.3: Successfully uninstalled homeassistant-0.104.3 Successfully installed aiohttp-3.6.2 certifi-2020.6.20 ciso8601-2.1.3 cryptography-3.2 h11-0.11.0 homeassistant-0.117.5 httpcore-0.12.1 httpx-0.16.1 importlib-metadata-1.6.0 jinja2-2.11.2 python-slugify-4.0.1 pytz-2020.4 pyyaml-5.3.1 requests-2.24.0 rfc3986-1.4.0 sniffio-1.2.0 voluptuous-0.12.0 voluptuous-serialize-2.4.0
easy enough.
2020-11-07: bpi - reboot, and Armbian 20.08.17 is in
tingo@kg-core2$ ssh bpi ____ ____ _ | __ )| _ \(_) | _ \| |_) | | | |_) | __/| | |____/|_| |_| Welcome to Armbian 20.08.17 Buster with Linux 5.8.16-sunxi System load: 72% Up time: 0 min Memory usage: 8% of 996M IP: 10.1.150.61 CPU temp: 36��C Usage of /: 49% of 15G Last login: Sat Nov 7 17:36:57 2020 from 10.1.150.52
lsb release
tingo@kg-bpi:~$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster
armbian-release
tingo@kg-bpi:~$ cat /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=bananapi BOARD_NAME="Banana Pi" BOARDFAMILY=sun7i BUILD_REPOSITORY_URL=https://github.com/armbian/build BUILD_REPOSITORY_COMMIT=740c5f5d-dirty DISTRIBUTION_CODENAME=buster DISTRIBUTION_STATUS=supported VERSION=20.08.17 LINUXFAMILY=sunxi BRANCH=current ARCH=arm IMAGE_TYPE=stable BOARD_TYPE=conf INITRD_ARCH=arm KERNEL_IMAGE_TYPE=Image
os-release
tingo@kg-bpi:~$ cat /etc/os-release PRETTY_NAME="Armbian 20.08.17 Buster" NAME="Debian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
kernel
tingo@kg-bpi:~$ uname -a Linux kg-bpi 5.8.16-sunxi #20.08.14 SMP Tue Oct 20 22:15:32 CEST 2020 armv7l GNU/Linux
ok
2020-11-07: bpi - apt - upgrade
tingo@kg-bpi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: apache2-bin apt apt-transport-https apt-utils armbian-config armbian-firmware base-files bind9-host ca-certificates chrony curl dbus distro-info-data dnsutils e2fsprogs fuse git git-man hostapd htop iputils-arping iputils-ping libapache2-mod-php7.3 libapt-inst2.0 libapt-pkg5.0 libbind9-161 libbluetooth3 libboost-iostreams1.67.0 libboost-system1.67.0 libcom-err2 libcurl3-gnutls libcurl4 libdbus-1-3 libdns-export1104 libdns1104 libext2fs2 libfreetype6 libfuse2 libgnutls30 libicu63 libidn2-0 libirs161 libisc-export1100 libisc1100 libisccc161 libisccfg163 libjson-c3 libldap-2.4-2 libldap-common liblwres161 libnginx-mod-http-echo libnss-myhostname libpam-systemd libperl5.28 libpython3.7 libpython3.7-dev libpython3.7-minimal libpython3.7-stdlib libss2 libssl-dev libssl1.1 libsystemd0 libudev1 libx11-6 libx11-data linux-buster-root-current-bananapi linux-dtb-current-sunxi linux-image-current-sunxi linux-libc-dev linux-u-boot-bananapi-current nginx-common nginx-light openssh-client openssh-server openssh-sftp-server openssl perl perl-base perl-modules-5.28 php7.3 php7.3-cli php7.3-common php7.3-curl php7.3-fpm php7.3-gd php7.3-intl php7.3-json php7.3-mbstring php7.3-opcache php7.3-readline php7.3-sqlite3 php7.3-xml php7.3-zip python3.7 python3.7-dev python3.7-minimal sudo systemd systemd-sysv tzdata udev wireguard-tools wpasupplicant 103 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 153 MB of archives. After this operation, 33.2 MB of additional disk space will be used. Do you want to continue? [Y/n] y [..] Setting up libapache2-mod-php7.3 (7.3.19-1~deb10u1) ... Warning: Could not load Apache 2.4 maintainer script helper. Replacing config file /etc/php/7.3/apache2/php.ini with new version [..] update-initramfs: Generating /boot/initrd.img-5.8.16-sunxi update-initramfs: Converting to u-boot format Processing triggers for libc-bin (2.28-10) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for ca-certificates (20200601~deb10u1) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done.
ok
2020-03-16: bpi - facts
tingo@kg-bpi:~$ date;/sbin/swapon --show;df -h;uptime Mon Mar 16 11:46:00 CET 2020 NAME TYPE SIZE USED PRIO /dev/zram1 partition 498.4M 7.5M -2 Filesystem Size Used Avail Use% Mounted on udev 447M 0 447M 0% /dev tmpfs 100M 12M 89M 12% /run /dev/mmcblk0p1 15G 7.3G 7.1G 51% / tmpfs 499M 0 499M 0% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 499M 0 499M 0% /sys/fs/cgroup tmpfs 499M 4.0K 499M 1% /tmp /dev/zram0 49M 708K 45M 2% /var/log tmpfs 100M 0 100M 0% /run/user/1000 11:46:00 up 43 days, 17:25, 3 users, load average: 2.25, 2.99, 3.03
info on zram devices
tingo@kg-bpi:~$ sudo zramctl NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT /dev/zram1 lzo 498.4M 37.4M 14.5M 15.5M 2 [SWAP] /dev/zram0 zstd 50M 768K 49.9K 396K 2 /var/log tingo@kg-bpi:~$ ls -l /dev/zram* brw-rw---- 1 root disk 254, 0 Feb 1 18:10 /dev/zram0 brw-rw---- 1 root disk 254, 1 Feb 1 18:10 /dev/zram1 brw-rw---- 1 root disk 254, 2 Feb 1 18:10 /dev/zram2
ok
2020-02-01: bpi - Home Assistant - I started it with 'hass --open-ui' from a shell and when it had started up, I started rtl_433 from the other Pi to get 433 MHz sensor data. everything appears to work now. So now I have
Home Assistant 0.104.3 Bolt 3.7.0
running on
tingo@kg-bpi:~$ cat /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=bananapi BOARD_NAME="Banana Pi" BOARDFAMILY=sun7i BUILD_REPOSITORY_URL=https://github.com/armbian/rkbin BUILD_REPOSITORY_COMMIT=a632039 DISTRIBUTION_CODENAME=buster DISTRIBUTION_STATUS=supported VERSION=20.02.0-rc0 LINUXFAMILY=sunxi BRANCH=current ARCH=arm IMAGE_TYPE=stable BOARD_TYPE=conf INITRD_ARCH=arm KERNEL_IMAGE_TYPE=Image
which is based on
tingo@kg-bpi:~$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster
cool.
2020-02-01: bpi - after fixing ssh keys, logging in
tingo@kg-core2$ ssh bpi tingo@kg-bpi.kg4.no's password: ____ ____ _ | __ )| _ \(_) | _ \| |_) | | | |_) | __/| | |____/|_| |_| Welcome to Armbian buster with Linux 5.4.12-sunxi System load: 0.27 0.33 0.17 Up time: 4 min Memory usage: 8 % of 996MB IP: 10.1.150.61 CPU temp: 31��C Usage of /: 48% of 15G Last login: Sat Feb 1 18:25:08 2020 from 10.1.150.52 tingo@kg-bpi:~$
ok
2020-02-01: bpi - I replaced the SD card with the one from the other bpi.
2020-02-01: bpi - I shut down hass, and shut down the machine with 'sudo shutdown -P now'.
2020-02-01: other bpi - armbian - I shut down hass, then I ran 'sudo shutdown -P now" to shut down the machine
2020-02-01: other bpi - armbian - enable the telldusd servcie
tingo@bananapi:~$ systemctl status telldusd ��� telldusd.service - Tellstick service daemon Loaded: loaded (/etc/systemd/system/telldusd.service; disabled; vendor preset: enabled) Active: inactive (dead) tingo@bananapi:~$ sudo systemctl enable telldusd Created symlink /etc/systemd/system/multi-user.target.wants/telldusd.service ��� /etc/systemd/system/telldusd.service. tingo@bananapi:~$ systemctl status telldusd ��� telldusd.service - Tellstick service daemon Loaded: loaded (/etc/systemd/system/telldusd.service; enabled; vendor preset: enabled) Active: inactive (dead)
ok. Fix hostname:
tingo@bananapi:~$ cat /etc/hostname kg-bpi
set up dhcp "static" ip address request
tingo@bananapi:~$ grep dhcp-client-identifier /etc/dhcp/dhclient.conf send dhcp-client-identifier "kg-bpi.kg4.no"; #send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
ok, I guess we're ready now. uptime status
tingo@bananapi:~$ date;uptime Sat Feb 1 18:06:47 CET 2020 18:06:47 up 4 days, 21:35, 4 users, load average: 0.22, 0.15, 0.10
ok
2020-01-29: other bpi - armbian - uptime - it has been running for
tingo@bananapi:~$ date;uptime Wed 29 Jan 2020 09:39:34 PM CET 21:39:34 up 2 days, 1:08, 4 users, load average: 0.09, 0.11, 0.09 tingo@bananapi:~$ echo $LANG en_US.UTF-8
or
tingo@bananapi:~$ LANG=nb_NO.UTF-8 date;uptime Wed Jan 29 21:41:55 CET 2020 21:41:55 up 2 days, 1:10, 4 users, load average: 0.05, 0.09, 0.09
I think that is good enough to try production.
2020-01-27: other bpi - armbian - apt - install ntp hang on, seems it uses chronyd / chronyc instead
tingo@bananapi:~$ sudo chronyc tracking Reference ID : 81468422 (stratum2-1.ntp.techfak.net) Stratum : 3 Ref time (UTC) : Mon Jan 27 19:46:30 2020 System time : 0.000340001 seconds slow of NTP time Last offset : +0.000101680 seconds RMS offset : 0.000233987 seconds Frequency : 68.539 ppm fast Residual freq : +0.005 ppm Skew : 0.131 ppm Root delay : 0.030551421 seconds Root dispersion : 0.004688813 seconds Update interval : 64.6 seconds Leap status : Normal tingo@bananapi:~$ sudo chronyc sources 210 Number of sources = 4 MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^* stratum2-1.ntp.techfak.n> 2 6 377 52 -1748us[-1897us] +/- 19ms ^- mika.470n.act.tsgnl.co 2 6 377 47 -7959us[-7959us] +/- 188ms ^+ flightplandatabase.com 2 6 377 49 +2322us[+2322us] +/- 68ms ^+ ip.tcp.lv 2 6 377 50 +4277us[+4277us] +/- 53ms
I guess that is good enough.
2020-01-27: other bpi - armbian - the machine was dead today. Looked like something had crashed, based on /var/log/messages.
2020-01-26: other bpi - armbian - homeassistant - install
tingo@bananapi:~$ sudo pip3 install homeassistant [..] arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory #include <ffi.h> ^~~~~~~ compilation terminated. error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 ---------------------------------------- Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-xhjfwp_i/cffi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-gsj1nd9i/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-uvpjqe32 --compile" failed with error code 1 in /tmp/pip-install-xhjfwp_i/cffi/ ---------------------------------------- Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-uvpjqe32 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.8.0 wheel "cffi>=1.1; python_implementation != 'PyPy'"" failed with error code 1 in None
ok, there is a package python3-cffi-backend, install it
tingo@bananapi:~$ sudo apt install python3-cffi-backend Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: python3-cffi-backend 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 70.2 kB of archives. After this operation, 140 kB of additional disk space will be used. [..] Setting up python3-cffi-backend (1.12.2-1) ...
and
tingo@bananapi:~$ sudo apt install libffi-dev Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libffi-dev 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 154 kB of archives. After this operation, 323 kB of additional disk space will be used. [..] Setting up libffi-dev:armhf (3.2.1-9) ... Processing triggers for man-db (2.8.5-2) ...
then retry
tingo@bananapi:~$ sudo pip3 install homeassistant [..] Successfully installed MarkupSafe-1.1.1 PyJWT-1.7.1 aiohttp-3.6.1 astral-1.10.1 async-timeout-3.0.1 attrs-19.3.0 bcrypt-3.1.7 certifi-2019.11.28 cffi-1.13.2 chardet-3.0.4 cryptography-2.8 homeassistant-0.104.3 idna-2.8 importlib-metadata-1.3.0 jinja2-2.10.3 multidict-4.7.4 pycparser-2.19 python-slugify-4.0.0 pytz-2019.3 pyyaml-5.2 requests-2.22.0 ruamel.yaml-0.15.100 six-1.14.0 text-unidecode-1.3 urllib3-1.25.8 voluptuous-0.11.7 voluptuous-serialize-2.3.0 yarl-1.4.2 zipp-2.1.0
ok. Now a test run
tingo@bananapi:~$ hass --open-ui Unable to find configuration. Creating default one in /home/tingo/.homeassistant Config directory: /home/tingo/.homeassistant [..]
the first test run didn't succeed. Fiddled with the config, then test it
tingo@bananapi:~$ hass --script check_config Testing configuration at /home/tingo/.homeassistant
ok, that looks better. Added the rest of the config, fixed a few formatting errors, check again
tingo@bananapi:~$ hass --script check_config Testing configuration at /home/tingo/.homeassistant
as soon as the database is finished copying over, I'm ready for a new test run.
2020-01-26: bpi - static ip setup
tingo@kg-bpi:~$ grep dhcp-client-identifier /etc/dhcp/dhclient.conf send dhcp-client-identifier "kg-bpi.kg4.no"; #send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
that's it, the rest is handled in the dhcp server setup.
2020-01-26: other bpi - armbian - bolt - configure set up the following files for nginx
tingo@bananapi:~$ ll /etc/nginx/global/* -rw-r--r-- 1 root root 2053 Jan 26 19:14 /etc/nginx/global/bolt.conf -rw-r--r-- 1 root root 1016 Jan 26 19:22 /etc/nginx/global/php-fpm.conf -rw-r--r-- 1 root root 507 Jan 26 19:18 /etc/nginx/global/restrictions.conf tingo@bananapi:~$ ll /etc/nginx/sites-available/* /etc/nginx/sites-enabled/* -rw-r--r-- 1 root root 2412 Aug 13 18:10 /etc/nginx/sites-available/default -rw-r--r-- 1 root root 560 Jan 26 19:08 /etc/nginx/sites-available/localhost lrwxrwxrwx 1 root root 36 Jan 26 19:32 /etc/nginx/sites-enabled/localhost -> /etc/nginx/sites-available/localhost
they are default files from bolt installation, adjusted for the path of the public folder: /var/www/sites/logb/public. I also had to adjust permissions / ownership on several directories and files, to get bolt to play nice.
tingo@bananapi:/var/www/sites/logb$ ll total 256 drwxr-xr-x 8 tingo www-data 4096 Jan 26 18:31 ./ drwxr-xr-x 3 root root 4096 Jan 26 18:15 ../ drwxrwxrwx 5 tingo tingo 4096 Aug 25 2018 app/ -rw-r--r-- 1 tingo tingo 53 Jan 26 18:31 .bolt.yml -rw-r--r-- 1 tingo tingo 877 Aug 25 2018 composer.json -rw-r--r-- 1 tingo tingo 207993 Jan 26 18:26 composer.lock drwxrwxrwx 3 tingo tingo 4096 Jan 26 18:31 extensions/ -rw-r--r-- 1 tingo tingo 353 Aug 25 2018 .gitignore -rw-r--r-- 1 tingo tingo 3912 Aug 25 2018 index.php drwxrwxrwx 7 tingo www-data 4096 Aug 25 2018 public/ -rw-r--r-- 1 tingo tingo 345 Aug 25 2018 README.md drwxr-xr-x 3 tingo tingo 4096 Aug 25 2018 src/ drwxrwxrwx 2 tingo tingo 4096 Jan 26 18:31 var/ drwxr-xr-x 35 tingo tingo 4096 Jan 26 18:26 vendor/ tingo@bananapi:/var/www/sites/logb$ ll app/* lrwxrwxrwx 1 tingo tingo 17 Jan 26 18:15 app/nut -> ../vendor/bin/nut* app/cache: total 96 drwxrwxrwx 8 tingo www-data 4096 Jan 26 20:32 ./ drwxrwxrwx 5 tingo tingo 4096 Aug 25 2018 ../ -rw-r--r-- 1 tingo tingo 10 Jan 26 18:31 .assetsalt drwxrwxr-x 3 tingo www-data 4096 Jan 26 18:31 composer/ -rw-rw-r-- 1 www-data www-data 45960 Jan 26 20:32 config-cache.json -rw-rw-r-- 1 www-data www-data 10 Jan 26 20:32 dbcheck.ts drwxrwxr-x 4 tingo www-data 4096 Jan 26 20:32 development/ drwxr-xr-x 2 www-data www-data 4096 Jan 26 19:54 exception/ -rw-r--r-- 1 tingo tingo 14 Aug 25 2018 .gitignore drwxrwxr-x 34 tingo www-data 4096 Jan 26 20:35 profiler/ drwxr-xr-x 2 www-data www-data 4096 Jan 26 20:17 .sessions/ drwxrwxr-x 2 www-data www-data 4096 Jan 26 20:32 trans/ -rw-rw-r-- 1 tingo tingo 32 Jan 26 18:31 .version app/config: total 76 drwxrwxrwx 3 tingo tingo 4096 Jan 26 20:16 ./ drwxrwxrwx 5 tingo tingo 4096 Aug 25 2018 ../ -rw-r--r-- 1 www-data tingo 21012 Jan 26 20:32 config.yml -rw-r--r-- 1 www-data tingo 12219 Jan 26 18:31 contenttypes.yml drwxrwxrwx 2 tingo tingo 4096 Jan 26 18:31 extensions/ -rw-r--r-- 1 tingo tingo 12 Aug 25 2018 .gitignore -rw-r--r-- 1 www-data tingo 672 Jan 26 18:31 menu.yml -rw-r--r-- 1 www-data tingo 8519 Jan 26 18:31 permissions.yml -rw-r--r-- 1 www-data tingo 3498 Jan 26 18:31 routing.yml -rw-r--r-- 1 www-data tingo 793 Jan 26 18:31 taxonomy.yml app/database: total 588 drwxrwxrwx 2 tingo www-data 4096 Jan 26 20:35 ./ drwxrwxrwx 5 tingo tingo 4096 Aug 25 2018 ../ -rw-r--r-- 1 www-data www-data 294912 Jan 26 19:44 bolt_3.7.0.db -rw-r--r-- 1 www-data tingo 293888 Jan 26 20:38 bolt.db -rw-r--r-- 1 tingo tingo 14 Aug 25 2018 .gitignore tingo@bananapi:/var/www/sites/logb$ ll public/ total 36 drwxrwxrwx 7 tingo www-data 4096 Aug 25 2018 ./ drwxr-xr-x 8 tingo www-data 4096 Jan 26 18:31 ../ drwxrwxr-x 6 tingo tingo 4096 Jan 26 18:31 bolt-public/ drwxrwxr-x 2 tingo www-data 4096 Aug 25 2018 extensions/ drwxrwxr-x 2 tingo www-data 4096 Jan 26 19:47 files/ -rw-r--r-- 1 tingo tingo 2956 Aug 25 2018 .htaccess -rw-r--r-- 1 tingo tingo 295 Aug 25 2018 index.php drwxrwxr-x 5 tingo www-data 4096 Jan 26 18:31 theme/ drwxrwxr-x 2 tingo www-data 4096 Aug 25 2018 thumbs/
that's it for bolt.
2020-01-26: other bpi - armbian - composer - try to install bolt
tingo@bananapi:/var/www/sites$ composer create-project bolt/composer-install:3.7.x logb --prefer-dist Installing bolt/composer-install (3.7.0) In ProjectInstaller.php line 68: mkdir(): Permission denied create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
as expected, my user doesn't have permissions there
tingo@bananapi:/var/www/sites$ sudo -u www-data -g www-data composer create-project bolt/composer-install:3.7.x logb --prefer-dist [sudo] password for tingo: Cannot create cache directory /var/www/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache Installing bolt/composer-install (3.7.0) Cannot create cache directory /var/www/.composer/cache/files/, or directory is not writable. Proceeding without cache In ProjectInstaller.php line 68: mkdir(): Permission denied create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
this also fails, the www-data user doesn't have permissions there too. Workaround:
tingo@bananapi:/var/www/sites$ sudo chown www-data . tingo@bananapi:/var/www/sites$ ll total 8 drwxr-xr-x 2 www-data root 4096 Jan 26 17:37 ./ drwxr-xr-x 4 root root 4096 Jan 26 17:37 ../
try again
tingo@bananapi:/var/www/sites$ sudo -u www-data -g www-data composer create-project bolt/composer-install:3.7.x logb --prefer-dist Cannot create cache directory /var/www/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache Installing bolt/composer-install (3.7.0) Cannot create cache directory /var/www/.composer/cache/files/, or directory is not writable. Proceeding without cache - Installing bolt/composer-install (3.7.0): Downloading (100%) Created project in logb Cannot create cache directory /var/www/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache Cannot create cache directory /var/www/.composer/cache/files/, or directory is not writable. Proceeding without cache Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 98 installs, 0 updates, 0 removals [..] Package bolt/pathogen is abandoned, you should avoid using it. No replacement was suggested. Package silex/silex is abandoned, you should avoid using it. Use symfony/flex instead. Package silex/web-profiler is abandoned, you should avoid using it. No replacement was suggested. [..] > Bolt\Composer\ScriptHandler::updateProject > Bolt\Composer\ScriptHandler::installAssets > Bolt\Composer\ScriptHandler::configureProject Do you want to use Bolt's standard folder structure? (yes/no) [yes]: > Would you like to enable the default site Bundle? (yes/no) [yes]: > [OK] Added the site bundle to .bolt.yml Installing bolt_assets to /var/www/sites/logb/public/bolt-public > Bolt\Composer\ScriptHandler::installThemesAndFiles Installing files to /var/www/sites/logb/public/files Installing themes to /var/www/sites/logb/public/theme > nut extensions:setup Creating/updating composer.json =============================== [OK] Success Updating autoloaders ==================== Generating autoload files > Bolt\Composer\EventListener\PackageEventListener::dump [OK] Autoloaders updated
Hmm, probably not wisest to let everyhing be installed as www-data. Redo.
tingo@bananapi:/var/www/sites$ sudo rm -rf logb tingo@bananapi:/var/www/sites$ sudo chown tingo .
now I can run composer without sudo
tingo@bananapi:/var/www/sites$ composer create-project bolt/composer-install:3.7.x logb --prefer-dist Installing bolt/composer-install (3.7.0) - Installing bolt/composer-install (3.7.0): Downloading (100%) Created project in logb Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 98 installs, 0 updates, 0 removals [..] Package bolt/pathogen is abandoned, you should avoid using it. No replacement was suggested. Package silex/silex is abandoned, you should avoid using it. Use symfony/flex instead. Package silex/web-profiler is abandoned, you should avoid using it. No replacement was suggested. [..] Do you want to use Bolt's standard folder structure? (yes/no) [yes]: > Would you like to enable the default site Bundle? (yes/no) [yes]: > [OK] Added the site bundle to .bolt.yml Installing bolt_assets to /var/www/sites/logb/public/bolt-public > Bolt\Composer\ScriptHandler::installThemesAndFiles Installing files to /var/www/sites/logb/public/files Installing themes to /var/www/sites/logb/public/theme > nut extensions:setup Creating/updating composer.json =============================== [OK] Success Updating autoloaders ==================== Generating autoload files > Bolt\Composer\EventListener\PackageEventListener::dump [OK] Autoloaders updated
restore permissions
tingo@bananapi:/var/www/sites$ sudo chown root .
check permissions on bolt directory
tingo@bananapi:/var/www/sites$ ls -ld logb/ drwxrwxrwx 8 tingo tingo 4096 Jan 26 18:31 logb/ tingo@bananapi:/var/www/sites$ chmod go-w logb/ tingo@bananapi:/var/www/sites$ ls -ld logb/ drwxr-xr-x 8 tingo tingo 4096 Jan 26 18:31 logb/
fixed
2020-01-26: other bpi - armbian - apt - install php,
tingo@bananapi:~$ sudo apt install php Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: apache2-bin libapache2-mod-php7.3 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libbrotli1 liblua5.2-0 libmagic-mgc libmagic1 libsodium23 php-common php7.3 php7.3-cli php7.3-common php7.3-json php7.3-opcache php7.3-readline Suggested packages: apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser php-pear file Recommended packages: apache2 The following NEW packages will be installed: apache2-bin libapache2-mod-php7.3 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libbrotli1 liblua5.2-0 libmagic-mgc libmagic1 libsodium23 php php-common php7.3 php7.3-cli php7.3-common php7.3-json php7.3-opcache php7.3-readline 0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded. Need to get 5,261 kB of archives. After this operation, 22.6 MB of additional disk space will be used. [..] Setting up php7.3 (7.3.11-1~deb10u1) ... Setting up php (2:7.3+69) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10) ...
we also need
tingo@bananapi:~$ sudo apt install php7.3-curl php7.3-gd php7.3-intl php7.3-mbstring php7.3-xml php7.3-zip Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: fontconfig-config fonts-dejavu-core libfontconfig1 libfreetype6 libgd3 libjbig0 libjpeg62-turbo libtiff5 libwebp6 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxpm4 libxslt1.1 libzip4 Suggested packages: libgd-tools The following NEW packages will be installed: fontconfig-config fonts-dejavu-core libfontconfig1 libfreetype6 libgd3 libjbig0 libjpeg62-turbo libtiff5 libwebp6 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxpm4 libxslt1.1 libzip4 php7.3-curl php7.3-gd php7.3-intl php7.3-mbstring php7.3-xml php7.3-zip 0 upgraded, 23 newly installed, 0 to remove and 0 not upgraded. Need to get 4,950 kB of archives. After this operation, 12.0 MB of additional disk space will be used. [..] Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10) ...
and the sqlite3 module
tingo@bananapi:~$ sudo apt install php7.3-sqlite3 Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: php7.3-sqlite3 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 20.9 kB of archives. After this operation, 79.9 kB of additional disk space will be used. [..] Creating config file /etc/php/7.3/mods-available/pdo_sqlite.ini with new version Processing triggers for libapache2-mod-php7.3 (7.3.11-1~deb10u1) ... Warning: Could not load Apache 2.4 maintainer script helper.
and
tingo@bananapi:~$ sudo apt install php7.3-fpm Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: php-pear The following NEW packages will be installed: php7.3-fpm 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 1,186 kB of archives. After this operation, 2,774 kB of additional disk space will be used. [..] Creating config file /etc/php/7.3/fpm/php.ini with new version Created symlink /etc/systemd/system/multi-user.target.wants/php7.3-fpm.service ��� /lib/systemd/system/php7.3-fpm.service. Processing triggers for man-db (2.8.5-2) ... Processing triggers for systemd (241-7~deb10u2) ...
ok
2020-01-26: other bpi - armbian - apt - install nginx-light (prepare for bolt installation / upgrade)
tingo@bananapi:~$ sudo apt install nginx-light Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libnginx-mod-http-echo nginx-common Suggested packages: fcgiwrap nginx-doc ssl-cert The following NEW packages will be installed: libnginx-mod-http-echo nginx-common nginx-light 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 655 kB of archives. After this operation, 1,258 kB of additional disk space will be used. [..] Setting up nginx-light (1.14.2-2+deb10u1) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for systemd (241-7~deb10u2) ...
also install composer, as bolt recommends it
tingo@bananapi:~$ sudo apt install composer Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: jsonlint php-composer-ca-bundle php-composer-semver php-composer-spdx-licenses php-composer-xdebug-handler php-json-schema php-psr-log php-symfony-console php-symfony-debug php-symfony-filesystem php-symfony-finder php-symfony-process Suggested packages: fossil mercurial subversion php-symfony-event-dispatcher php-symfony-lock The following NEW packages will be installed: composer jsonlint php-composer-ca-bundle php-composer-semver php-composer-spdx-licenses php-composer-xdebug-handler php-json-schema php-psr-log php-symfony-console php-symfony-debug php-symfony-filesystem php-symfony-finder php-symfony-process 0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded. Need to get 646 kB of archives. After this operation, 3,487 kB of additional disk space will be used. [..] Setting up composer (1.8.4-1) ... Processing triggers for man-db (2.8.5-2) ...
ok.
2020-01-25: other bpi - armbian - pip3 - install tellcore (needs setuptools)
tingo@bananapi:~$ sudo pip3 install setuptools Collecting setuptools Downloading https://files.pythonhosted.org/packages/a7/c5/6c1acea1b4ea88b86b03280f3fde1efa04fefecd4e7d2af13e602661cde4/setuptools-45.1.0-py3-none-any.whl (583kB) 47% |������������������������������������������������ | 276kB 3.1MB/s eta 0:00:0 49% |������������������������������������������������ | 286kB 3.1MB/s eta 0:00:0 50% |��������������������������������������������������� | 296kB 2.9MB/s eta 0:00 52% |��������������������������������������������������� | 307kB 3.0MB/s eta 0:00 54% |������������������������������������������������������ | 317kB 3.0MB/s eta 0: 56% |������������������������������������������������������ | 327kB 3.0MB/s eta 0: 57% |��������������������������������������������������������� | 337kB 3.0MB/s eta 59% |��������������������������������������������������������� | 348kB 2.9MB/s eta 61% |������������������������������������������������������������ | 358kB 3.0MB/s et 63% |��������������������������������������������������������������� | 368kB 3.0MB/s 64% |��������������������������������������������������������������� | 378kB 2.8MB/s 66% |������������������������������������������������������������������ | 389kB 3.0MB/ 68% |������������������������������������������������������������������ | 399kB 3.0MB/ 70% |��������������������������������������������������������������������� | 409kB 3.0M 71% |��������������������������������������������������������������������� | 419kB 3.0M 73% |������������������������������������������������������������������������ | 430kB 2. 75% |��������������������������������������������������������������������������� | 440kB 77% |��������������������������������������������������������������������������� | 450kB 78% |������������������������������������������������������������������������������ | 460k 80% |������������������������������������������������������������������������������ | 471k 82% |��������������������������������������������������������������������������������� | 48 84% |��������������������������������������������������������������������������������� | 49 85% |������������������������������������������������������������������������������������ | 87% |������������������������������������������������������������������������������������ | 89% |��������������������������������������������������������������������������������������� 91% |������������������������������������������������������������������������������������������ 92% |������������������������������������������������������������������������������������������ 94% |������������������������������������������������������������������������������������������ 96% |������������������������������������������������������������������������������������������ 98% |������������������������������������������������������������������������������������������ 99% |������������������������������������������������������������������������������������������ 100% |������������������������������������������������������������������������������������������������| 593kB 273kB/s Installing collected packages: setuptools Successfully installed setuptools-45.1.0
and now tellcore-py
tingo@bananapi:~$ sudo pip3 install tellcore-py Collecting tellcore-py Using cached https://files.pythonhosted.org/packages/08/cc/dc921d15f77b54b7a4b7a20c6f1747d6e132d33e69b1f6d100bacf9b4156/tellcore-py-1.1.3.tar.gz Building wheels for collected packages: tellcore-py Running setup.py bdist_wheel for tellcore-py ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-s5ahg5vi/tellcore-py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-dkyuokm5 --python-tag cp37: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help error: invalid command 'bdist_wheel' ---------------------------------------- Failed building wheel for tellcore-py Running setup.py clean for tellcore-py Failed to build tellcore-py Installing collected packages: tellcore-py Running setup.py install for tellcore-py ... done Successfully installed tellcore-py-1.1.3
ok
2020-01-25: other bpi - armbian - telldus core - configure it
tingo@bananapi:~/work/telldus-core-2.1.2$ more /etc/tellstick.conf user = "nobody" group = "plugdev" ignoreControllerConfirmation = "false" device { id = 1 name = "Example device" protocol = "arctech" model = "codeswitch" parameters { house = "A" unit = "1" } }
add a controller section (copied info from the bpi)
tingo@bananapi:~/work/telldus-core-2.1.2$ more /etc/tellstick.conf user = "nobody" group = "plugdev" ignoreControllerConfirmation = "false" controller { id = 1 # name = "" type = 2 serial = "A6028ED8" } device { id = 1 name = "Example device" protocol = "arctech" model = "codeswitch" parameters { house = "A" unit = "1" } }
ok. Also, add a systemd service file
tingo@bananapi:~/work/telldus-core-2.1.2$ more /etc/systemd/system/telldusd.service [Unit] Description=Tellstick service daemon After=multi-user.target [Service] Type=forking ExecStart=/usr/local/sbin/telldusd [Install] WantedBy=multi-user.target
ok
2020-01-25: other bpi - armbian - telldus core - fetch the source
tingo@bananapi:~/dl$ wget http://download.telldus.com/TellStick/Software/telldus-core/telldus-core-2.1.2.tar.gz [..]
now try to build it cmake
tingo@bananapi:~/work/telldus-core-2.1.2$ cmake . -- The C compiler identification is GNU 8.3.0 -- The CXX compiler identification is GNU 8.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Checking for one of the modules 'libftdi' -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Configuring done -- Generating done -- Build files have been written to: /home/tingo/work/telldus-core-2.1.2
then make
tingo@bananapi:~/work/telldus-core-2.1.2$ make Scanning dependencies of target TelldusCommon [ 1%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Event.cpp.o [ 3%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Message.cpp.o [ 5%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Mutex.cpp.o [ 7%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Strings.cpp.o [ 8%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Thread.cpp.o [ 10%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Event_unix.cpp.o [ 12%] Building CXX object common/CMakeFiles/TelldusCommon.dir/EventHandler_unix.cpp.o /home/tingo/work/telldus-core-2.1.2/common/EventHandler_unix.cpp: In member function ���bool TelldusCore::EventHandler::waitForAny()���: /home/tingo/work/telldus-core-2.1.2/common/EventHandler_unix.cpp:83:35: warning: narrowing conversion of ���(((uint64_t)now.timeval::tv_sec) + (abstime_ns_large / 1000000000))��� from ���uint64_t��� {aka ���long long unsigned int���} to ���__time_t��� {aka ���long int���} inside { } [-Wnarrowing] timespec abstime = { now.tv_sec + (abstime_ns_large / 1000000000), abstime_ns_large % 1000000000 }; ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/tingo/work/telldus-core-2.1.2/common/EventHandler_unix.cpp:83:87: warning: narrowing conversion of ���(abstime_ns_large % 1000000000)��� from ���uint64_t��� {aka ���long long unsigned int���} to ���__syscall_slong_t��� {aka ���long int���} inside { } [-Wnarrowing] timespec abstime = { now.tv_sec + (abstime_ns_large / 1000000000), abstime_ns_large % 1000000000 }; ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ [ 14%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Socket_unix.cpp.o [ 16%] Linking CXX static library libTelldusCommon.a [ 16%] Built target TelldusCommon Scanning dependencies of target telldusd [ 17%] Building CXX object service/CMakeFiles/telldusd.dir/ClientCommunicationHandler.cpp.o [ 19%] Building CXX object service/CMakeFiles/telldusd.dir/Controller.cpp.o [ 21%] Building CXX object service/CMakeFiles/telldusd.dir/ControllerManager.cpp.o [ 23%] Building CXX object service/CMakeFiles/telldusd.dir/ControllerMessage.cpp.o [ 25%] Building CXX object service/CMakeFiles/telldusd.dir/Device.cpp.o [ 26%] Building CXX object service/CMakeFiles/telldusd.dir/DeviceManager.cpp.o /home/tingo/work/telldus-core-2.1.2/service/DeviceManager.cpp: In member function ���void DeviceManager::executeActionEvent()���: /home/tingo/work/telldus-core-2.1.2/service/DeviceManager.cpp:77:7: warning: ���template<class> class std::auto_ptr��� is deprecated [-Wdeprecated-declarations] std::auto_ptr<TelldusCore::MutexLocker> deviceLocker(0); ^~~~~~~~ In file included from /usr/include/c++/8/memory:80, from /usr/include/c++/8/tr1/memory:39, from /home/tingo/work/telldus-core-2.1.2/common/Event.h:12, from /home/tingo/work/telldus-core-2.1.2/service/Controller.h:11, from /home/tingo/work/telldus-core-2.1.2/service/Device.h:12, from /home/tingo/work/telldus-core-2.1.2/service/DeviceManager.h:12, from /home/tingo/work/telldus-core-2.1.2/service/DeviceManager.cpp:7: /usr/include/c++/8/bits/unique_ptr.h:53:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ /home/tingo/work/telldus-core-2.1.2/service/DeviceManager.cpp:87:23: warning: ���template<class> class std::auto_ptr��� is deprecated [-Wdeprecated-declarations] deviceLocker = std::auto_ptr<TelldusCore::MutexLocker>(new TelldusCore::MutexLocker(it->second)); ^~~~~~~~ In file included from /usr/include/c++/8/memory:80, from /usr/include/c++/8/tr1/memory:39, from /home/tingo/work/telldus-core-2.1.2/common/Event.h:12, from /home/tingo/work/telldus-core-2.1.2/service/Controller.h:11, from /home/tingo/work/telldus-core-2.1.2/service/Device.h:12, from /home/tingo/work/telldus-core-2.1.2/service/DeviceManager.h:12, from /home/tingo/work/telldus-core-2.1.2/service/DeviceManager.cpp:7: /usr/include/c++/8/bits/unique_ptr.h:53:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ [ 28%] Building CXX object service/CMakeFiles/telldusd.dir/Log.cpp.o [ 30%] Building CXX object service/CMakeFiles/telldusd.dir/Sensor.cpp.o [ 32%] Building CXX object service/CMakeFiles/telldusd.dir/Settings.cpp.o [ 33%] Building CXX object service/CMakeFiles/telldusd.dir/TelldusMain.cpp.o [ 35%] Building CXX object service/CMakeFiles/telldusd.dir/TellStick.cpp.o [ 37%] Building CXX object service/CMakeFiles/telldusd.dir/Timer.cpp.o [ 39%] Building CXX object service/CMakeFiles/telldusd.dir/EventUpdateManager.cpp.o [ 41%] Building CXX object service/CMakeFiles/telldusd.dir/ConnectionListener_unix.cpp.o [ 42%] Building CXX object service/CMakeFiles/telldusd.dir/main_unix.cpp.o [ 44%] Building CXX object service/CMakeFiles/telldusd.dir/SettingsConfuse.cpp.o [ 46%] Building CXX object service/CMakeFiles/telldusd.dir/TellStick_libftdi.cpp.o [ 48%] Building CXX object service/CMakeFiles/telldusd.dir/Protocol.cpp.o [ 50%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolBrateck.cpp.o [ 51%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolComen.cpp.o [ 53%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolEverflourish.cpp.o [ 55%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolFineoffset.cpp.o [ 57%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolFuhaote.cpp.o [ 58%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolGroup.cpp.o [ 60%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolHasta.cpp.o [ 62%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolIkea.cpp.o [ 64%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolMandolyn.cpp.o [ 66%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolNexa.cpp.o [ 67%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolOregon.cpp.o [ 69%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolRisingSun.cpp.o [ 71%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolSartano.cpp.o [ 73%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolScene.cpp.o [ 75%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolSilvanChip.cpp.o [ 76%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolUpm.cpp.o [ 78%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolWaveman.cpp.o [ 80%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolX10.cpp.o [ 82%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolYidong.cpp.o [ 83%] Linking CXX executable telldusd [ 83%] Built target telldusd Scanning dependencies of target telldus-core [ 85%] Building CXX object client/CMakeFiles/telldus-core.dir/CallbackDispatcher.cpp.o [ 87%] Building CXX object client/CMakeFiles/telldus-core.dir/CallbackMainDispatcher.cpp.o [ 89%] Building CXX object client/CMakeFiles/telldus-core.dir/Client.cpp.o [ 91%] Building CXX object client/CMakeFiles/telldus-core.dir/telldus-core.cpp.o [ 92%] Linking CXX shared library libtelldus-core.so [ 92%] Built target telldus-core Scanning dependencies of target tdtool [ 94%] Building CXX object tdtool/CMakeFiles/tdtool.dir/main.cpp.o [ 96%] Linking CXX executable tdtool [ 96%] Built target tdtool Scanning dependencies of target tdadmin [ 98%] Building CXX object tdadmin/CMakeFiles/tdadmin.dir/main.cpp.o [100%] Linking CXX executable tdadmin [100%] Built target tdadmin tingo@bananapi:~/work/telldus-core-2.1.2$
worked nicely. Install
tingo@bananapi:~/work/telldus-core-2.1.2$ sudo make install [ 16%] Built target TelldusCommon [ 83%] Built target telldusd [ 92%] Built target telldus-core [ 96%] Built target tdtool [100%] Built target tdadmin Install the project... -- Install configuration: "" -- Installing: /usr/local/sbin/telldusd -- Installing: /etc/tellstick.conf -- Installing: /var/state/telldus-core.conf -- Installing: /usr/local/lib/libtelldus-core.so.2.1.2 -- Installing: /usr/local/lib/libtelldus-core.so.2 -- Installing: /usr/local/lib/libtelldus-core.so -- Installing: /usr/local/include/telldus-core.h -- Installing: /usr/local/bin/tdtool -- Set runtime path of "/usr/local/bin/tdtool" to "" -- Installing: /usr/local/sbin/tdadmin -- Set runtime path of "/usr/local/sbin/tdadmin" to "" -- Installing: /etc/udev/rules.d/05-tellstick.rules -- Installing: /usr/local/share/telldus-core/helpers/udev.sh
ok
2020-01-25: other bpi - armbian - apt - check prereqs for installing telldus-core (from TellStick installation - Linux): build-essential, libftdi1 libftdi-dev, libconfuse0 libconfuse-dev
tingo@bananapi:~$ sudo apt list build-essential Listing... Done build-essential/stable,now 12.6 armhf [installed] tingo@bananapi:~$ sudo apt list libftdi1 libftdi-dev Listing... Done libftdi-dev/stable 0.20-4 armhf libftdi1/stable 0.20-4 armhf tingo@bananapi:~$ sudo apt list libconfuse0 libconfuse-dev Listing... Done libconfuse-dev/stable 3.2.2+dfsg-1 armhf
hmm, no libconfuse0 - oh well, install the rest
tingo@bananapi:~$ sudo apt install libftdi1 libftdi-dev Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libusb-0.1-4 libusb-dev The following NEW packages will be installed: libftdi-dev libftdi1 libusb-0.1-4 libusb-dev 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 248 kB of archives. After this operation, 2,297 kB of additional disk space will be used. [..] Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10) ...
and libconfuse-dev
tingo@bananapi:~$ sudo apt install libconfuse-dev Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libconfuse-common libconfuse2 Recommended packages: libconfuse-doc The following NEW packages will be installed: libconfuse-common libconfuse-dev libconfuse2 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 74.5 kB of archives. After this operation, 210 kB of additional disk space will be used. [..] Setting up libconfuse-dev:armhf (3.2.2+dfsg-1) ... Processing triggers for libc-bin (2.28-10) ...
cmake is also needed, install
tingo@bananapi:~$ sudo apt install cmake Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: cmake-data libarchive13 libjsoncpp1 librhash0 libuv1 Suggested packages: cmake-doc ninja-build lrzip The following NEW packages will be installed: cmake cmake-data libarchive13 libjsoncpp1 librhash0 libuv1 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 4,901 kB of archives. After this operation, 19.7 MB of additional disk space will be used. [..] Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10) ...
ok
2020-01-25: other bpi - armbian - apt - install python3-dev and python3-pip (prepare for HomeAssistant install)
tingo@bananapi:~$ sudo apt install python3-dev python3-pip Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: dh-python libexpat1-dev libpython3-dev libpython3.7 libpython3.7-dev python-pip-whl python3-distutils python3-lib2to3 python3.7-dev Recommended packages: python3-setuptools python3-wheel The following NEW packages will be installed: dh-python libexpat1-dev libpython3-dev libpython3.7 libpython3.7-dev python-pip-whl python3-dev python3-distutils python3-lib2to3 python3-pip python3.7-dev 0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded. Need to get 51.2 MB of archives. After this operation, 78.4 MB of additional disk space will be used. [..] Setting up python3-pip (18.1-5) ... Setting up libpython3-dev:armhf (3.7.3-1) ... Setting up python3-dev (3.7.3-1) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10) ...
ok.
2020-01-25: other bpi - armbian - apt - I ran update, then upgrade
tingo@bananapi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: python-apt-common python3-apt 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 264 kB of archives. After this operation, 8,192 B of additional disk space will be used. [..] Setting up python3-apt (1.8.4.1) ...
ok.
2020-01-25: other bpi - armbian - testing the newest armbian - log in as my user
tingo@kg-core2$ ssg 10.1.161.21 Warning: Permanently added '10.1.161.21' (ECDSA) to the list of known hosts. tingo@10.1.161.21's password: ____ ____ _ | __ )| _ \(_) | _ \| |_) | | | |_) | __/| | |____/|_| |_| Welcome to Armbian buster with Linux 5.4.12-sunxi System load: 0.10 0.09 0.10 Up time: 19 min Memory usage: 8 % of 990MB IP: 10.1.161.21 CPU temp: 40��C Usage of /: 7% of 15G Last login: Sat Jan 25 20:48:24 2020 from 10.1.150.52 tingo@bananapi:~$
good
2020-01-25: other bpi - armbian - testing the newest armbian on the other BananaPi:
tingo@kg-core2$ ssg root@10.1.161.21 Warning: Permanently added '10.1.161.21' (ECDSA) to the list of known hosts. root@10.1.161.21's password: You are required to change your password immediately (administrator enforced) ____ ____ _ | __ )| _ \(_) | _ \| |_) | | | |_) | __/| | |____/|_| |_| Welcome to Armbian buster with Linux 5.4.12-sunxi System load: 0.32 0.40 0.18 Up time: 3 min Memory usage: 8 % of 990MB IP: 10.1.161.21 CPU temp: 41��C Usage of /: 7% of 15G [ General system configuration (beta): armbian-config ] New to Armbian? Check the documentation first: https://docs.armbian.com Changing password for root. Current password: New password: Retype new password: Thank you for choosing Armbian! Support: www.armbian.com Creating a new user account. Press <Ctrl-C> to abort Please provide a username (eg. your forename): tingo Trying to add user tingo Adding user `tingo' ... Adding new group `tingo' (1000) ... Adding new user `tingo' (1000) with group `tingo' ... Creating home directory `/home/tingo' ... Copying files from `/etc/skel' ... New password: Retype new password: passwd: password updated successfully Changing the user information for tingo Enter the new value, or press ENTER for the default Full Name []: Torfinn Ingolfsen (bpi) Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] Dear Torfinn Ingolfsen (bpi), your account tingo has been created and is sudo enabled. Please use this account for your daily work from now on. root@bananapi:~# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster root@bananapi:~# uname -a Linux bananapi 5.4.12-sunxi #rc0 SMP Sun Jan 19 21:11:41 CET 2020 armv7l GNU/Linux root@bananapi:~# df -h Filesystem Size Used Avail Use% Mounted on udev 444M 0 444M 0% /dev tmpfs 100M 3.0M 97M 3% /run /dev/mmcblk0p1 15G 948M 14G 7% / tmpfs 496M 0 496M 0% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 496M 0 496M 0% /sys/fs/cgroup tmpfs 496M 4.0K 496M 1% /tmp /dev/zram0 49M 736K 45M 2% /var/log tmpfs 100M 0 100M 0% /run/user/0 root@bananapi:~# exit logout Connection to 10.1.161.21 closed.
ok
2018-10-28: Home Assistant wasn't seeing the kjellerbod (206) sensor, even if telldusd did, so I restarted Home Assistant tdtool output:
tingo@kg-bpi:~$ tdtool --list-sensors type=sensor protocol=fineoffset model=temperature id=186 temperature=5.5 time=2018-10-28 12:35:35 age=57 type=sensor protocol=mandolyn model=temperaturehumidity id=11 temperature=21.4 humidity=0 time=2018-10-28 12:35:57 age=35 type=sensor protocol=mandolyn model=temperaturehumidity id=12 temperature=-21.2 humidity=53 time=2018-10-28 12:36:26 age=6 type=sensor protocol=fineoffset model=temperaturehumidity id=0 temperature=0.0 humidity=0 time=2018-10-20 22:52:51 age=657821 type=sensor protocol=fineoffset model=temperature id=206 temperature=11.3 time=2018-10-28 04:13:25 age=30187 type=sensor protocol=fineoffset model=temperature id=156 temperature=32.1 time=2018-10-14 03:57:55 age=1244317 type=sensor protocol=fineoffset model=temperature id=116 temperature=10.7 time=2018-10-26 02:25:06 age=213086
my TellStick sensors
11: kitchen 12: freezer 186: fridge 206: kjellerbod
for good measure, tellcore_tool output
tingo@kg-bpi:~$ tellcore_tool --list-sensors Number of sensors: 7 PROTOCOL MODEL ID TEMP HUMIDITY RAIN WIND LAST UPDATED fineoffset temperature 186 4.9 C 2018-10-28 12:45:59 mandolyn temperaturehumidity 11 21.4 C 0 % 2018-10-28 12:45:57 mandolyn temperaturehumidity 12 -21.5 C 52 % 2018-10-28 12:45:26 fineoffset temperaturehumidity 0 0.0 C 0 % 2018-10-20 22:52:51 fineoffset temperature 206 11.3 C 2018-10-28 04:13:25 fineoffset temperature 156 32.1 C 2018-10-14 03:57:55 fineoffset temperature 116 10.7 C 2018-10-26 02:25:06
ok
2018-09-22: from /var/log/messages
Sep 22 22:11:02 kg-bpi kernel: [ 30.702899] NOHZ: local_softirq_pending 80 Sep 22 22:11:02 kg-bpi kernel: [ 30.712915] NOHZ: local_softirq_pending 80 Sep 22 22:11:03 kg-bpi kernel: [ 31.852982] NOHZ: local_softirq_pending 80 Sep 22 22:11:03 kg-bpi kernel: [ 31.862996] NOHZ: local_softirq_pending 80 Sep 22 22:11:04 kg-bpi kernel: [ 32.903057] NOHZ: local_softirq_pending 80 Sep 22 22:11:05 kg-bpi kernel: [ 34.033139] NOHZ: local_softirq_pending 80 Sep 22 22:11:05 kg-bpi kernel: [ 34.043149] NOHZ: local_softirq_pending 80 Sep 22 22:11:07 kg-bpi kernel: [ 35.213213] NOHZ: local_softirq_pending 80
not sure about that one.
2018-09-22: telldusd - the TellStick now works again
tingo@kg-bpi:~$ systemctl status telldusd ● telldusd.service - Tellstick service daemon Loaded: loaded (/etc/systemd/system/telldusd.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2018-09-22 22:10:55 CEST; 3min 16s ago Process: 653 ExecStart=/usr/local/sbin/telldusd (code=exited, status=0/SUCCESS) Main PID: 656 (telldusd) Tasks: 6 (limit: 4915) CGroup: /system.slice/telldusd.service └─656 /usr/local/sbin/telldusd Sep 22 22:10:54 kg-bpi systemd[1]: Starting Tellstick service daemon... Sep 22 22:10:55 kg-bpi systemd[1]: Started Tellstick service daemon. Sep 22 22:10:55 kg-bpi telldusd[656]: telldusd daemon starting up Sep 22 22:10:55 kg-bpi telldusd[656]: Connecting to TellStick (1781/C31) with serial A6028ED8
lsusb confirms
tingo@kg-bpi:~$ lsusb Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 1781:0c31 Multiple Vendors Telldus TellStick Duo Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ok.
2018-09-22: armbian - after a reboot, Debian 9.5 is in
tingo@kg-bpi:~$ cat /etc/debian_version 9.5 tingo@kg-bpi:~$ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
kernel
tingo@kg-bpi:~$ uname -a Linux kg-bpi 4.14.70-sunxi #265 SMP Wed Sep 19 10:01:19 CEST 2018 armv7l GNU/Linux
ok.
2018-09-22: armbian - apt - upgrade
tingo@kg-bpi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: armbian-firmware armbian-tools-jessie base-files ca-certificates dpkg dpkg-dev file hostapd libdpkg-perl libldap-2.4-2 libldap-common libmagic-mgc libmagic1 libnss-myhostname libpam-systemd libsystemd0 libudev1 libxapian30 linux-dtb-next-sunxi linux-headers-next-sunxi linux-image-next-sunxi linux-u-boot-bananapi-next patch sunxi-tools systemd systemd-sysv tzdata udev 28 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 47.3 MB of archives. After this operation, 1,249 kB of additional disk space will be used. N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension Do you want to continue? [Y/n] y [..] Errors were encountered while processing: /tmp/apt-dpkg-install-QUZtQy/15-linux-headers-next-sunxi_5.60_armhf.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
re-run
tingo@kg-bpi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: linux-headers-next-sunxi 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 23 not fully installed or removed. Need to get 0 B/10.9 MB of archives. After this operation, 771 kB of additional disk space will be used. N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension Do you want to continue? [Y/n] y N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension Setting up systemd (232-25+deb9u4) ... addgroup: The group `systemd-journal' already exists as a system group. Exiting. (Reading database ... 62001 files and directories currently installed.) Preparing to unpack .../linux-headers-next-sunxi_5.60_armhf.deb ... Unpacking linux-headers-next-sunxi (5.60) over (5.41) ... dpkg: warning: unable to delete old directory '/usr/src/linux-headers-4.14.18-sunxi/scripts/kconfig': Directory not empty dpkg: warning: unable to delete old directory '/usr/src/linux-headers-4.14.18-sunxi/scripts/mod': Directory not empty dpkg: warning: unable to delete old directory '/usr/src/linux-headers-4.14.18-sunxi/scripts/selinux/mdp': Directory not empty dpkg: warning: unable to delete old directory '/usr/src/linux-headers-4.14.18-sunxi/scripts/selinux/genheaders': Directory not empty dpkg: warning: unable to delete old directory '/usr/src/linux-headers-4.14.18-sunxi/scripts/selinux': Directory not empty dpkg: warning: unable to delete old directory '/usr/src/linux-headers-4.14.18-sunxi/scripts/dtc': Directory not empty dpkg: warning: unable to delete old directory '/usr/src/linux-headers-4.14.18-sunxi/scripts/basic': Directory not empty dpkg: warning: unable to delete old directory '/usr/src/linux-headers-4.14.18-sunxi/scripts': Directory not empty [..] Setting up ca-certificates (20161130+nmu1+deb9u1) ... Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Updating certificates in /etc/ssl/certs... Segmentation fault WARNING: Skipping duplicate certificate Certplus_Root_CA_G1.pem WARNING: Skipping duplicate certificate Certplus_Root_CA_G1.pem WARNING: Skipping duplicate certificate DigiCert_High_Assurance_EV_Root_CA.pem WARNING: Skipping duplicate certificate GeoTrust_Primary_Certification_Authority.pem WARNING: Skipping duplicate certificate Trustis_FPS_Root_CA.pem 27 added, 41 removed; done. [..] Processing triggers for ca-certificates (20161130+nmu1+deb9u1) ... Updating certificates in /etc/ssl/certs... Segmentation fault dpkg: error processing package ca-certificates (--configure): subprocess installed post-installation script returned error exit status 139 Errors were encountered while processing: ca-certificates E: Sub-process /usr/bin/dpkg returned an error code (1)
strange. One more try
tingo@kg-bpi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension Do you want to continue? [Y/n] y Setting up ca-certificates (20161130+nmu1+deb9u1) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Processing triggers for ca-certificates (20161130+nmu1+deb9u1) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. W: APT had planned for dpkg to do more than it reported back (0 vs 4). Affected packages: ca-certificates:armhf
one final try
tingo@kg-bpi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
ok, we're good.
2018-09-22: telldusd - I unplugged the TellStick and plugged it into the other usb port. No dice, it still isn't detected. I stopped and disabled the lirc.service, but that didn't help either. Looks like a reboot is the only alternative now.
2018-09-20: telldusd - the TellStick fell off the bus again.
tingo@kg-bpi:~$ grep telldusd /var/log/messages Sep 20 09:59:05 kg-bpi telldusd: TellStick query: Error in communication with TellStick, resetting USB Sep 20 09:59:05 kg-bpi telldusd: Disconnected TellStick (1781/C31) with serial A6028ED8
and lsusb
tingo@kg-bpi:~$ sudo lsusb Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
that's all.
2018-07-31: Home Assistant - upgrade to latest version (0.74.2). First I stopped the running HA, then do:
tingo@kg-bpi:~$ sudo -i pip3 install --upgrade homeassistant [..] Successfully installed aiohttp-3.3.2 astral-1.6.1 async-timeout-3.0.0 attrs-18.1.0 certifi-2018.4.16 homeassistant-0.74.2 idna-2.7 idna-ssl-1.1.0 multidict-4.3.1 pip-18.0 pytz-2018.5 pyyaml-3.13 requests-2.19.1 urllib3-1.23 voluptuous-0.11.1 yarl-1.2.6
let me run it again, just to be sure
tingo@kg-bpi:~$ sudo -i pip3 install --upgrade homeassistant Requirement already up-to-date: homeassistant in /usr/local/lib/python3.5/dist-packages (0.74.2) Requirement already satisfied, skipping upgrade: attrs==18.1.0 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (18.1.0) Requirement already satisfied, skipping upgrade: pip>=8.0.3 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (18.0) Requirement already satisfied, skipping upgrade: certifi>=2018.04.16 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (2018.4.16) Requirement already satisfied, skipping upgrade: pytz>=2018.04 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (2018.5) Requirement already satisfied, skipping upgrade: pyyaml<4,>=3.13 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (3.13) Requirement already satisfied, skipping upgrade: async-timeout==3.0.0 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (3.0.0) Requirement already satisfied, skipping upgrade: voluptuous==0.11.1 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (0.11.1) Requirement already satisfied, skipping upgrade: requests==2.19.1 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (2.19.1) Requirement already satisfied, skipping upgrade: jinja2>=2.10 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (2.10) Requirement already satisfied, skipping upgrade: astral==1.6.1 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (1.6.1) Requirement already satisfied, skipping upgrade: aiohttp==3.3.2 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (3.3.2) Requirement already satisfied, skipping upgrade: urllib3<1.24,>=1.21.1 in /usr/local/lib/python3.5/dist-packages (from requests==2.19.1->homeassistant) (1.23) Requirement already satisfied, skipping upgrade: idna<2.8,>=2.5 in /usr/local/lib/python3.5/dist-packages (from requests==2.19.1->homeassistant) (2.7) Requirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.5/dist-packages (from requests==2.19.1->homeassistant) (3.0.4) Requirement already satisfied, skipping upgrade: MarkupSafe>=0.23 in /usr/local/lib/python3.5/dist-packages (from jinja2>=2.10->homeassistant) (1.0) Requirement already satisfied, skipping upgrade: idna-ssl>=1.0 in /usr/local/lib/python3.5/dist-packages (from aiohttp==3.3.2->homeassistant) (1.1.0) Requirement already satisfied, skipping upgrade: multidict<5.0,>=4.0 in /usr/local/lib/python3.5/dist-packages (from aiohttp==3.3.2->homeassistant) (4.3.1) Requirement already satisfied, skipping upgrade: yarl<2.0,>=1.0 in /usr/local/lib/python3.5/dist-packages (from aiohttp==3.3.2->homeassistant) (1.2.6)
ok. As usual, the first start after an upgrade takes a long time, and several components gets installed during this time.
2018-07-30: Tellstick - disconnected from the bus again:
Jul 30 17:59:49 kg-bpi kernel: [1124644.606211] usb 4-1: USB disconnect, device number 2 Jul 30 18:00:50 kg-bpi telldusd: TellStick query: Error in communication with TellStick, resetting USB Jul 30 18:00:50 kg-bpi telldusd: Disconnected TellStick (1781/C31) with serial A6028ED8
oh, fix it. After plugging the Tellstick cable into the other usb port:
Jul 31 19:34:08 kg-bpi kernel: [1216709.891621] usb 3-1: new full-speed USB device number 2 using ohci-platform Jul 31 19:34:08 kg-bpi kernel: [1216710.173679] usb 3-1: New USB device found, idVendor=1781, idProduct=0c31 Jul 31 19:34:08 kg-bpi kernel: [1216710.173695] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Jul 31 19:34:08 kg-bpi kernel: [1216710.173705] usb 3-1: Product: TellStick Duo Jul 31 19:34:08 kg-bpi kernel: [1216710.173715] usb 3-1: Manufacturer: Telldus Jul 31 19:34:08 kg-bpi kernel: [1216710.173726] usb 3-1: SerialNumber: A6028ED8 Jul 31 19:34:09 kg-bpi telldusd: Connecting to TellStick (1781/C31) with serial A6028ED8
ok.
2018-06-10: today the kernel is not well again:
tingo@kg-bpi:~$ dmesg | tail [5206723.638979] [<c01fe373>] (unmap_page_range) from [<c01fe8a1>] (unmap_vmas+0x39/0x44) [5206723.659220] [<c01fe8a1>] (unmap_vmas) from [<c0202f77>] (exit_mmap+0x73/0xf0) [5206723.672793] [<c0202f77>] (exit_mmap) from [<c0117fd7>] (mmput+0x43/0xcc) [5206723.685889] [<c0117fd7>] (mmput) from [<c011dcfd>] (do_exit+0x299/0x83c) [5206723.698927] [<c011dcfd>] (do_exit) from [<c011e2fb>] (do_group_exit+0x2f/0x88) [5206723.718385] [<c011e2fb>] (do_group_exit) from [<c011e367>] (SyS_exit_group+0x13/0x14) [5206723.738484] [<c011e367>] (SyS_exit_group) from [<c0106621>] (ret_fast_syscall+0x1/0x62) [5206723.758771] Code: f3af 8000 6a04 b1cc (f8d4) 3174 [5206723.770003] ---[ end trace 0af7c9d81025a4a5 ]--- [5206723.781088] Fixing recursive fault but reboot is needed!
ok, let us try a reboot. A reboot worked. Here is from /var/log/messages whjen the problem first showed up
Jun 10 06:15:31 kg-bpi kernel: [5206723.242292] Modules linked in: sun4i_gpadc_iio uinput sun4i_ts ir_lirc_codec sun4i_gpadc lirc_dev sun4i_codec snd_soc_core snd_pcm_dmaengine evdev snd_pcm nvmem_sunxi_sid snd_timer snd soundcore sunxi_cir sun4i_ss uio_pdrv_genirq uio bonding brcmfmac brcmutil cfg80211 rfkill ip_tables x_tables realtek Jun 10 06:15:31 kg-bpi kernel: [5206723.269948] CPU: 0 PID: 3445 Comm: dpkg-preconfigu Not tainted 4.14.18-sunxi #24 Jun 10 06:15:31 kg-bpi kernel: [5206723.277731] Hardware name: Allwinner sun7i (A20) Family Jun 10 06:15:31 kg-bpi kernel: [5206723.283287] task: ed98f2c0 task.stack: ee0f4000 Jun 10 06:15:31 kg-bpi kernel: [5206723.288140] PC is at lock_page_memcg+0x10/0x60 Jun 10 06:15:31 kg-bpi kernel: [5206723.292894] LR is at page_remove_rmap+0x6f/0x11c Jun 10 06:15:31 kg-bpi kernel: [5206723.297821] pc : [<c021c6c4>] lr : [<c0206287>] psr: 40080033 Jun 10 06:15:31 kg-bpi kernel: [5206723.304440] sp : ee0f5e38 ip : 00000000 fp : c0afd000 Jun 10 06:15:31 kg-bpi kernel: [5206723.309989] r10: ee0f5efc r9 : b6e21000 r8 : 00008705 Jun 10 06:15:31 kg-bpi kernel: [5206723.315541] r7 : eedfa120 r6 : b6e20000 r5 : c0000084 r4 : 014200ca Jun 10 06:15:31 kg-bpi kernel: [5206723.322428] r3 : 00000000 r2 : 00000000 r1 : 00000000 r0 : eedfa120 Jun 10 06:15:31 kg-bpi kernel: [5206723.329317] Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA Thumb Segment none Jun 10 06:15:31 kg-bpi kernel: [5206723.337009] Control: 50c5387d Table: 49db806a DAC: 00000051 Jun 10 06:15:31 kg-bpi kernel: [5206723.597846] [<c021c6c4>] (lock_page_memcg) from [<c0206287>] (page_remove_rmap+0x6f/0x11c) Jun 10 06:15:31 kg-bpi kernel: [5206723.618156] [<c0206287>] (page_remove_rmap) from [<c01fe373>] (unmap_page_range+0x20f/0x4f0) Jun 10 06:15:31 kg-bpi kernel: [5206723.638979] [<c01fe373>] (unmap_page_range) from [<c01fe8a1>] (unmap_vmas+0x39/0x44) Jun 10 06:15:31 kg-bpi kernel: [5206723.659220] [<c01fe8a1>] (unmap_vmas) from [<c0202f77>] (exit_mmap+0x73/0xf0) Jun 10 06:15:31 kg-bpi kernel: [5206723.672793] [<c0202f77>] (exit_mmap) from [<c0117fd7>] (mmput+0x43/0xcc) Jun 10 06:15:31 kg-bpi kernel: [5206723.685889] [<c0117fd7>] (mmput) from [<c011dcfd>] (do_exit+0x299/0x83c) Jun 10 06:15:31 kg-bpi kernel: [5206723.698927] [<c011dcfd>] (do_exit) from [<c011e2fb>] (do_group_exit+0x2f/0x88) Jun 10 06:15:31 kg-bpi kernel: [5206723.718385] [<c011e2fb>] (do_group_exit) from [<c011e367>] (SyS_exit_group+0x13/0x14) Jun 10 06:15:31 kg-bpi kernel: [5206723.738484] [<c011e367>] (SyS_exit_group) from [<c0106621>] (ret_fast_syscall+0x1/0x62) Jun 10 06:15:31 kg-bpi kernel: [5206723.770003] ---[ end trace 0af7c9d81025a4a5 ]---
ok.
2018-04-10: the kernel is not well:
Apr 10 01:39:02 kg-bpi kernel: [2621195.883113] Modules linked in: sun4i_gpadc_iio uinput sun4i_ts ir_lirc_codec lirc_dev evdev sun4i_codec snd_soc_core snd_pcm_dmaengine snd_pcm snd_timer snd sun4i_gpadc soundcore nvmem_sunxi_sid sunxi_cir sun4i_ss uio_pdrv_genirq uio bonding brcmfmac brcmutil cfg80211 rfkill ip_tables x_tables realtek Apr 10 01:39:02 kg-bpi kernel: [2621195.911033] CPU: 0 PID: 27668 Comm: php5 Not tainted 4.14.18-sunxi #24 Apr 10 01:39:02 kg-bpi kernel: [2621195.917990] Hardware name: Allwinner sun7i (A20) Family Apr 10 01:39:02 kg-bpi kernel: [2621195.923598] task: ee431b00 task.stack: c6fcc000 Apr 10 01:39:02 kg-bpi kernel: [2621195.928496] PC is at handle_mm_fault+0x14e/0x8b4 Apr 10 01:39:02 kg-bpi kernel: [2621195.933474] LR is at handle_mm_fault+0x143/0x8b4 Apr 10 01:39:02 kg-bpi kernel: [2621195.938450] pc : [<c01ffc6a>] lr : [<c01ffc5f>] psr: 40030133 Apr 10 01:39:02 kg-bpi kernel: [2621195.945135] sp : c6fcde40 ip : 014000c0 fp : d7c80660 Apr 10 01:39:02 kg-bpi kernel: [2621195.950741] r10: c9c14038 r9 : ffffe000 r8 : 00000055 Apr 10 01:39:02 kg-bpi kernel: [2621195.956347] r7 : 00000040 r6 : c0d03f48 r5 : c0d07484 r4 : c0e26480 Apr 10 01:39:02 kg-bpi kernel: [2621195.963303] r3 : 000000c7 r2 : 8000031c r1 : 020c7000 r0 : 80000000 Apr 10 01:39:02 kg-bpi kernel: [2621195.970261] Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA Thumb Segment none Apr 10 01:39:02 kg-bpi kernel: [2621195.978040] Control: 50c5387d Table: 4000006a DAC: 00000051 Apr 10 01:39:02 kg-bpi kernel: [2621196.249803] [<c01ffc6a>] (handle_mm_fault) from [<c0110f3d>] (do_page_fault+0xd9/0x230) Apr 10 01:39:02 kg-bpi kernel: [2621196.273933] [<c0110f3d>] (do_page_fault) from [<c010124f>] (do_DataAbort+0x43/0xa4) Apr 10 01:39:02 kg-bpi kernel: [2621196.298004] [<c010124f>] (do_DataAbort) from [<c010ad8f>] (__dabt_usr+0x4f/0x60) Apr 10 01:39:02 kg-bpi kernel: [2621196.321969] Exception stack(0xc6fcdfb0 to 0xc6fcdff8) Apr 10 01:39:02 kg-bpi kernel: [2621196.335389] dfa0: 020ec000 00025000 020c7000 00025001 Apr 10 01:39:02 kg-bpi kernel: [2621196.359874] dfc0: b68757a4 00025000 00004f08 00000000 b68757d4 b68757a4 00000000 00025000 Apr 10 01:39:02 kg-bpi kernel: [2621196.384257] dfe0: 0000002d becc6c70 b67dfb3b b67dc68c 20030030 ffffffff Apr 10 01:39:02 kg-bpi kernel: [2621196.412337] ---[ end trace 8a74c2ca87c47908 ]--- [..] Apr 10 23:58:19 kg-bpi kernel: [2701548.724428] Sending NMI from CPU 1 to CPUs 0: Apr 10 23:58:19 kg-bpi kernel: [2701558.724806] NMI backtrace for cpu 0 Apr 10 23:58:19 kg-bpi kernel: [2701558.733910] CPU: 0 PID: 27668 Comm: php5 Tainted: G D 4.14.18-sunxi #24 Apr 10 23:58:19 kg-bpi kernel: [2701558.752691] Hardware name: Allwinner sun7i (A20) Family Apr 10 23:58:19 kg-bpi kernel: [2701558.763624] [<c010db15>] (unwind_backtrace) from [<c010a0d9>] (show_stack+0x11/0x14) Apr 10 23:58:19 kg-bpi kernel: [2701558.782453] [<c010a0d9>] (show_stack) from [<c0868f69>] (dump_stack+0x69/0x78) Apr 10 23:58:19 kg-bpi kernel: [2701558.800807] [<c0868f69>] (dump_stack) from [<c086cd77>] (nmi_cpu_backtrace+0xd3/0xd4) Apr 10 23:58:19 kg-bpi kernel: [2701558.819808] [<c086cd77>] (nmi_cpu_backtrace) from [<c086ce0f>] (nmi_trigger_cpumask_backtrace+0x97/0xd0) Apr 10 23:58:19 kg-bpi kernel: [2701558.840500] [<c086ce0f>] (nmi_trigger_cpumask_backtrace) from [<c0166297>] (rcu_dump_cpu_stacks+0x77/0x94) Apr 10 23:58:19 kg-bpi kernel: [2701558.861376] [<c0166297>] (rcu_dump_cpu_stacks) from [<c0165a55>] (rcu_check_callbacks+0x4d5/0x690) Apr 10 23:58:19 kg-bpi kernel: [2701558.881698] [<c0165a55>] (rcu_check_callbacks) from [<c0169ffb>] (update_process_times+0x2b/0x48) Apr 10 23:58:19 kg-bpi kernel: [2701558.902153] [<c0169ffb>] (update_process_times) from [<c0177db1>] (tick_sched_timer+0x31/0x68) Apr 10 23:58:19 kg-bpi kernel: [2701558.922384] [<c0177db1>] (tick_sched_timer) from [<c016ad1d>] (__hrtimer_run_queues+0xf5/0x224) Apr 10 23:58:19 kg-bpi kernel: [2701558.942727] [<c016ad1d>] (__hrtimer_run_queues) from [<c016b019>] (hrtimer_interrupt+0x81/0x180) Apr 10 23:58:19 kg-bpi kernel: [2701558.963365] [<c016b019>] (hrtimer_interrupt) from [<c0749301>] (arch_timer_handler_phys+0x25/0x28) Apr 10 23:58:19 kg-bpi kernel: [2701558.984362] [<c0749301>] (arch_timer_handler_phys) from [<c015d51f>] (handle_percpu_devid_irq+0x57/0x19c) Apr 10 23:58:19 kg-bpi kernel: [2701559.005996] [<c015d51f>] (handle_percpu_devid_irq) from [<c0159a39>] (generic_handle_irq+0x1d/0x28) Apr 10 23:58:19 kg-bpi kernel: [2701559.027293] [<c0159a39>] (generic_handle_irq) from [<c0159e49>] (__handle_domain_irq+0x45/0x84) Apr 10 23:58:19 kg-bpi kernel: [2701559.048306] [<c0159e49>] (__handle_domain_irq) from [<c01013b5>] (gic_handle_irq+0x39/0x68) Apr 10 23:58:19 kg-bpi kernel: [2701559.069154] [<c01013b5>] (gic_handle_irq) from [<c010aa25>] (__irq_svc+0x65/0x94) Apr 10 23:58:19 kg-bpi kernel: [2701559.089286] Exception stack(0xc6fcdb30 to 0xc6fcdb78) Apr 10 23:58:19 kg-bpi kernel: [2701559.100790] db20: eedfa01c 00000000 0000ef20 00003000 Apr 10 23:58:19 kg-bpi kernel: [2701559.121493] db40: eedfa000 8000031c 020c7000 00000000 00000000 000000c7 c6fcdc2c c0afd000 Apr 10 23:58:19 kg-bpi kernel: [2701559.142091] db60: 00000000 c6fcdb80 c01fe259 c087adde 20010033 ffffffff Apr 10 23:58:19 kg-bpi kernel: [2701559.155062] [<c010aa25>] (__irq_svc) from [<c087adde>] (_raw_spin_lock+0x26/0x34) Apr 10 23:58:19 kg-bpi kernel: [2701559.174868] [<c087adde>] (_raw_spin_lock) from [<c01fe259>] (unmap_page_range+0xf5/0x4f0) Apr 10 23:58:19 kg-bpi kernel: [2701559.195386] [<c01fe259>] (unmap_page_range) from [<c01fe8a1>] (unmap_vmas+0x39/0x44) Apr 10 23:58:19 kg-bpi kernel: [2701559.215453] [<c01fe8a1>] (unmap_vmas) from [<c0202f77>] (exit_mmap+0x73/0xf0) Apr 10 23:58:19 kg-bpi kernel: [2701559.228931] [<c0202f77>] (exit_mmap) from [<c0117fd7>] (mmput+0x43/0xcc) Apr 10 23:58:19 kg-bpi kernel: [2701559.241918] [<c0117fd7>] (mmput) from [<c011dcfd>] (do_exit+0x299/0x83c) Apr 10 23:58:19 kg-bpi kernel: [2701559.254841] [<c011dcfd>] (do_exit) from [<c010a283>] (die+0x1a7/0x26c) Apr 10 23:58:19 kg-bpi kernel: [2701559.267530] [<c010a283>] (die) from [<c01111d9>] (__do_kernel_fault.part.0+0x55/0x60) Apr 10 23:58:19 kg-bpi kernel: [2701559.287254] [<c01111d9>] (__do_kernel_fault.part.0) from [<c0111095>] (do_bad_area+0x1/0x58) Apr 10 23:58:19 kg-bpi kernel: [2701559.307593] [<c0111095>] (do_bad_area) from [<ffffe000>] (0xffffe000)
so I tried 'shutdown -r now' - it didn't work, so I pulled the power plug on it. Looks ok after booting.
2018-04-08: HomeAssistant - I set up the embedded mqtt broker by putting a 'mqtt:' in the configuration file, and restarting hass. the broker listens on port 1883 and port 8080 (WebSocket).
2018-03-11: TellStick - and it fell off again
Mar 11 07:21:30 kg-bpi kernel: [53164.683709] usb 3-1: USB disconnect, device number 2 Mar 11 07:22:23 kg-bpi telldusd: TellStick query: Error in communication with TellStick, resetting USB Mar 11 07:22:23 kg-bpi telldusd: Disconnected TellStick (1781/C31) with serial A6028ED8
lsusb confims
tingo@kg-bpi:~$ lsusb Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
annoying. Plug it into the other usb port
Mar 11 12:26:09 kg-bpi kernel: [71445.026339] usb 4-1: new full-speed USB device number 2 using ohci-platform Mar 11 12:26:09 kg-bpi kernel: [71445.308426] usb 4-1: New USB device found, idVendor=1781, idProduct=0c31 Mar 11 12:26:09 kg-bpi kernel: [71445.308444] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Mar 11 12:26:09 kg-bpi kernel: [71445.308454] usb 4-1: Product: TellStick Duo Mar 11 12:26:09 kg-bpi kernel: [71445.308464] usb 4-1: Manufacturer: Telldus Mar 11 12:26:09 kg-bpi kernel: [71445.308474] usb 4-1: SerialNumber: A6028ED8 Mar 11 12:26:10 kg-bpi telldusd: Connecting to TellStick (1781/C31) with serial A6028ED8
lsusb output
tingo@kg-bpi:~$ lsusb Bus 004 Device 002: ID 1781:0c31 Multiple Vendors Telldus TellStick Duo Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
until next problem, then.
2018-03-10: TellStick - after the reboot, it works again
tingo@kg-bpi:~$ lsusb Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 1781:0c31 Multiple Vendors Telldus TellStick Duo Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
telldusd
tingo@kg-bpi:~$ systemctl status telldusd ● telldusd.service - Tellstick service daemon Loaded: loaded (/etc/systemd/system/telldusd.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2018-03-10 16:35:22 CET; 4min 40s ago Process: 685 ExecStart=/usr/local/sbin/telldusd (code=exited, status=0/SUCCESS) Main PID: 690 (telldusd) Tasks: 6 (limit: 4915) CGroup: /system.slice/telldusd.service └─690 /usr/local/sbin/telldusd Mar 10 16:35:21 kg-bpi systemd[1]: Starting Tellstick service daemon... Mar 10 16:35:22 kg-bpi telldusd[690]: telldusd daemon starting up Mar 10 16:35:22 kg-bpi systemd[1]: Started Tellstick service daemon. Mar 10 16:35:22 kg-bpi telldusd[690]: Connecting to TellStick (1781/C31) with serial A6028ED8
good.
2018-03-10: armbian - reboot, new kernel
tingo@kg-bpi:~$ uname -a Linux kg-bpi 4.14.18-sunxi #24 SMP Fri Feb 9 16:24:32 CET 2018 armv7l GNU/Linux
ok.
2018-03-10: armbian - apt - upgrade
tingo@kg-bpi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: armbian-firmware armbian-tools-jessie base-files cron dbus hostapd isc-dhcp-client isc-dhcp-common libapparmor1 libc-bin libc-dev-bin libc-l10n libc6 libc6-dev libdbus-1-3 libncurses5 libncursesw5 libnss-myhostname libpam-systemd libsystemd0 libtinfo5 libudev1 linux-dtb-next-sunxi linux-headers-next-sunxi linux-image-next-sunxi linux-libc-dev linux-u-boot-bananapi-next locales multiarch-support ncurses-base ncurses-bin ncurses-term ntp openssh-client openssh-server openssh-sftp-server sunxi-tools systemd systemd-sysv tzdata udev 41 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 52.9 MB of archives. After this operation, 3,422 kB of additional disk space will be used. N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension Do you want to continue? [Y/n] y [..] Unpacking linux-headers-next-sunxi (5.41) over (5.35) ... dpkg: error processing archive /tmp/apt-dpkg-install-bZXoeM/13-linux-headers-next-sunxi_5.41_armhf.deb (--unpack): corrupted filesystem tarfile - corrupted package archive dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Compiling headers - please wait ... Preparing to unpack .../14-linux-image-next-sunxi_5.41_armhf.deb ... update-initramfs: Deleting /boot/initrd.img-4.13.16-sunxi Removing obsolete file uInitrd-4.13.16-sunxi Unpacking linux-image-next-sunxi (5.41) over (5.35) ... Preparing to unpack .../15-linux-u-boot-bananapi-next_5.38_armhf.deb ... Unpacking linux-u-boot-bananapi-next (5.38) over (5.37) ... dpkg-deb (subprocess): decompressing archive member: internal gzip read error: '<fd:4>: invalid distance too far back' tar: This does not look like a tar archive tar: Exiting with failure status due to previous errors dpkg-deb: error: subprocess tar returned error exit status 2 dpkg: error processing archive /tmp/apt-dpkg-install-bZXoeM/16-sunxi-tools_1.4.2-2~armbian5.38+1_armhf.deb (--unpack): subprocess dpkg-deb --control returned error exit status 2 Errors were encountered while processing: /tmp/apt-dpkg-install-bZXoeM/13-linux-headers-next-sunxi_5.41_armhf.deb /tmp/apt-dpkg-install-bZXoeM/16-sunxi-tools_1.4.2-2~armbian5.38+1_armhf.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
hmm, not going smoothly. From /var/log/messages
Mar 10 16:07:57 kg-bpi kernel: [2667781.850220] CPU: 0 PID: 21024 Comm: systemd-sysv-ge Not tainted 4.13.16-sunxi #20 Mar 10 16:07:57 kg-bpi kernel: [2667781.850223] Hardware name: Allwinner sun7i (A20) Family Mar 10 16:07:57 kg-bpi kernel: [2667781.850251] [<c010da59>] (unwind_backtrace) from [<c010a019>] (show_stack+0x11/0x14) Mar 10 16:07:57 kg-bpi kernel: [2667781.850268] [<c010a019>] (show_stack) from [<c08335c1>] (dump_stack+0x69/0x78) Mar 10 16:07:57 kg-bpi kernel: [2667781.850284] [<c08335c1>] (dump_stack) from [<c01f7b0d>] (print_bad_pte+0xdd/0x120) Mar 10 16:07:57 kg-bpi kernel: [2667781.850297] [<c01f7b0d>] (print_bad_pte) from [<c01f9427>] (unmap_page_range+0x3b3/0x4e4) Mar 10 16:07:57 kg-bpi kernel: [2667781.850308] [<c01f9427>] (unmap_page_range) from [<c01f9799>] (unmap_vmas+0x39/0x44) Mar 10 16:07:57 kg-bpi kernel: [2667781.850320] [<c01f9799>] (unmap_vmas) from [<c01fdd55>] (exit_mmap+0x75/0xcc) Mar 10 16:07:57 kg-bpi kernel: [2667781.850333] [<c01fdd55>] (exit_mmap) from [<c011805f>] (mmput+0x43/0xd8) Mar 10 16:07:57 kg-bpi kernel: [2667781.850346] [<c011805f>] (mmput) from [<c011d9b7>] (do_exit+0x2a7/0x85c) Mar 10 16:07:57 kg-bpi kernel: [2667781.850357] [<c011d9b7>] (do_exit) from [<c011dfc7>] (do_group_exit+0x2f/0x88) Mar 10 16:07:57 kg-bpi kernel: [2667781.850368] [<c011dfc7>] (do_group_exit) from [<c011e033>] (SyS_exit_group+0x13/0x14) Mar 10 16:07:57 kg-bpi kernel: [2667781.850382] [<c011e033>] (SyS_exit_group) from [<c0106601>] (ret_fast_syscall+0x1/0x4c) Mar 10 16:07:57 kg-bpi kernel: [2667781.850387] Disabling lock debugging due to kernel taint Mar 10 16:10:39 kg-bpi kernel: [2667944.428108] CPU: 0 PID: 21594 Comm: apt Tainted: G B 4.13.16-sunxi #20 Mar 10 16:10:39 kg-bpi kernel: [2667944.428112] Hardware name: Allwinner sun7i (A20) Family Mar 10 16:10:39 kg-bpi kernel: [2667944.428148] [<c010da59>] (unwind_backtrace) from [<c010a019>] (show_stack+0x11/0x14) Mar 10 16:10:39 kg-bpi kernel: [2667944.428165] [<c010a019>] (show_stack) from [<c08335c1>] (dump_stack+0x69/0x78) Mar 10 16:10:39 kg-bpi kernel: [2667944.428182] [<c08335c1>] (dump_stack) from [<c01f7b0d>] (print_bad_pte+0xdd/0x120) Mar 10 16:10:39 kg-bpi kernel: [2667944.428195] [<c01f7b0d>] (print_bad_pte) from [<c01f9427>] (unmap_page_range+0x3b3/0x4e4) Mar 10 16:10:39 kg-bpi kernel: [2667944.428206] [<c01f9427>] (unmap_page_range) from [<c01f9799>] (unmap_vmas+0x39/0x44) Mar 10 16:10:39 kg-bpi kernel: [2667944.428218] [<c01f9799>] (unmap_vmas) from [<c01fdd55>] (exit_mmap+0x75/0xcc) Mar 10 16:10:39 kg-bpi kernel: [2667944.428232] [<c01fdd55>] (exit_mmap) from [<c011805f>] (mmput+0x43/0xd8) Mar 10 16:10:39 kg-bpi kernel: [2667944.428244] [<c011805f>] (mmput) from [<c02281d3>] (flush_old_exec+0x3b3/0x584) Mar 10 16:10:39 kg-bpi kernel: [2667944.428259] [<c02281d3>] (flush_old_exec) from [<c0265309>] (load_elf_binary+0x1f9/0xe7c) Mar 10 16:10:39 kg-bpi kernel: [2667944.428271] [<c0265309>] (load_elf_binary) from [<c0228533>] (search_binary_handler+0x8f/0x1b0) Mar 10 16:10:39 kg-bpi kernel: [2667944.428280] [<c0228533>] (search_binary_handler) from [<c0228e45>] (do_execveat_common+0x451/0x574) Mar 10 16:10:39 kg-bpi kernel: [2667944.428291] [<c0228e45>] (do_execveat_common) from [<c0229115>] (SyS_execve+0x25/0x28) Mar 10 16:10:39 kg-bpi kernel: [2667944.428303] [<c0229115>] (SyS_execve) from [<c0106601>] (ret_fast_syscall+0x1/0x4c) Mar 10 16:10:40 kg-bpi kernel: [2667944.988147] CPU: 1 PID: 21601 Comm: apt Tainted: G B 4.13.16-sunxi #20 Mar 10 16:10:40 kg-bpi kernel: [2667944.988150] Hardware name: Allwinner sun7i (A20) Family Mar 10 16:10:40 kg-bpi kernel: [2667944.988187] [<c010da59>] (unwind_backtrace) from [<c010a019>] (show_stack+0x11/0x14) Mar 10 16:10:40 kg-bpi kernel: [2667944.988205] [<c010a019>] (show_stack) from [<c08335c1>] (dump_stack+0x69/0x78) Mar 10 16:10:40 kg-bpi kernel: [2667944.988222] [<c08335c1>] (dump_stack) from [<c01f7b0d>] (print_bad_pte+0xdd/0x120) Mar 10 16:10:40 kg-bpi kernel: [2667944.988235] [<c01f7b0d>] (print_bad_pte) from [<c01f9427>] (unmap_page_range+0x3b3/0x4e4) Mar 10 16:10:40 kg-bpi kernel: [2667944.988246] [<c01f9427>] (unmap_page_range) from [<c01f9799>] (unmap_vmas+0x39/0x44) Mar 10 16:10:40 kg-bpi kernel: [2667944.988259] [<c01f9799>] (unmap_vmas) from [<c01fdd55>] (exit_mmap+0x75/0xcc) Mar 10 16:10:40 kg-bpi kernel: [2667944.988272] [<c01fdd55>] (exit_mmap) from [<c011805f>] (mmput+0x43/0xd8) Mar 10 16:10:40 kg-bpi kernel: [2667944.988284] [<c011805f>] (mmput) from [<c02281d3>] (flush_old_exec+0x3b3/0x584) Mar 10 16:10:40 kg-bpi kernel: [2667944.988299] [<c02281d3>] (flush_old_exec) from [<c0265309>] (load_elf_binary+0x1f9/0xe7c) Mar 10 16:10:40 kg-bpi kernel: [2667944.988311] [<c0265309>] (load_elf_binary) from [<c0228533>] (search_binary_handler+0x8f/0x1b0) Mar 10 16:10:40 kg-bpi kernel: [2667944.988321] [<c0228533>] (search_binary_handler) from [<c0228e45>] (do_execveat_common+0x451/0x574) Mar 10 16:10:40 kg-bpi kernel: [2667944.988331] [<c0228e45>] (do_execveat_common) from [<c0229115>] (SyS_execve+0x25/0x28) Mar 10 16:10:40 kg-bpi kernel: [2667944.988344] [<c0229115>] (SyS_execve) from [<c0106601>] (ret_fast_syscall+0x1/0x4c) Mar 10 16:10:40 kg-bpi kernel: [2667945.116024] CPU: 1 PID: 19885 Comm: apt Tainted: G B 4.13.16-sunxi #20 Mar 10 16:10:40 kg-bpi kernel: [2667945.116027] Hardware name: Allwinner sun7i (A20) Family Mar 10 16:10:40 kg-bpi kernel: [2667945.116064] [<c010da59>] (unwind_backtrace) from [<c010a019>] (show_stack+0x11/0x14) Mar 10 16:10:40 kg-bpi kernel: [2667945.116081] [<c010a019>] (show_stack) from [<c08335c1>] (dump_stack+0x69/0x78) Mar 10 16:10:40 kg-bpi kernel: [2667945.116098] [<c08335c1>] (dump_stack) from [<c01f7b0d>] (print_bad_pte+0xdd/0x120) Mar 10 16:10:40 kg-bpi kernel: [2667945.116111] [<c01f7b0d>] (print_bad_pte) from [<c01f9427>] (unmap_page_range+0x3b3/0x4e4) Mar 10 16:10:40 kg-bpi kernel: [2667945.116122] [<c01f9427>] (unmap_page_range) from [<c01f9799>] (unmap_vmas+0x39/0x44) Mar 10 16:10:40 kg-bpi kernel: [2667945.116135] [<c01f9799>] (unmap_vmas) from [<c01fc987>] (unmap_region+0x67/0x9c) Mar 10 16:10:40 kg-bpi kernel: [2667945.116147] [<c01fc987>] (unmap_region) from [<c01fdb89>] (do_munmap+0x171/0x250) Mar 10 16:10:40 kg-bpi kernel: [2667945.116159] [<c01fdb89>] (do_munmap) from [<c01fdcb3>] (vm_munmap+0x4b/0x6c) Mar 10 16:10:40 kg-bpi kernel: [2667945.116173] [<c01fdcb3>] (vm_munmap) from [<c0106601>] (ret_fast_syscall+0x1/0x4c)
still, try again
tingo@kg-bpi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: linux-headers-next-sunxi sunxi-tools 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 27 not fully installed or removed. Need to get 0 B/10.8 MB of archives. After this operation, 544 kB of additional disk space will be used. N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension Do you want to continue? [Y/n] y [..] Current default time zone: 'Europe/Ljubljana' Local time is now: Sat Mar 10 16:24:38 CET 2018. Universal Time is now: Sat Mar 10 15:24:38 UTC 2018. Run 'dpkg-reconfigure tzdata' if you wish to change it. [..] Processing triggers for initramfs-tools (0.130) ... update-initramfs: Generating /boot/initrd.img-4.14.18-sunxi update-initramfs: Converting to u-boot format Processing triggers for libc-bin (2.24-11+deb9u3) ...
good. do one more run
tingo@kg-bpi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
ok.
2018-03-10: armbian - apt - autoremove
tingo@kg-bpi:~$ sudo apt autoremove Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: g++-4.9 libbind9-90 libdns100 libisc95 libisccc90 libisccfg90 liblircclient0 liblwres90 libmysqlclient18 libnl-route-3-200 libnm-glib4 libnm-util2 libperl4-corelibs-perl libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libstdc++-4.9-dev libtimedate-perl libuuid-perl libxapian22 python python-minimal python2.7 python2.7-minimal python3-chardet python3-colorama python3-distlib python3-html5lib python3-requests python3-six python3-urllib3 python3-webencodings zlib1g-dev 0 upgraded, 0 newly installed, 33 to remove and 41 not upgraded. After this operation, 56.3 MB disk space will be freed. N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension Do you want to continue? [Y/n] y (Reading database ... 63584 files and directories currently installed.) Removing g++-4.9 (4.9.2-10) ... Removing libbind9-90 (1:9.9.5.dfsg-9+deb8u15) ... Removing libisccfg90 (1:9.9.5.dfsg-9+deb8u15) ... Removing libdns100 (1:9.9.5.dfsg-9+deb8u15) ... Removing libisccc90 (1:9.9.5.dfsg-9+deb8u15) ... Removing libisc95 (1:9.9.5.dfsg-9+deb8u15) ... Removing liblircclient0 (0.9.4c-9) ... Removing liblwres90 (1:9.9.5.dfsg-9+deb8u15) ... Removing libmysqlclient18:armhf (5.5.59-0+deb8u1) ... Removing libnl-route-3-200:armhf (3.2.27-2) ... Removing libnm-glib4:armhf (1.6.2-3) ... Removing libnm-util2:armhf (1.6.2-3) ... Removing libperl4-corelibs-perl (0.003-2) ... Removing python (2.7.13-2) ... Removing libpython-stdlib:armhf (2.7.13-2) ... Removing python2.7 (2.7.13-2+deb9u2) ... Removing libpython2.7-stdlib:armhf (2.7.13-2+deb9u2) ... Removing python-minimal (2.7.13-2) ... Removing python2.7-minimal (2.7.13-2+deb9u2) ... Unlinking and removing bytecode for runtime python2.7 Removing libpython2.7-minimal:armhf (2.7.13-2+deb9u2) ... Removing libstdc++-4.9-dev:armhf (4.9.2-10) ... Removing libtimedate-perl (2.3000-2) ... Removing libuuid-perl (0.27-1) ... Removing libxapian22 (1.2.19-1+deb8u1) ... Removing python3-requests (2.12.4-1) ... Removing python3-chardet (2.3.0-2) ... Removing python3-colorama (0.3.7-1) ... Removing python3-distlib (0.2.4-1) ... Removing python3-html5lib (0.999999999-1) ... Removing python3-urllib3 (1.19.1-1) ... Removing python3-six (1.10.0-3) ... Removing python3-webencodings (0.5-2) ... Removing zlib1g-dev:armhf (1:1.2.8.dfsg-5) ... Processing triggers for mime-support (3.60) ... Processing triggers for libc-bin (2.24-11+deb9u1) ... Processing triggers for man-db (2.7.6.1-2) ...
ok
2018-03-10: armbian - apt - try fix-broken once more
tingo@kg-bpi:~$ sudo rm /var/cache/apt/archives/cpp-6_6.3.0-18+deb9u1_armhf.deb tingo@kg-bpi:~$ sudo apt --fix-broken install [..] The following additional packages will be installed: cpp-6 Suggested packages: gcc-6-locales The following packages will be upgraded: cpp-6 1 upgraded, 0 newly installed, 0 to remove and 41 not upgraded. 9 not fully installed or removed. [..] Setting up cpp-6 (6.3.0-18+deb9u1) ... Setting up libgcc-6-dev:armhf (6.3.0-18+deb9u1) ... Setting up libstdc++-6-dev:armhf (6.3.0-18+deb9u1) ... Setting up gcc-6 (6.3.0-18+deb9u1) ... Setting up g++-6 (6.3.0-18+deb9u1) ...
yes, that worked.
2018-03-10: armbian - apt - autoremove
tingo@kg-bpi:~$ sudo apt autoremove Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: cpp-6 : Depends: gcc-6-base (= 6.3.0-18) but 6.3.0-18+deb9u1 is installed gcc-6 : Depends: cpp-6 (= 6.3.0-18+deb9u1) but 6.3.0-18 is installed N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
nope, no going to do that, Dave.
2018-03-10: armbian - apt - upgrade
tingo@kg-bpi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: cpp-6 : Depends: gcc-6-base (= 6.3.0-18) but 6.3.0-18+deb9u1 is installed gcc-6 : Depends: cpp-6 (= 6.3.0-18+deb9u1) but 6.3.0-18 is installed N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
ok, try to fix broken
tingo@kg-bpi:~$ sudo apt --fix-broken install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: g++-4.9 libbind9-90 libdns100 libisc95 libisccc90 libisccfg90 liblircclient0 liblwres90 libmysqlclient18 libnl-route-3-200 libnm-glib4 libnm-util2 libperl4-corelibs-perl libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libstdc++-4.9-dev libtimedate-perl libuuid-perl libxapian22 python python-minimal python2.7 python2.7-minimal python3-chardet python3-colorama python3-distlib python3-html5lib python3-requests python3-six python3-urllib3 python3-webencodings zlib1g-dev Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: cpp-6 Suggested packages: gcc-6-locales The following packages will be upgraded: cpp-6 1 upgraded, 0 newly installed, 0 to remove and 41 not upgraded. 10 not fully installed or removed. Need to get 0 B/5,239 kB of archives. After this operation, 0 B of additional disk space will be used. N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension Do you want to continue? [Y/n] y N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension Setting up libgcc1:armhf (1:6.3.0-18+deb9u1) ... (Reading database ... 63584 files and directories currently installed.) Preparing to unpack .../cpp-6_6.3.0-18+deb9u1_armhf.deb ... Unpacking cpp-6 (6.3.0-18+deb9u1) over (6.3.0-18) ... dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt dpkg-deb: error: subprocess <decompress> returned error exit status 2 dpkg: error processing archive /var/cache/apt/archives/cpp-6_6.3.0-18+deb9u1_armhf.deb (--unpack): cannot copy extracted data for './usr/bin/arm-linux-gnueabihf-cpp-6' to '/usr/bin/arm-linux-gnueabihf-cpp-6.dpkg-new': unexpected end of file or stream Errors were encountered while processing: /var/cache/apt/archives/cpp-6_6.3.0-18+deb9u1_armhf.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
that didn't work out.
2018-03-10: armbian - apt - update repository
tingo@kg-bpi:~$ sudo apt update [..] 42 packages can be upgraded. Run 'apt list --upgradable' to see them. N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
ok.
2018-03-10: TellStick - this time, plugging it into the other usb port doesn't work. No matter which port I plug it into, it doesn't show up in lsusb output
tingo@kg-bpi:~$ lsusb Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
the TellStick lights up when connected, so I know that it gets power from the usb port.
2018-03-07: TellStick - it fell off the bus again:
Mar 7 05:12:31 kg-bpi kernel: [2369235.281363] usb 3-1: USB disconnect, device number 2 Mar 7 05:13:20 kg-bpi telldusd: TellStick query: Error in communication with TellStick, resetting USB Mar 7 05:13:20 kg-bpi telldusd: Disconnected TellStick (1781/C31) with serial A6028ED8
ok.
2018-02-11: TellStick - as usual, plugging it into the other usb port works (unplug and then replug into the same usb ports doesn't work).
Feb 11 18:37:19 kg-bpi kernel: [343780.244131] usb 3-1: new full-speed USB device number 2 using ohci-platform Feb 11 18:37:19 kg-bpi kernel: [343780.516163] usb 3-1: New USB device found, idVendor=1781, idProduct=0c31 Feb 11 18:37:19 kg-bpi kernel: [343780.516180] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Feb 11 18:37:19 kg-bpi kernel: [343780.516190] usb 3-1: Product: TellStick Duo Feb 11 18:37:19 kg-bpi kernel: [343780.516201] usb 3-1: Manufacturer: Telldus Feb 11 18:37:19 kg-bpi kernel: [343780.516211] usb 3-1: SerialNumber: A6028ED8 Feb 11 18:37:20 kg-bpi telldusd: Connecting to TellStick (1781/C31) with serial A6028ED8
ok.
2018-02-10: TellStick - it fell off the bus again:
Feb 10 14:38:37 kg-bpi kernel: [243051.699460] usb 4-1: USB disconnect, device number 2 Feb 10 14:39:14 kg-bpi telldusd: TellStick query: Error in communication with TellStick, resetting USB Feb 10 14:39:14 kg-bpi telldusd: Disconnected TellStick (1781/C31) with serial A6028ED8
ok.
2018-01-25: Tellstick - plugged into the other usb port
Jan 25 08:48:55 kg-bpi telldusd: Connecting to TellStick (1781/C31) with serial A6028ED8
yes, it works again.
2018-01-24: Tellstick - unfortunately, it fell off the bus again. From /var/log/messages:
Jan 24 20:57:51 kg-bpi telldusd: Connecting to TellStick (1781/C31) with serial A6028ED8 Jan 24 21:29:51 kg-bpi telldusd: TellStick query: Error in communication with TellStick, resetting USB Jan 24 21:29:51 kg-bpi telldusd: Disconnected TellStick (1781/C31) with serial A6028ED8
now, unplug, and plug into the other usb port
2018-01-24: try to start Home Assistant again
- after a few starts it finishes installing all it needs, and works. Cool!
2018-01-24: (re)install tellcore-py
tingo@kg-bpi:~$ sudo pip install tellcore-py [..] Successfully installed tellcore-py-1.1.3
test
tingo@kg-bpi:~$ tellcore_controllers TellStick Duo name: <unnamed> serial: A6028ED8 firmware: 12 available: 1 Found 1 controller(s)
sensors
tingo@kg-bpi:~$ tellcore_tool --list-sensors Number of sensors: 3 PROTOCOL MODEL ID TEMP HUMIDITY RAIN WIND LAST UPDATED mandolyn temperaturehumidity 12 -21.9 C 51 % 2018-01-24 20:58:02 fineoffset temperature 186 4.4 C 2018-01-24 20:59:14 mandolyn temperaturehumidity 11 23.0 C 0 % 2018-01-24 20:58:42
ok.
2018-01-24: telldusd - start it
tingo@kg-bpi:~/work/telldus-core-2.1.2$ sudo systemctl start telldusd tingo@kg-bpi:~/work/telldus-core-2.1.2$ systemctl status telldusd ● telldusd.service - Tellstick service daemon Loaded: loaded (/etc/systemd/system/telldusd.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2018-01-24 20:47:27 CET; 13s ago Process: 2508 ExecStart=/usr/local/sbin/telldusd (code=exited, status=0/SUCCESS) Main PID: 2509 (telldusd) Tasks: 5 (limit: 4915) CGroup: /system.slice/telldusd.service └─2509 /usr/local/sbin/telldusd Jan 24 20:47:27 kg-bpi systemd[1]: Starting Tellstick service daemon... Jan 24 20:47:27 kg-bpi telldusd[2509]: telldusd daemon starting up Jan 24 20:47:27 kg-bpi systemd[1]: Started Tellstick service daemon.
hmm, I'm guessing tellstick.conf is messed up again
tingo@kg-bpi:~/work/telldus-core-2.1.2$ more /etc/tellstick.conf user = "nobody" group = "plugdev" ignoreControllerConfirmation = "false" device { id = 1 name = "Example device" protocol = "arctech" model = "codeswitch" parameters { house = "A" unit = "1" }
yes, no controller section there. Fix
tingo@kg-bpi:~/work/telldus-core-2.1.2$ more /etc/tellstick.conf user = "nobody" group = "plugdev" ignoreControllerConfirmation = "false" controller { id = 1 # name = "" type = 2 serial = "A6028ED8" } device { id = 1 name = "Example device" protocol = "arctech" model = "codeswitch" parameters { house = "A" unit = "1" } }
better now. Restart telldusd
tingo@kg-bpi:~$ sudo systemctl restart telldusd tingo@kg-bpi:~$ systemctl status telldusd ● telldusd.service - Tellstick service daemon Loaded: loaded (/etc/systemd/system/telldusd.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2018-01-24 20:57:50 CET; 2s ago Process: 2608 ExecStart=/usr/local/sbin/telldusd (code=exited, status=0/SUCCESS) Main PID: 2609 (telldusd) Tasks: 6 (limit: 4915) CGroup: /system.slice/telldusd.service └─2609 /usr/local/sbin/telldusd Jan 24 20:57:50 kg-bpi systemd[1]: Starting Tellstick service daemon... Jan 24 20:57:50 kg-bpi telldusd[2609]: telldusd daemon starting up Jan 24 20:57:50 kg-bpi systemd[1]: Started Tellstick service daemon. Jan 24 20:57:51 kg-bpi telldusd[2609]: Connecting to TellStick (1781/C31) with serial A6028ED8
ok.
2018-01-24: (re)build telldus core cmake
tingo@kg-bpi:~/work/telldus-core-2.1.2$ cmake . [..]
make
tingo@kg-bpi:~/work/telldus-core-2.1.2$ make [..]
make install
tingo@kg-bpi:~/work/telldus-core-2.1.2$ sudo make install [..] Install the project... -- Install configuration: "" -- Installing: /usr/local/sbin/telldusd -- Installing: /etc/tellstick.conf -- Up-to-date: /var/state/telldus-core.conf -- Installing: /usr/local/lib/libtelldus-core.so.2.1.2 -- Up-to-date: /usr/local/lib/libtelldus-core.so.2 -- Up-to-date: /usr/local/lib/libtelldus-core.so -- Up-to-date: /usr/local/include/telldus-core.h -- Installing: /usr/local/bin/tdtool -- Set runtime path of "/usr/local/bin/tdtool" to "" -- Installing: /usr/local/sbin/tdadmin -- Set runtime path of "/usr/local/sbin/tdadmin" to "" -- Up-to-date: /etc/udev/rules.d/05-tellstick.rules -- Up-to-date: /usr/local/share/telldus-core/helpers/udev.sh
ok.
2018-01-24: (re)install Home Assistant
tingo@kg-bpi:~$ sudo pip -V [sudo] password for tingo: pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5) tingo@kg-bpi:~$ sudo pip install homeassistant [..]
ok.
2018-01-24: Home Assistant -
tingo@kg-bpi:~$ hass --open-ui Traceback (most recent call last): File "/usr/local/bin/hass", line 7, in <module> from homeassistant.__main__ import main ImportError: No module named 'homeassistant'
ok, more needed.
2018-01-24: armbian -after a reboot, the machine now runs armbian 5.37 (Debian 9.3)
tingo@kg-core1$ ssh bpi tingo@kg-bpi.kg4.no's password: ____ ____ _ | __ ) __ _ _ __ __ _ _ __ __ _ | _ \(_) | _ \ / _` | '_ \ / _` | '_ \ / _` | | |_) | | | |_) | (_| | | | | (_| | | | | (_| | | __/| | |____/ \__,_|_| |_|\__,_|_| |_|\__,_| |_| |_| Welcome to ARMBIAN 5.37 user-built Debian GNU/Linux 9 (stretch) 4.13.16-sunxi Linux kg-bpi 4.13.16-sunxi #20 SMP Fri Nov 24 19:50:07 CET 2017 armv7l System load: 2.00 0.59 0.20 Up time: 0 min Memory usage: 5 % of 998MB IP: 10.1.150.61 CPU temp: 36°C Usage of /: 57% of 7.2G [ Menu-driven system configuration (beta): sudo apt update && sudo apt install armbian-config ] Last login: Wed Jan 24 19:03:08 2018 from kg-core1.kg4.no tingo@kg-bpi:~$
which is
tingo@kg-bpi:~$ cat /etc/debian_version 9.3 tingo@kg-bpi:~$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.3 (stretch) Release: 9.3 Codename: stretch tingo@kg-bpi:~$ uname -a Linux kg-bpi 4.13.16-sunxi #20 SMP Fri Nov 24 19:50:07 CET 2017 armv7l GNU/Linux
ok.
2018-01-24: armbian - ok, try the stretch upgrade again first fix, the armbian packages too
tingo@kg-bpi:~$ sudo cp /etc/apt/sources.list.d/armbian.list /etc/apt/sources.list.d/armbian.list_backup
tingo@kg-bpi:~$ sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list.d/armbian.list
tingo@kg-bpi:~$ cat /etc/apt/sources.list.d/armbian.list
deb http://apt.armbian.com stretch main utils stretch-desktop
update
tingo@kg-bpi:~$ sudo apt update [..] 372 packages can be upgraded. Run 'apt list --upgradable' to see them. N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
upgrade
tingo@kg-bpi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... The following packages were automatically installed and are no longer required: gir1.2-packagekitglib-1.0 gnupg-agent libasan3 libassuan0 libbind9-90 libdns100 libftdi1-2 libgcc-6-dev libisc95 libisccc90 libisccfg90 libksba8 liblwres90 libnl-route-3-200 libnm-glib4 libnm-util2 libnpth0 libopus0 libpackagekit-glib2-18 libperl4-corelibs-perl libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libpython3.5 libpython3.5-dev libpython3.5-minimal libpython3.5-stdlib libtimedate-perl libuuid-perl libuv1 pinentry-curses python python-minimal python2.7 python2.7-minimal python3-chardet python3-colorama python3-distlib python3-html5lib python3-requests python3-six python3-urllib3 python3.5 python3.5-dev python3.5-minimal zlib1g-dev Use 'apt-get autoremove' to remove them. Done The following NEW packages will be installed: btrfs-progs cpp-6 distro-info-data initramfs-tools-core libbind9-140 libbluetooth3 libdns-export162 libdns162 libelf1 libf2fs0 libfastjson4 libfdisk1 libfftw3-single3 libgnutls30 libhogweed4 libidn2-0 libip4tc0 libip6tc0 libiptc0 libisc-export160 libisc160 libisccc140 libisccfg140 libisl15 libjansson4 libldap-common liblirc-client0 liblognorm5 liblwres141 liblz4-1 libmagic-mgc libnetfilter-conntrack3 libnettle6 libnghttp2-14 libnginx-mod-http-echo libnm0 libntfs-3g871 libpng16-16 libprocps6 libpsl5 libreadline7 libseccomp2 libssl1.0.2 libssl1.1 libunistring0 libwebp6 libxtables12 python-pip-whl xxd The following packages have been kept back: apt apt-transport-https apt-utils aptitude aptitude-common build-essential cmake cmake-data findutils g++ gcc glib-networking glib-networking-common glib-networking-services gnupg libconfuse-common libconfuse-dev libdigest-sha-perl libfcgi0ldbl liblocale-gettext-perl libproc-processtable-perl libpython3-dev libpython3-stdlib libstdc++6 libtext-charwidth-perl libtext-iconv-perl libuuid-perl libxml2 lirc perl perl-base python3 python3-apt python3-dbus python3-dev python3-gi python3-html5lib python3-minimal python3-software-properties software-properties-common sysbench The following packages will be upgraded: acl adduser alsa-utils autoconf automake autotools-dev avahi-autoipd base-files base-passwd bash bash-completion bc bind9-host bluez bluez-tools bridge-utils bsdmainutils bsdutils btrfs-tools ca-certificates console-common console-setup console-setup-linux coreutils cpio cpp cpufrequtils crda cron curl dash dbus dconf-gsettings-backend dconf-service debian-archive-keyring debianutils device-tree-compiler dh-python dialog diffutils dmidecode dmsetup dnsutils dosfstools dpkg dpkg-dev e2fslibs e2fsprogs ethtool evtest f2fs-tools f3 fake-hwclock fbset fcgiwrap figlet file fontconfig-config fonts-dejavu-core fping fuse gir1.2-glib-2.0 git git-man gpgv grep groff-base gsettings-desktop-schemas gzip haveged hddtemp hdparm hostname htop ifenslave ifupdown init init-system-helpers initramfs-tools initscripts insserv iotop iozone3 iperf3 iproute2 iptables iputils-arping iputils-ping isc-dhcp-client isc-dhcp-common iso-codes iw kbd keyboard-configuration klibc-utils kmod less libacl1 libapparmor1 libarchive13 libasound2 libasound2-data libatomic1 libattr1 libblkid1 libbsd0 libcaca0 libcap2 libcap2-bin libcloog-isl4 libcomerr2 libcpufreq0 libcryptsetup4 libcurl3 libcurl3-gnutls libdb5.3 libdbus-1-3 libdbus-glib-1-2 libdconf1 libdebconfclient0 libdevmapper1.02.1 libdpkg-perl libedit2 liberror-perl libestr0 libexpat1 libexpat1-dev libffi6 libfontconfig1 libfreetype6 libftdi-dev libftdi1 libfuse2 libgcrypt20 libgd3 libgdbm3 libgeoip1 libgirepository-1.0-1 libglib2.0-0 libgmp10 libgnutls-openssl27 libgomp1 libgpg-error0 libgpm2 libgssapi-krb5-2 libgudev-1.0-0 libhavege1 libidn11 libiperf0 libiw30 libjbig0 libjpeg62-turbo libk5crypto3 libkeyutils1 libklibc libkmod2 libkrb5-3 libkrb5support0 libldap-2.4-2 liblircclient0 liblogging-stdlog0 liblzma5 liblzo2-2 libmagic1 libmm-glib0 libmnl0 libmount1 libmpc3 libmpdec2 libmpfr4 libncurses5 libncursesw5 libndp0 libnewt0.52 libnl-3-200 libnl-3-dev libnl-genl-3-200 libnl-genl-3-dev libnl-route-3-200 libnm-glib4 libnm-util2 libnss-myhostname libopts25 libp11-kit0 libpam-runtime libpam-systemd libparted2 libpci3 libpcsclite1 libperl4-corelibs-perl libpipeline1 libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libpopt0 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libqdbm14 librtmp1 libsamplerate0 libsasl2-2 libsasl2-modules-db libsensors4 libsigsegv2 libslang2 libsmartcols1 libsoup2.4-1 libsqlite3-0 libss2 libssh2-1 libssl-dev libsysfs2 libsystemd0 libtasn1-6 libteamdctl0 libtiff5 libtinfo5 libubsan0 libudev1 libusb-0.1-4 libusb-1.0-0 libusb-1.0-0-dev libusb-dev libuuid1 libwrap0 libwrap0-dev libx11-6 libx11-data libxcb1 libxdmcp6 libxpm4 linux-base login logrotate lsb-base lsb-release lsof m4 make man-db manpages mawk mime-support mount multiarch-support mysql-common nano ncurses-base ncurses-bin ncurses-term net-tools netbase netcat-traditional network-manager nfacct nginx-common nginx-light ntfs-3g ntp openssh-client openssh-server openssh-sftp-server openssl parted patch pciutils policykit-1 procps psmisc pv python python-apt-common python-minimal python2.7 python2.7-minimal python3-chardet python3-colorama python3-distlib python3-pip python3-pkg-resources python3-requests python3-setuptools python3-six python3-urllib3 readline-common resolvconf rfkill rsync rsyslog screen sed sensible-utils spawn-fcgi sqlite3 startpar stress sudo sysfsutils sysstat systemd systemd-sysv sysv-rc sysvinit-utils tar tasksel tasksel-data toilet toilet-fonts traceroute tzdata u-boot-tools ucf udev unattended-upgrades unicode-data unzip usbutils util-linux vim vim-common vim-runtime vim-tiny vlan wget whiptail wireless-regdb wireless-tools wpasupplicant xkb-data xz-utils 331 upgraded, 49 newly installed, 0 to remove and 41 not upgraded. Need to get 0 B/119 MB of archives. After this operation, 69.8 MB of additional disk space will be used. Do you want to continue? [Y/n] y [..] dpkg: considering deconfiguration of ifupdown, which would be broken by installation of systemd ... dpkg: yes, will deconfigure ifupdown (broken by systemd) dpkg: considering deconfiguration of udev, which would be broken by installation of systemd ... dpkg: yes, will deconfigure udev (broken by systemd) [..] Processing triggers for resolvconf (1.79) ... N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
dist-upgrade
tingo@kg-bpi:~$ sudo apt dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... The following packages were automatically installed and are no longer required: g++-4.9 libbind9-90 libdns100 libisc95 libisccc90 libisccfg90 liblircclient0 liblwres90 libmysqlclient18 libnl-route-3-200 libnm-glib4 libnm-util2 libperl4-corelibs-perl libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libstdc++-4.9-dev libtimedate-perl libuuid-perl libxapian22 python python-minimal python2.7 python2.7-minimal python3-chardet python3-colorama python3-distlib python3-html5lib python3-requests python3-six python3-urllib3 python3-webencodings zlib1g-dev Use 'apt-get autoremove' to remove them. Done The following packages will be REMOVED: libconfuse0 libcwidget3 libproxy1 libpython3.4 libpython3.4-dev libpython3.4-minimal libpython3.4-stdlib libsigc++-2.0-0c2a perl-modules python3.4 python3.4-dev python3.4-minimal The following NEW packages will be installed: g++-6 gcc-6 gir1.2-packagekitglib-1.0 gnupg-agent libapt-inst2.0 libapt-pkg5.0 libasan3 libassuan0 libboost-filesystem1.62.0 libboost-iostreams1.62.0 libboost-system1.62.0 libcc1-0 libconfuse1 libcwidget3v5 libftdi1-2 libgcc-6-dev libicu57 libjack-jackd2-0 libjsoncpp1 libksba8 liblirc0 libmariadbclient18 libnpth0 libopus0 libpackagekit-glib2-18 libperl5.24 libportaudio2 libproxy1v5 libpython3.5 libpython3.5-dev libpython3.5-minimal libpython3.5-stdlib libsigc++-2.0-0v5 libstdc++-6-dev libuv1 libxapian30 perl-modules-5.24 pinentry-curses python3-pycurl python3-webencodings python3.5 python3.5-dev python3.5-minimal The following packages will be upgraded: apt apt-transport-https apt-utils aptitude aptitude-common build-essential cmake cmake-data findutils g++ gcc glib-networking glib-networking-common glib-networking-services gnupg libconfuse-common libconfuse-dev libdigest-sha-perl libfcgi0ldbl liblocale-gettext-perl libproc-processtable-perl libpython3-dev libpython3-stdlib libstdc++6 libtext-charwidth-perl libtext-iconv-perl libuuid-perl libxml2 lirc perl perl-base python3 python3-apt python3-dbus python3-dev python3-gi python3-html5lib python3-minimal python3-software-properties software-properties-common sysbench 41 upgraded, 43 newly installed, 12 to remove and 0 not upgraded. Need to get 89.5 MB of archives. After this operation, 104 MB of additional disk space will be used. Do you want to continue? [Y/n] y [..] Processing triggers for systemd (232-25+deb9u1) ... N: Ignoring file '50unattended-upgrades.ucf-old' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'armbian.list_backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
ok.
2018-01-24: reboot
tingo@kg-core1$ ssh bpi tingo@kg-bpi.kg4.no's password: ____ ____ _ | __ ) __ _ _ __ __ _ _ __ __ _ | _ \(_) | _ \ / _` | '_ \ / _` | '_ \ / _` | | |_) | | | |_) | (_| | | | | (_| | | | | (_| | | __/| | |____/ \__,_|_| |_|\__,_|_| |_|\__,_| |_| |_| Welcome to ARMBIAN 5.37 user-built Debian GNU/Linux 8 (jessie) 4.13.16-sunxi System load: 1.66 0.51 0.18 Up time: 1 min Memory usage: 7 % of 998MB IP: 10.1.150.61 CPU temp: 36°C Usage of /: 53% of 7.2G [ 0 security updates available, 10 updates total: apt upgrade ] Last check: 2017-12-10 00:00 [ Menu-driven system configuration (beta): sudo apt update && sudo apt install armbian-config ] Last login: Wed Jan 24 19:02:56 2018 from kg-core1.kg4.no
ok
2018-01-24: armbian - upgrade to 'stretch' update
tingo@kg-bpi:~$ sudo apt update [..] Fetched 14.0 MB in 25s (549 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 400 packages can be upgraded. Run 'apt list --upgradable' to see them.
upgrade
tingo@kg-bpi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... The following packages were automatically installed and are no longer required: gir1.2-packagekitglib-1.0 gnupg-agent libasan3 libassuan0 libbind9-90 libdns100 libftdi1-2 libgcc-6-dev libisc95 libisccc90 libisccfg90 libksba8 liblwres90 libnl-route-3-200 libnm-glib4 libnm-util2 libnpth0 libopus0 libpackagekit-glib2-18 libperl4-corelibs-perl libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libpython3.5 libpython3.5-dev libpython3.5-minimal libpython3.5-stdlib libtimedate-perl libuuid-perl libuv1 pinentry-curses python python-minimal python2.7 python2.7-minimal python3-chardet python3-colorama python3-distlib python3-html5lib python3-requests python3-six python3-urllib3 python3.5 python3.5-dev python3.5-minimal zlib1g-dev Use 'apt-get autoremove' to remove them. Done The following NEW packages will be installed: btrfs-progs cpp-6 distro-info-data gcc-6-base initramfs-tools-core libbind9-140 libbluetooth3 libc-l10n libdns-export162 libdns162 libelf1 libf2fs0 libfastjson4 libfdisk1 libfftw3-single3 libgnutls30 libhogweed4 libidn2-0 libip4tc0 libip6tc0 libiptc0 libisc-export160 libisc160 libisccc140 libisccfg140 libisl15 libjansson4 libldap-common liblirc-client0 liblognorm5 liblwres141 liblz4-1 libmagic-mgc libnetfilter-conntrack3 libnettle6 libnghttp2-14 libnginx-mod-http-echo libnm0 libntfs-3g871 libpng16-16 libprocps6 libpsl5 libreadline7 libseccomp2 libssl1.0.2 libssl1.1 libunistring0 libwebp6 libxtables12 python-pip-whl xxd The following packages have been kept back: apt apt-transport-https apt-utils aptitude aptitude-common build-essential cmake cmake-data findutils g++ gcc glib-networking glib-networking-common glib-networking-services gnupg libconfuse-common libconfuse-dev libdigest-sha-perl libfcgi0ldbl liblocale-gettext-perl libproc-processtable-perl libpython3-dev libpython3-stdlib libstdc++6 libtext-charwidth-perl libtext-iconv-perl libuuid-perl libxml2 lirc perl perl-base python3 python3-apt python3-dbus python3-dev python3-gi python3-html5lib python3-minimal python3-software-properties software-properties-common sysbench The following packages will be upgraded: acl adduser alsa-utils autoconf automake autotools-dev avahi-autoipd base-files base-passwd bash bash-completion bc bind9-host binutils bluez bluez-tools bridge-utils bsdmainutils bsdutils btrfs-tools bzip2 ca-certificates console-common console-setup console-setup-linux coreutils cpio cpp cpufrequtils crda cron curl dash dbus dconf-gsettings-backend dconf-service debconf debconf-i18n debian-archive-keyring debianutils device-tree-compiler dh-python dialog diffutils dmidecode dmsetup dnsutils dosfstools dpkg dpkg-dev e2fslibs e2fsprogs ethtool evtest f2fs-tools f3 fake-hwclock fbset fcgiwrap figlet file fontconfig-config fonts-dejavu-core fping fuse gir1.2-glib-2.0 git git-man gpgv grep groff-base gsettings-desktop-schemas gzip haveged hddtemp hdparm hostname htop ifenslave ifupdown init init-system-helpers initramfs-tools initscripts insserv iotop iozone3 iperf3 iproute2 iptables iputils-arping iputils-ping isc-dhcp-client isc-dhcp-common iso-codes iw kbd keyboard-configuration klibc-utils kmod less libacl1 libapparmor1 libarchive13 libasound2 libasound2-data libatomic1 libattr1 libaudit-common libaudit1 libblkid1 libbsd0 libbz2-1.0 libc-bin libc-dev-bin libc6 libc6-dev libcaca0 libcap-ng0 libcap2 libcap2-bin libcloog-isl4 libcomerr2 libcpufreq0 libcryptsetup4 libcurl3 libcurl3-gnutls libdb5.3 libdbus-1-3 libdbus-glib-1-2 libdconf1 libdebconfclient0 libdevmapper1.02.1 libdpkg-perl libedit2 liberror-perl libestr0 libexpat1 libexpat1-dev libffi6 libfontconfig1 libfreetype6 libftdi-dev libftdi1 libfuse2 libgcc1 libgcrypt20 libgd3 libgdbm3 libgeoip1 libgirepository-1.0-1 libglib2.0-0 libgmp10 libgnutls-openssl27 libgomp1 libgpg-error0 libgpm2 libgssapi-krb5-2 libgudev-1.0-0 libhavege1 libidn11 libiperf0 libiw30 libjbig0 libjpeg62-turbo libk5crypto3 libkeyutils1 libklibc libkmod2 libkrb5-3 libkrb5support0 libldap-2.4-2 liblircclient0 liblogging-stdlog0 liblzma5 liblzo2-2 libmagic1 libmm-glib0 libmnl0 libmount1 libmpc3 libmpdec2 libmpfr4 libncurses5 libncursesw5 libndp0 libnewt0.52 libnl-3-200 libnl-3-dev libnl-genl-3-200 libnl-genl-3-dev libnl-route-3-200 libnm-glib4 libnm-util2 libnss-myhostname libopts25 libp11-kit0 libpam-modules libpam-modules-bin libpam-runtime libpam-systemd libpam0g libparted2 libpci3 libpcre3 libpcsclite1 libperl4-corelibs-perl libpipeline1 libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libpopt0 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libqdbm14 librtmp1 libsamplerate0 libsasl2-2 libsasl2-modules-db libselinux1 libsemanage-common libsemanage1 libsensors4 libsepol1 libsigsegv2 libslang2 libsmartcols1 libsoup2.4-1 libsqlite3-0 libss2 libssh2-1 libssl-dev libsysfs2 libsystemd0 libtasn1-6 libteamdctl0 libtext-wrapi18n-perl libtiff5 libtinfo5 libubsan0 libudev1 libusb-0.1-4 libusb-1.0-0 libusb-1.0-0-dev libusb-dev libustr-1.0-1 libuuid1 libwrap0 libwrap0-dev libx11-6 libx11-data libxcb1 libxdmcp6 libxpm4 linux-base linux-libc-dev locales login logrotate lsb-base lsb-release lsof m4 make man-db manpages mawk mime-support mount multiarch-support mysql-common nano ncurses-base ncurses-bin ncurses-term net-tools netbase netcat-traditional network-manager nfacct nginx-common nginx-light ntfs-3g ntp openssh-client openssh-server openssh-sftp-server openssl parted passwd patch pciutils policykit-1 procps psmisc pv python python-apt-common python-minimal python2.7 python2.7-minimal python3-chardet python3-colorama python3-distlib python3-pip python3-pkg-resources python3-requests python3-setuptools python3-six python3-urllib3 readline-common resolvconf rfkill rsync rsyslog screen sed sensible-utils spawn-fcgi sqlite3 startpar stress sudo sysfsutils sysstat systemd systemd-sysv sysv-rc sysvinit-utils tar tasksel tasksel-data toilet toilet-fonts traceroute tzdata u-boot-tools ucf udev unattended-upgrades unicode-data unzip usbutils util-linux vim vim-common vim-runtime vim-tiny vlan wget whiptail wireless-regdb wireless-tools wpasupplicant xkb-data xz-utils zlib1g zlib1g-dev 359 upgraded, 51 newly installed, 0 to remove and 41 not upgraded. Need to get 137 MB of archives. After this operation, 73.8 MB of additional disk space will be used. Do you want to continue? [Y/n] y [..]
unfortunately, I got an error. From /var/log/messages
Jan 24 18:51:47 kg-bpi kernel: [642969.456450] Modules linked in: sun4i_gpadc_iio sun4i_ts ir_lirc_codec lirc_dev sun4i_codec evdev snd_soc_core snd_pcm_dmaengine snd_pcm snd_timer sun4i_gpadc snd sunxi_cir soundcore nvmem_sunxi_sid sun4i_ss uio_pdrv_genirq uio bonding brcmfmac brcmutil cfg80211 rfkill fuse realtek Jan 24 18:51:47 kg-bpi kernel: [642969.482406] CPU: 1 PID: 24809 Comm: mandb Not tainted 4.13.16-sunxi #20 Jan 24 18:51:47 kg-bpi kernel: [642969.489359] Hardware name: Allwinner sun7i (A20) Family Jan 24 18:51:47 kg-bpi kernel: [642969.494875] task: edc41b00 task.stack: c0074000 Jan 24 18:51:47 kg-bpi kernel: [642969.499682] PC is at page_remove_rmap+0xe8/0x11c Jan 24 18:51:47 kg-bpi kernel: [642969.504569] LR is at page_remove_rmap+0xd3/0x11c Jan 24 18:51:47 kg-bpi kernel: [642969.509424] pc : [<c0201088>] lr : [<c0201073>] psr: 00070033 Jan 24 18:51:47 kg-bpi kernel: [642969.515976] sp : c0075e40 ip : 00000000 fp : c0af0000 Jan 24 18:51:47 kg-bpi kernel: [642969.521446] r10: c0075ef4 r9 : b6e21000 r8 : 0000e0c5 Jan 24 18:51:47 kg-bpi kernel: [642969.526926] r7 : eedf81f8 r6 : b6e20000 r5 : c0000084 r4 : eedf81f8 Jan 24 18:51:47 kg-bpi kernel: [642969.533748] r3 : 00000034 r2 : 00000000 r1 : 2ea1c000 r0 : c0dcf000 Jan 24 18:51:47 kg-bpi kernel: [642969.540571] Flags: nzcv IRQs on FIQs on Mode SVC_32 ISA Thumb Segment none Jan 24 18:51:47 kg-bpi kernel: [642969.548198] Control: 50c5387d Table: 6e1ac06a DAC: 00000051 Jan 24 18:51:47 kg-bpi kernel: [642969.811842] [<c0201088>] (page_remove_rmap) from [<c01f9281>] (unmap_page_range+0x20d/0x4e4) Jan 24 18:51:47 kg-bpi kernel: [642969.832380] [<c01f9281>] (unmap_page_range) from [<c01f9799>] (unmap_vmas+0x39/0x44) Jan 24 18:51:47 kg-bpi kernel: [642969.852434] [<c01f9799>] (unmap_vmas) from [<c01fdd55>] (exit_mmap+0x75/0xcc) Jan 24 18:51:47 kg-bpi kernel: [642969.865927] [<c01fdd55>] (exit_mmap) from [<c011805f>] (mmput+0x43/0xd8) Jan 24 18:51:47 kg-bpi kernel: [642969.878927] [<c011805f>] (mmput) from [<c011d9b7>] (do_exit+0x2a7/0x85c) Jan 24 18:51:47 kg-bpi kernel: [642969.891868] [<c011d9b7>] (do_exit) from [<c011dfc7>] (do_group_exit+0x2f/0x88) Jan 24 18:51:47 kg-bpi kernel: [642969.905306] [<c011dfc7>] (do_group_exit) from [<c011e033>] (SyS_exit_group+0x13/0x14) Jan 24 18:51:47 kg-bpi kernel: [642969.925191] [<c011e033>] (SyS_exit_group) from [<c0106601>] (ret_fast_syscall+0x1/0x4c) Jan 24 18:51:47 kg-bpi kernel: [642969.956261] ---[ end trace 1f7710de74a4f3d7 ]---
so reboot and start over.
2018-01-24: armbian - prepare for upgrade to stretch
tingo@kg-bpi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: hostapd linux-jessie-root-next-bananapi linux-u-boot-bananapi-next 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 966 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y [..] update-initramfs: Generating /boot/initrd.img-4.13.16-sunxi /usr/share/initramfs-tools/hooks/btrfs: 150: /usr/share/initramfs-tools/hooks/btrfs: sed: Bad address E: /usr/share/initramfs-tools/hooks/btrfs failed with return 2. update-initramfs: failed for /boot/initrd.img-4.13.16-sunxi with 2. dpkg: error processing package initramfs-tools (--unpack): subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing: initramfs-tools E: Sub-process /usr/bin/dpkg returned an error code (1)
and dist-upgrade
tingo@kg-bpi:~$ sudo apt dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up hostapd (2:2.6-4~armbian5.37+1) ... Installing new version of config file /etc/hostapd.conf ... Setting up initramfs-tools (0.120+deb8u3) ... update-initramfs: deferring update (trigger activated) Setting up linux-jessie-root-next-bananapi (5.37) ... Setting up linux-u-boot-bananapi-next (5.37) ... Updating u-boot on /dev/mmcblk0 Processing triggers for initramfs-tools (0.120+deb8u3) ... update-initramfs: Generating /boot/initrd.img-4.13.16-sunxi update-initramfs: Converting to u-boot format
ok. Check consistency
tingo@kg-bpi:~$ sudo dpkg -C tingo@kg-bpi:~$ sudo apt-mark showhold
backup sources.list
tingo@kg-bpi:~$ sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
change jessie into stretch
tingo@kg-bpi:~$ sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list
(and I did a manual verify)
2018-01-23: telldusd - the TellStick fell off the bus again:
tingo@kg-bpi:~$ systemctl status telldusd ● telldusd.service - Tellstick service daemon Loaded: loaded (/etc/systemd/system/telldusd.service; enabled) Active: active (running) since Wed 2018-01-17 07:17:18 CET; 6 days ago Process: 672 ExecStart=/usr/local/sbin/telldusd (code=exited, status=0/SUCCESS) Main PID: 674 (telldusd) CGroup: /system.slice/telldusd.service └─674 /usr/local/sbin/telldusd Jan 17 07:17:18 kg-bpi telldusd[674]: telldusd daemon starting up Jan 17 07:17:18 kg-bpi systemd[1]: Started Tellstick service daemon. Jan 17 07:17:18 kg-bpi telldusd[674]: Connecting to TellStick (1781/C31) with serial A6028ED8 Jan 22 19:12:08 kg-bpi telldusd[674]: TellStick query: Error in communication with TellStick, resetting USB Jan 22 19:12:08 kg-bpi telldusd[674]: Disconnected TellStick (1781/C31) with serial A6028ED8
lsusb output
tingo@kg-bpi:~$ lsusb Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
let me try to plug it into the other usb port
tingo@kg-bpi:~$ systemctl status telldusd ● telldusd.service - Tellstick service daemon Loaded: loaded (/etc/systemd/system/telldusd.service; enabled) Active: active (running) since Wed 2018-01-17 07:17:18 CET; 6 days ago Process: 672 ExecStart=/usr/local/sbin/telldusd (code=exited, status=0/SUCCESS) Main PID: 674 (telldusd) CGroup: /system.slice/telldusd.service └─674 /usr/local/sbin/telldusd Jan 17 07:17:18 kg-bpi telldusd[674]: telldusd daemon starting up Jan 17 07:17:18 kg-bpi systemd[1]: Started Tellstick service daemon. Jan 17 07:17:18 kg-bpi telldusd[674]: Connecting to TellStick (1781/C31) with serial A6028ED8 Jan 22 19:12:08 kg-bpi telldusd[674]: TellStick query: Error in communication with TellStick, resetting USB Jan 22 19:12:08 kg-bpi telldusd[674]: Disconnected TellStick (1781/C31) with serial A6028ED8 Jan 23 19:16:08 kg-bpi telldusd[674]: Connecting to TellStick (1781/C31) with serial A6028ED8
and lsusb
tingo@kg-bpi:~$ lsusb Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 1781:0c31 Multiple Vendors Telldus TellStick Duo Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
now, that is interesting.
2018-01-19: armbian 5.35 - which versions of Python do we have?
tingo@bananapi:~$ python -V Python 2.7.13 tingo@bananapi:~$ python3 -V Python 3.5.3
python 3.5 - good.
2018-01-19: armbian 5.35 - second login
tingo@kg-core1$ ssg tingo@10.1.161.21 Warning: Permanently added '10.1.161.21' (ECDSA) to the list of known hosts. tingo@10.1.161.21's password: ____ ____ _ | __ ) __ _ _ __ __ _ _ __ __ _ | _ \(_) | _ \ / _` | '_ \ / _` | '_ \ / _` | | |_) | | | |_) | (_| | | | | (_| | | | | (_| | | __/| | |____/ \__,_|_| |_|\__,_|_| |_|\__,_| |_| |_| Welcome to ARMBIAN 5.35 user-built Debian GNU/Linux 9 (stretch) 4.13.16-sunxi System load: 0.11 0.16 0.14 Up time: 10 min Memory usage: 4 % of 998MB IP: 10.1.161.21 CPU temp: 34°C Usage of /: 29% of 3.5G [ General system configuration (beta): armbian-config ] tingo@bananapi:~$
good
2018-01-19: armbian 5.35 - testing the newest armbian on the other Banana Pi first login and changed of passwd
tingo@kg-core1$ ssg root@10.1.161.21 Warning: Permanently added '10.1.161.21' (ECDSA) to the list of known hosts. root@10.1.161.21's password: You are required to change your password immediately (root enforced) ____ ____ _ | __ ) __ _ _ __ __ _ _ __ __ _ | _ \(_) | _ \ / _` | '_ \ / _` | '_ \ / _` | | |_) | | | |_) | (_| | | | | (_| | | | | (_| | | __/| | |____/ \__,_|_| |_|\__,_|_| |_|\__,_| |_| |_| Welcome to ARMBIAN 5.35 user-built Debian GNU/Linux 9 (stretch) 4.13.16-sunxi System load: 0.06 0.21 0.15 Up time: 6 min Memory usage: 4 % of 998MB IP: 10.1.161.21 CPU temp: 33°C Usage of /: 29% of 3.5G [ General system configuration (beta): armbian-config ] New to Armbian? Check the documentation first: https://docs.armbian.com Changing password for root. (current) UNIX password: Enter new UNIX password: Retype new UNIX password: create a user Thank you for choosing Armbian! Support: www.armbian.com Creating a new user account. Press <Ctrl-C> to abort Please provide a username (eg. your forename): tingo Trying to add user tingo Adding user `tingo' ... Adding new group `tingo' (1000) ... Adding new user `tingo' (1000) with group `tingo' ... Creating home directory `/home/tingo' ... Copying files from `/etc/skel' ... Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for tingo Enter the new value, or press ENTER for the default Full Name []: Torfinn Ingolfsen (BPi) Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] Dear Torfinn Ingolfsen (BPi), your account tingo has been created and is sudo enabled. Please use this account for your daily work from now on.
ok.
2018-01-19: Home Assistant - the kjellerbod temperature senors wasn't showing up in HA, even if it showed up in tellcore_tool output as recently updated. I restarted HA, now it works again.
2018-01-17: booted the bpi and got this out of /var/log/messages
Jan 17 05:09:02 kg-bpi kernel: [1158576.129113] ------------[ cut here ]------------ Jan 17 05:09:02 kg-bpi kernel: [1158576.145539] Modules linked in: uas sun4i_gpadc_iio ir_lirc_codec lirc_dev sun4i_cod ec nvmem_sunxi_sid sunxi_cir sun4i_ts evdev sun4i_gpadc snd_soc_core sun4i_ss snd_pcm_dmaengine snd_pcm snd_timer snd soundcore uio_pdrv_genirq uio bonding brcmfmac brcmutil cfg80211 rfkill fuse realtek Jan 17 05:09:02 kg-bpi kernel: [1158576.171769] CPU: 1 PID: 3494 Comm: sed Not tainted 4.13.16-sunxi #20 Jan 17 05:09:02 kg-bpi kernel: [1158576.178500] Hardware name: Allwinner sun7i (A20) Family Jan 17 05:09:02 kg-bpi kernel: [1158576.184071] task: ef3fde80 task.stack: ee130000 Jan 17 05:09:02 kg-bpi kernel: [1158576.188939] PC is at __migration_entry_wait+0x11a/0x128 Jan 17 05:09:02 kg-bpi kernel: [1158576.194510] LR is at __migration_entry_wait+0x13/0x128 Jan 17 05:09:02 kg-bpi kernel: [1158576.199989] pc : [<c02150e6>] lr : [<c0214fdf>] psr: 60000133 Jan 17 05:09:02 kg-bpi kernel: [1158576.206630] sp : ee131dd8 ip : 014200ca fp : edb72948 Jan 17 05:09:02 kg-bpi kernel: [1158576.212198] r10: edb72948 r9 : 00000000 r8 : 00001ef8 Jan 17 05:09:02 kg-bpi kernel: [1158576.217768] r7 : 00000000 r6 : eedf8894 r5 : c0000080 r4 : ef6f801c Jan 17 05:09:02 kg-bpi kernel: [1158576.224677] r3 : 014200ca r2 : 00000000 r1 : 00040000 r0 : ef6f801c Jan 17 05:09:02 kg-bpi kernel: [1158576.231590] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA Thumb Segment none Jan 17 05:09:02 kg-bpi kernel: [1158576.239307] Control: 50c5387d Table: 6e36406a DAC: 00000051 Jan 17 05:09:02 kg-bpi kernel: [1158576.580759] [<c02150e6>] (__migration_entry_wait) from [<c01fa4ef>] (do_swap_page+0x397/0x520) Jan 17 05:09:02 kg-bpi kernel: [1158576.601872] [<c01fa4ef>] (do_swap_page) from [<c01fab6f>] (handle_mm_fault+0x24b/0x8b4) Jan 17 05:09:02 kg-bpi kernel: [1158576.622375] [<c01fab6f>] (handle_mm_fault) from [<c0110f7d>] (do_page_fault+0xd9/0x23c) Jan 17 05:09:02 kg-bpi kernel: [1158576.642897] [<c0110f7d>] (do_page_fault) from [<c01012ed>] (do_PrefetchAbort+0x39/0x88) Jan 17 05:09:02 kg-bpi kernel: [1158576.663435] [<c01012ed>] (do_PrefetchAbort) from [<c010af7b>] (__pabt_usr+0x5b/0x5c) Jan 17 05:09:02 kg-bpi kernel: [1158576.683715] Exception stack(0xee131fb0 to 0xee131ff8) Jan 17 05:09:02 kg-bpi kernel: [1158576.695113] 1fa0: b6eba4e0 00000189 00000000 b6eba678 Jan 17 05:09:02 kg-bpi kernel: [1158576.715612] 1fc0: b6eba4e0 00000170 00000005 00000000 00000000 bedd8e64 00000002 0000002e Jan 17 05:09:02 kg-bpi kernel: [1158576.736032] 1fe0: b6e9e144 bedd8cd8 b6e2242d b6e20de4 60000030 ffffffff Jan 17 05:09:02 kg-bpi kernel: [1158576.759904] ---[ end trace 08661f6a54ee934b ]---
ok.
2018-01-17: interesting messages from syslog on the bpi:
tingo@kg-bpi:~$ Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.139782] Internal error: Oops - BUG: 0 [#1] SMP THUMB2 Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.245412] Process sed (pid: 3494, stack limit = 0xee130210) Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.251499] Stack: (0xee131dd8 to 0xee132000) Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.256162] 1dc0: 00001ef8 c0e1c600 Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.264751] 1de0: 3c00003d ee131e54 c0d03f48 c01fa4ef 00000051 ee382f00 000df6db 00000000 Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.277560] 1e00: c9c7b990 00000051 00000080 c022a7f9 ee999850 00040d10 eda3f010 c0e1c600 Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.294904] 1e20: c0d07484 c0d03f48 00000040 00001ef8 ffffe000 eda4f6f8 edb72948 c01fab6f Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.312367] 1e40: c0d03f48 00000000 eda3f000 00000005 ee131f0c edb72948 00000054 014200ca Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.330167] 1e60: 00000052 b6e20000 ee366db8 ee366db8 00001ef8 00000000 00000000 00000000 Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.348286] 1e80: c0000080 00000000 00000000 00040d10 00000000 ee131fb0 ef3fde80 eda4f6c0 Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.366629] 1ea0: 80000007 b6e20de4 00000054 eda4f6f8 edb72948 c0110f7d c0d03f48 c024a5d3 Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.384989] 1ec0: 0000ef53 00001000 001c6ca1 00000000 00000000 00000000 000ea659 c0d03f48 Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.403358] 1ee0: c0d096dc 00000007 c0110ea5 b6e20de4 ee131fb0 00000002 0000002e c01012ed Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.421903] 1f00: 00000c20 00000000 00000000 00000000 00000000 00040d10 c02241ad c0d03f48 Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.440818] 1f20: bedd8d00 b6ee3000 0000010a c01067c4 ee130000 c024a775 0000ef53 00001000 Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.460014] 1f40: 001c6ca1 00000000 000f0d68 00000000 000ea659 00000000 000763b0 00000000 Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.479545] 1f60: 0005c7ea 00000000 b743ff6e efd12d1d 000000ff 00001000 00000c20 00000000 Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.499411] 1f80: 00000000 00000000 00000000 00040d10 b6d5c000 b6e20de4 60000030 ffffffff Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.519372] 1fa0: 50c5387d 50c5387d bedd8e64 c010af7b b6eba4e0 00000189 00000000 b6eba678 Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.539550] 1fc0: b6eba4e0 00000170 00000005 00000000 00000000 bedd8e64 00000002 0000002e Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.560085] 1fe0: b6e9e144 bedd8cd8 b6e2242d b6e20de4 60000030 ffffffff 00000000 00000000 Message from syslogd@kg-bpi at Jan 17 05:09:02 ... kernel:[1158576.748927] Code: f3bf 8f5b b10b bdf8 (de02) 4630 Fssh_packet_write_wait: Connection to 10.1.150.61 port 22: Broken pipe
wow.
2018-01-16: plugging the TellStick Duo in the other usb port works:
tingo@kg-bpi:~$ sudo lsusb Bus 004 Device 002: ID 1781:0c31 Multiple Vendors Telldus TellStick Duo Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 005: ID 0718:070a Imation Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
and tellcore_controllers finds it
tingo@kg-bpi:~$ tellcore_controllers TellStick Duo name: <unnamed> serial: A6028ED8 firmware: 12 available: 1 Found 1 controller(s)
and telldusd connects to it
tingo@kg-bpi:~$ systemctl status telldusd ● telldusd.service - Tellstick service daemon Loaded: loaded (/etc/systemd/system/telldusd.service; enabled) Active: active (running) since Wed 2018-01-03 20:49:40 CET; 1 weeks 5 days ago Main PID: 1210 (telldusd) CGroup: /system.slice/telldusd.service └─1210 /usr/local/sbin/telldusd Jan 13 11:37:43 kg-bpi telldusd[1210]: TellStick query: Error in communication with TellStick, resetting USB Jan 13 11:37:43 kg-bpi telldusd[1210]: Disconnected TellStick (1781/C31) with serial A6028ED8 Jan 16 19:39:07 kg-bpi telldusd[1210]: Connecting to TellStick (1781/C31) with serial A6028ED8 Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
funnily enough, a usb stick works in both ports. one port
Jan 16 19:36:41 kg-bpi kernel: [1124233.274366] usb 2-1: new high-speed USB device number 2 using ehci-platform Jan 16 19:36:41 kg-bpi kernel: [1124233.469930] usb 2-1: New USB device found, idVendor=0718, idProduct=070a Jan 16 19:36:41 kg-bpi kernel: [1124233.469951] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Jan 16 19:36:41 kg-bpi kernel: [1124233.469961] usb 2-1: Product: TF10 Jan 16 19:36:41 kg-bpi kernel: [1124233.469971] usb 2-1: Manufacturer: TDK LoR Jan 16 19:36:41 kg-bpi kernel: [1124233.469982] usb 2-1: SerialNumber: 070739CFA0078068 Jan 16 19:36:41 kg-bpi kernel: [1124233.471642] usb-storage 2-1:1.0: USB Mass Storage device detected Jan 16 19:36:41 kg-bpi kernel: [1124233.473022] scsi host1: usb-storage 2-1:1.0
the other port
Jan 16 19:40:29 kg-bpi kernel: [1124462.110658] usb 1-1: new high-speed USB device number 5 using ehci-platform Jan 16 19:40:30 kg-bpi kernel: [1124462.356094] usb 1-1: New USB device found, idVendor=0718, idProduct=070a Jan 16 19:40:30 kg-bpi kernel: [1124462.356112] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Jan 16 19:40:30 kg-bpi kernel: [1124462.356122] usb 1-1: Product: TF10 Jan 16 19:40:30 kg-bpi kernel: [1124462.356132] usb 1-1: Manufacturer: TDK LoR Jan 16 19:40:30 kg-bpi kernel: [1124462.356143] usb 1-1: SerialNumber: 070739CFA0078068 Jan 16 19:40:30 kg-bpi kernel: [1124462.357598] usb-storage 1-1:1.0: USB Mass Storage device detected Jan 16 19:40:30 kg-bpi kernel: [1124462.358910] scsi host1: usb-storage 1-1:1.0
the Tellstick Duo shows up as
Jan 16 19:39:06 kg-bpi kernel: [1124378.494780] usb 4-1: new full-speed USB device number 2 using ohci-platform Jan 16 19:39:06 kg-bpi kernel: [1124378.766729] usb 4-1: New USB device found, idVendor=1781, idProduct=0c31 Jan 16 19:39:06 kg-bpi kernel: [1124378.766745] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Jan 16 19:39:06 kg-bpi kernel: [1124378.766755] usb 4-1: Product: TellStick Duo Jan 16 19:39:06 kg-bpi kernel: [1124378.766766] usb 4-1: Manufacturer: Telldus Jan 16 19:39:06 kg-bpi kernel: [1124378.766776] usb 4-1: SerialNumber: A6028ED8 Jan 16 19:39:07 kg-bpi telldusd: Connecting to TellStick (1781/C31) with serial A6028ED8
well, we shall see how long it lasts.
2018-01-16: unplugging the Tellstick Duo, waiting a few minutes and plugging it back in didn't help
2018-01-15: I also see this in /var/log/messages:
Jan 13 11:37:30 kg-bpi kernel: [836262.152970] usb 3-1: USB disconnect, device number 3 Jan 13 11:37:43 kg-bpi telldusd: TellStick query: Error in communication with TellStick, resetting USB Jan 13 11:37:43 kg-bpi telldusd: Disconnected TellStick (1781/C31) with serial A6028ED8
nothing more.
2018-01-15: The Tellstick Duo has dropped off the usb bus again:
tingo@kg-bpi:~$ systemctl status telldusd ● telldusd.service - Tellstick service daemon Loaded: loaded (/etc/systemd/system/telldusd.service; enabled) Active: active (running) since Wed 2018-01-03 20:49:40 CET; 1 weeks 5 days ago Main PID: 1210 (telldusd) CGroup: /system.slice/telldusd.service └─1210 /usr/local/sbin/telldusd Jan 13 11:37:43 kg-bpi telldusd[1210]: TellStick query: Error in communication with TellStick, resetting USB Jan 13 11:37:43 kg-bpi telldusd[1210]: Disconnected TellStick (1781/C31) with serial A6028ED8 Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
and
tingo@kg-bpi:~$ tellcore_controllers TellStick Duo name: <unnamed> serial: A6028ED8 firmware: -1 available: 0 Found 1 controller(s)
lsusb doesn't see it either
tingo@kg-bpi:~$ lsusb Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
which results in sensor data being stale
tingo@kg-bpi:~$ tellcore_tool --list-sensors Number of sensors: 8 PROTOCOL MODEL ID TEMP HUMIDITY RAIN WIND LAST UPDATED mandolyn temperaturehumidity 11 22.6 C 0 % 2018-01-13 11:36:47 mandolyn temperaturehumidity 12 -21.2 C 53 % 2018-01-13 11:37:02 fineoffset temperature 206 6.0 C 2018-01-13 11:36:28 fineoffset temperature 186 5.1 C 2018-01-13 04:17:05 fineoffset temperaturehumidity 243 0.9 C 61 % 2018-01-12 21:12:40 fineoffset temperature 116 10.3 C 2018-01-10 01:44:08 fineoffset temperaturehumidity 0 0.0 C 0 % 2018-01-11 18:13:24 fineoffset temperaturehumidity 231 1.0 C 92 % 2018-01-06 20:45:14
very annoying.
2018-01-03: mmcblk0p1 - and I can see sensors again:
tingo@kg-bpi:~$ tellcore_tool --list-sensors Number of sensors: 2 PROTOCOL MODEL ID TEMP HUMIDITY RAIN WIND LAST UPDATED mandolyn temperaturehumidity 11 24.0 C 0 % 2018-01-03 20:52:51 mandolyn temperaturehumidity 12 -21.4 C 52 % 2018-01-03 20:53:11 tingo@kg-bpi:~$ tdtool --list-sensors type=sensor protocol=mandolyn model=temperaturehumidity id=11 temperature=24.0 humidity=0 time=2018-01-03 20:52:51 age=57 type=sensor protocol=mandolyn model=temperaturehumidity id=12 temperature=-21.4 humidity=52 time=2018-01-03 20:53:11 age=37
great!
2018-01-03: mmcblk0p1 - ok, I messed up my tellstick.conf file, it was missing the controller section. For future reference, the file looks like this:
tingo@kg-bpi:~$ more /etc/tellstick.conf user = "nobody" group = "plugdev" ignoreControllerConfirmation = "false" controller { id = 1 # name = "" type = 2 # serial = "A703AISQ" serial = "A6028ED8" } device { id = 1 name = "Example device" protocol = "arctech" model = "codeswitch" parameters { house = "A" unit = "1" } }
and now tellcore_controllers work
tingo@kg-bpi:~$ tellcore_controllers TellStick Duo name: <unnamed> serial: A6028ED8 firmware: 12 available: 1 Found 1 controller(s)
good.
2018-01-03: mmcblk0p1 - I rebooted the machine, and now lsusb says
tingo@kg-bpi:~$ lsusb Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 1781:0c31 Multiple Vendors Telldus TellStick Duo Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
good. But this is all I get in /var/log/messages
tingo@kg-bpi:~$ cat /var/log/messages | grep telldusd Jan 3 17:21:36 kg-bpi telldusd: Received SIGTERM or SIGINT signal. Jan 3 17:21:36 kg-bpi telldusd: Shutting down Jan 3 17:21:43 kg-bpi telldusd: telldusd daemon exited Jan 3 17:21:43 kg-bpi telldusd: telldusd daemon starting up Jan 3 18:48:17 kg-bpi telldusd: Received SIGTERM or SIGINT signal. Jan 3 18:48:17 kg-bpi telldusd: Shutting down Jan 3 18:48:24 kg-bpi telldusd: telldusd daemon exited Jan 3 18:48:25 kg-bpi telldusd: telldusd daemon starting up Jan 3 18:55:23 kg-bpi telldusd: Received SIGTERM or SIGINT signal. Jan 3 18:55:23 kg-bpi telldusd: Shutting down Jan 3 18:55:26 kg-bpi telldusd: telldusd daemon exited Jan 3 18:55:27 kg-bpi telldusd: telldusd daemon starting up Jan 3 18:56:15 kg-bpi telldusd: Received SIGTERM or SIGINT signal. Jan 3 18:56:15 kg-bpi telldusd: Shutting down Jan 3 18:56:21 kg-bpi telldusd: telldusd daemon exited Jan 3 18:56:32 kg-bpi telldusd: telldusd daemon starting up Jan 3 19:20:24 kg-bpi telldusd: Received SIGTERM or SIGINT signal. Jan 3 19:20:24 kg-bpi telldusd: Shutting down Jan 3 19:20:26 kg-bpi telldusd: telldusd daemon exited Jan 3 19:20:46 kg-bpi telldusd: telldusd daemon starting up
it is supposed to be like this
tingo@kg-bpi:~$ zcat /var/log/messages.3.gz | grep telldusd Dec 10 22:08:58 localhost telldusd: telldusd daemon starting up Dec 10 22:08:59 localhost telldusd: Connecting to TellStick (1781/C31) with serial A6028ED8 Dec 12 14:18:44 kg-bpi telldusd: TellStick query: Error in communication with TellStick, resetting USB Dec 12 14:18:44 kg-bpi telldusd: Disconnected TellStick (1781/C31) with serial A6028ED8
something is wrong.
2018-01-03: mmcblk0p1 - does tellcore_controllers find the TellStick Duo?
tingo@kg-bpi:~$ tellcore_controllers TellStick Duo name: <unnamed> serial: A6028ED8 firmware: -1 available: 0 Found 1 controller(s)
with sudo
tingo@kg-bpi:~$ sudo tellcore_controllers TellStick Duo name: <unnamed> serial: A6028ED8 firmware: -1 available: 0 Found 1 controller(s)
no difference. Still, it should say firmware version and "available: 1"
2018-01-03: mmcblk0p1 - do we have tellcore-py?
tingo@kg-bpi:~$ sudo pip search tellcore tellcore-net (0.4) - a Python module that allow to run tellcore over TCP/IP tellcore-py (1.1.3) - Python wrapper for Telldus' home automation library
yes - install it
tingo@kg-bpi:~$ sudo pip install tellcore-py Collecting tellcore-py Downloading tellcore-py-1.1.3.tar.gz (41kB) 100% |████████████████████████████████| 51kB 861kB/s Installing collected packages: tellcore-py Running setup.py install for tellcore-py ... done Successfully installed tellcore-py-1.1.3
what files
tingo@kg-bpi:~$ l /usr/local/bin/t* /usr/local/bin/tdtool* /usr/local/bin/tellcore_events* /usr/local/bin/tusbd.ko /usr/local/bin/tellcore_controllers* /usr/local/bin/tellcore_tool* tingo@kg-bpi:~$ l /usr/local/sbin/t* /usr/local/sbin/tdadmin* /usr/local/sbin/telldusd*
ok, I got tellcore_controllers and tellcore_tool
2018-01-03: mmcblk0p1 - it doesn't look like telldusd finds my TellStick Duo anymore
tingo@kg-bpi:~$ journalctl _SYSTEMD_UNIT=telldusd.service -- Logs begin at Wed 2017-12-27 05:22:01 CET, end at Wed 2018-01-03 18:11:01 CET. -- Jan 03 17:21:36 kg-bpi telldusd[678]: Received SIGTERM or SIGINT signal. Jan 03 17:21:36 kg-bpi telldusd[678]: Shutting down Jan 03 17:21:43 kg-bpi telldusd[678]: telldusd daemon exited Jan 03 17:21:43 kg-bpi telldusd[31133]: telldusd daemon starting up
also, lsusb ouput
tingo@kg-bpi:~$ sudo lsusb Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
hmm,
2018-01-03: mmcblk0p1 - apt upgrade
tingo@kg-bpi:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: linux-libc-dev 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 1,062 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://httpredir.debian.org/debian/ jessie-updates/main linux-libc-dev armhf 3.16.51-3 [1,062 kB] Fetched 1,062 kB in 5s (181 kB/s) (Reading database ... 59448 files and directories currently installed.) Preparing to unpack .../linux-libc-dev_3.16.51-3_armhf.deb ... Unpacking linux-libc-dev:armhf (3.16.51-3) over (3.16.51-2) ... Setting up linux-libc-dev:armhf (3.16.51-3) ...
ok.
2017-12-10: mmcblk0p1 - LEDs
tingo@bananapi:~$ ls -l /sys/class/leds total 0 lrwxrwxrwx 1 root root 0 Jan 1 1970 bananapi:green:usr -> ../../devices/platform/leds/leds/bananapi:green:usr
try turning it off
tingo@bananapi:~$ echo none > /sys/class/leds/bananapi\:green\:usr/trigger -bash: /sys/class/leds/bananapi:green:usr/trigger: Permission denied
as root
tingo@bananapi:~$ sudo -i [sudo] password for tingo: root@bananapi:~# echo none > /sys/class/leds/bananapi\:green\:usr/trigger
nothing happened.
2017-12-10: mmcblk0p1 - try to start Home Assistant from the command line:
tingo@bananapi:~$ which hass /usr/local/bin/hass
start it
tingo@bananapi:~$ hass --open-ui Unable to find configuration. Creating default one in /home/tingo/.homeassistant Config directory: /home/tingo/.homeassistant WARNING:homeassistant.bootstrap:Python 3.4 support has been deprecated and will be removed in the beginning of 2018. Please upgrade Python or your operating system. More info: https://home-assistant.io/blog/2017/10/06/deprecating-python-3.4-support/ INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=turn_off, domain=homeassistant> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=turn_on, domain=homeassistant> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=toggle, domain=homeassistant> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=stop, domain=homeassistant> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=restart, domain