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

Home Assistant,

Work log

2024-01-11: mmcblk0p1 - Home Assistant upgraded to version 2024.1.2 last night, the upgrade went on as I slept too.

2024-01-10: mmcblk0p1 - apt - install openblas-dev

tingo@kg-bpi:~$ sudo apt install libopenblas-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libopenblas-pthread-dev libopenblas0 libopenblas0-pthread
The following NEW packages will be installed:
  libopenblas-dev libopenblas-pthread-dev libopenblas0 libopenblas0-pthread
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,522 kB of archives.
After this operation, 22.8 MB of additional disk space will be used.
[..]
Setting up libopenblas-dev:armhf (0.3.21+ds-4) ...
Processing triggers for libc-bin (2.36-9+deb12u3) ...

apt - install ffmpeg

tingo@kg-bpi:~$ sudo apt install ffmpeg
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  ffmpeg-doc
The following NEW packages will be installed:
  ffmpeg
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,800 kB of archives.
After this operation, 2,236 kB of additional disk space will be used.
[..]
Setting up ffmpeg (7:5.1.4-0+deb12u1) ...
Processing triggers for man-db (2.11.2-2) ...

2024-01-10: mmcblk0p1 - Home Assistant - upgrade. First I stop it on the running machine. Then

tingo@kg-bpi:~$ source ~/.venv/homeassistant/bin/activate

next is

(homeassistant) tingo@kg-bpi:~$ TMPDIR='/usr/tmp' pip3 install --upgrade homeassistant
[..]
Successfully installed PyJWT-2.8.0 PyYAML-6.0.1 aiohttp-3.9.1 aiohttp-fast-url-dispatcher-0.3.0 aiohttp-zlib-ng-0.1.3 attrs-23.1.0 awesomeversion-23.11.0 bleak-0.21.1 bleak-retry-connector-3.4.0 bluetooth-adapters-0.17.0 bluetooth-auto-recovery-1.2.3 bluetooth-data-tools-1.19.0 cryptography-41.0.7 habluetooth-2.0.2 home-assistant-bluetooth-1.11.0 homeassistant-2024.1.2 httpcore-1.0.2 httpx-0.26.0 lru-dict-1.3.0 orjson-3.9.9 packaging-23.2 typing-extensions-4.9.0 ulid-transform-0.9.0 usb-devices-0.4.5 yarl-1.9.4 zlib-ng-0.4.0

and we shall see how it goes. It finished without incident after a (long) while. Let me try to start this thing

(homeassistant) tingo@kg-bpi:~$ hass --open-ui
[..]
2024-01-10 21:15:05.697 ERROR (MainThread) [haffmpeg.core] FFmpeg fails [Errno 2] No such file or directory: 'ffmpeg'
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'
2024-01-10 21:19:04.977 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for stage 2 - moving forward
2024-01-10 21:19:05.051 WARNING (SyncWorker_7) [homeassistant.bootstrap] Unable to open the Home Assistant UI in a browser. Open it yourself at http://127.0.0.1:8123
2024-01-10 21:19:05.233 WARNING (Recorder) [homeassistant.components.recorder.migration] Database is about to upgrade from schema version: 41 to: 42
2024-01-10 21:19:05.533 WARNING (Recorder) [homeassistant.components.recorder.migration] Upgrade to version 42 done
[..]

in the background it is installing things, compiling and so on. Better let it sit for some time.

2023-12-29: mmcblk0p1 - reboot, Armbian 23.11.1 is in

tingo@kg-bpi:~$ cat /etc/debian_version 
12.2

kernel

tingo@kg-bpi:~$ uname -a
Linux kg-bpi 6.1.63-current-sunxi #1 SMP Mon Nov 20 10:52:19 UTC 2023 armv7l GNU/Linux

2023-12-29: mmcblk0p1 - 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:
  armbian-config armbian-firmware base-files curl distro-info-data libbluetooth3 libcurl3-gnutls libcurl4 libde265-0 libgnutls30 libnghttp2-14
  libnss-myhostname libpam-systemd libperl5.36 libssh-gcrypt-4 libsystemd-shared libsystemd0 libtiff6 libudev1 linux-dtb-current-sunxi
  linux-image-current-sunxi linux-u-boot-bananapi-current openssh-client openssh-server openssh-sftp-server perl perl-base perl-modules-5.36
  php-symfony-console php-symfony-filesystem php-symfony-finder php-symfony-process php-symfony-string python3-distro-info systemd systemd-sysv tzdata
  udev
38 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 125 MB of archives.
After this operation, 145 MB of additional disk space will be used.
[..]
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.63-current-sunxi
W: No zstd in /usr/bin:/sbin:/bin, using gzip
update-initramfs: Converting to u-boot format

2023-11-19: mmcblk0p1 - reboot, now we've got Armbian 23.8.3 bookworm, based on

tingo@kg-bpi:~$ cat /etc/debian_version 
12.1

kernel

tingo@kg-bpi:~$ uname -a
Linux kg-bpi 6.1.53-current-sunxi #3 SMP Wed Sep 13 07:43:05 UTC 2023 armv7l GNU/Linux

2023-11-19: mmcblk0p1 - 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:
  armbian-config armbian-firmware base-files bind9-dnsutils bind9-host bind9-libs curl dbus dbus-bin dbus-daemon dbus-session-bus-common
  dbus-system-bus-common debian-archive-keyring debianutils dnsutils iperf3 libavcodec-dev libavcodec59 libavdevice-dev libavdevice59
  libavfilter-dev libavfilter8 libavformat-dev libavformat59 libavutil-dev libavutil57 libc-bin libc-dev-bin libc-l10n libc6 libc6-dev
  libcurl3-gnutls libcurl4 libdbus-1-3 libgssapi-krb5-2 libhwy1 libiperf0 libk5crypto3 libkrb5-3 libkrb5support0 libmosquitto1
  libnss-myhostname libpam-modules libpam-modules-bin libpam-runtime libpam-systemd libpam0g libpostproc-dev libpostproc56 librsvg2-2
  libssl-dev libssl3 libswresample-dev libswresample4 libswscale-dev libswscale6 libsystemd-shared libsystemd0 libudev1 libvpx7 libwebp7
  libwebpmux3 libx11-6 libx11-data libx11-xcb1 libxml2 libxpm4 linux-dtb-current-sunxi linux-image-current-sunxi
  linux-u-boot-bananapi-current locales mosquitto openssh-client openssh-server openssh-sftp-server openssl sudo systemd systemd-sysv udev
80 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 99.6 MB of archives.
After this operation, 113 MB of additional disk space will be used.
[..]
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.53-current-sunxi
W: No zstd in /usr/bin:/sbin:/bin, using gzip
update-initramfs: Converting to u-boot format
Processing triggers for libc-bin (2.36-9+deb12u3) ...
Processing triggers for man-db (2.11.2-2) ...

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 0 not upgraded.

apt - autoclean

tingo@kg-bpi:~$ sudo apt autoclean
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done

2023-07-26: mmcblk0p1 - bolt - install exasmple themes

tingo@kg-bpi:/var/www/sites/logb$ composer require bolt/themes
Info from https://repo.packagist.org: #StandWithUkraine
./composer.json has been updated
Running composer update bolt/themes
> Bolt\ComposerScripts\ProjectEventHandler::preUpdate
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
Package symfony/web-server-bundle is abandoned, you should avoid using it. No replacement was suggested.
Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
Generating optimized autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
drupol/composer-packages: Regenerating classes...
drupol/composer-packages: Done.
116 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

> Bolt\ComposerScripts\ProjectEventHandler::postUpdate

 ! [NOTE] Running composer "post-update-cmd" scripts                                                                    

No changes to 'bundles.php' required.
Processed 0 files. Updated: 0, deleted: 0, skipped: 0.


 // Clearing the cache for the dev environment with debug true                                                          


 [OK] Cache for the "dev" environment (debug=true) was successfully cleared.                                            



 Trying to install assets as relative symbolic links.

 --- ------------------------ ------------------ 
      Bundle                   Method / Error    
 --- ------------------------ ------------------ 
     ApiPlatformBundle        relative symlink  
     BabDevPagerfantaBundle   relative symlink  
     TranslationBundle        relative symlink  
 --- ------------------------ ------------------ 


 [OK] All assets were successfully installed.                                                                           



 Installing Bolt assets as hard copies.

 --- -------- ---------------- 
      Folder   Method / Error  
 --- -------- ---------------- 
     assets   copied          
 --- -------- ---------------- 


 [OK] All assets were successfully installed.                                                                           




 [OK] Up-to-date! No migrations to execute.                                                                             



⚙️  Bolt
=======

 Bolt version: 5.1.24

 * Install type: Packaged distribution
 * Database: sqlite 3.40.1 (with JSON)
 * PHP version: 8.2.7
 * Symfony version: v5.4.25
 * Operating System: Linux - 5.15.93-sunxi
 * Memory limit: 1024M


No security vulnerability advisories found
Using version ^3.6 for bolt/themes

followed by

tingo@kg-bpi:/var/www/sites/logb$ bin/console bolt:copy-theme bolt/themes

 Installing Bolt themes as hard copies.

 --- ----------- ---------------- 
      Theme       Method / Error  
 --- ----------- ---------------- 
     base-2021   copied          
     base-2018   copied          
     skeleton    copied          
 --- ----------- ---------------- 


 [OK] All themes were successfully installed.                                                                           

2023-07-26: mmcblk0p1 - bolt - Ok, I'm starting from scratch with a new bolt installation for now

tingo@kg-bpi:/var/www/sites/logb$ bin/console bolt:setup
Created database /var/www/sites/logb/var/data/bolt.sqlite for connection named default
[..]
[OK] Bolt was set up successfully! Start a web server, and open your Bolt site in a browser.                           



 // You can start a webserver by running the following command:                                                         

 php bin/console server:start 8000 --docroot=/var/www/sites/logb

2023-07-23: mmcblk0p1 - bolt - hmm, this is interesting

tingo@kg-bpi:/var/www/sites/logb$ bin/console doctrine:help


  Command "doctrine:help" is not defined.        

  Did you mean one of these?                     
      doctrine:cache:clear-collection-region     
      doctrine:cache:clear-entity-region         
      doctrine:cache:clear-metadata              
      doctrine:cache:clear-query                 
      doctrine:cache:clear-query-region          
      doctrine:cache:clear-result                
      doctrine:database:create                   
      doctrine:database:drop                     
      doctrine:database:import                   
      doctrine:ensure-production-settings        
      doctrine:fixtures:load                     
      doctrine:mapping:convert                   
      doctrine:mapping:import                    
      doctrine:mapping:info                      
      doctrine:migrations:current                
      doctrine:migrations:diff                   
      doctrine:migrations:dump-schema            
      doctrine:migrations:execute                
      doctrine:migrations:generate               
      doctrine:migrations:latest                 
      doctrine:migrations:list                   
      doctrine:migrations:migrate                
      doctrine:migrations:rollup                 
      doctrine:migrations:status                 
      doctrine:migrations:sync-metadata-storage  
      doctrine:migrations:up-to-date             
      doctrine:migrations:version                
      doctrine:query:dql                         
      doctrine:query:sql                         
      doctrine:schema:create                     
      doctrine:schema:drop                       
      doctrine:schema:update                     
      doctrine:schema:validate                   

try list

tingo@kg-bpi:/var/www/sites/logb$ bin/console doctrine:migrations:list
+-----------------------------------------------+--------------+-------------+----------------+------------------------------------------------------------------------------+
| Migration Versions                                                                          |                                                                              |
+-----------------------------------------------+--------------+-------------+----------------+------------------------------------------------------------------------------+
| Migration                                     | Status       | Migrated At | Execution Time | Description                                                                  |
+-----------------------------------------------+--------------+-------------+----------------+------------------------------------------------------------------------------+
| Bolt\DoctrineMigrations\Version20201210105836 | not migrated |             |                | Bolt 4.2 Migration: bolt_reset_password and bolt_column.avatar               |
| Bolt\DoctrineMigrations\Version20211123103530 | not migrated |             |                | Bolt 5.1 Migration: bolt_user_auth_token.user_id is not a unique constraint. |
+-----------------------------------------------+--------------+-------------+----------------+------------------------------------------------------------------------------+

hmm, what about schema?

tingo@kg-bpi:/var/www/sites/logb$ bin/console doctrine:schema:validate

Mapping
-------


 [OK] The mapping files are correct.                                                                                    


Database
--------


 [ERROR] The database schema is not in sync with the current mapping file.                                              

and this

tingo@kg-bpi:/var/www/sites/logb$ bin/console doctrine:migrations:status
+----------------------+-------------------------+------------------------------------------------------------------------+
| Configuration                                                                                                           |
+----------------------+-------------------------+------------------------------------------------------------------------+
| Storage              | Type                    | Doctrine\Migrations\Metadata\Storage\TableMetadataStorageConfiguration |
|                      | Table Name              | doctrine_migration_versions                                            |
|                      | Column Name             | version                                                                |
|-------------------------------------------------------------------------------------------------------------------------|
| Database             | Driver                  | Doctrine\DBAL\Driver\PDO\SQLite\Driver                                 |
|                      | Name                    | /var/www/sites/logb/var/data/bolt.sqlite                               |
|-------------------------------------------------------------------------------------------------------------------------|
| Versions             | Previous                | 0                                                                      |
|                      | Current                 | 0                                                                      |
|                      | Next                    | Bolt\DoctrineMigrations\Version20201210105836                          |
|                      | Latest                  | Bolt\DoctrineMigrations\Version20211123103530                          |
|-------------------------------------------------------------------------------------------------------------------------|
| Migrations           | Executed                | 0                                                                      |
|                      | Executed Unavailable    | 0                                                                      |
|                      | Available               | 2                                                                      |
|                      | New                     | 2                                                                      |
|-------------------------------------------------------------------------------------------------------------------------|
| Migration Namespaces | DoctrineMigrations      | /var/www/sites/logb/migrations                                         |
|                      | Bolt\DoctrineMigrations | /var/www/sites/logb/vendor/bolt/core/migrations                        |
+----------------------+-------------------------+------------------------------------------------------------------------+

based on comments in issue 3021, I should run bin/console doctrine:schema:update --force and bin/console doctrine:migrations:migrate let me try that

tingo@kg-bpi:/var/www/sites/logb$ bin/console doctrine:schema:update --force


 [WARNING] Not passing the "--complete" option to "doctrine:schema:update" is deprecated and will not be supported when 
           using doctrine/dbal 4                                                                                        


 Updating database schema...


In AbstractSQLiteDriver.php line 55:

  An exception occurred while executing 'INSERT INTO bolt_taxonomy (id, slug, sortorder, name) SELECT id, slug, sortorder, name FROM __temp__bolt_taxon  
  omy':                                                                                                                                                  

  SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: bolt_taxonomy.type                                                     


In Exception.php line 18:

  SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: bolt_taxonomy.type  


In PDOConnection.php line 55:

  SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: bolt_taxonomy.type  


doctrine:schema:update [--em EM] [--complete] [--dump-sql] [-f|--force]

I have a backup, so try it again

tingo@kg-bpi:/var/www/sites/logb$ bin/console doctrine:schema:update --complete --force

 Updating database schema...


In AbstractSQLiteDriver.php line 55:

  An exception occurred while executing 'INSERT INTO bolt_log (id, level, created_at, message) SELECT id, level, date, message FROM __temp__bolt_log':  

  SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: bolt_log.level_name                                                   


In Exception.php line 18:

  SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: bolt_log.level_name  


In PDOConnection.php line 55:

  SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: bolt_log.level_name  


doctrine:schema:update [--em EM] [--complete] [--dump-sql] [-f|--force]

try it anyway

tingo@kg-bpi:/var/www/sites/logb$ bin/console doctrine:migrations:migrate

 WARNING! You are about to execute a migration in database "/var/www/sites/logb/var/data/bolt.sqlite" that could result in schema changes and data loss. Are you sure you wish to continue? (yes/no) [yes]:
 > yes

[notice] Migrating up to Bolt\DoctrineMigrations\Version20211123103530
[warning] Migration Bolt\DoctrineMigrations\Version20211123103530 was executed but did not result in any SQL statements.
[notice] finished in 878.4ms, used 36M memory, 2 migrations executed, 2 sql queries

hmm, try list-users now

tingo@kg-bpi:/var/www/sites/logb$ bin/console bolt:list-users
 ---- ----------- ---------- ------- ------- 
  ID   Full Name   Username   Email   Roles  
 ---- ----------- ---------- ------- ------- 

aha - no users.

2023-07-23: mmcblk0p1 - bolt - after setting up the .env.local file correctly (and making sure the database is correctly named) bolt still complains it has no database

tingo@kg-bpi:/var/www/sites/logb$ bin/console bolt:info

⚙️  Bolt
=======

 Bolt version: 5.1.24

 * Install type: Packaged distribution
 * Database: Unknown - no database connection  ()
 * PHP version: 8.2.7
 * Symfony version: v5.4.25
 * Operating System: Linux - 5.15.93-sunxi
 * Memory limit: 1024M

apt - install php8.2-sqlite3 - does that help

tingo@kg-bpi:/var/www/sites/logb$ bin/console bolt:info

⚙️  Bolt
=======

 Bolt version: 5.1.24

 * Install type: Packaged distribution
 * Database: sqlite 3.40.1 - Tables not initialised (with JSON)
 * PHP version: 8.2.7
 * Symfony version: v5.4.25
 * Operating System: Linux - 5.15.93-sunxi
 * Memory limit: 1024M

but still something is not right

tingo@kg-bpi:/var/www/sites/logb$ bin/console bolt:list-users

In AbstractSQLiteDriver.php line 59:

  An exception occurred while executing 'SELECT t0.id AS id_1, t0.display_name AS display_name_2, t0.username AS username_3, t0.email AS email_4, t0.pa  
  ssword AS password_5, t0.roles AS roles_6, t0.lastseen_at AS lastseen_at_7, t0.last_ip AS last_ip_8, t0.locale AS locale_9, t0.backend_theme AS backe  
  nd_theme_10, t0.status AS status_11, t0.avatar AS avatar_12 FROM bolt_user t0 ORDER BY t0.username ASC LIMIT 50':                                      

  SQLSTATE[HY000]: General error: 1 no such table: bolt_user                                                                                             


In Exception.php line 18:

  SQLSTATE[HY000]: General error: 1 no such table: bolt_user  


In PDOConnection.php line 141:

  SQLSTATE[HY000]: General error: 1 no such table: bolt_user  


bolt:list-users [--max-results [MAX-RESULTS]] [--send-to [SEND-TO]]

try cache clear

tingo@kg-bpi:/var/www/sites/logb$ bin/console cache:clear

 // Clearing the cache for the dev environment with debug true                                                          


 [OK] Cache for the "dev" environment (debug=true) was successfully cleared.                                            

repeat list users

tingo@kg-bpi:/var/www/sites/logb$ bin/console bolt:list-users

In AbstractSQLiteDriver.php line 59:

  An exception occurred while executing 'SELECT t0.id AS id_1, t0.display_name AS display_name_2, t0.username AS username_3, t0.email AS email_4, t0.pa  
  ssword AS password_5, t0.roles AS roles_6, t0.lastseen_at AS lastseen_at_7, t0.last_ip AS last_ip_8, t0.locale AS locale_9, t0.backend_theme AS backe  
  nd_theme_10, t0.status AS status_11, t0.avatar AS avatar_12 FROM bolt_user t0 ORDER BY t0.username ASC LIMIT 50':                                      

  SQLSTATE[HY000]: General error: 1 no such table: bolt_user                                                                                             


In Exception.php line 18:

  SQLSTATE[HY000]: General error: 1 no such table: bolt_user  


In PDOConnection.php line 141:

  SQLSTATE[HY000]: General error: 1 no such table: bolt_user  


bolt:list-users [--max-results [MAX-RESULTS]] [--send-to [SEND-TO]]

2023-07-23: mmcblk0p1 - bolt - ty composer update one more time

tingo@kg-bpi:/var/www/sites/logb$ composer update
> Bolt\ComposerScripts\ProjectEventHandler::preUpdate
Loading composer repositories with package information
Restricting packages listed in "symfony/symfony" to "^5.1"
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
Package symfony/web-server-bundle is abandoned, you should avoid using it. No replacement was suggested.
Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
Generating optimized autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
drupol/composer-packages: Regenerating classes...
drupol/composer-packages: Done.
116 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

> Bolt\ComposerScripts\ProjectEventHandler::postUpdate

 ! [NOTE] Running composer "post-update-cmd" scripts                                                                    

No changes to 'bundles.php' required.
Processed 0 files. Updated: 0, deleted: 0, skipped: 0.


 // Clearing the cache for the dev environment with debug true                                                          


 [OK] Cache for the "dev" environment (debug=true) was successfully cleared.                                            



 Trying to install assets as relative symbolic links.

 --- ------------------------ ------------------ 
      Bundle                   Method / Error    
 --- ------------------------ ------------------ 
     ApiPlatformBundle        relative symlink  
     BabDevPagerfantaBundle   relative symlink  
     TranslationBundle        relative symlink  
 --- ------------------------ ------------------ 


 [OK] All assets were successfully installed.                                                                           



 Installing Bolt assets as hard copies.

 --- -------- ---------------- 
      Folder   Method / Error  
 --- -------- ---------------- 
     assets   copied          
 --- -------- ---------------- 


 [OK] All assets were successfully installed.                                                                           



⚙️  Bolt
=======

 Bolt version: 5.1.24

 * Install type: Packaged distribution
 * Database: Unknown - no database connection  ()
 * PHP version: 8.2.7
 * Symfony version: v5.4.25
 * Operating System: Linux - 5.15.93-sunxi
 * Memory limit: 1024M


No security vulnerability advisories found

2023-07-23: mmcblk0p1 - bolt - I renamed the bolt 3.7.x directory to get it out of the way, let me try to install bolt 5.x

tingo@kg-bpi:/var/www/sites$ composer create-project bolt/project logb
Creating a "bolt/project" project at "./logb"
Installing bolt/project (2.3.20)
  - Downloading bolt/project (2.3.20)
  - Installing bolt/project (2.3.20): Extracting archive
Created project in /var/www/sites/logb
Class Bolt\ComposerScripts\ProjectEventHandler is not autoloadable, can not call pre-install-cmd script
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - laminas/laminas-code is locked to version 4.7.1 and an update of this package was not requested.
    - laminas/laminas-code 4.7.1 requires php >=7.4, <8.2 -> your php version (8.2.7) does not satisfy that requirement.
  Problem 2
    - laminas/laminas-code 4.7.1 requires php >=7.4, <8.2 -> your php version (8.2.7) does not satisfy that requirement.
    - friendsofphp/proxy-manager-lts v1.0.13 requires laminas/laminas-code ~3.4.1|^4.0 -> satisfiable by laminas/laminas-code[4.7.1].
    - friendsofphp/proxy-manager-lts is locked to version v1.0.13 and an update of this package was not requested.

ok, see if composer update works now

tingo@kg-bpi:/var/www/sites/logb$ composer update
Class Bolt\ComposerScripts\ProjectEventHandler is not autoloadable, can not call pre-update-cmd script
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 91 updates, 1 removal
  - Removing nategood/commando (0.4.0)
  - Upgrading api-platform/core (v2.7.6 => v2.7.13)
  - Locking bobdenotter/commando (1.0.1)
  - Upgrading bobdenotter/configuration-notices (1.4.0 => 1.4.1)
  - Upgrading bobdenotter/yaml-migrations (1.1.1 => 1.2.0)
  - Upgrading bolt/core (5.1.20 => 5.1.24)
  - Upgrading bolt/redactor (2.1.4 => 2.1.5)
  - Upgrading bolt/themes (3.6.0 => 3.6.1)
  - Upgrading brick/math (0.10.2 => 0.11.0)
  - Upgrading composer/ca-bundle (1.3.5 => 1.3.6)
  - Upgrading composer/class-map-generator (1.0.0 => 1.1.0)
  - Upgrading composer/composer (2.5.1 => 2.5.8)
  - Upgrading doctrine/annotations (1.14.2 => 1.14.3)
  - Upgrading doctrine/data-fixtures (1.6.3 => 1.6.6)
  - Upgrading doctrine/doctrine-fixtures-bundle (3.4.2 => 3.4.4)
  - Upgrading doctrine/doctrine-migrations-bundle (3.2.2 => 3.2.4)
  - Upgrading doctrine/inflector (2.0.6 => 2.0.8)
  - Upgrading doctrine/orm (2.14.1 => 2.14.3)
  - Upgrading doctrine/persistence (2.5.6 => 2.5.7)
  - Upgrading egulias/email-validator (3.2.5 => 3.2.6)
  - Upgrading fakerphp/faker (v1.21.0 => v1.23.0)
  - Upgrading friendsofphp/proxy-manager-lts (v1.0.13 => v1.0.16)
  - Upgrading guzzlehttp/psr7 (2.4.3 => 2.5.0)
  - Upgrading knplabs/knp-menu (v3.3.0 => v3.4.0)
  - Upgrading laminas/laminas-code (4.7.1 => 4.11.0)
  - Upgrading league/glide (1.7.1 => 1.7.2)
  - Upgrading monolog/monolog (2.8.0 => 2.9.1)
  - Upgrading nelmio/cors-bundle (2.2.0 => 2.3.1)
  - Upgrading nesbot/carbon (2.65.0 => 2.68.1)
  - Upgrading nikic/php-parser (v4.15.3 => v4.16.0)
  - Upgrading php-translation/extractor (2.1.0 => 2.1.1)
  - Upgrading psr/http-factory (1.0.1 => 1.0.2)
  - Upgrading psr/http-message (1.0.1 => 1.1)
  - Upgrading psr/link (1.1.1 => 2.0.1)
  - Upgrading ramsey/collection (1.3.0 => 2.0.0)
  - Upgrading ramsey/uuid (4.7.3 => 4.7.4)
  - Upgrading react/promise (v2.9.0 => v2.10.0)
  - Upgrading seld/jsonlint (1.9.0 => 1.10.0)
  - Upgrading sensio/framework-extra-bundle (v6.2.9 => v6.2.10)
  - Upgrading symfony/asset (v5.4.13 => v5.4.21)
  - Upgrading symfony/cache (v5.4.18 => v5.4.25)
  - Upgrading symfony/config (v5.4.11 => v5.4.21)
  - Upgrading symfony/console (v5.4.17 => v5.4.24)
  - Upgrading symfony/debug-bundle (v5.4.11 => v5.4.21)
  - Upgrading symfony/dependency-injection (v5.4.17 => v5.4.25)
  - Upgrading symfony/doctrine-bridge (v5.4.17 => v5.4.25)
  - Upgrading symfony/dotenv (v5.4.5 => v5.4.22)
  - Upgrading symfony/error-handler (v5.4.17 => v5.4.24)
  - Upgrading symfony/event-dispatcher (v5.4.17 => v5.4.22)
  - Upgrading symfony/event-dispatcher-contracts (v3.0.2 => v3.3.0)
  - Upgrading symfony/expression-language (v5.4.14 => v5.4.21)
  - Upgrading symfony/filesystem (v5.4.13 => v6.3.1)
  - Upgrading symfony/finder (v5.4.17 => v5.4.21)
  - Upgrading symfony/flex (v2.2.4 => v2.3.1)
  - Upgrading symfony/form (v5.4.17 => v5.4.24)
  - Upgrading symfony/framework-bundle (v5.4.17 => v5.4.25)
  - Upgrading symfony/http-client (v5.4.17 => v5.4.25)
  - Upgrading symfony/http-foundation (v5.4.17 => v5.4.25)
  - Upgrading symfony/http-kernel (v5.4.18 => v5.4.25)
  - Upgrading symfony/intl (v5.4.15 => v6.3.1)
  - Upgrading symfony/mailer (v5.4.17 => v5.4.22)
  - Upgrading symfony/mime (v5.4.17 => v5.4.23)
  - Upgrading symfony/monolog-bridge (v5.4.17 => v5.4.22)
  - Upgrading symfony/options-resolver (v5.4.11 => v6.3.0)
  - Upgrading symfony/password-hasher (v5.4.11 => v5.4.21)
  - Upgrading symfony/process (v5.4.11 => v5.4.24)
  - Upgrading symfony/property-access (v5.4.15 => v5.4.22)
  - Upgrading symfony/property-info (v5.4.17 => v6.3.0)
  - Upgrading symfony/routing (v5.4.17 => v5.4.25)
  - Upgrading symfony/security-bundle (v5.4.17 => v5.4.22)
  - Upgrading symfony/security-core (v5.4.15 => v5.4.22)
  - Upgrading symfony/security-csrf (v5.4.11 => v5.4.21)
  - Upgrading symfony/security-guard (v5.4.13 => v5.4.22)
  - Upgrading symfony/security-http (v5.4.17 => v5.4.23)
  - Upgrading symfony/serializer (v5.4.17 => v5.4.25)
  - Upgrading symfony/stopwatch (v5.4.13 => v5.4.21)
  - Upgrading symfony/string (v5.4.17 => v5.4.22)
  - Upgrading symfony/translation (v5.4.14 => v5.4.24)
  - Upgrading symfony/twig-bridge (v5.4.17 => v5.4.22)
  - Upgrading symfony/twig-bundle (v5.4.17 => v5.4.21)
  - Upgrading symfony/validator (v5.4.17 => v5.4.25)
  - Upgrading symfony/var-dumper (v5.4.17 => v5.4.25)
  - Upgrading symfony/var-exporter (v5.4.17 => v5.4.21)
  - Upgrading symfony/web-link (v5.4.3 => v6.3.0)
  - Upgrading symfony/web-profiler-bundle (v5.4.17 => v5.4.24)
  - Upgrading symfony/webpack-encore-bundle (v1.16.1 => v1.17.1)
  - Upgrading symfony/yaml (v5.4.17 => v5.4.23)
  - Upgrading symfonycasts/reset-password-bundle (v1.16.0 => v1.17.0)
  - Upgrading twig/extra-bundle (v3.5.0 => v3.6.1)
  - Upgrading twig/html-extra (v3.5.0 => v3.6.0)
  - Upgrading twig/intl-extra (v3.5.0 => v3.6.0)
  - Upgrading twig/twig (v3.5.0 => v3.6.1)
  - Upgrading webonyx/graphql-php (v14.11.9 => v14.11.10)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 182 installs, 0 updates, 0 removals
  - Downloading symfony/flex (v2.3.1)
  - Downloading composer/package-versions-deprecated (1.11.99.5)
  - Downloading symfony/polyfill-mbstring (v1.27.0)
  - Downloading symfony/polyfill-ctype (v1.27.0)
  - Downloading composer/ca-bundle (1.3.6)
  - Downloading twig/twig (v3.6.1)
  - Downloading symfony/polyfill-php80 (v1.27.0)
  - Downloading symfony/polyfill-intl-normalizer (v1.27.0)
  - Downloading symfony/deprecation-contracts (v2.5.2)
  - Downloading symfony/polyfill-php73 (v1.27.0)
  - Downloading psr/log (2.0.0)
  - Downloading symfony/polyfill-php81 (v1.27.0)
  - Downloading symfony/filesystem (v6.3.1)
  - Downloading symfony/finder (v5.4.21)
  - Downloading psr/container (1.1.2)
  - Downloading symfony/service-contracts (v2.5.2)
  - Downloading symfony/process (v5.4.24)
  - Downloading symfony/polyfill-intl-grapheme (v1.27.0)
  - Downloading symfony/string (v5.4.22)
  - Downloading symfony/console (v5.4.24)
  - Downloading seld/signal-handler (2.0.1)
  - Downloading seld/phar-utils (1.2.1)
  - Downloading seld/jsonlint (1.10.0)
  - Downloading react/promise (v2.10.0)
  - Downloading justinrainbow/json-schema (5.2.12)
  - Downloading composer/pcre (3.1.0)
  - Downloading composer/xdebug-handler (3.0.3)
  - Downloading composer/spdx-licenses (1.5.7)
  - Downloading composer/semver (3.3.2)
  - Downloading composer/class-map-generator (1.1.0)
  - Downloading composer/composer (2.5.8)
  - Downloading drupol/composer-packages (2.0.0)
  - Downloading kevinlebrun/colors.php (0.4.1)
  - Downloading bobdenotter/commando (1.0.1)
  - Downloading bobdenotter/configuration-notices (1.4.1)
  - Downloading bobdenotter/weatherwidget (1.1.15)
  - Downloading bolt/article (2.1.4)
  - Downloading bolt/assets (5.1.20)
  - Downloading ezyang/htmlpurifier (v4.16.0)
  - Downloading xemlock/htmlpurifier-html5 (v0.1.11)
  - Downloading webonyx/graphql-php (v14.11.10)
  - Downloading webmozart/assert (1.11.0)
  - Downloading webimpress/safe-writer (2.2.0)
  - Downloading symfony/intl (v6.3.1)
  - Downloading twig/intl-extra (v3.6.0)
  - Downloading symfony/polyfill-php72 (v1.27.0)
  - Downloading symfony/polyfill-intl-idn (v1.27.0)
  - Downloading symfony/mime (v5.4.23)
  - Downloading twig/html-extra (v3.6.0)
  - Downloading symfony/translation-contracts (v2.5.2)
  - Downloading symfony/twig-bridge (v5.4.22)
  - Downloading symfony/http-foundation (v5.4.25)
  - Downloading psr/event-dispatcher (1.0.0)
  - Downloading symfony/event-dispatcher-contracts (v3.3.0)
  - Downloading symfony/event-dispatcher (v5.4.22)
  - Downloading symfony/var-dumper (v5.4.25)
  - Downloading symfony/error-handler (v5.4.24)
  - Downloading symfony/http-kernel (v5.4.25)
  - Downloading symfony/config (v5.4.21)
  - Downloading symfony/twig-bundle (v5.4.21)
  - Downloading symfony/routing (v5.4.25)
  - Downloading symfony/dependency-injection (v5.4.25)
  - Downloading symfony/var-exporter (v5.4.21)
  - Downloading psr/cache (2.0.0)
  - Downloading symfony/cache-contracts (v2.5.2)
  - Downloading symfony/cache (v5.4.25)
  - Downloading symfony/framework-bundle (v5.4.25)
  - Downloading twig/extra-bundle (v3.6.1)
  - Downloading tightenco/collect (v8.83.27)
  - Downloading symfonycasts/reset-password-bundle (v1.17.0)
  - Downloading symfony/yaml (v5.4.23)
  - Downloading symfony/asset (v5.4.21)
  - Downloading symfony/webpack-encore-bundle (v1.17.1)
  - Downloading symfony/web-server-bundle (v4.4.44)
  - Downloading symfony/web-profiler-bundle (v5.4.24)
  - Downloading symfony/validator (v5.4.25)
  - Downloading symfony/translation (v5.4.24)
  - Downloading symfony/stopwatch (v5.4.21)
  - Downloading symfony/serializer (v5.4.25)
  - Downloading symfony/password-hasher (v5.4.21)
  - Downloading symfony/security-core (v5.4.22)
  - Downloading symfony/security-csrf (v5.4.21)
  - Downloading symfony/property-info (v6.3.0)
  - Downloading symfony/property-access (v5.4.22)
  - Downloading symfony/security-http (v5.4.23)
  - Downloading symfony/security-guard (v5.4.22)
  - Downloading symfony/security-bundle (v5.4.22)
  - Downloading monolog/monolog (2.9.1)
  - Downloading symfony/monolog-bridge (v5.4.22)
  - Downloading symfony/monolog-bundle (v3.8.0)
  - Downloading doctrine/lexer (1.2.3)
  - Downloading egulias/email-validator (3.2.6)
  - Downloading symfony/mailer (v5.4.22)
  - Downloading symfony/http-client-contracts (v2.5.2)
  - Downloading symfony/http-client (v5.4.25)
  - Downloading symfony/polyfill-intl-icu (v1.27.0)
  - Downloading symfony/options-resolver (v6.3.0)
  - Downloading symfony/form (v5.4.24)
  - Downloading symfony/expression-language (v5.4.21)
  - Downloading symfony/dotenv (v5.4.22)
  - Downloading symfony/debug-bundle (v5.4.21)
  - Downloading squirrelphp/twig-php-syntax (v1.7)
  - Downloading siriusphp/validation (3.1.0)
  - Downloading siriusphp/upload (3.0.1)
  - Downloading doctrine/annotations (1.14.3)
  - Downloading sensio/framework-extra-bundle (v6.2.10)
  - Downloading doctrine/event-manager (1.2.0)
  - Downloading doctrine/collections (1.8.0)
  - Downloading doctrine/cache (2.2.0)
  - Downloading doctrine/persistence (2.5.7)
  - Downloading doctrine/instantiator (1.5.0)
  - Downloading doctrine/inflector (2.0.8)
  - Downloading doctrine/dbal (2.13.9)
  - Downloading doctrine/common (3.4.3)
  - Downloading doctrine/orm (2.14.3)
  - Downloading scienta/doctrine-json-functions (4.5.0)
  - Downloading psr/simple-cache (1.0.1)
  - Downloading phpdocumentor/reflection-common (2.2.0)
  - Downloading phpdocumentor/type-resolver (1.6.2)
  - Downloading phpdocumentor/reflection-docblock (5.3.0)
  - Downloading php-translation/common (3.2.0)
  - Downloading php-translation/symfony-storage (2.3.1)
  - Downloading nikic/php-parser (v4.16.0)
  - Downloading php-translation/extractor (2.1.1)
  - Downloading nyholm/nsa (1.3.0)
  - Downloading php-translation/symfony-bundle (0.12.8)
  - Downloading nesbot/carbon (2.68.1)
  - Downloading nelmio/cors-bundle (2.3.1)
  - Downloading psr/http-message (1.1)
  - Downloading nelexa/zip (4.0.2)
  - Downloading league/mime-type-detection (1.11.0)
  - Downloading league/flysystem (1.1.10)
  - Downloading ralouphie/getallheaders (3.0.3)
  - Downloading psr/http-factory (1.0.2)
  - Downloading guzzlehttp/psr7 (2.5.0)
  - Downloading intervention/image (2.7.2)
  - Downloading league/glide (1.7.2)
  - Downloading league/glide-symfony (1.1.1)
  - Downloading knplabs/knp-menu (v3.4.0)
  - Downloading knplabs/knp-menu-bundle (v3.2.0)
  - Downloading ramsey/collection (2.0.0)
  - Downloading brick/math (0.11.0)
  - Downloading ramsey/uuid (4.7.4)
  - Downloading nette/utils (v3.2.9)
  - Downloading symfony/doctrine-bridge (v5.4.25)
  - Downloading doctrine/sql-formatter (1.1.3)
  - Downloading doctrine/doctrine-bundle (2.7.2)
  - Downloading knplabs/doctrine-behaviors (2.5.0)
  - Downloading jasny/twig-extensions (v1.3.0)
  - Downloading fakerphp/faker (v1.23.0)
  - Downloading embed/embed (v3.4.18)
  - Downloading laminas/laminas-code (4.11.0)
  - Downloading friendsofphp/proxy-manager-lts (v1.0.16)
  - Downloading doctrine/migrations (3.4.2)
  - Downloading doctrine/doctrine-migrations-bundle (3.2.4)
  - Downloading doctrine/data-fixtures (1.6.6)
  - Downloading doctrine/doctrine-fixtures-bundle (3.4.4)
  - Downloading cocur/slugify (v4.3.0)
  - Downloading bolt/common (3.0.7)
  - Downloading bobdenotter/yaml-migrations (1.2.0)
  - Downloading beberlei/doctrineextensions (v1.3.0)
  - Downloading pagerfanta/pagerfanta (v2.7.3)
  - Downloading babdev/pagerfanta-bundle (v2.11.0)
  - Downloading willdurand/negotiation (3.1.0)
  - Downloading psr/link (2.0.1)
  - Downloading symfony/web-link (v6.3.0)
  - Downloading api-platform/core (v2.7.13)
  - Downloading bolt/core (5.1.24)
  - Downloading bolt/newswidget (1.3.0)
  - Downloading bolt/redactor (2.1.5)
  - Downloading bolt/themes (3.6.1)
  - Downloading nelmio/security-bundle (v2.12.0)
  - Downloading phpstan/phpstan (0.12.100)
  - Downloading phpstan/phpstan-doctrine (0.12.44)
  - Downloading phpstan/phpstan-symfony (0.12.44)
  - Downloading symplify/easy-coding-standard (9.4.70)
  - Installing symfony/flex (v2.3.1): Extracting archive
  - Installing composer/package-versions-deprecated (1.11.99.5): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.27.0): Extracting archive
  - Installing symfony/polyfill-ctype (v1.27.0): Extracting archive
  - Installing composer/ca-bundle (1.3.6): Extracting archive
  - Installing twig/twig (v3.6.1): Extracting archive
  - Installing symfony/polyfill-php80 (v1.27.0): Extracting archive
  - Installing symfony/polyfill-intl-normalizer (v1.27.0): Extracting archive
  - Installing symfony/deprecation-contracts (v2.5.2): Extracting archive
  - Installing symfony/polyfill-php73 (v1.27.0): Extracting archive
  - Installing psr/log (2.0.0): Extracting archive
  - Installing symfony/polyfill-php81 (v1.27.0): Extracting archive
  - Installing symfony/filesystem (v6.3.1): Extracting archive
  - Installing symfony/finder (v5.4.21): Extracting archive
  - Installing psr/container (1.1.2): Extracting archive
  - Installing symfony/service-contracts (v2.5.2): Extracting archive
  - Installing symfony/process (v5.4.24): Extracting archive
  - Installing symfony/polyfill-intl-grapheme (v1.27.0): Extracting archive
  - Installing symfony/string (v5.4.22): Extracting archive
  - Installing symfony/console (v5.4.24): Extracting archive
  - Installing seld/signal-handler (2.0.1): Extracting archive
  - Installing seld/phar-utils (1.2.1): Extracting archive
  - Installing seld/jsonlint (1.10.0): Extracting archive
  - Installing react/promise (v2.10.0): Extracting archive
  - Installing justinrainbow/json-schema (5.2.12): Extracting archive
  - Installing composer/pcre (3.1.0): Extracting archive
  - Installing composer/xdebug-handler (3.0.3): Extracting archive
  - Installing composer/spdx-licenses (1.5.7): Extracting archive
  - Installing composer/semver (3.3.2): Extracting archive
  - Installing composer/metadata-minifier (1.0.0): Extracting archive
  - Installing composer/class-map-generator (1.1.0): Extracting archive
  - Installing composer/composer (2.5.8): Extracting archive
  - Installing drupol/composer-packages (2.0.0): Extracting archive
  - Installing kevinlebrun/colors.php (0.4.1): Extracting archive
  - Installing bobdenotter/commando (1.0.1): Extracting archive
  - Installing bobdenotter/configuration-notices (1.4.1): Extracting archive
  - Installing bobdenotter/weatherwidget (1.1.15): Extracting archive
  - Installing bolt/article (2.1.4): Extracting archive
  - Installing bolt/assets (5.1.20): Extracting archive
  - Installing ezyang/htmlpurifier (v4.16.0): Extracting archive
  - Installing xemlock/htmlpurifier-html5 (v0.1.11): Extracting archive
  - Installing webonyx/graphql-php (v14.11.10): Extracting archive
  - Installing webmozart/assert (1.11.0): Extracting archive
  - Installing webmozart/path-util (2.3.0): Extracting archive
  - Installing webimpress/safe-writer (2.2.0): Extracting archive
  - Installing ua-parser/uap-php (v3.9.14): Extracting archive
  - Installing symfony/intl (v6.3.1): Extracting archive
  - Installing twig/intl-extra (v3.6.0): Extracting archive
  - Installing symfony/polyfill-php72 (v1.27.0): Extracting archive
  - Installing symfony/polyfill-intl-idn (v1.27.0): Extracting archive
  - Installing symfony/mime (v5.4.23): Extracting archive
  - Installing twig/html-extra (v3.6.0): Extracting archive
  - Installing symfony/translation-contracts (v2.5.2): Extracting archive
  - Installing symfony/twig-bridge (v5.4.22): Extracting archive
  - Installing symfony/http-foundation (v5.4.25): Extracting archive
  - Installing psr/event-dispatcher (1.0.0): Extracting archive
  - Installing symfony/event-dispatcher-contracts (v3.3.0): Extracting archive
  - Installing symfony/event-dispatcher (v5.4.22): Extracting archive
  - Installing symfony/var-dumper (v5.4.25): Extracting archive
  - Installing symfony/error-handler (v5.4.24): Extracting archive
  - Installing symfony/http-kernel (v5.4.25): Extracting archive
  - Installing symfony/config (v5.4.21): Extracting archive
  - Installing symfony/twig-bundle (v5.4.21): Extracting archive
  - Installing symfony/routing (v5.4.25): Extracting archive
  - Installing symfony/dependency-injection (v5.4.25): Extracting archive
  - Installing symfony/var-exporter (v5.4.21): Extracting archive
  - Installing psr/cache (2.0.0): Extracting archive
  - Installing symfony/cache-contracts (v2.5.2): Extracting archive
  - Installing symfony/cache (v5.4.25): Extracting archive
  - Installing symfony/framework-bundle (v5.4.25): Extracting archive
  - Installing twig/extra-bundle (v3.6.1): Extracting archive
  - Installing tightenco/collect (v8.83.27): Extracting archive
  - Installing symfonycasts/reset-password-bundle (v1.17.0): Extracting archive
  - Installing symfony/yaml (v5.4.23): Extracting archive
  - Installing symfony/asset (v5.4.21): Extracting archive
  - Installing symfony/webpack-encore-bundle (v1.17.1): Extracting archive
  - Installing symfony/web-server-bundle (v4.4.44): Extracting archive
  - Installing symfony/web-profiler-bundle (v5.4.24): Extracting archive
  - Installing symfony/validator (v5.4.25): Extracting archive
  - Installing symfony/translation (v5.4.24): Extracting archive
  - Installing symfony/stopwatch (v5.4.21): Extracting archive
  - Installing symfony/serializer (v5.4.25): Extracting archive
  - Installing symfony/password-hasher (v5.4.21): Extracting archive
  - Installing symfony/security-core (v5.4.22): Extracting archive
  - Installing symfony/security-csrf (v5.4.21): Extracting archive
  - Installing symfony/property-info (v6.3.0): Extracting archive
  - Installing symfony/property-access (v5.4.22): Extracting archive
  - Installing symfony/security-http (v5.4.23): Extracting archive
  - Installing symfony/security-guard (v5.4.22): Extracting archive
  - Installing symfony/security-bundle (v5.4.22): Extracting archive
  - Installing monolog/monolog (2.9.1): Extracting archive
  - Installing symfony/monolog-bridge (v5.4.22): Extracting archive
  - Installing symfony/monolog-bundle (v3.8.0): Extracting archive
  - Installing doctrine/lexer (1.2.3): Extracting archive
  - Installing egulias/email-validator (3.2.6): Extracting archive
  - Installing symfony/mailer (v5.4.22): Extracting archive
  - Installing symfony/http-client-contracts (v2.5.2): Extracting archive
  - Installing symfony/http-client (v5.4.25): Extracting archive
  - Installing symfony/polyfill-intl-icu (v1.27.0): Extracting archive
  - Installing symfony/options-resolver (v6.3.0): Extracting archive
  - Installing symfony/form (v5.4.24): Extracting archive
  - Installing symfony/expression-language (v5.4.21): Extracting archive
  - Installing symfony/dotenv (v5.4.22): Extracting archive
  - Installing symfony/debug-bundle (v5.4.21): Extracting archive
  - Installing squirrelphp/twig-php-syntax (v1.7): Extracting archive
  - Installing siriusphp/validation (3.1.0): Extracting archive
  - Installing siriusphp/upload (3.0.1): Extracting archive
  - Installing doctrine/annotations (1.14.3): Extracting archive
  - Installing sensio/framework-extra-bundle (v6.2.10): Extracting archive
  - Installing doctrine/deprecations (v0.5.3): Extracting archive
  - Installing doctrine/event-manager (1.2.0): Extracting archive
  - Installing doctrine/collections (1.8.0): Extracting archive
  - Installing doctrine/cache (2.2.0): Extracting archive
  - Installing doctrine/persistence (2.5.7): Extracting archive
  - Installing doctrine/instantiator (1.5.0): Extracting archive
  - Installing doctrine/inflector (2.0.8): Extracting archive
  - Installing doctrine/dbal (2.13.9): Extracting archive
  - Installing doctrine/common (3.4.3): Extracting archive
  - Installing doctrine/orm (2.14.3): Extracting archive
  - Installing scienta/doctrine-json-functions (4.5.0): Extracting archive
  - Installing psr/simple-cache (1.0.1): Extracting archive
  - Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
  - Installing phpdocumentor/type-resolver (1.6.2): Extracting archive
  - Installing phpdocumentor/reflection-docblock (5.3.0): Extracting archive
  - Installing php-translation/common (3.2.0): Extracting archive
  - Installing php-translation/symfony-storage (2.3.1): Extracting archive
  - Installing nikic/php-parser (v4.16.0): Extracting archive
  - Installing php-translation/extractor (2.1.1): Extracting archive
  - Installing nyholm/nsa (1.3.0): Extracting archive
  - Installing php-translation/symfony-bundle (0.12.8): Extracting archive
  - Installing nesbot/carbon (2.68.1): Extracting archive
  - Installing nelmio/cors-bundle (2.3.1): Extracting archive
  - Installing psr/http-message (1.1): Extracting archive
  - Installing nelexa/zip (4.0.2): Extracting archive
  - Installing miljar/php-exif (v0.6.5): Extracting archive
  - Installing league/mime-type-detection (1.11.0): Extracting archive
  - Installing league/flysystem (1.1.10): Extracting archive
  - Installing ralouphie/getallheaders (3.0.3): Extracting archive
  - Installing psr/http-factory (1.0.2): Extracting archive
  - Installing guzzlehttp/psr7 (2.5.0): Extracting archive
  - Installing intervention/image (2.7.2): Extracting archive
  - Installing league/glide (1.7.2): Extracting archive
  - Installing league/glide-symfony (1.1.1): Extracting archive
  - Installing knplabs/knp-menu (v3.4.0): Extracting archive
  - Installing knplabs/knp-menu-bundle (v3.2.0): Extracting archive
  - Installing ramsey/collection (2.0.0): Extracting archive
  - Installing brick/math (0.11.0): Extracting archive
  - Installing ramsey/uuid (4.7.4): Extracting archive
  - Installing nette/utils (v3.2.9): Extracting archive
  - Installing symfony/doctrine-bridge (v5.4.25): Extracting archive
  - Installing doctrine/sql-formatter (1.1.3): Extracting archive
  - Installing doctrine/doctrine-bundle (2.7.2): Extracting archive
  - Installing knplabs/doctrine-behaviors (2.5.0): Extracting archive
  - Installing jasny/twig-extensions (v1.3.0): Extracting archive
  - Installing fakerphp/faker (v1.23.0): Extracting archive
  - Installing erusev/parsedown (1.7.4): Extracting archive
  - Installing embed/embed (v3.4.18): Extracting archive
  - Installing laminas/laminas-code (4.11.0): Extracting archive
  - Installing friendsofphp/proxy-manager-lts (v1.0.16): Extracting archive
  - Installing doctrine/migrations (3.4.2): Extracting archive
  - Installing doctrine/doctrine-migrations-bundle (3.2.4): Extracting archive
  - Installing doctrine/data-fixtures (1.6.6): Extracting archive
  - Installing doctrine/doctrine-fixtures-bundle (3.4.4): Extracting archive
  - Installing cocur/slugify (v4.3.0): Extracting archive
  - Installing bolt/common (3.0.7): Extracting archive
  - Installing bobdenotter/yaml-migrations (1.2.0): Extracting archive
  - Installing beberlei/doctrineextensions (v1.3.0): Extracting archive
  - Installing pagerfanta/pagerfanta (v2.7.3): Extracting archive
  - Installing babdev/pagerfanta-bundle (v2.11.0): Extracting archive
  - Installing willdurand/negotiation (3.1.0): Extracting archive
  - Installing psr/link (2.0.1): Extracting archive
  - Installing symfony/web-link (v6.3.0): Extracting archive
  - Installing api-platform/core (v2.7.13): Extracting archive
  - Installing bolt/core (5.1.24): Extracting archive
  - Installing bolt/newswidget (1.3.0): Extracting archive
  - Installing bolt/redactor (2.1.5): Extracting archive
  - Installing bolt/themes (3.6.1): Extracting archive
  - Installing nelmio/security-bundle (v2.12.0): Extracting archive
  - Installing phpstan/phpstan (0.12.100): Extracting archive
  - Installing phpstan/phpstan-doctrine (0.12.44): Extracting archive
  - Installing phpstan/phpstan-symfony (0.12.44): Extracting archive
  - Installing symplify/easy-coding-standard (9.4.70): Extracting archive
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
Package symfony/web-server-bundle is abandoned, you should avoid using it. No replacement was suggested.
Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
Generating optimized autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
drupol/composer-packages: Regenerating classes...
drupol/composer-packages: Done.
116 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

> Bolt\ComposerScripts\ProjectEventHandler::preUpdate
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Restricting packages listed in "symfony/symfony" to "^5.1"
Updating dependencies
Lock file operations: 0 installs, 6 updates, 0 removals
  - Downgrading psr/link (2.0.1 => 1.1.1)
  - Downgrading symfony/filesystem (v6.3.1 => v5.4.25)
  - Downgrading symfony/intl (v6.3.1 => v5.4.25)
  - Downgrading symfony/options-resolver (v6.3.0 => v5.4.21)
  - Downgrading symfony/property-info (v6.3.0 => v5.4.24)
  - Downgrading symfony/web-link (v6.3.0 => v5.4.21)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 6 updates, 0 removals
  - Downloading symfony/intl (v5.4.25)
  - Downloading symfony/filesystem (v5.4.25)
  - Downloading symfony/property-info (v5.4.24)
  - Downloading symfony/options-resolver (v5.4.21)
  - Downloading psr/link (1.1.1)
  - Downloading symfony/web-link (v5.4.21)
  - Downgrading symfony/intl (v6.3.1 => v5.4.25): Extracting archive
  - Downgrading symfony/filesystem (v6.3.1 => v5.4.25): Extracting archive
  - Downgrading symfony/property-info (v6.3.0 => v5.4.24): Extracting archive
  - Downgrading symfony/options-resolver (v6.3.0 => v5.4.21): Extracting archive
  - Downgrading psr/link (2.0.1 => 1.1.1): Extracting archive
  - Downgrading symfony/web-link (v6.3.0 => v5.4.21): Extracting archive
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
Package symfony/web-server-bundle is abandoned, you should avoid using it. No replacement was suggested.
Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
Generating optimized autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
drupol/composer-packages: Regenerating classes...
drupol/composer-packages: Done.
116 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

What about running composer global require symfony/thanks && composer thanks now?
This will spread some 💖  by sending a   to the GitHub repositories of your fellow package maintainers.

Run composer recipes at any time to see the status of your Symfony recipes.

> Bolt\ComposerScripts\ProjectEventHandler::postUpdate

 ! [NOTE] Running composer "post-update-cmd" scripts                                                                    

No changes to 'bundles.php' required.
Processed 0 files. Updated: 0, deleted: 0, skipped: 0.


 // Clearing the cache for the dev environment with debug true                                                          


 [OK] Cache for the "dev" environment (debug=true) was successfully cleared.                                            



 Trying to install assets as relative symbolic links.

 --- ------------------------ ------------------ 
      Bundle                   Method / Error    
 --- ------------------------ ------------------ 
     ApiPlatformBundle        relative symlink  
     BabDevPagerfantaBundle   relative symlink  
     TranslationBundle        relative symlink  
 --- ------------------------ ------------------ 


 [OK] All assets were successfully installed.                                                                           



 Installing Bolt assets as hard copies.

 --- -------- ---------------- 
      Folder   Method / Error  
 --- -------- ---------------- 
     assets   copied          
 --- -------- ---------------- 


 [OK] All assets were successfully installed.                                                                           



⚙️  Bolt
=======

 Bolt version: 5.1.24

 * Install type: Packaged distribution
 * Database: Unknown - no database connection  ()
 * PHP version: 8.2.7
 * Symfony version: v5.4.25
 * Operating System: Linux - 5.15.93-sunxi
 * Memory limit: 1024M


No security vulnerability advisories found

No security vulnerability advisories found

2023-07-23: mmcblk0p1 - bolt - check update status

tingo@kg-bpi:/var/www/sites/logb$ composer outdated bolt/bolt
Cannot use bolt/bolt 3.7.4.1 as it requires ext-gd * which is missing from your platform.
name     : bolt/bolt
descrip. : Sophisticated, lightweight & simple CMS
keywords : cms, php, silex, symfony
versions : * 3.7.4.1
latest   : v3.2.2
type     : library
license  : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
homepage : http://bolt.cm
source   : [git] https://github.com/bolt/bolt.git 2d69e99f1d19dde82ec992b7f970d802b8ae9d7a
dist     : [zip] https://api.github.com/repos/bolt/bolt/zipball/2d69e99f1d19dde82ec992b7f970d802b8ae9d7a 2d69e99f1d19dde82ec992b7f970d802b8ae9d7a
path     : /var/www/sites/logb/vendor/bolt/bolt
names    : bolt/bolt

support
issues : https://github.com/bolt/bolt/issues
source : https://github.com/bolt/bolt/tree/3.7.4.1

autoload
psr-4
Bolt\ => src
files

requires
bolt/collection ^1.1
bolt/common ^1.0
bolt/filesystem ^2.5
bolt/package-wrapper ^5.0
bolt/passwordlib ^1.0
bolt/pathogen ^0.6
bolt/requirements ^1.0.2
bolt/session ^1.1
bolt/themes ^2.0
bolt/thumbs ^3.4
brandonwamboldt/utilphp ^1.1
cocur/slugify ^3.2
composer/composer ^2
doctrine/cache ^1.9
doctrine/dbal ^2.9
embed/embed ^3.3
erusev/parsedown-extra ^0.8
ext-curl *
ext-exif *
ext-fileinfo *
ext-gd *
ext-json *
ext-openssl *
ext-pdo *
ext-xml *
ext-zip *
filp/whoops ^2.5
guzzlehttp/guzzle ^6.3
guzzlehttp/psr7 1.5.*
ircmaxell/random-lib ^1.2
jdorn/sql-formatter ^1.2
monolog/monolog ^1.25
nesbot/carbon 1.37.*
php ^7.1.3
silex/silex ^1.3
silex/web-profiler ^1.0
siriusphp/upload ^1.3
stecman/symfony-console-completion ^0.11
swiftmailer/swiftmailer ^5.4.5
symfony/asset ^2.8
symfony/config ^2.8
symfony/console ^2.8
symfony/debug ^2.8
symfony/event-dispatcher ^2.8
symfony/filesystem ^2.8
symfony/finder ^2.8
symfony/form ^2.8
symfony/http-foundation ^2.8
symfony/http-kernel ^2.8
symfony/intl ^2.8
symfony/monolog-bridge ^2.8
symfony/options-resolver ^2.8
symfony/process ^2.8
symfony/property-access ^2.8
symfony/routing ^2.8
symfony/security ^2.8
symfony/security-acl ^2.8
symfony/stopwatch ^2.8
symfony/translation ^2.8
symfony/twig-bridge ^2.8
symfony/validator ^2.8
symfony/var-dumper ^2.8
symfony/web-profiler-bundle ^2.8
symfony/yaml ^2.8
tdammers/htmlmaid ^0.7
twig/twig ^1.42
ua-parser/uap-php ^3.9

requires (dev)
bolt/codingstyle ^2.0@dev
codeception/codeception ^2.5
league/flysystem-memory ^1.0
lstrojny/phpunit-function-mocker ^0.4
phpunit/dbunit ^1.3
phpunit/php-code-coverage ^4.0
phpunit/phpunit ^5.7
psr/cache ^1.0
psr/simple-cache ^1.0
sebastian/phpcpd ^2.0
sorien/silex-pimple-dumper ^1.0
symfony/browser-kit ^3.4
symfony/phpunit-bridge ^3.4

conflicts
rossriley/flysystem53 *

apt - install php82-gd

tingo@kg-bpi:~$ sudo apt install php8.2-gd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libabsl20220623 libavif15 libde265-0 libgav1-1 libgd3 libheif1 libxpm4 libyuv0
Suggested packages:
  libgd-tools
The following NEW packages will be installed:
  libabsl20220623 libavif15 libde265-0 libgav1-1 libgd3 libheif1 libxpm4 libyuv0 php8.2-gd
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,315 kB of archives.
After this operation, 6,966 kB of additional disk space will be used.
[..]
Processing triggers for php8.2-cli (8.2.7-1~deb12u1) ...

apt - also install: php82-xml, php82-zip,

when I re-run the compser check, I get

tingo@kg-bpi:/var/www/sites/logb$ composer outdated bolt/bolt
Cannot use bolt/bolt 3.7.4.1 as it requires php ^7.1.3 which is not satisfied by your platform.
name     : bolt/bolt
descrip. : Sophisticated, lightweight & simple CMS
keywords : cms, php, silex, symfony
versions : * 3.7.4.1
latest   : v3.2.2
type     : library
license  : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
homepage : http://bolt.cm
source   : [git] https://github.com/bolt/bolt.git 2d69e99f1d19dde82ec992b7f970d802b8ae9d7a
dist     : [zip] https://api.github.com/repos/bolt/bolt/zipball/2d69e99f1d19dde82ec992b7f970d802b8ae9d7a 2d69e99f1d19dde82ec992b7f970d802b8ae9d7a
path     : /var/www/sites/logb/vendor/bolt/bolt
names    : bolt/bolt

support
issues : https://github.com/bolt/bolt/issues
source : https://github.com/bolt/bolt/tree/3.7.4.1

autoload
psr-4
Bolt\ => src
files

requires
bolt/collection ^1.1
bolt/common ^1.0
bolt/filesystem ^2.5
bolt/package-wrapper ^5.0
bolt/passwordlib ^1.0
bolt/pathogen ^0.6
bolt/requirements ^1.0.2
bolt/session ^1.1
bolt/themes ^2.0
bolt/thumbs ^3.4
brandonwamboldt/utilphp ^1.1
cocur/slugify ^3.2
composer/composer ^2
doctrine/cache ^1.9
doctrine/dbal ^2.9
embed/embed ^3.3
erusev/parsedown-extra ^0.8
ext-curl *
ext-exif *
ext-fileinfo *
ext-gd *
ext-json *
ext-openssl *
ext-pdo *
ext-xml *
ext-zip *
filp/whoops ^2.5
guzzlehttp/guzzle ^6.3
guzzlehttp/psr7 1.5.*
ircmaxell/random-lib ^1.2
jdorn/sql-formatter ^1.2
monolog/monolog ^1.25
nesbot/carbon 1.37.*
php ^7.1.3
silex/silex ^1.3
silex/web-profiler ^1.0
siriusphp/upload ^1.3
stecman/symfony-console-completion ^0.11
swiftmailer/swiftmailer ^5.4.5
symfony/asset ^2.8
symfony/config ^2.8
symfony/console ^2.8
symfony/debug ^2.8
symfony/event-dispatcher ^2.8
symfony/filesystem ^2.8
symfony/finder ^2.8
symfony/form ^2.8
symfony/http-foundation ^2.8
symfony/http-kernel ^2.8
symfony/intl ^2.8
symfony/monolog-bridge ^2.8
symfony/options-resolver ^2.8
symfony/process ^2.8
symfony/property-access ^2.8
symfony/routing ^2.8
symfony/security ^2.8
symfony/security-acl ^2.8
symfony/stopwatch ^2.8
symfony/translation ^2.8
symfony/twig-bridge ^2.8
symfony/validator ^2.8
symfony/var-dumper ^2.8
symfony/web-profiler-bundle ^2.8
symfony/yaml ^2.8
tdammers/htmlmaid ^0.7
twig/twig ^1.42
ua-parser/uap-php ^3.9

requires (dev)
bolt/codingstyle ^2.0@dev
codeception/codeception ^2.5
league/flysystem-memory ^1.0
lstrojny/phpunit-function-mocker ^0.4
phpunit/dbunit ^1.3
phpunit/php-code-coverage ^4.0
phpunit/phpunit ^5.7
psr/cache ^1.0
psr/simple-cache ^1.0
sebastian/phpcpd ^2.0
sorien/silex-pimple-dumper ^1.0
symfony/browser-kit ^3.4
symfony/phpunit-bridge ^3.4

conflicts
rossriley/flysystem53 *

hmm, try to upgrade bolt anyway

tingo@kg-bpi:/var/www/sites/logb$ composer require bolt/bolt ^3.7 --update-with-dependencies
./composer.json has been updated
Running composer update bolt/bolt --with-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires php ^5.5.9 || ^7.0 but your php version (8.2.7) does not satisfy that requirement.
  Problem 2
    - bolt/bolt[v3.7.0, ..., 3.7.5] require php ^7.1.3 -> your php version (8.2.7) does not satisfy that requirement.
    - Root composer.json requires bolt/bolt ^3.7 -> satisfiable by bolt/bolt[v3.7.0, ..., 3.7.5].

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

try to export data

tingo@kg-bpi:/var/www/sites/logb$ app/nut database:export --file=my_site_data_export.yml --users
PHP Deprecated:  Use of "static" in callables is deprecated in /var/www/sites/logb/vendor/webmozart/assert/src/Assert.php on line 1958


  [InvalidArgumentException]                                                       
  The directory "/var/www/sites/logb/app/cache/development/data" is not writable.  


Exception trace:
 () at /var/www/sites/logb/vendor/doctrine/cache/lib/Doctrine/Common/Cache/FileCache.php:98
 Doctrine\Common\Cache\FileCache->__construct() at /var/www/sites/logb/vendor/doctrine/cache/lib/Doctrine/Common/Cache/FilesystemCache.php:29
 Doctrine\Common\Cache\FilesystemCache->__construct() at /var/www/sites/logb/vendor/bolt/bolt/src/Cache.php:45
 Bolt\Cache->__construct() at /var/www/sites/logb/vendor/bolt/bolt/src/Provider/CacheServiceProvider.php:16
 Bolt\Provider\CacheServiceProvider->Bolt\Provider\{closure}() at /var/www/sites/logb/vendor/pimple/pimple/lib/Pimple.php:126
 Pimple::{closure}() at /var/www/sites/logb/vendor/pimple/pimple/lib/Pimple.php:83
 Pimple->offsetGet() at /var/www/sites/logb/vendor/bolt/bolt/src/Provider/ConfigServiceProvider.php:36
 Bolt\Provider\ConfigServiceProvider->Bolt\Provider\{closure}() at /var/www/sites/logb/vendor/pimple/pimple/lib/Pimple.php:126
 Pimple::{closure}() at /var/www/sites/logb/vendor/pimple/pimple/lib/Pimple.php:83
 Pimple->offsetGet() at /var/www/sites/logb/vendor/bolt/bolt/src/Provider/ConfigServiceProvider.php:82
 Bolt\Provider\ConfigServiceProvider->boot() at /var/www/sites/logb/vendor/silex/silex/src/Silex/Application.php:197
 Silex\Application->boot() at /var/www/sites/logb/vendor/bolt/bolt/app/nut:15

fix that (added my user to the greoup www-data temporarily) adn re-try

tingo@kg-bpi:/var/www/sites/logb$ app/nut database:export --file=my_site_data_export.yml --users
PHP Deprecated:  Use of "static" in callables is deprecated in /var/www/sites/logb/vendor/webmozart/assert/src/Assert.php on line 1958


 [WARNING] This command operates on the current database, taking a backup is advised before export.                     


 Are you sure you want to continue with the export (yes/no) [yes]:
 > yes



  [Symfony\Component\Debug\Exception\FatalThrowableError]                                                                                                
  Type error: Carbon\Carbon::setLastErrors(): Argument #1 ($lastErrors) must be of type array, bool given, called in /var/www/sites/logb/vendor/nesbot/  
  carbon/src/Carbon/Carbon.php on line 552                                                                                                               


database:export [-f|--file FILE] [-d|--directory DIRECTORY] [-c|--contenttype CONTENTTYPE] [-u|--users] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [--] <command>

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta name="robots" content="noindex,nofollow" />
        <style>
            /* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html */
            html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}

            html { background: #eee; padding: 10px }
            img { border: 0; }
            #sf-resetcontent { width:970px; margin:0 auto; }
                        .sf-reset { font: 11px Verdana, Arial, sans-serif; color: #333 }
            .sf-reset .clear { clear:both; height:0; font-size:0; line-height:0; }
            .sf-reset .clear_fix:after { display:block; height:0; clear:both; visibility:hidden; }
            .sf-reset .clear_fix { display:inline-block; }
            .sf-reset * html .clear_fix { height:1%; }
            .sf-reset .clear_fix { display:block; }
            .sf-reset, .sf-reset .block { margin: auto }
            .sf-reset abbr { border-bottom: 1px dotted #000; cursor: help; }
            .sf-reset p { font-size:14px; line-height:20px; color:#868686; padding-bottom:20px }
            .sf-reset strong { font-weight:bold; }
            .sf-reset a { color:#6c6159; cursor: default; }
            .sf-reset a img { border:none; }
            .sf-reset a:hover { text-decoration:underline; }
            .sf-reset em { font-style:italic; }
            .sf-reset h1, .sf-reset h2 { font: 20px Georgia, "Times New Roman", Times, serif }
            .sf-reset .exception_counter { background-color: #fff; color: #333; padding: 6px; float: left; margin-right: 10px; float: left; display: block; }
            .sf-reset .exception_title { margin-left: 3em; margin-bottom: 0.7em; display: block; }
            .sf-reset .exception_message { margin-left: 3em; display: block; }
            .sf-reset .traces li { font-size:12px; padding: 2px 4px; list-style-type:decimal; margin-left:20px; }
            .sf-reset .block { background-color:#FFFFFF; padding:10px 28px; margin-bottom:20px;
                -webkit-border-bottom-right-radius: 16px;
                -webkit-border-bottom-left-radius: 16px;
                -moz-border-radius-bottomright: 16px;
                -moz-border-radius-bottomleft: 16px;
                border-bottom-right-radius: 16px;
                border-bottom-left-radius: 16px;
                border-bottom:1px solid #ccc;
                border-right:1px solid #ccc;
                border-left:1px solid #ccc;
                word-wrap: break-word;
            }
            .sf-reset .block_exception { background-color:#ddd; color: #333; padding:20px;
                -webkit-border-top-left-radius: 16px;
                -webkit-border-top-right-radius: 16px;
                -moz-border-radius-topleft: 16px;
                -moz-border-radius-topright: 16px;
                border-top-left-radius: 16px;
                border-top-right-radius: 16px;
                border-top:1px solid #ccc;
                border-right:1px solid #ccc;
                border-left:1px solid #ccc;
                overflow: hidden;
                word-wrap: break-word;
            }
            .sf-reset a { background:none; color:#868686; text-decoration:none; }
            .sf-reset a:hover { background:none; color:#313131; text-decoration:underline; }
            .sf-reset ol { padding: 10px 0; }
            .sf-reset h1 { background-color:#FFFFFF; padding: 15px 28px; margin-bottom: 20px;
                -webkit-border-radius: 10px;
                -moz-border-radius: 10px;
                border-radius: 10px;
                border: 1px solid #ccc;
            }
        </style>
    </head>
    <body>
                    <div id="sf-resetcontent" class="sf-reset">
                <h1>Whoops, looks like something went wrong.</h1>
                                        <h2 class="block_exception clear_fix">
                            <span class="exception_counter">1/1</span>
                            <span class="exception_title"><abbr title="Symfony\Component\Debug\Exception\FatalThrowableError">FatalThrowableError</abbr> in <a title="/var/www/sites/logb/vendor/nesbot/carbon/src/Carbon/Carbon.php line 920" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Carbon.php line 920</a>:</span>
                            <span class="exception_message">Type error: Carbon\Carbon::setLastErrors(): Argument #1 ($lastErrors) must be of type array, bool given, called in /var/www/sites/logb/vendor/nesbot/carbon/src/Carbon/Carbon.php on line 552</span>
                        </h2>
                        <div class="block">
                            <ol class="traces list_exception">
       <li> in <a title="/var/www/sites/logb/vendor/nesbot/carbon/src/Carbon/Carbon.php line 920" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Carbon.php line 920</a></li>
       <li>at <abbr title="Carbon\Carbon">Carbon</abbr>::setLastErrors() in <a title="/var/www/sites/logb/vendor/nesbot/carbon/src/Carbon/Carbon.php line 552" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Carbon.php line 552</a></li>
       <li>at <abbr title="Carbon\Carbon">Carbon</abbr>->__construct() in <a title="/var/www/sites/logb/vendor/nesbot/carbon/src/Carbon/Carbon.php line 599" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Carbon.php line 599</a></li>
       <li>at <abbr title="Carbon\Carbon">Carbon</abbr>::now() in <a title="/var/www/sites/logb/vendor/bolt/bolt/src/Storage/Migration/Export.php line 93" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Export.php line 93</a></li>
       <li>at <abbr title="Bolt\Storage\Migration\Export">Export</abbr>->addExportMeta() in <a title="/var/www/sites/logb/vendor/bolt/bolt/src/Storage/Migration/Export.php line 71" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Export.php line 71</a></li>
       <li>at <abbr title="Bolt\Storage\Migration\Export">Export</abbr>->run() in <a title="/var/www/sites/logb/vendor/bolt/bolt/src/Nut/DatabaseExport.php line 62" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">DatabaseExport.php line 62</a></li>
       <li>at <abbr title="Bolt\Nut\DatabaseExport">DatabaseExport</abbr>->execute() in <a title="/var/www/sites/logb/vendor/symfony/console/Command/Command.php line 245" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Command.php line 245</a></li>
       <li>at <abbr title="Symfony\Component\Console\Command\Command">Command</abbr>->run() in <a title="/var/www/sites/logb/vendor/symfony/console/Application.php line 853" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Application.php line 853</a></li>
       <li>at <abbr title="Symfony\Component\Console\Application">Application</abbr>->doRunCommand() in <a title="/var/www/sites/logb/vendor/symfony/console/Application.php line 185" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Application.php line 185</a></li>
       <li>at <abbr title="Symfony\Component\Console\Application">Application</abbr>->doRun() in <a title="/var/www/sites/logb/vendor/symfony/console/Application.php line 117" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Application.php line 117</a></li>
       <li>at <abbr title="Symfony\Component\Console\Application">Application</abbr>->run() in <a title="/var/www/sites/logb/vendor/bolt/bolt/app/nut line 19" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">nut line 19</a></li>
    </ol>
</div>

            </div>
    </body>
</html>tingo@kg-bpi:/var/www/sites/logb$ 

nope, didn't like that one bit.

2023-07-23: mmcblk0p1 - bolt - try to update via composer

tingo@kg-bpi:/var/www/sites/logb$ composer update
Composer is operating significantly slower than normal because you do not have the PHP curl extension enabled.
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
^C

from a different shell, apt - install php-curl

tingo@kg-bpi:~$ sudo apt install php-curl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  php8.2-curl
The following NEW packages will be installed:
  php-curl php8.2-curl
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.3 kB of archives.
After this operation, 120 kB of additional disk space will be used.
[..]
Processing triggers for php8.2-fpm (8.2.7-1~deb12u1) ...
Processing triggers for php8.2-cli (8.2.7-1~deb12u1) ...

then re-run the composer update

tingo@kg-bpi:/var/www/sites/logb$ composer update
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires php ^5.5.9 || ^7.0 but your php version (8.2.7) does not satisfy that requirement.
  Problem 2
    - bolt/bolt[v3.6.0-beta.1, ..., 3.7.5] require ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
    - Root composer.json requires bolt/bolt ^3.6 -> satisfiable by bolt/bolt[v3.6.0-beta.1, ..., 3.7.5].

To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php/8.2/cli/php.ini
    - /etc/php/8.2/cli/conf.d/10-opcache.ini
    - /etc/php/8.2/cli/conf.d/10-pdo.ini
    - /etc/php/8.2/cli/conf.d/20-calendar.ini
    - /etc/php/8.2/cli/conf.d/20-ctype.ini
    - /etc/php/8.2/cli/conf.d/20-curl.ini
    - /etc/php/8.2/cli/conf.d/20-exif.ini
    - /etc/php/8.2/cli/conf.d/20-ffi.ini
    - /etc/php/8.2/cli/conf.d/20-fileinfo.ini
    - /etc/php/8.2/cli/conf.d/20-ftp.ini
    - /etc/php/8.2/cli/conf.d/20-gettext.ini
    - /etc/php/8.2/cli/conf.d/20-iconv.ini
    - /etc/php/8.2/cli/conf.d/20-intl.ini
    - /etc/php/8.2/cli/conf.d/20-mbstring.ini
    - /etc/php/8.2/cli/conf.d/20-phar.ini
    - /etc/php/8.2/cli/conf.d/20-posix.ini
    - /etc/php/8.2/cli/conf.d/20-readline.ini
    - /etc/php/8.2/cli/conf.d/20-shmop.ini
    - /etc/php/8.2/cli/conf.d/20-sockets.ini
    - /etc/php/8.2/cli/conf.d/20-sysvmsg.ini
    - /etc/php/8.2/cli/conf.d/20-sysvsem.ini
    - /etc/php/8.2/cli/conf.d/20-sysvshm.ini
    - /etc/php/8.2/cli/conf.d/20-tokenizer.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-gd` to temporarily ignore these required extensions.

ok, so that did not work out.

2023-07-23: mmcblk0p1 - apt - install 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-class-map-generator php-composer-metadata-minifier php-composer-pcre php-composer-semver
  php-composer-spdx-licenses php-composer-xdebug-handler php-intl php-json-schema php-mbstring php-psr-container php-psr-log php-react-promise
  php-seld-signal-handler php-symfony-console php-symfony-deprecation-contracts php-symfony-filesystem php-symfony-finder php-symfony-process
  php-symfony-service-contracts php-symfony-string php8.2-intl php8.2-mbstring
Suggested packages:
  fossil mercurial subversion php-zip 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-class-map-generator php-composer-metadata-minifier php-composer-pcre php-composer-semver
  php-composer-spdx-licenses php-composer-xdebug-handler php-intl php-json-schema php-mbstring php-psr-container php-psr-log php-react-promise
  php-seld-signal-handler php-symfony-console php-symfony-deprecation-contracts php-symfony-filesystem php-symfony-finder php-symfony-process
  php-symfony-service-contracts php-symfony-string php8.2-intl php8.2-mbstring
0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,472 kB of archives.
After this operation, 6,442 kB of additional disk space will be used.
[..]
Processing triggers for libapache2-mod-php8.2 (8.2.7-1~deb12u1) ...
Warning: Could not load Apache 2.4 maintainer script helper.
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for php8.2-cli (8.2.7-1~deb12u1) ...

2023-07-15: mmcblk0p1 - apt - install php-fpm

tingo@kg-bpi:~$ sudo apt install php8.2-fpm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  php-pear
The following NEW packages will be installed:
  php8.2-fpm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,459 kB of archives.
After this operation, 3,400 kB of additional disk space will be used.
Get:1 http://security.debian.org bookworm-security/main armhf php8.2-fpm armhf 8.2.7-1~deb12u1 [1,459 kB]
Fetched 1,459 kB in 0s (5,806 kB/s)
Selecting previously unselected package php8.2-fpm.
(Reading database ... 45590 files and directories currently installed.)
Preparing to unpack .../php8.2-fpm_8.2.7-1~deb12u1_armhf.deb ...
Unpacking php8.2-fpm (8.2.7-1~deb12u1) ...
Setting up php8.2-fpm (8.2.7-1~deb12u1) ...

Creating config file /etc/php/8.2/fpm/php.ini with new version
Created symlink /etc/systemd/system/multi-user.target.wants/php8.2-fpm.service  /lib/systemd/system/php8.2-fpm.service.
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for php8.2-fpm (8.2.7-1~deb12u1) ...

it seems I forgot this during the upgrade a few days ago. And restart nginx

tingo@kg-bpi:~$ sudo systemctl restart nginx

check

tingo@kg-bpi:~$ systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enabled)
     Active: active (running) since Sat 2023-07-15 19:37:53 CEST; 2min 30s ago
       Docs: man:nginx(8)
    Process: 4396 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 4397 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
   Main PID: 4398 (nginx)
      Tasks: 3 (limit: 2134)
     Memory: 1.4M
        CPU: 121ms
     CGroup: /system.slice/nginx.service
             ├─4398 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
             ├─4399 "nginx: worker process"
             └─4400 "nginx: worker process"

Jul 15 19:37:53 kg-bpi systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server...
Jul 15 19:37:53 kg-bpi systemd[1]: Started nginx.service - A high performance web server and a reverse proxy server.

bolt probably needs an upgrade too.

2023-07-12: Home Assistant - "first start" - again

(homeassistant) tingo@kg-bpi:~$ hass --open-ui
2023-07-12 11:45:16.849 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-07-12 11:45:42.825 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) (SocketAPIError)
2023-07-12 11:45:49.625 WARNING (MainThread) [homeassistant.setup] Setup of default_config is taking over 10 seconds.
2023-07-12 11:46:01.005 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
2023-07-12 11:47:00.272 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-07-12 11:47:00.288 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']

yes, now Home Assistant is working again. Finally.

2023-07-12: Home Assistant - another "first start"

(homeassistant) tingo@kg-bpi:~$ hass --open-ui
2023-07-12 11:11:29.835 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-07-12 11:11:38.307 WARNING (MainThread) [homeassistant.setup] Setup of input_select is taking over 10 seconds.
2023-07-12 11:11:38.311 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds.
2023-07-12 11:11:38.317 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds.
2023-07-12 11:11:38.322 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds.
2023-07-12 11:12:28.240 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: sun, mill, mqtt
2023-07-12 11:13:28.614 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: sun, mill, mqtt
2023-07-12 11:14:29.017 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: sun, mill, mqtt
2023-07-12 11:15:29.710 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: sun, mill, mqtt
2023-07-12 11:16:30.114 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: sun, mill, mqtt
2023-07-12 11:17:25.465 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Sun for sun
Traceback (most recent call last):
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 390, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/components/sun/__init__.py", line 104, in async_setup_entry
    await hass.config_entries.async_forward_entry_setups(entry, [Platform.SENSOR])
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 1375, in async_forward_entry_setups
    await asyncio.gather(
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 1396, in async_forward_entry_setup
    result = await async_setup_component(self.hass, domain, self._hass_config)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/setup.py", line 95, in async_setup_component
    return await setup_tasks[domain]
           ^^^^^^^^^^^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError
2023-07-12 11:17:25.504 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 10.1.161.5 for mill
Traceback (most recent call last):
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 390, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/components/mill/__init__.py", line 79, in async_setup_entry
    await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 1375, in async_forward_entry_setups
    await asyncio.gather(
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 1396, in async_forward_entry_setup
    result = await async_setup_component(self.hass, domain, self._hass_config)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/setup.py", line 95, in async_setup_component
    return await setup_tasks[domain]
           ^^^^^^^^^^^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError
2023-07-12 11:17:25.533 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 10.1.161.23 for mill
Traceback (most recent call last):
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 390, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/components/mill/__init__.py", line 79, in async_setup_entry
    await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 1375, in async_forward_entry_setups
    await asyncio.gather(
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 1396, in async_forward_entry_setup
    result = await async_setup_component(self.hass, domain, self._hass_config)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/setup.py", line 95, in async_setup_component
    return await setup_tasks[domain]
           ^^^^^^^^^^^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError
2023-07-12 11:17:25.556 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry tingox+mill@gmail.com for mill
Traceback (most recent call last):
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 390, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/components/mill/__init__.py", line 79, in async_setup_entry
    await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 1375, in async_forward_entry_setups
    await asyncio.gather(
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 1396, in async_forward_entry_setup
    result = await async_setup_component(self.hass, domain, self._hass_config)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/setup.py", line 95, in async_setup_component
    return await setup_tasks[domain]
           ^^^^^^^^^^^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError
2023-07-12 11:17:25.579 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry localhost for mqtt
Traceback (most recent call last):
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 390, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/components/mqtt/__init__.py", line 399, in async_setup_entry
    await async_forward_entry_setup_and_setup_discovery(entry, conf)
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/components/mqtt/__init__.py", line 379, in async_forward_entry_setup_and_setup_discovery
    await asyncio.gather(
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 1396, in async_forward_entry_setup
    result = await async_setup_component(self.hass, domain, self._hass_config)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/homeassistant/setup.py", line 95, in async_setup_component
    return await setup_tasks[domain]
           ^^^^^^^^^^^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError
2023-07-12 11:17:25.619 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for stage 2 - moving forward
2023-07-12 11:17:25.662 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
2023-07-12 11:18:00.416 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-07-12 11:18:00.446 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-07-12 11:19:00.384 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-07-12 11:19:00.403 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-07-12 11:20:00.387 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-07-12 11:20:00.406 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-07-12 11:21:00.388 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-07-12 11:21:00.408 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']

sigh - it seems it needs another round.

2023-07-12: armbian - apt - install libswscal and libswresample

tingo@kg-bpi:~$ sudo apt install libswscale6 libswresample4
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libavutil57 libdrm-common libdrm2 libsoxr0 libva-drm2 libva-x11-2 libva2 libvdpau1 libx11-6 libx11-data libx11-xcb1 libxau6 libxcb-dri3-0 libxcb1 libxdmcp6
  libxext6 libxfixes3 ocl-icd-libopencl1
Suggested packages:
  opencl-icd
Recommended packages:
  va-driver-all | va-driver vdpau-driver-all | vdpau-driver
The following NEW packages will be installed:
  libavutil57 libdrm-common libdrm2 libsoxr0 libswresample4 libswscale6 libva-drm2 libva-x11-2 libva2 libvdpau1 libx11-6 libx11-data libx11-xcb1 libxau6
  libxcb-dri3-0 libxcb1 libxdmcp6 libxext6 libxfixes3 ocl-icd-libopencl1
0 upgraded, 20 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,398 kB of archives.
After this operation, 6,132 kB of additional disk space will be used.
[..]
Processing triggers for libc-bin (2.36-9) ...

apt - install the av* packages

tingo@kg-bpi:~$ sudo apt install libavcodec59 libavdevice59 libavfilter8 libavformat59
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  fontconfig fontconfig-config fonts-dejavu-core libaom3 libass9 libasyncns0 libavc1394-0 libblas3 libbluray2 libbs2b0 libcairo-gobject2 libcairo2 libcdio-cdda2
  libcdio-paranoia2 libcdio19 libchromaprint1 libcodec2-1.0 libdatrie1 libdav1d6 libdc1394-25 libdecor-0-0 libdeflate0 libdrm-amdgpu1 libdrm-nouveau2 libdrm-radeon1
  libepoxy0 libflac12 libflite1 libfontconfig1 libfreetype6 libfribidi0 libgbm1 libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-common libgfortran5 libgl1 libgl1-mesa-dri
  libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libgme0 libgraphite2-3 libgsm1 libharfbuzz0b libhwy1 libiec61883-0 libjack-jackd2-0 libjbig0 libjxl0.7 liblapack3
  liblcms2-2 liblerc4 liblilv-0-0 libllvm15 libmp3lame0 libmpg123-0 libmysofa1 libnorm1 libogg0 libopenal-data libopenal1 libopenmpt0 libopus0 libpango-1.0-0
  libpangocairo-1.0-0 libpangoft2-1.0-0 libpgm-5.3-0 libpixman-1-0 libplacebo208 libpocketsphinx3 libpostproc56 libpulse0 librabbitmq4 librav1e0 libraw1394-11
  librist4 librsvg2-2 librubberband2 libsdl2-2.0-0 libserd-0-0 libshine3 libsnappy1v5 libsndfile1 libsndio7.0 libsord-0-0 libspeex1 libsphinxbase3 libsratom-0-0
  libsrt1.5-gnutls libssh-gcrypt-4 libsvtav1enc1 libthai-data libthai0 libtheora0 libtiff6 libtwolame0 libudfread0 libvidstab1.1 libvorbis0a libvorbisenc2
  libvorbisfile3 libvpx7 libvulkan1 libwayland-client0 libwayland-cursor0 libwayland-egl1 libwayland-server0 libwebp7 libwebpmux3 libx264-164 libx265-199
  libxcb-dri2-0 libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcursor1 libxi6 libxkbcommon0
  libxrandr2 libxrender1 libxshmfence1 libxss1 libxv1 libxvidcore4 libxxf86vm1 libzimg2 libzmq5 libzvbi-common libzvbi0 shared-mime-info x11-common
Suggested packages:
  libbluray-bdj jackd2 liblcms2-utils libportaudio2 opus-tools pulseaudio libraw1394-doc librsvg2-bin xdg-utils serdi sndiod sordi speex
Recommended packages:
  libaacs0 libdecor-0-plugin-1-cairo | libdecor-0-plugin-1 libgdk-pixbuf2.0-bin pocketsphinx-en-us librsvg2-common mesa-vulkan-drivers | vulkan-icd
The following NEW packages will be installed:
  fontconfig fontconfig-config fonts-dejavu-core libaom3 libass9 libasyncns0 libavc1394-0 libavcodec59 libavdevice59 libavfilter8 libavformat59 libblas3 libbluray2
  libbs2b0 libcairo-gobject2 libcairo2 libcdio-cdda2 libcdio-paranoia2 libcdio19 libchromaprint1 libcodec2-1.0 libdatrie1 libdav1d6 libdc1394-25 libdecor-0-0
  libdeflate0 libdrm-amdgpu1 libdrm-nouveau2 libdrm-radeon1 libepoxy0 libflac12 libflite1 libfontconfig1 libfreetype6 libfribidi0 libgbm1 libgdk-pixbuf-2.0-0
  libgdk-pixbuf2.0-common libgfortran5 libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libgme0 libgraphite2-3 libgsm1 libharfbuzz0b libhwy1
  libiec61883-0 libjack-jackd2-0 libjbig0 libjxl0.7 liblapack3 liblcms2-2 liblerc4 liblilv-0-0 libllvm15 libmp3lame0 libmpg123-0 libmysofa1 libnorm1 libogg0
  libopenal-data libopenal1 libopenmpt0 libopus0 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpgm-5.3-0 libpixman-1-0 libplacebo208 libpocketsphinx3
  libpostproc56 libpulse0 librabbitmq4 librav1e0 libraw1394-11 librist4 librsvg2-2 librubberband2 libsdl2-2.0-0 libserd-0-0 libshine3 libsnappy1v5 libsndfile1
  libsndio7.0 libsord-0-0 libspeex1 libsphinxbase3 libsratom-0-0 libsrt1.5-gnutls libssh-gcrypt-4 libsvtav1enc1 libthai-data libthai0 libtheora0 libtiff6
  libtwolame0 libudfread0 libvidstab1.1 libvorbis0a libvorbisenc2 libvorbisfile3 libvpx7 libvulkan1 libwayland-client0 libwayland-cursor0 libwayland-egl1
  libwayland-server0 libwebp7 libwebpmux3 libx264-164 libx265-199 libxcb-dri2-0 libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-render0 libxcb-shape0 libxcb-shm0
  libxcb-sync1 libxcb-xfixes0 libxcursor1 libxi6 libxkbcommon0 libxrandr2 libxrender1 libxshmfence1 libxss1 libxv1 libxvidcore4 libxxf86vm1 libzimg2 libzmq5
  libzvbi-common libzvbi0 shared-mime-info x11-common
0 upgraded, 141 newly installed, 0 to remove and 0 not upgraded.
Need to get 86.8 MB of archives.
After this operation, 260 MB of additional disk space will be used.
[..]
Processing triggers for libc-bin (2.36-9) ...

that didn't help for Home Assistant. Perhaps I need the -dev packages to. apt - install libav*-dev packages

tingo@kg-bpi:~$ sudo apt install libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libavutil-dev libpostproc-dev libswresample-dev libswscale-dev
The following NEW packages will be installed:
  libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libpostproc-dev libswresample-dev libswscale-dev
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,955 kB of archives.
After this operation, 25.4 MB of additional disk space will be used.
[..]
Setting up libavdevice-dev:armhf (7:5.1.3-1) ...

2023-07-12: Home Assistant - upgrade - first start

(homeassistant) tingo@kg-bpi:~$ hass --open-ui
2023-07-12 01:31:28.148 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: image_upload
2023-07-12 01:34:33.277 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: analytics
2023-07-12 01:35:38.500 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: recorder
2023-07-12 01:35:43.640 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-07-12 01:35:48.036 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
[..]
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/botocore/utils.py", line 37, in <module>
    import botocore.httpsession
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/botocore/httpsession.py", line 45, in <module>
    from urllib3.contrib.pyopenssl import (
  File "/home/tingo/.venv/homeassistant/lib/python3.11/site-packages/urllib3/contrib/pyopenssl.py", line 97, in <module>
    util.PROTOCOL_TLS: OpenSSL.SSL.SSLv23_METHOD,
    ^^^^^^^^^^^^^^^^^
AttributeError: module 'urllib3.util' has no attribute 'PROTOCOL_TLS'

hmm, loads of the above in the output. Perhaps issue 95192? Try source install of botocore

(homeassistant) tingo@kg-bpi:~$ pip install git+https://github.com/boto/botocore
Collecting git+https://github.com/boto/botocore
  Cloning https://github.com/boto/botocore to /tmp/pip-req-build-js45zdmg
  Running command git clone --filter=blob:none --quiet https://github.com/boto/botocore /tmp/pip-req-build-js45zdmg
  Resolved https://github.com/boto/botocore to commit 227c1cef8fefd2600a56dd3570a0d589def4bd52
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: jmespath<2.0.0,>=0.7.1 in ./.venv/homeassistant/lib/python3.11/site-packages (from botocore==1.31.2) (1.0.1)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in ./.venv/homeassistant/lib/python3.11/site-packages (from botocore==1.31.2) (2.8.2)
Requirement already satisfied: urllib3<1.27,>=1.25.4 in ./.venv/homeassistant/lib/python3.11/site-packages (from botocore==1.31.2) (1.26.16)
Requirement already satisfied: six>=1.5 in ./.venv/homeassistant/lib/python3.11/site-packages (from python-dateutil<3.0.0,>=2.1->botocore==1.31.2) (1.16.0)

and re-try startup

(homeassistant) tingo@kg-bpi:~$ hass --open-ui
2023-07-12 01:58:48.910 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-07-12 02:05:19.764 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: zeroconf
2023-07-12 02:08:12.473 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: bluetooth
2023-07-12 03:07:42.961 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package ha-av==10.1.0: error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
   exit code: 1
  ╰─> [11 lines of output]
      Package libavformat was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libavformat.pc'
      to the PKG_CONFIG_PATH environment variable
      Package 'libavformat', required by 'virtual:world', not found
      Package 'libavcodec', required by 'virtual:world', not found
      Package 'libavdevice', required by 'virtual:world', not found
      Package 'libavutil', required by 'virtual:world', not found
      Package 'libavfilter', required by 'virtual:world', not found
      Package 'libswscale', required by 'virtual:world', not found
      Package 'libswresample', required by 'virtual:world', not found
      pkg-config could not find libraries ['avformat', 'avcodec', 'avdevice', 'avutil', 'avfilter', 'swscale', 'swresample']
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
2023-07-12 03:09:24.759 ERROR (MainThread) [homeassistant.setup] Setup failed for stream: Requirements for stream not found: ['ha-av==10.1.0'].

but other than that, it appears to work.

2023-07-11: Home Assistant - upgrade

(homeassistant) tingo@kg-bpi:~$ which pip3
/home/tingo/.venv/homeassistant/bin/pip3
(homeassistant) tingo@kg-bpi:~$ pip3 install --upgrade homeassistant
      error: [Errno 28] No space left on device
      [end of output]

failed, so re-run it

(homeassistant) tingo@kg-bpi:~$ pip3 install --upgrade homeassistant
Collecting homeassistant
  Using cached homeassistant-2023.7.1-py3-none-any.whl (25.9 MB)
Collecting aiohttp==3.8.4
  Using cached aiohttp-3.8.4-cp311-cp311-linux_armv7l.whl
Collecting astral==2.2
  Using cached astral-2.2-py2.py3-none-any.whl (30 kB)
Collecting async-timeout==4.0.2
  Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting attrs==22.2.0
  Using cached attrs-22.2.0-py3-none-any.whl (60 kB)
Collecting atomicwrites-homeassistant==1.4.1
  Using cached atomicwrites_homeassistant-1.4.1-py2.py3-none-any.whl (7.1 kB)
Collecting awesomeversion==22.9.0
  Using cached awesomeversion-22.9.0-py3-none-any.whl (12 kB)
Collecting bcrypt==4.0.1
  Using cached bcrypt-4.0.1-cp311-cp311-linux_armv7l.whl
Collecting certifi>=2021.5.30
  Using cached certifi-2023.5.7-py3-none-any.whl (156 kB)
Collecting ciso8601==2.3.0
  Using cached ciso8601-2.3.0-cp311-cp311-linux_armv7l.whl
Collecting httpx==0.24.1
  Using cached httpx-0.24.1-py3-none-any.whl (75 kB)
Collecting home-assistant-bluetooth==1.10.0
  Using cached home_assistant_bluetooth-1.10.0.tar.gz (10 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting ifaddr==0.2.0
  Using cached ifaddr-0.2.0-py3-none-any.whl (12 kB)
Collecting Jinja2==3.1.2
  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting lru-dict==1.2.0
  Using cached lru-dict-1.2.0.tar.gz (10 kB)
  Preparing metadata (setup.py) ... done
Collecting PyJWT==2.7.0
  Using cached PyJWT-2.7.0-py3-none-any.whl (22 kB)
Collecting cryptography==41.0.1
  Using cached cryptography-41.0.1.tar.gz (629 kB)
[..]

turns out it was not enogh space on /tmp for building the cryptography package, so I had to set TMPDIR to another path temorarily

(homeassistant) tingo@kg-bpi:~$ TMPDIR='/usr/tmp' pip3 install --upgrade homeassistant
Collecting homeassistant
  Using cached homeassistant-2023.7.1-py3-none-any.whl (25.9 MB)
Collecting aiohttp==3.8.4
  Using cached aiohttp-3.8.4-cp311-cp311-linux_armv7l.whl
Collecting astral==2.2
  Using cached astral-2.2-py2.py3-none-any.whl (30 kB)
Collecting async-timeout==4.0.2
  Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting attrs==22.2.0
  Using cached attrs-22.2.0-py3-none-any.whl (60 kB)
Collecting atomicwrites-homeassistant==1.4.1
  Using cached atomicwrites_homeassistant-1.4.1-py2.py3-none-any.whl (7.1 kB)
Collecting awesomeversion==22.9.0
  Using cached awesomeversion-22.9.0-py3-none-any.whl (12 kB)
Collecting bcrypt==4.0.1
  Using cached bcrypt-4.0.1-cp311-cp311-linux_armv7l.whl
Collecting certifi>=2021.5.30
  Using cached certifi-2023.5.7-py3-none-any.whl (156 kB)
Collecting ciso8601==2.3.0
  Using cached ciso8601-2.3.0-cp311-cp311-linux_armv7l.whl
Collecting httpx==0.24.1
  Using cached httpx-0.24.1-py3-none-any.whl (75 kB)
Collecting home-assistant-bluetooth==1.10.0
  Using cached home_assistant_bluetooth-1.10.0-cp311-cp311-manylinux_2_36_armv7l.whl
Collecting ifaddr==0.2.0
  Using cached ifaddr-0.2.0-py3-none-any.whl (12 kB)
Collecting Jinja2==3.1.2
  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting lru-dict==1.2.0
  Using cached lru-dict-1.2.0.tar.gz (10 kB)
  Preparing metadata (setup.py) ... done
Collecting PyJWT==2.7.0
  Using cached PyJWT-2.7.0-py3-none-any.whl (22 kB)
Collecting cryptography==41.0.1
  Using cached cryptography-41.0.1.tar.gz (629 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pyOpenSSL==23.2.0
  Using cached pyOpenSSL-23.2.0-py3-none-any.whl (59 kB)
Collecting orjson==3.9.1
  Using cached orjson-3.9.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (127 kB)
Requirement already satisfied: pip<23.2,>=21.3.1 in ./.venv/homeassistant/lib/python3.11/site-packages (from homeassistant) (23.0.1)
Collecting python-slugify==4.0.1
  Using cached python-slugify-4.0.1.tar.gz (11 kB)
  Preparing metadata (setup.py) ... done
Collecting PyYAML==6.0
  Using cached PyYAML-6.0-cp311-cp311-linux_armv7l.whl
Collecting requests==2.31.0
  Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Collecting typing-extensions<5.0,>=4.6.3
  Using cached typing_extensions-4.7.1-py3-none-any.whl (33 kB)
Collecting ulid-transform==0.7.2
  Using cached ulid_transform-0.7.2-cp311-cp311-manylinux_2_36_armv7l.whl
Collecting voluptuous==0.13.1
  Using cached voluptuous-0.13.1-py3-none-any.whl (29 kB)
Collecting voluptuous-serialize==2.6.0
  Using cached voluptuous_serialize-2.6.0-py3-none-any.whl (6.8 kB)
Collecting yarl==1.9.2
  Using cached yarl-1.9.2-cp311-cp311-linux_armv7l.whl
Collecting charset-normalizer<4.0,>=2.0
  Using cached charset_normalizer-3.2.0-py3-none-any.whl (46 kB)
Collecting multidict<7.0,>=4.5
  Using cached multidict-6.0.4-cp311-cp311-linux_armv7l.whl
Collecting frozenlist>=1.1.1
  Using cached frozenlist-1.3.3-cp311-cp311-linux_armv7l.whl
Collecting aiosignal>=1.1.2
  Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting pytz
  Using cached pytz-2023.3-py2.py3-none-any.whl (502 kB)
Requirement already satisfied: cffi>=1.12 in ./.venv/homeassistant/lib/python3.11/site-packages (from cryptography==41.0.1->homeassistant) (1.15.1)
Collecting httpcore<0.18.0,>=0.15.0
  Using cached httpcore-0.17.3-py3-none-any.whl (74 kB)
Collecting idna
  Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting sniffio
  Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting MarkupSafe>=2.0
  Using cached MarkupSafe-2.1.3.tar.gz (19 kB)
  Preparing metadata (setup.py) ... done
Collecting text-unidecode>=1.3
  Using cached text_unidecode-1.3-py2.py3-none-any.whl (78 kB)
Collecting urllib3<3,>=1.21.1
  Using cached urllib3-2.0.3-py3-none-any.whl (123 kB)
Requirement already satisfied: pycparser in ./.venv/homeassistant/lib/python3.11/site-packages (from cffi>=1.12->cryptography==41.0.1->homeassistant) (2.21)
Collecting h11<0.15,>=0.13
  Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Collecting anyio<5.0,>=3.0
  Using cached anyio-3.7.1-py3-none-any.whl (80 kB)
Building wheels for collected packages: cryptography
  Building wheel for cryptography (pyproject.toml) ... done
  Created wheel for cryptography: filename=cryptography-41.0.1-cp311-cp311-linux_armv7l.whl size=3553992 sha256=d56471c6f361041c58e8d19ec3e981cc4e5089bc77e887949fb711210cba2fc8
  Stored in directory: /home/tingo/.cache/pip/wheels/c1/f0/28/04febfc0ec84e277e12e9b12761aa342f789e66b7740bafc01
Successfully built cryptography
Installing collected packages: voluptuous, text-unidecode, pytz, lru-dict, ifaddr, ciso8601, voluptuous-serialize, urllib3, ulid-transform, typing-extensions, sniffio, PyYAML, python-slugify, PyJWT, orjson, multidict, MarkupSafe, idna, home-assistant-bluetooth, h11, frozenlist, charset-normalizer, certifi, bcrypt, awesomeversion, attrs, atomicwrites-homeassistant, async-timeout, astral, yarl, requests, Jinja2, cryptography, anyio, aiosignal, pyOpenSSL, httpcore, aiohttp, httpx, homeassistant
  DEPRECATION: lru-dict is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for lru-dict ... done
  DEPRECATION: python-slugify is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for python-slugify ... done
  DEPRECATION: MarkupSafe is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for MarkupSafe ... done
  Attempting uninstall: cryptography
    Found existing installation: cryptography 41.0.2
    Uninstalling cryptography-41.0.2:
      Successfully uninstalled cryptography-41.0.2
Successfully installed Jinja2-3.1.2 MarkupSafe-2.1.3 PyJWT-2.7.0 PyYAML-6.0 aiohttp-3.8.4 aiosignal-1.3.1 anyio-3.7.1 astral-2.2 async-timeout-4.0.2 atomicwrites-homeassistant-1.4.1 attrs-22.2.0 awesomeversion-22.9.0 bcrypt-4.0.1 certifi-2023.5.7 charset-normalizer-3.2.0 ciso8601-2.3.0 cryptography-41.0.1 frozenlist-1.3.3 h11-0.14.0 home-assistant-bluetooth-1.10.0 homeassistant-2023.7.1 httpcore-0.17.3 httpx-0.24.1 idna-3.4 ifaddr-0.2.0 lru-dict-1.2.0 multidict-6.0.4 orjson-3.9.1 pyOpenSSL-23.2.0 python-slugify-4.0.1 pytz-2023.3 requests-2.31.0 sniffio-1.3.0 text-unidecode-1.3 typing-extensions-4.7.1 ulid-transform-0.7.2 urllib3-2.0.3 voluptuous-0.13.1 voluptuous-serialize-2.6.0 yarl-1.9.2

that worked.

2023-07-11: armbian - which python3 version do we have

tingo@kg-bpi:~$ python3 --version
Python 3.11.2

perhaps I can upgrade the venv?

usage: venv [-h] [--system-site-packages] [--symlinks | --copies] [--clear] [--upgrade] [--without-pip] [--prompt PROMPT] [--upgrade-deps] ENV_DIR [ENV_DIR ...]

Creates virtual Python environments in one or more target directories.

positional arguments:
  ENV_DIR               A directory to create the environment in.

options:
  -h, --help            show this help message and exit
  --system-site-packages
                        Give the virtual environment access to the system site-packages dir.
  --symlinks            Try to use symlinks rather than copies, when symlinks are not the default for the platform.
  --copies              Try to use copies rather than symlinks, even when symlinks are the default for the platform.
  --clear               Delete the contents of the environment directory if it already exists, before environment creation.
  --upgrade             Upgrade the environment directory to use this version of Python, assuming Python has been upgraded in-place.
  --without-pip         Skips installing or upgrading pip in the virtual environment (pip is bootstrapped by default)
  --prompt PROMPT       Provides an alternative prompt prefix for this environment.
  --upgrade-deps        Upgrade core dependencies: pip setuptools to the latest version in PyPI

Once an environment has been created, you may wish to activate it, e.g. by sourcing an activate script in its bin directory.

this one

tingo@kg-bpi:~$ l ~/.venv/homeassistant/
./  ../  bin/  cache/  include/  lib/  LICENSE  pyvenv.cfg  share/

try it

tingo@kg-bpi:~$ python3.11 -m venv --upgrade ~/.venv/homeassistant/

did it work?

tingo@kg-bpi:~$ source ~/.venv/homeassistant/bin/activate
(homeassistant) tingo@kg-bpi:~$ hass --help
-bash: /home/tingo/.venv/homeassistant/bin/hass: cannot execute: required file not found

no.

2023-07-11: armbian - reboot, Debian 12.0 is now in

tingo@kg-bpi:~$ cat /etc/debian_version 
12.0

kernel

tingo@kg-bpi:~$ uname -a
Linux kg-bpi 5.15.93-sunxi #23.02.2 SMP Fri Feb 17 23:49:46 UTC 2023 armv7l GNU/Linux

lsb_release info

tingo@kg-bpi:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:    12
Codename:   bookworm

2023-07-11: armbian - start the bookworm upgrade. First apt update

tingo@kg-bpi:~/work/20230711_bookworm_upgrade$ sudo apt update
[..]
468 packages can be upgraded. Run 'apt list --upgradable' to see them.

apt - minimal upgrade

tingo@kg-bpi:~/work/20230711_bookworm_upgrade$ sudo apt upgrade --without-new-pkgs
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libexporter-tiny-perl liblist-moreutils-perl liblist-moreutils-xs-perl
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  alsa-utils apache2-bin apt apt-utils aptitude aptitude-common avahi-autoipd base-passwd bash bind9-dnsutils bind9-host bind9-libs binutils
  binutils-arm-linux-gnueabihf binutils-common bison bridge-utils bsdextrautils bsdutils btrfs-progs bzip2 cargo chrony cmake cmake-data composer coreutils cpio cpp
  cron curl dash dbus debianutils device-tree-compiler dialog diffutils dirmngr dmsetup dpkg dpkg-dev e2fsprogs ethtool f2fs-tools f3 fbset fdisk findutils flex
  fuse g++ gcc gir1.2-glib-2.0 git git-man gnupg gnupg-l10n gnupg-utils gnupg2 gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv grep groff-base gzip
  haveged hdparm hostname htop ifupdown init-system-helpers iotop iperf3 iproute2 iptables iputils-arping iputils-ping isc-dhcp-client kbd kmod less libacl1
  libapparmor1 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libapt-pkg-perl libapt-pkg6.0 libarchive13 libargon2-1 libasan6 libasound2
  libasound2-data libassuan0 libatomic1 libatopology2 libaudit1 libbinutils libblkid1 libboost-iostreams1.74.0 libbsd0 libbz2-1.0 libc-bin libc-dev-bin libc6
  libc6-dev libcap-ng0 libcap2 libcap2-bin libcc1-0 libconfuse-dev libconfuse2 libcrypt-dev libcrypt1 libcryptsetup12 libctf0 libcurl3-gnutls libcurl4 libcwidget4
  libdb5.3 libdbus-1-3 libdevmapper1.02.1 libdigest-sha-perl libdlt2 libdpkg-perl libedit2 libelf1 libext2fs2 libfdisk1 libffi-dev libfftw3-single3 libfido2-1
  libfontconfig1 libfreetype6 libfstrm0 libfuse2 libgcc-s1 libgcrypt20 libgd3 libgdbm-compat4 libgdbm6 libgirepository-1.0-1 libglib2.0-0 libgnutls30 libgomp1
  libgpg-error0 libgpm2 libgssapi-krb5-2 libidn2-0 libip4tc2 libip6tc2 libiperf0 libjson-c5 libk5crypto3 libkmod2 libkrb5-3 libkrb5support0 libksba8
  liblist-moreutils-xs-perl liblocale-gettext-perl liblua5.3-0 liblzma5 libmagic-mgc libmagic1 libmaxminddb0 libmd0 libmosquitto1 libmount1 libncurses6 libncursesw6
  libnewt0.52 libnftnl11 libnginx-mod-http-echo libnl-3-200 libnl-3-dev libnl-genl-3-200 libnl-genl-3-dev libnl-route-3-200 libnm0 libnss-myhostname libopenjp2-7
  libp11-kit0 libpam-modules libpam-modules-bin libpam-systemd libpam0g libparted2 libpci3 libpcre2-8-0 libpcre3 libpcsclite1 libpipeline1 libpolkit-agent-1-0
  libpolkit-gobject-1-0 libpopt0 libproc-processtable-perl libpsl5 libpython3-dev libpython3-stdlib libreadline8 libsasl2-2 libselinux1 libsemanage-common
  libsensors5 libslang2 libsmartcols1 libsqlite3-0 libss2 libssh2-1 libssl-dev libstd-rust-dev libstdc++6 libsysfs2 libsystemd0 libtcl8.6 libtinfo6 libtirpc-dev
  libtirpc3 libubsan1 libudev1 libunistring2 libutempter0 libuv1 libwrap0 libwrap0-dev libx11-6 libxapian30 libxml2 libxpm4 libxslt1.1 libxtables12 libz3-4 libzip4
  libzstd1 locales login logrotate logsave lsb-base lsof m4 man-db mksh mosquitto mount nano ncurses-base ncurses-bin ncurses-term net-tools netcat-openbsd
  network-manager nginx-common nginx-light ntfs-3g openssh-client openssh-server openssh-sftp-server openssl parted passwd pciutils perl perl-base php php-common
  php-composer-spdx-licenses php-composer-xdebug-handler php-symfony-console php-symfony-finder php-symfony-service-contracts pinentry-curses policykit-1 procps
  psmisc pv python3 python3-apt python3-cffi-backend python3-dbus python3-dev python3-distutils python3-gi python3-lib2to3 python3-minimal python3-multidict
  python3-pycurl python3-software-properties python3-venv rfkill rsync rsyslog rustc screen sed software-properties-common stress sudo sunxi-tools sysfsutils
  sysstat systemd sysvinit-utils tar tcl8.6 u-boot-tools udev unzip util-linux vim vim-common vim-runtime wget whiptail wireguard-tools wireless-tools wpasupplicant
  xxd xz-utils zip
The following packages will be upgraded:
  adduser apt-file apt-transport-https autoconf automake autotools-dev base-files bash-completion bc ca-certificates command-not-found console-setup
  console-setup-linux debconf debconf-utils debian-archive-keyring distro-info-data dnsutils evtest fake-hwclock fontconfig-config fonts-dejavu-core fping
  gir1.2-packagekitglib-1.0 ifenslave init initramfs-tools initramfs-tools-core iso-codes iw jsonlint keyboard-configuration klibc-utils libattr1 libaudit-common
  libbluetooth3 libbrotli1 libc-l10n libcaca0 libcjson1 libcom-err2 libconfuse-common libctf-nobfd0 libdebconfclient0 libdeflate0 liberror-perl libestr0 libexpat1
  libexpat1-dev libexporter-tiny-perl libfastjson4 libfdt1 libgmp10 libhavege2 libhogweed6 libhttp-parser2.9 libisl23 libiw30 libjansson4 libjbig0 libjpeg-dev
  libjpeg62-turbo libjpeg62-turbo-dev libjs-jquery libjs-sphinxdoc libjs-underscore libkeyutils1 libklibc libldap-common liblognorm5 liblz4-1 libmm-glib0 libmpc3
  libmpfr6 libndp0 libnetfilter-conntrack3 libnettle8 libnfnetlink0 libnghttp2-14 libonig5 libpackagekit-glib2-18 libpam-runtime libpng16-16 libprotobuf-c1
  libregexp-assemble-perl librhash0 libsamplerate0 libsasl2-modules-db libsctp1 libseccomp2 libsensors-config libsigc++-2.0-0v5 libsigsegv2 libtasn1-6
  libtirpc-common libturbojpeg0 libturbojpeg0-dev libusb-1.0-0 libuuid1 libx11-data libxcb1 libxxhash0 libyaml-0-2 linux-base lsb-release mailcap mawk media-types
  mmc-utils netbase networkd-dispatcher pci.ids php-composer-ca-bundle php-composer-semver php-json-schema php-psr-container php-psr-log php-react-promise
  php-symfony-filesystem php-symfony-polyfill-php80 php-symfony-process python-apt-common python3-distro-info python3-pip python3-pkg-resources python3-setuptools
  python3-wheel readline-common resolvconf runit-helper sensible-utils systemd-sysv toilet toilet-fonts tzdata ucf unattended-upgrades unicode-data usbutils
  wireless-regdb xkb-data zlib1g zlib1g-dev
143 upgraded, 0 newly installed, 0 to remove and 325 not upgraded.
Need to get 32.9 MB of archives.
After this operation, 10.0 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.142) ...
update-initramfs: Generating /boot/initrd.img-5.15.93-sunxi
W: No zstd in /usr/bin:/sbin:/bin, using gzip
update-initramfs: Converting to u-boot format

apt - do a full upgrade

tingo@kg-bpi:~/work/20230711_bookworm_upgrade$ sudo apt full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  fontconfig-config fonts-dejavu-core g++-10 jsonlint libabsl20220623 libaom3 libavif15 libbpf0 libcbor0 libdav1d6 libde265-0 libdeflate0 libdns-export1110 libev4
  libexporter-tiny-perl libffi7 libfontconfig1 libfreetype6 libgav1-1 libgd3 libgit2-1.1 libheif1 libicu67 libisc-export1105 libjbig0 libjsoncpp24 liblerc4
  liblist-moreutils-perl liblist-moreutils-xs-perl libllvm11 libmbedcrypto3 libmbedtls12 libmbedx509-0 libmpdec3 libncurses6 libntfs-3g883 libperl5.32 libprocps8
  libpython3.9 libpython3.9-dev libpython3.9-minimal libpython3.9-stdlib librav1e0 libsigsegv2 libstd-rust-1.48 libstdc++-10-dev libsvtav1enc1 libtiff5 libtiff6
  libwebp6 libwebp7 libwebsockets16 libx11-6 libx11-data libx265-199 libxau6 libxcb1 libxdmcp6 libxpm4 libxslt1.1 libyuv0 libzip4 perl-modules-5.32
  php-composer-ca-bundle php-composer-pcre 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-deprecation-contracts php-symfony-finder php-symfony-polyfill-php80 php-symfony-process php-symfony-service-contracts python3-pycurl
  python3.9 python3.9-dev python3.9-minimal
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  composer fuse libapache2-mod-php7.4 libsemanage1 php-symfony-console php-symfony-filesystem 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 python-pip-whl python3.9-venv
The following NEW packages will be installed:
  cpp-12 cron-daemon-common dbus-bin dbus-daemon dbus-session-bus-common dbus-system-bus-common fuse3 g++-12 gcc-11-base gcc-12 gcc-12-base libabsl20220623 libaom3
  libapache2-mod-php8.2 libappstream4 libasan8 libavif15 libbpf1 libcbor0.8 libdav1d6 libde265-0 libduktape207 libdw1 libffi8 libfile-find-rule-perl libfuse3-3
  libgav1-1 libgcc-12-dev libgit2-1.5 libglib2.0-bin libglib2.0-data libgstreamer1.0-0 libheif1 libicu72 libjemalloc2 libjsoncpp25 libldap-2.5-0 liblerc4 libllvm14
  libmbedcrypto7 libmbedtls14 libmbedx509-1 libntfs-3g89 libnumber-compare-perl libperl5.36 libproc2-0 libpython3.11 libpython3.11-dev libpython3.11-minimal
  libpython3.11-stdlib librav1e0 libsemanage2 libsepol2 libssl3 libstd-rust-1.63 libstdc++-12-dev libstemmer0d libsvtav1enc1 libsystemd-shared libtext-glob-perl
  libtiff6 libunwind8 libwebp7 libx265-199 libxmlb2 libyuv0 nginx packagekit perl-modules-5.36 php-composer-pcre php-symfony-deprecation-contracts php8.2 php8.2-cli
  php8.2-common php8.2-opcache php8.2-readline pkexec polkitd python3-blinker python3-cryptography python3-distro python3-httplib2 python3-jwt
  python3-lazr.restfulclient python3-lazr.uri python3-oauthlib python3-pip-whl python3-pyparsing python3-setuptools-whl python3-six python3-wadllib python3.11
  python3.11-dev python3.11-minimal python3.11-venv rpcsvc-proto sgml-base usrmerge util-linux-extra xml-core
The following packages will be upgraded:
  alsa-utils apache2-bin apt apt-utils aptitude aptitude-common avahi-autoipd base-passwd bash bind9-dnsutils bind9-host bind9-libs binutils
  binutils-arm-linux-gnueabihf binutils-common bison bridge-utils bsdextrautils bsdutils btrfs-progs bzip2 cargo chrony cmake cmake-data coreutils cpio cpp cron
  curl dash dbus debianutils device-tree-compiler dialog diffutils dirmngr dmsetup dpkg dpkg-dev e2fsprogs ethtool f2fs-tools f3 fbset fdisk findutils flex g++ gcc
  gir1.2-glib-2.0 git git-man gnupg gnupg-l10n gnupg-utils gnupg2 gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv grep groff-base gzip haveged hdparm
  hostname htop ifupdown init-system-helpers iotop iperf3 iproute2 iptables iputils-arping iputils-ping isc-dhcp-client kbd kmod less libacl1 libapparmor1 libapr1
  libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libapt-pkg-perl libapt-pkg6.0 libarchive13 libargon2-1 libasan6 libasound2 libasound2-data libassuan0
  libatomic1 libatopology2 libaudit1 libbinutils libblkid1 libboost-iostreams1.74.0 libbsd0 libbz2-1.0 libc-bin libc-dev-bin libc6 libc6-dev libcap-ng0 libcap2
  libcap2-bin libcc1-0 libconfuse-dev libconfuse2 libcrypt-dev libcrypt1 libcryptsetup12 libctf0 libcurl3-gnutls libcurl4 libcwidget4 libdb5.3 libdbus-1-3
  libdevmapper1.02.1 libdigest-sha-perl libdlt2 libdpkg-perl libedit2 libelf1 libext2fs2 libfdisk1 libffi-dev libfftw3-single3 libfido2-1 libfontconfig1
  libfreetype6 libfstrm0 libfuse2 libgcc-s1 libgcrypt20 libgd3 libgdbm-compat4 libgdbm6 libgirepository-1.0-1 libglib2.0-0 libgnutls30 libgomp1 libgpg-error0
  libgpm2 libgssapi-krb5-2 libidn2-0 libip4tc2 libip6tc2 libiperf0 libjson-c5 libk5crypto3 libkmod2 libkrb5-3 libkrb5support0 libksba8 liblist-moreutils-xs-perl
  liblocale-gettext-perl liblua5.3-0 liblzma5 libmagic-mgc libmagic1 libmaxminddb0 libmd0 libmosquitto1 libmount1 libncurses6 libncursesw6 libnewt0.52 libnftnl11
  libnginx-mod-http-echo libnl-3-200 libnl-3-dev libnl-genl-3-200 libnl-genl-3-dev libnl-route-3-200 libnm0 libnss-myhostname libopenjp2-7 libp11-kit0
  libpam-modules libpam-modules-bin libpam-systemd libpam0g libparted2 libpci3 libpcre2-8-0 libpcre3 libpcsclite1 libpipeline1 libpolkit-agent-1-0
  libpolkit-gobject-1-0 libpopt0 libproc-processtable-perl libpsl5 libpython3-dev libpython3-stdlib libreadline8 libsasl2-2 libselinux1 libsemanage-common
  libsensors5 libslang2 libsmartcols1 libsqlite3-0 libss2 libssh2-1 libssl-dev libstd-rust-dev libstdc++6 libsysfs2 libsystemd0 libtcl8.6 libtinfo6 libtirpc-dev
  libtirpc3 libubsan1 libudev1 libunistring2 libutempter0 libuv1 libwrap0 libwrap0-dev libx11-6 libxapian30 libxml2 libxpm4 libxslt1.1 libxtables12 libz3-4 libzip4
  libzstd1 locales login logrotate logsave lsb-base lsof m4 man-db mksh mosquitto mount nano ncurses-base ncurses-bin ncurses-term net-tools netcat-openbsd
  network-manager nginx-common nginx-light ntfs-3g openssh-client openssh-server openssh-sftp-server openssl parted passwd pciutils perl perl-base php php-common
  php-composer-spdx-licenses php-composer-xdebug-handler php-symfony-finder php-symfony-service-contracts pinentry-curses policykit-1 procps psmisc pv python3
  python3-apt python3-cffi-backend python3-dbus python3-dev python3-distutils python3-gi python3-lib2to3 python3-minimal python3-multidict python3-pycurl
  python3-software-properties python3-venv rfkill rsync rsyslog rustc screen sed software-properties-common stress sudo sunxi-tools sysfsutils sysstat systemd
  sysvinit-utils tar tcl8.6 u-boot-tools udev unzip util-linux vim vim-common vim-runtime wget whiptail wireguard-tools wireless-tools wpasupplicant xxd xz-utils
  zip
322 upgraded, 100 newly installed, 22 to remove and 0 not upgraded.
Need to get 296 MB of archives.
After this operation, 526 MB of additional disk space will be used.
[..]
Setting up software-properties-common (0.99.30-4) ...
Processing triggers for dbus (1.14.6-1) ...
Processing triggers for php8.2-cli (8.2.7-1~deb12u1) ...
Processing triggers for libapache2-mod-php8.2 (8.2.7-1~deb12u1) ...
Warning: Could not load Apache 2.4 maintainer script helper.
Processing triggers for nginx (1.22.1-9) ...
Triggering nginx reload ...

apt - autoremove

tingo@kg-bpi:~/work/20230711_bookworm_upgrade$ sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  fontconfig-config fonts-dejavu-core g++-10 jsonlint libabsl20220623 libaom3 libavif15 libbpf0 libcbor0 libdav1d6 libde265-0 libdeflate0 libdns-export1110 libev4
  libexporter-tiny-perl libffi7 libfontconfig1 libfreetype6 libgav1-1 libgd3 libgit2-1.1 libheif1 libicu67 libisc-export1105 libjbig0 libjsoncpp24 liblerc4
  liblist-moreutils-perl liblist-moreutils-xs-perl libllvm11 libmbedcrypto3 libmbedtls12 libmbedx509-0 libmpdec3 libncurses6 libntfs-3g883 libperl5.32 libprocps8
  libpython3.9 libpython3.9-dev libpython3.9-minimal libpython3.9-stdlib librav1e0 libsigsegv2 libstd-rust-1.48 libstdc++-10-dev libsvtav1enc1 libtiff5 libtiff6
  libwebp6 libwebp7 libwebsockets16 libx11-6 libx11-data libx265-199 libxau6 libxcb1 libxdmcp6 libxpm4 libxslt1.1 libyuv0 libzip4 perl-modules-5.32
  php-composer-ca-bundle php-composer-pcre 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-deprecation-contracts php-symfony-finder php-symfony-polyfill-php80 php-symfony-process php-symfony-service-contracts python3-pycurl
  python3.9 python3.9-dev python3.9-minimal
0 upgraded, 0 newly installed, 81 to remove and 0 not upgraded.
After this operation, 322 MB disk space will be freed.
[..]
Processing triggers for mailcap (3.70+nmu1) ...
Processing triggers for libc-bin (2.36-9) ...

apt - autoclean

tingo@kg-bpi:~/work/20230711_bookworm_upgrade$ sudo apt autoclean
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Del linux-image-current-sunxi 21.08.2 [36.4 MB]
Del linux-dtb-current-sunxi 21.08.2 [195 kB]
Del hostapd 3:2.9-102~armbian20.05.2+1 [401 kB]
Del linux-u-boot-bananapi-current 21.08.1 [257 kB]
Del linux-libc-dev 21.08.2 [1,151 kB]
Del hostapd 3:2.9-102~armbian21.05.1+1 [401 kB]

2023-07-11: armbian - apt - update sources

tingo@kg-bpi:~/work/20230711_bookworm_upgrade$ sudo sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
tingo@kg-bpi:~/work/20230711_bookworm_upgrade$ sudo sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/armbian.list

I also added the non-free-firmware repository to the sources.list file.

2023-07-11: armbian - apt - autoremove

tingo@kg-bpi:~$ sudo apt --purge 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.

2023-07-11: armbian - reboot, Debian 11.7 is in

tingo@kg-bpi:~$ cat /etc/debian_version 
11.7

kernel

tingo@kg-bpi:~$ uname -a
Linux kg-bpi 5.15.93-sunxi #23.02.2 SMP Fri Feb 17 23:49:46 UTC 2023 armv7l GNU/Linux

2023-07-11: 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 bind9-dnsutils bind9-host bind9-libs command-not-found curl debian-archive-keyring dnsutils
  git git-man grep isc-dhcp-client libapache2-mod-php7.4 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libc-bin libc-dev-bin libc-l10n libc6
  libc6-dev libcurl3-gnutls libcurl4 libgit2-1.1 libgnutls30 libncurses6 libncursesw6 libnss-myhostname libpam-systemd libssl-dev libssl1.1 libsystemd0 libtiff5
  libtinfo6 libudev1 libwebp6 libx11-6 libx11-data libxapian30 libxml2 libxpm4 linux-dtb-current-sunxi linux-image-current-sunxi linux-libc-dev
  linux-u-boot-bananapi-current locales ncurses-base ncurses-bin ncurses-term 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 systemd systemd-sysv tzdata udev
77 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 103 MB of archives.
After this operation, 435 kB of additional disk space will be used.
[..]
Setting up libapache2-mod-php7.4 (7.4.33-1+deb11u4) ...
Warning: Could not load Apache 2.4 maintainer script helper.
Setting up dnsutils (1:9.16.42-1~deb11u1) ...
Processing triggers for dbus (1.12.24-0+deb11u1) ...
[..]
Processing triggers for initramfs-tools (0.140) ...
update-initramfs: Generating /boot/initrd.img-5.15.93-sunxi
update-initramfs: Converting to u-boot format
Processing triggers for libc-bin (2.31-13+deb11u6) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for php7.4-cli (7.4.33-1+deb11u4) ...
Processing triggers for php7.4-fpm (7.4.33-1+deb11u4) ...
Processing triggers for libapache2-mod-php7.4 (7.4.33-1+deb11u4) ...
Warning: Could not load Apache 2.4 maintainer script helper.

apt - full-upgrade

tingo@kg-bpi:~$ sudo apt full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

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=homeassistant>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=check_config, domain=homeassistant>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=reload_core_config, domain=homeassistant>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=create, domain=persistent_notification>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=dismiss, domain=persistent_notification>
INFO:homeassistant.bootstrap:Home Assistant core initialized
INFO:homeassistant.loader:Loaded introduction from homeassistant.components.introduction
INFO:homeassistant.setup:Setting up introduction
INFO:homeassistant.components.introduction:

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        Hello, and welcome to Home Assistant!

        We'll hope that we can make all your dreams come true.

        Here are some resources to get started:

         - Configuring Home Assistant:
           https://home-assistant.io/getting-started/configuration/

         - Available components:
           https://home-assconfiguration.yamlistant.io/components/

         - Troubleshooting your configuration:
           https://home-assistant.io/getting-started/troubleshooting-configuration/

         - Getting help:
           https://home-assistant.io/help/

        This message is generated by the introduction component. You can
        disable it in configuration.yaml.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

INFO:homeassistant.loader:Loaded persistent_notification from homeassistant.components.persistent_notification
INFO:homeassistant.setup:Setup of domain introduction took 0.0 seconds.
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=introduction>
INFO:homeassistant.loader:Loaded history from homeassistant.components.history
INFO:homeassistant.loader:Loaded recorder from homeassistant.components.recorder
INFO:homeassistant.loader:Loaded http from homeassistant.components.http
INFO:homeassistant.loader:Loaded frontend from homeassistant.components.frontend
INFO:homeassistant.loader:Loaded api from homeassistant.components.api
INFO:homeassistant.loader:Loaded websocket_api from homeassistant.components.websocket_api
INFO:homeassistant.loader:Loaded system_log from homeassistant.components.system_log
INFO:homeassistant.core:Bus:Handling <Event call_service[L]: service_call_id=3046155216-1, service=create, service_data=title=Welcome Home!, message=
Here are some resources to get started:

 - [Configuring Home Assistant](https://home-assistant.io/getting-started/configuration/)
 - [Available components](https://home-assistant.io/components/)
 - [Troubleshooting your configuration](https://home-assistant.io/docs/configuration/troubleshooting/)
 - [Getting help](https://home-assistant.io/help/)

To not see this card popup in the future, edit your config in
`configuration.yaml` and disable the `introduction` component.
, domain=persistent_notification>
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: entity_id=persistent_notification.notification, new_state=<state persistent_notification.notification=notifying; title=Welcome Home!, message=Here are some resources to get started:

 - [Configuring Home Assistant](https://home-assistant.io/getting-started/configuration/)
 - [Available components](https://home-assistant.io/components/)
 - [Troubleshooting your configuration](https://home-assistant.io/docs/configuration/troubleshooting/)
 - [Getting help](https://home-assistant.io/help/)

To not see this card popup in the future, edit your config in
`configuration.yaml` and disable the `introduction` component. @ 2017-12-10T18:22:57.933132+01:00>, old_state=None>
INFO:homeassistant.core:Bus:Handling <Event service_executed[L]: service_call_id=3046155216-1>
INFO:homeassistant.util.package:Attempting install of home-assistant-frontend==20171204.0
INFO:homeassistant.util.package:Attempting install of user-agents==1.1.0
INFO:homeassistant.util.package:Attempting install of aiohttp_cors==0.5.3
INFO:homeassistant.setup:Setting up http
INFO:homeassistant.setup:Setup of domain http took 0.0 seconds.
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=http>
INFO:homeassistant.setup:Setting up websocket_api
INFO:homeassistant.setup:Setup of domain websocket_api took 0.0 seconds.
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=websocket_api>
INFO:homeassistant.setup:Setting up api
INFO:homeassistant.setup:Setting up system_log
INFO:homeassistant.setup:Setup of domain api took 0.0 seconds.
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=api>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=clear, domain=system_log>
INFO:homeassistant.setup:Setup of domain system_log took 0.0 seconds.
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=system_log>
INFO:homeassistant.setup:Setting up frontend
ERROR:homeassistant.setup:Error during setup of component frontend
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/setup.py", line 190, in _async_setup_component
    result = yield from component.async_setup(hass, processed_config)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/frontend/__init__.py", line 313, in async_setup
    import hass_frontend
ImportError: No module named 'hass_frontend'
INFO:homeassistant.core:Bus:Handling <Event call_service[L]: service_call_id=3046155216-2, service=create, service_data=title=Invalid config, message=The following components and platforms could not be set up:

 - [frontend](https://home-assistant.io/components/frontend/)

Please check your config., notification_id=invalid_config, domain=persistent_notification>
INFO:homeassistant.util.package:Attempting install of sqlalchemy==1.1.15
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: entity_id=persistent_notification.invalid_config, new_state=<state persistent_notification.invalid_config=notifying; title=Invalid config, message=The following components and platforms could not be set up:

 - [frontend](https://home-assistant.io/components/frontend/)

Please check your config. @ 2017-12-10T18:23:39.887413+01:00>, old_state=None>
INFO:homeassistant.core:Bus:Handling <Event service_executed[L]: service_call_id=3046155216-2>
INFO:homeassistant.setup:Setting up recorder
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=purge, domain=recorder>
Exception in thread Recorder:
Traceback (most recent call last):
  File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/recorder/__init__.py", line 199, in run
    from .models import States, Events
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/recorder/models.py", line 6, in <module>
    from sqlalchemy import (
ImportError: No module named 'sqlalchemy'

WARNING:homeassistant.setup:Setup of recorder is taking over 10 seconds.

hmm... Ok, I stopped it (Ctrl-C twice) and started it one more time, now it looks better.

2017-12-10: mmcblk0p1 - install Home Assistant. I choose option 2 - to install as the user

tingo@bananapi:~$ sudo pip3 install homeassistant
Downloading/unpacking homeassistant
  Downloading homeassistant-0.59.2-py2.py3-none-any.whl (7.6MB): 7.6MB downloaded
Downloading/unpacking pytz>=2017.02 (from homeassistant)
  Downloading pytz-2017.3-py2.py3-none-any.whl (511kB): 511kB downloaded
Downloading/unpacking pyyaml>=3.11,<4 (from homeassistant)
  Downloading PyYAML-3.12.tar.gz (253kB): 253kB downloaded
  Running setup.py (path:/tmp/pip-build-1xg0kr6a/pyyaml/setup.py) egg_info for package pyyaml

Downloading/unpacking chardet==3.0.4 (from homeassistant)
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB): 133kB downloaded
Downloading/unpacking pip>=8.0.3 (from homeassistant)
  Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB): 1.3MB downloaded
Downloading/unpacking requests==2.18.4 (from homeassistant)
  Downloading requests-2.18.4-py2.py3-none-any.whl (88kB): 88kB downloaded
Downloading/unpacking async-timeout==2.0.0 (from homeassistant)
  Downloading async_timeout-2.0.0-py3-none-any.whl
Downloading/unpacking jinja2>=2.9.6 (from homeassistant)
  Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB): 126kB downloaded
Downloading/unpacking typing>=3,<4 (from homeassistant)
  Downloading typing-3.6.2-py3-none-any.whl
Downloading/unpacking astral==1.4 (from homeassistant)
  Downloading astral-1.4-py2.py3-none-any.whl
Downloading/unpacking certifi>=2017.4.17 (from homeassistant)
  Downloading certifi-2017.11.5-py2.py3-none-any.whl (330kB): 330kB downloaded
Downloading/unpacking aiohttp==2.3.5 (from homeassistant)
  Downloading aiohttp-2.3.5.tar.gz (846kB): 846kB downloaded
  Running setup.py (path:/tmp/pip-build-1xg0kr6a/aiohttp/setup.py) egg_info for package aiohttp
    /usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'python_requires'
      warnings.warn(msg)

    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files found matching 'aiohttp/_frozenlist.html'
    warning: no previously-included files found matching 'aiohttp/_frozenlist.*.so'
    warning: no previously-included files found matching 'aiohttp/_frozenlist.pyd'
    warning: no previously-included files found matching 'aiohttp/_frozenlist.*.pyd'
    warning: no previously-included files found matching 'aiohttp/_http_parser.html'
    warning: no previously-included files found matching 'aiohttp/_http_parser.*.so'
    warning: no previously-included files found matching 'aiohttp/_http_parser.pyd'
    warning: no previously-included files found matching 'aiohttp/_http_parser.*.pyd'
    warning: no previously-included files found matching 'aiohttp/_websocket.html'
    warning: no previously-included files found matching 'aiohttp/_websocket.*.so'
    warning: no previously-included files found matching 'aiohttp/_websocket.pyd'
    warning: no previously-included files found matching 'aiohttp/_websocket.*.pyd'
    no previously-included directories found matching 'docs/_build'
Downloading/unpacking yarl==0.15.0 (from homeassistant)
  Downloading yarl-0.15.0.tar.gz (135kB): 135kB downloaded
  Running setup.py (path:/tmp/pip-build-1xg0kr6a/yarl/setup.py) egg_info for package yarl

    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files matching '*.cache' found anywhere in distribution
    warning: no previously-included files found matching 'yarl/_quoting.html'
    warning: no previously-included files found matching 'yarl/_quoting.*.so'
    warning: no previously-included files found matching 'yarl/_quoting.pyd'
    warning: no previously-included files found matching 'yarl/_quoting.*.pyd'
    no previously-included directories found matching 'docs/_build'
Downloading/unpacking voluptuous==0.10.5 (from homeassistant)
  Downloading voluptuous-0.10.5.tar.gz (41kB): 41kB downloaded
  Running setup.py (path:/tmp/pip-build-1xg0kr6a/voluptuous/setup.py) egg_info for package voluptuous
    WARNING: Could not locate pandoc, using Markdown long_description.

Downloading/unpacking urllib3>=1.21.1,<1.23 (from requests==2.18.4->homeassistant)
  Downloading urllib3-1.22-py2.py3-none-any.whl (132kB): 132kB downloaded
Downloading/unpacking idna>=2.5,<2.7 (from requests==2.18.4->homeassistant)
  Downloading idna-2.6-py2.py3-none-any.whl (56kB): 56kB downloaded
Downloading/unpacking MarkupSafe>=0.23 (from jinja2>=2.9.6->homeassistant)
  Downloading MarkupSafe-1.0.tar.gz
  Running setup.py (path:/tmp/pip-build-1xg0kr6a/MarkupSafe/setup.py) egg_info for package MarkupSafe

Downloading/unpacking multidict>=3.0.0 (from aiohttp==2.3.5->homeassistant)
  Downloading multidict-3.3.2.tar.gz (129kB): 129kB downloaded
  Running setup.py (path:/tmp/pip-build-1xg0kr6a/multidict/setup.py) egg_info for package multidict
    /usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'python_requires'
      warnings.warn(msg)

    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/_multidict.*.so'
    warning: no previously-included files found matching 'multidict/_multidict.pyd'
    warning: no previously-included files found matching 'multidict/_multidict.*.pyd'
    no previously-included directories found matching 'docs/_build'
Installing collected packages: homeassistant, pytz, pyyaml, chardet, pip, requests, async-timeout, jinja2, typing, astral, certifi, aiohttp, yarl, voluptuous, urllib3, idna, MarkupSafe, multidict
  Running setup.py install for pyyaml
    checking if libyaml is compilable
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c build/temp.linux-armv7l-3.4/check_libyaml.c -o build/temp.linux-armv7l-3.4/check_libyaml.o
    build/temp.linux-armv7l-3.4/check_libyaml.c:2:18: fatal error: yaml.h: No such file or directory
     #include <yaml.h>
                      ^
    compilation terminated.

    libyaml is not found or a compiler error: forcing --without-libyaml
    (if libyaml is installed correctly, you may need to
     specify the option --include-dirs or uncomment and
     modify the parameter include_dirs in setup.cfg)

  Found existing installation: chardet 2.3.0
    Not uninstalling chardet at /usr/lib/python3/dist-packages, owned by OS
  Found existing installation: pip 1.5.6
    Not uninstalling pip at /usr/lib/python3/dist-packages, owned by OS
  Found existing installation: requests 2.4.3
    Not uninstalling requests at /usr/lib/python3/dist-packages, owned by OS
*** Error compiling '/tmp/pip-build-1xg0kr6a/jinja2/jinja2/asyncfilters.py'...
  File "/tmp/pip-build-1xg0kr6a/jinja2/jinja2/asyncfilters.py", line 7
    async def auto_to_seq(value):
            ^
SyntaxError: invalid syntax

*** Error compiling '/tmp/pip-build-1xg0kr6a/jinja2/jinja2/asyncsupport.py'...
  File "/tmp/pip-build-1xg0kr6a/jinja2/jinja2/asyncsupport.py", line 22
    async def concat_async(async_gen):
            ^
SyntaxError: invalid syntax

  Running setup.py install for aiohttp
    /usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'python_requires'
      warnings.warn(msg)

    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files found matching 'aiohttp/_frozenlist.html'
    warning: no previously-included files found matching 'aiohttp/_frozenlist.*.so'
    warning: no previously-included files found matching 'aiohttp/_frozenlist.pyd'
    warning: no previously-included files found matching 'aiohttp/_frozenlist.*.pyd'
    warning: no previously-included files found matching 'aiohttp/_http_parser.html'
    warning: no previously-included files found matching 'aiohttp/_http_parser.*.so'
    warning: no previously-included files found matching 'aiohttp/_http_parser.pyd'
    warning: no previously-included files found matching 'aiohttp/_http_parser.*.pyd'
    warning: no previously-included files found matching 'aiohttp/_websocket.html'
    warning: no previously-included files found matching 'aiohttp/_websocket.*.so'
    warning: no previously-included files found matching 'aiohttp/_websocket.pyd'
    warning: no previously-included files found matching 'aiohttp/_websocket.*.pyd'
    no previously-included directories found matching 'docs/_build'
    building 'aiohttp._websocket' extension
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c aiohttp/_websocket.c -o build/temp.linux-armv7l-3.4/aiohttp/_websocket.o
    arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/aiohttp/_websocket.o -o build/lib.linux-armv7l-3.4/aiohttp/_websocket.cpython-34m.so
    building 'aiohttp._http_parser' extension
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHTTP_PARSER_STRICT=0 -I/usr/include/python3.4m -c aiohttp/_http_parser.c -o build/temp.linux-armv7l-3.4/aiohttp/_http_parser.o
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHTTP_PARSER_STRICT=0 -I/usr/include/python3.4m -c vendor/http-parser/http_parser.c -o build/temp.linux-armv7l-3.4/vendor/http-parser/http_parser.o
    arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/aiohttp/_http_parser.o build/temp.linux-armv7l-3.4/vendor/http-parser/http_parser.o -o build/lib.linux-armv7l-3.4/aiohttp/_http_parser.cpython-34m.so
    building 'aiohttp._frozenlist' extension
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c aiohttp/_frozenlist.c -o build/temp.linux-armv7l-3.4/aiohttp/_frozenlist.o
    arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/aiohttp/_frozenlist.o -o build/lib.linux-armv7l-3.4/aiohttp/_frozenlist.cpython-34m.so
  Running setup.py install for yarl

    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files matching '*.cache' found anywhere in distribution
    warning: no previously-included files found matching 'yarl/_quoting.html'
    warning: no previously-included files found matching 'yarl/_quoting.*.so'
    warning: no previously-included files found matching 'yarl/_quoting.pyd'
    warning: no previously-included files found matching 'yarl/_quoting.*.pyd'
    no previously-included directories found matching 'docs/_build'
    building 'yarl._quoting' extension
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c yarl/_quoting.c -o build/temp.linux-armv7l-3.4/yarl/_quoting.o
    arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/yarl/_quoting.o -o build/lib.linux-armv7l-3.4/yarl/_quoting.cpython-34m.so
  Running setup.py install for voluptuous
    WARNING: Could not locate pandoc, using Markdown long_description.

  Found existing installation: urllib3 1.9.1
    Not uninstalling urllib3 at /usr/lib/python3/dist-packages, owned by OS
  Running setup.py install for MarkupSafe

    building 'markupsafe._speedups' extension
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c markupsafe/_speedups.c -o build/temp.linux-armv7l-3.4/markupsafe/_speedups.o
    arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/markupsafe/_speedups.o -o build/lib.linux-armv7l-3.4/markupsafe/_speedups.cpython-34m.so
  Running setup.py install for multidict
    /usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'python_requires'
      warnings.warn(msg)

    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/_multidict.*.so'
    warning: no previously-included files found matching 'multidict/_multidict.pyd'
    warning: no previously-included files found matching 'multidict/_multidict.*.pyd'
    no previously-included directories found matching 'docs/_build'
    building 'multidict._multidict' extension
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c multidict/_multidict.c -o build/temp.linux-armv7l-3.4/multidict/_multidict.o
    arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/multidict/_multidict.o -o build/lib.linux-armv7l-3.4/multidict/_multidict.cpython-34m.so
    building 'multidict._istr' extension
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c multidict/_istr.c -o build/temp.linux-armv7l-3.4/multidict/_istr.o
    arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/multidict/_istr.o -o build/lib.linux-armv7l-3.4/multidict/_istr.cpython-34m.so
Successfully installed homeassistant pytz pyyaml chardet pip requests async-timeout jinja2 typing astral certifi aiohttp yarl voluptuous urllib3 idna MarkupSafe multidict
Cleaning up...

ok.

2017-12-10: mmcblk0p1 - python - install requirements for installing Home Assistant:

tingo@bananapi:~$ sudo apt install python3-dev python3-pip
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  libexpat1-dev libpython3-dev libpython3.4 libpython3.4-dev python3-chardet
  python3-colorama python3-distlib python3-html5lib python3-pkg-resources
  python3-requests python3-setuptools python3-six python3-urllib3
  python3.4-dev
Suggested packages:
  python3-genshi python3-lxml python3-ndg-httpsclient python3-openssl
  python3-pyasn1
Recommended packages:
  python3-wheel
The following NEW packages will be installed:
  libexpat1-dev libpython3-dev libpython3.4 libpython3.4-dev python3-chardet
  python3-colorama python3-dev python3-distlib python3-html5lib python3-pip
  python3-pkg-resources python3-requests python3-setuptools python3-six
  python3-urllib3 python3.4-dev
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 41.1 MB of archives.
After this operation, 55.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
[..]
Setting up python3-pip (1.5.6-5) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...

ok.

2017-12-10: mmcblk0p1 - after a reboot, armbian 5.36 is in

tingo@kg-core1$ 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 5.36 user-built Debian GNU/Linux 8 (jessie) 4.13.16-sunxi  
System load:   0.58 0.35 0.14      Up time:       2 min       
Memory usage:  6 % of 998MB      IP:            10.1.161.21
CPU temp:      39°C              
Usage of /:    30% 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 ]

New to Armbian? Check the documentation first: https://docs.armbian.com
Last login: Mon Nov 20 21:49:22 2017 from kg-core1.kg4.no

kernel

tingo@bananapi:~$ uname -a
Linux bananapi 4.13.16-sunxi #20 SMP Fri Nov 24 19:50:07 CET 2017 armv7l GNU/Linux

lsb_release output

tingo@bananapi:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 8.10 (jessie)
Release:    8.10
Codename:    jessie

ok.

2017-12-10: mmcblk0p1 - apt - upgrade list upgradable

tingo@bananapi:~$ sudo apt list --upgradable
Listing... Done
armbian-firmware/jessie 5.35 armhf [upgradable from: 5.31]
armbian-tools-jessie/jessie 5.35 armhf [upgradable from: 5.31]
base-files/oldstable 8+deb8u10 armhf [upgradable from: 8+deb8u9]
hostapd/jessie 2:2.6-4~armbian5.35+1 armhf [upgradable from: 1:2.5~armbian5.31+1]
libdb5.3/oldstable 5.3.28-9+deb8u1 armhf [upgradable from: 5.3.28-9]
libgssapi-krb5-2/oldstable 1.12.1+dfsg-19+deb8u4 armhf [upgradable from: 1.12.1+dfsg-19+deb8u2]
libicu52/oldstable 52.1-8+deb8u6 armhf [upgradable from: 52.1-8+deb8u5]
libk5crypto3/oldstable 1.12.1+dfsg-19+deb8u4 armhf [upgradable from: 1.12.1+dfsg-19+deb8u2]
libkrb5-3/oldstable 1.12.1+dfsg-19+deb8u4 armhf [upgradable from: 1.12.1+dfsg-19+deb8u2]
libkrb5support0/oldstable 1.12.1+dfsg-19+deb8u4 armhf [upgradable from: 1.12.1+dfsg-19+deb8u2]
libncurses5/oldstable 5.9+20140913-1+deb8u2 armhf [upgradable from: 5.9+20140913-1+b1]
libncursesw5/oldstable 5.9+20140913-1+deb8u2 armhf [upgradable from: 5.9+20140913-1+b1]
libtinfo5/oldstable 5.9+20140913-1+deb8u2 armhf [upgradable from: 5.9+20140913-1+b1]
libx11-6/oldstable 2:1.6.2-3+deb8u1 armhf [upgradable from: 2:1.6.2-3]
libx11-data/oldstable 2:1.6.2-3+deb8u1 all [upgradable from: 2:1.6.2-3]
linux-dtb-next-sunxi/jessie 5.35 armhf [upgradable from: 5.32]
linux-headers-next-sunxi/jessie 5.35 armhf [upgradable from: 5.32]
linux-image-next-sunxi/jessie 5.35 armhf [upgradable from: 5.32]
linux-jessie-root-next-bananapi/jessie 5.36 armhf [upgradable from: 5.31]
linux-libc-dev/oldstable 3.16.51-2 armhf [upgradable from: 3.16.43-2+deb8u5]
linux-u-boot-bananapi-next/jessie 5.35 armhf [upgradable from: 5.31]
ncurses-base/oldstable 5.9+20140913-1+deb8u2 all [upgradable from: 5.9+20140913-1]
ncurses-bin/oldstable 5.9+20140913-1+deb8u2 armhf [upgradable from: 5.9+20140913-1+b1]
ncurses-term/oldstable 5.9+20140913-1+deb8u2 all [upgradable from: 5.9+20140913-1]
openssh-client/oldstable 1:6.7p1-5+deb8u4 armhf [upgradable from: 1:6.7p1-5+deb8u3]
openssh-server/oldstable 1:6.7p1-5+deb8u4 armhf [upgradable from: 1:6.7p1-5+deb8u3]
openssh-sftp-server/oldstable 1:6.7p1-5+deb8u4 armhf [upgradable from: 1:6.7p1-5+deb8u3]
sudo/oldstable 1.8.10p3-1+deb8u5 armhf [upgradable from: 1.8.10p3-1+deb8u4]
sunxi-tools/jessie 1.4.2-1~armbian5.35+1 armhf [upgradable from: 1.4.2-1~armbian5.31+1]
tzdata/oldstable,oldstable-updates 2017c-0+deb8u1 all [upgradable from: 2017b-0+deb8u1]

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:
  armbian-firmware armbian-tools-jessie base-files hostapd libdb5.3
  libgssapi-krb5-2 libicu52 libk5crypto3 libkrb5-3 libkrb5support0 libncurses5
  libncursesw5 libtinfo5 libx11-6 libx11-data linux-dtb-next-sunxi
  linux-headers-next-sunxi linux-image-next-sunxi
  linux-jessie-root-next-bananapi linux-libc-dev linux-u-boot-bananapi-next
  ncurses-base ncurses-bin ncurses-term openssh-client openssh-server
  openssh-sftp-server sudo sunxi-tools tzdata
30 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/45.9 MB of archives.
After this operation, 15.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
[..]
Processing triggers for libc-bin (2.19-18+deb8u10) ...
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

only a reboot remains.

2017-11-21: mmcblk0p1 - sqlite3 - bolt_pages table has the same trouble, with the image field.

sqlite> .schema bolt_pages
CREATE TABLE bolt_pages (id INTEGER NOT NULL, slug VARCHAR(128) NOT NULL COLLATE BINARY, datecreated DATETIME NOT NULL, datechanged DATETIME NOT NULL, datepublish DATETIME DEFAULT NULL, datedepublish DATETIME DEFAULT NULL, username VARCHAR(32) DEFAULT '' COLLATE BINARY, ownerid INTEGER DEFAULT NULL, status VARCHAR(32) NOT NULL COLLATE BINARY, image CLOB DEFAULT '' NOT NULL COLLATE BINARY, templatefields CLOB DEFAULT '' NOT NULL COLLATE BINARY, title VARCHAR(256) DEFAULT NULL, teaser CLOB DEFAULT NULL, body CLOB DEFAULT NULL, template VARCHAR(256) DEFAULT NULL, PRIMARY KEY(id));
CREATE INDEX IDX_31AF1BC87B00651C ON bolt_pages (status);
CREATE INDEX IDX_31AF1BC8B7805520 ON bolt_pages (datedepublish);
CREATE INDEX IDX_31AF1BC8A5131421 ON bolt_pages (datepublish);
CREATE INDEX IDX_31AF1BC8BE74E59A ON bolt_pages (datechanged);
CREATE INDEX IDX_31AF1BC8AFBA6FD8 ON bolt_pages (datecreated);
CREATE INDEX IDX_31AF1BC8989D9B62 ON bolt_pages (slug);

looks the same, try the same fix. display

sqlite> select * from sqlite_master where type='table' and name='bolt_pages';
table|bolt_pages|bolt_pages|37|CREATE TABLE bolt_pages (id INTEGER NOT NULL, slug VARCHAR(128) NOT NULL COLLATE BINARY,
datecreated DATETIME NOT NULL, datechanged DATETIME NOT NULL, datepublish DATETIME DEFAULT NULL,
datedepublish DATETIME DEFAULT NULL, username VARCHAR(32) DEFAULT '' COLLATE BINARY, ownerid INTEGER DEFAULT NULL,
status VARCHAR(32) NOT NULL COLLATE BINARY, image CLOB DEFAULT '' NOT NULL COLLATE BINARY,
templatefields CLOB DEFAULT '' NOT NULL COLLATE BINARY, title VARCHAR(256) DEFAULT NULL,
teaser CLOB DEFAULT NULL, body CLOB DEFAULT NULL, template VARCHAR(256) DEFAULT NULL, PRIMARY KEY(id))

fix

sqlite> PRAGMA schema_version;
173
sqlite> PRAGMA writable_schema=ON;
sqlite> update sqlite_master set sql="CREATE TABLE bolt_pages (id INTEGER NOT NULL, slug VARCHAR(128) NOT NULL COLLATE BINARY, datecreated DATETIME NOT NULL, datechanged DATETIME NOT NULL, datepublish DATETIME DEFAULT NULL, datedepublish DATETIME DEFAULT NULL, username VARCHAR(32) DEFAULT '' COLLATE BINARY, ownerid INTEGER DEFAULT NULL, status VARCHAR(32) NOT NULL COLLATE BINARY, image CLOB DEFAULT '' COLLATE BINARY, templatefields CLOB DEFAULT '' NOT NULL COLLATE BINARY, title VARCHAR(256) DEFAULT NULL, teaser CLOB DEFAULT NULL, body CLOB DEFAULT NULL, template VARCHAR(256) DEFAULT NULL, PRIMARY KEY(id))" where type='table' and name='bolt_pages';
sqlite> PRAGMA schema_version=174;
sqlite> PRAGMA writable_schema=OFF;
sqlite> PRAGMA integrity_check;
ok
sqlite> .quit

and copy bc.db back onto bolt.db. Yes- now I can save pages too.

2017-11-20: mmcblk0p1 - sqlite3 - how does the bolt_entries table look like?

sqlite> .schema bolt_entries
CREATE TABLE bolt_entries (id INTEGER NOT NULL, slug VARCHAR(128) NOT NULL COLLATE BINARY, datecreated DATETIME NOT NULL, datechanged DATETIME NOT NULL, datepublish DATETIME DEFAULT NULL, datedepublish DATETIME DEFAULT NULL, username VARCHAR(32) DEFAULT '' COLLATE BINARY, ownerid INTEGER DEFAULT NULL, status VARCHAR(32) NOT NULL COLLATE BINARY, image CLOB DEFAULT '' NOT NULL COLLATE BINARY, video CLOB DEFAULT '' NOT NULL COLLATE BINARY, templatefields CLOB DEFAULT '' NOT NULL COLLATE BINARY, title VARCHAR(256) DEFAULT NULL, teaser CLOB DEFAULT NULL, body CLOB DEFAULT NULL, PRIMARY KEY(id));
CREATE INDEX IDX_2696ADF07B00651C ON bolt_entries (status);
CREATE INDEX IDX_2696ADF0B7805520 ON bolt_entries (datedepublish);
CREATE INDEX IDX_2696ADF0A5131421 ON bolt_entries (datepublish);
CREATE INDEX IDX_2696ADF0BE74E59A ON bolt_entries (datechanged);
CREATE INDEX IDX_2696ADF0AFBA6FD8 ON bolt_entries (datecreated);
CREATE INDEX IDX_2696ADF0989D9B62 ON bolt_entries (slug);

ok, that shows the problem. Now, fix it with sqlite3

sqlite> PRAGMA schema_version;
171

sqlite>  PRAGMA writable_schema=ON;

sqlite> update sqlite_master set sql="CREATE TABLE bolt_entries (id INTEGER NOT NULL, slug VARCHAR(128) NOT NULL COLLATE BINARY, datecreated DATETIME NOT NULL, datechanged DATETIME NOT NULL, datepublish DATETIME DEFAULT NULL, datedepublish DATETIME DEFAULT NULL, username VARCHAR(32) DEFAULT '' COLLATE BINARY, ownerid INTEGER DEFAULT NULL, status VARCHAR(32) NOT NULL COLLATE BINARY, image CLOB DEFAULT '' COLLATE BINARY, video CLOB DEFAULT '' NOT NULL COLLATE BINARY, templatefields CLOB DEFAULT '' NOT NULL COLLATE BINARY, title VARCHAR(256) DEFAULT NULL, teaser CLOB DEFAULT NULL, body CLOB DEFAULT NULL, PRIMARY KEY(id))" where type='table' and name='bolt_entries';

sqlite> PRAGMA schema_version=172;

sqlite>  PRAGMA writable_schema=OFF;

sqlite> PRAGMA integrity_check;
ok

as expected, this moved the problem to the next NOT NULL field, which is video. Fix that too:

sqlite> PRAGMA schema_version;
172
sqlite> PRAGMA writable_schema=ON;
sqlite> update sqlite_master set sql="CREATE TABLE bolt_entries (id INTEGER NOT NULL, slug VARCHAR(128) NOT NULL COLLATE BINARY, datecreated DATETIME NOT NULL, datechanged DATETIME NOT NULL, datepublish DATETIME DEFAULT NULL, datedepublish DATETIME DEFAULT NULL, username VARCHAR(32) DEFAULT '' COLLATE BINARY, ownerid INTEGER DEFAULT NULL, status VARCHAR(32) NOT NULL COLLATE BINARY, image CLOB DEFAULT '' COLLATE BINARY, video CLOB DEFAULT '' COLLATE BINARY, templatefields CLOB DEFAULT '' NOT NULL COLLATE BINARY, title VARCHAR(256) DEFAULT NULL, teaser CLOB DEFAULT NULL, body CLOB DEFAULT NULL, PRIMARY KEY(id))" where type='table' and name='bolt_entries';
sqlite> PRAGMA schema_version=173;
sqlite> PRAGMA writable_schema=OFF;
sqlite> PRAGMA integrity_check;
ok
sqlite> .quit

(I then copied bc.db back onto bolt.db (keeping owner and permissions, and now I can save entries).

2017-11-20: mmcblk0p1 - try to fix the bolt database with sqlite3

root@bananapi:/var/www/sites/logb# cd app/database
root@bananapi:/var/www/sites/logb/app/database# file bolt.db
bolt.db: SQLite 3.x database

work on a copy

root@bananapi:/var/www/sites/logb/app/database# cp bolt.db bc.db
root@bananapi:/var/www/sites/logb/app/database# file bc.db
bc.db: SQLite 3.x database

start sqlite3

root@bananapi:/var/www/sites/logb/app/database# sqlite3 bc.db
SQLite version 3.8.7.1 2014-10-29 13:59:56
Enter ".help" for usage hints.
sqlite>
try '.help'
sqlite> .help
.backup ?DB? FILE      Backup DB (default "main") to FILE
.bail on|off           Stop after hitting an error.  Default OFF
.clone NEWDB           Clone data into NEWDB from the existing database
.databases             List names and files of attached databases
.dump ?TABLE? ...      Dump the database in an SQL text format
                         If TABLE specified, only dump tables matching
                         LIKE pattern TABLE.
.echo on|off           Turn command echo on or off
.eqp on|off            Enable or disable automatic EXPLAIN QUERY PLAN
.exit                  Exit this program
.explain ?on|off?      Turn output mode suitable for EXPLAIN on or off.
                         With no args, it turns EXPLAIN on.
.fullschema            Show schema and the content of sqlite_stat tables
.headers on|off        Turn display of headers on or off
.help                  Show this message
.import FILE TABLE     Import data from FILE into TABLE
.indices ?TABLE?       Show names of all indices
                         If TABLE specified, only show indices for tables
                         matching LIKE pattern TABLE.
.load FILE ?ENTRY?     Load an extension library
.log FILE|off          Turn logging on or off.  FILE can be stderr/stdout
.mode MODE ?TABLE?     Set output mode where MODE is one of:
                         csv      Comma-separated values
                         column   Left-aligned columns.  (See .width)
                         html     HTML <table> code
                         insert   SQL insert statements for TABLE
                         line     One value per line
                         list     Values delimited by .separator string
                         tabs     Tab-separated values
                         tcl      TCL list elements
.nullvalue STRING      Use STRING in place of NULL values
.once FILENAME         Output for the next SQL command only to FILENAME
.open ?FILENAME?       Close existing database and reopen FILENAME
.output ?FILENAME?     Send output to FILENAME or stdout
.print STRING...       Print literal STRING
.prompt MAIN CONTINUE  Replace the standard prompts
.quit                  Exit this program
.read FILENAME         Execute SQL in FILENAME
.restore ?DB? FILE     Restore content of DB (default "main") from FILE
.save FILE             Write in-memory database into FILE
.schema ?TABLE?        Show the CREATE statements
                         If TABLE specified, only show tables matching
                         LIKE pattern TABLE.
.separator STRING ?NL? Change separator used by output mode and .import
                         NL is the end-of-line mark for CSV
.shell CMD ARGS...     Run CMD ARGS... in a system shell
.show                  Show the current values for various settings
.stats on|off          Turn stats on or off
.system CMD ARGS...    Run CMD ARGS... in a system shell
.tables ?TABLE?        List names of tables
                         If TABLE specified, only list tables matching
                         LIKE pattern TABLE.
.timeout MS            Try opening locked tables for MS milliseconds
.timer on|off          Turn SQL timer on or off
.trace FILE|off        Output each SQL statement as it is run
.vfsname ?AUX?         Print the name of the VFS stack
.width NUM1 NUM2 ...   Set column widths for "column" mode
                         Negative values right-justify
sqlite>

ok.

2017-11-20: mmcblk0p1 - apt - install file, sqlite

tingo@bananapi:~$ sudo apt install file
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
  file
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 60.0 kB of archives.
After this operation, 72.7 kB of additional disk space will be used.
Get:1 http://httpredir.debian.org/debian/ jessie/main file armhf 1:5.22+15-2+deb8u3 [60.0 kB]
Fetched 60.0 kB in 0s (88.8 kB/s)
Selecting previously unselected package file.
(Reading database ... 57077 files and directories currently installed.)
Preparing to unpack .../file_1%3a5.22+15-2+deb8u3_armhf.deb ...
Unpacking file (1:5.22+15-2+deb8u3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up file (1:5.22+15-2+deb8u3) ...
tingo@bananapi:~$ sudo apt install sqlite3
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Suggested packages:
  sqlite3-doc
The following NEW packages will be installed:
  sqlite3
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 100 kB of archives.
After this operation, 127 kB of additional disk space will be used.
Get:1 http://httpredir.debian.org/debian/ jessie/main sqlite3 armhf 3.8.7.1-1+deb8u2 [100 kB]
Fetched 100 kB in 0s (140 kB/s)  
Selecting previously unselected package sqlite3.
(Reading database ... 57088 files and directories currently installed.)
Preparing to unpack .../sqlite3_3.8.7.1-1+deb8u2_armhf.deb ...
Unpacking sqlite3 (3.8.7.1-1+deb8u2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up sqlite3 (3.8.7.1-1+deb8u2) ...

ok.

2017-11-20: mmcblk0p1 - bolt - ok, something is wrong. I got this when I tried to save an entry:

Uncaught Exception: NotNullConstraintViolationException
An exception occurred while executing 'INSERT INTO bolt_entries (slug, datecreated, datechanged, datepublish, datedepublish, ownerid, status, templatefields, title, teaser, body, image, video) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["bolt-3-4-1", "2017-11-20 22:27:00", "2017-11-20 22:27:00", "2017-11-20 22:24:15", null, "1", "published", "[]", "Bolt 3.4.1", "<p>I upgraded to Bolt to version 3.41, which is currently the latest.<\/p>\r\n", "<p>I followed the <a href=\"https:\/\/docs.bolt.cm\/3.4\/upgrading\/moving-22-30-basic\">Starting fresh (basic)<\/a> guide. I also changed theme from base-2014 to <strong>base-2016<\/strong>. Nothing more.<\/p>\r\n", null, null]:

SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: bolt_entries.image

crap. Looks like issue 6994, but that one is closed. This thread suggests that I should change the image field from 'not null' to 'allow null'.

2017-11-20: mmcblk0p1 - bolt - configuration notices:

The mail configuration parameters have not been set up. This may interfere with password resets, and extension functionality. 
Please set up the mailoptions in config.yml.
Your configuration settings for thumbnails/notfound_image or thumbnails/error_image contain a value that needs to be updated.
Update the value with a namespace, for example: bolt_assets://img/default_notfound.png.

ok.

2017-11-20: mmcblk0p1 - bolt - copy configuration from old site

root@bananapi:/var/www/sites/logb# cp -v ../logb-2.2/app/config/config.yml app/config/
‘../logb-2.2/app/config/config.yml’ -> ‘app/config/config.yml’
root@bananapi:/var/www/sites/logb# cp -v ../logb-2.2/app/config/contenttypes.yml app/config/
‘../logb-2.2/app/config/contenttypes.yml’ -> ‘app/config/contenttypes.yml’
root@bananapi:/var/www/sites/logb# cp -v ../logb-2.2/app/config/menu.yml app/config/
‘../logb-2.2/app/config/menu.yml’ -> ‘app/config/menu.yml’
root@bananapi:/var/www/sites/logb# cp -v ../logb-2.2/app/config/permissions.yml app/config/
‘../logb-2.2/app/config/permissions.yml’ -> ‘app/config/permissions.yml’
root@bananapi:/var/www/sites/logb# cp -v ../logb-2.2/app/config/taxonomy.yml app/config/
‘../logb-2.2/app/config/taxonomy.yml’ -> ‘app/config/taxonomy.yml’

extensions is empty, copy database

root@bananapi:/var/www/sites/logb# cp -v ../logb-2.2/app/database/*db app/database/
‘../logb-2.2/app/database/bolt.db’ -> ‘app/database/bolt.db’

theme used is base-2014

root@bananapi:/var/www/sites/logb# cp -Rv ../logb-2.2/theme/base-2014 public/theme/
‘../logb-2.2/theme/base-2014’ -> ‘public/theme/base-2014’
‘../logb-2.2/theme/base-2014/theme.yml’ -> ‘public/theme/base-2014/theme.yml’
‘../logb-2.2/theme/base-2014/_recordfooter.twig’ -> ‘public/theme/base-2014/_recordfooter.twig’
‘../logb-2.2/theme/base-2014/record.twig’ -> ‘public/theme/base-2014/record.twig’
‘../logb-2.2/theme/base-2014/_sub_menu.twig’ -> ‘public/theme/base-2014/_sub_menu.twig’
‘../logb-2.2/theme/base-2014/entry.twig’ -> ‘public/theme/base-2014/entry.twig’
‘../logb-2.2/theme/base-2014/_sub_searchbox.twig’ -> ‘public/theme/base-2014/_sub_searchbox.twig’
‘../logb-2.2/theme/base-2014/extrafields.twig’ -> ‘public/theme/base-2014/extrafields.twig’
‘../logb-2.2/theme/base-2014/_footer.twig’ -> ‘public/theme/base-2014/_footer.twig’
‘../logb-2.2/theme/base-2014/_header.twig’ -> ‘public/theme/base-2014/_header.twig’
‘../logb-2.2/theme/base-2014/LICENSE’ -> ‘public/theme/base-2014/LICENSE’
‘../logb-2.2/theme/base-2014/scss’ -> ‘public/theme/base-2014/scss’
‘../logb-2.2/theme/base-2014/scss/_settings.scss’ -> ‘public/theme/base-2014/scss/_settings.scss’
‘../logb-2.2/theme/base-2014/scss/foundation.scss’ -> ‘public/theme/base-2014/scss/foundation.scss’
‘../logb-2.2/theme/base-2014/css’ -> ‘public/theme/base-2014/css’
‘../logb-2.2/theme/base-2014/css/app.css’ -> ‘public/theme/base-2014/css/app.css’
‘../logb-2.2/theme/base-2014/css/magnific-popup.css’ -> ‘public/theme/base-2014/css/magnific-popup.css’
‘../logb-2.2/theme/base-2014/css/foundation.css’ -> ‘public/theme/base-2014/css/foundation.css’
‘../logb-2.2/theme/base-2014/images’ -> ‘public/theme/base-2014/images’
‘../logb-2.2/theme/base-2014/images/agriculture-field-grain-1585.jpg’ -> ‘public/theme/base-2014/images/agriculture-field-grain-1585.jpg’
‘../logb-2.2/theme/base-2014/images/beach-dune-field-1710.jpg’ -> ‘public/theme/base-2014/images/beach-dune-field-1710.jpg’
‘../logb-2.2/theme/base-2014/images/dark-clouds-grass-landscape-405.jpg’ -> ‘public/theme/base-2014/images/dark-clouds-grass-landscape-405.jpg’
‘../logb-2.2/theme/base-2014/images/boat-lake-landing-stage-2535.jpg’ -> ‘public/theme/base-2014/images/boat-lake-landing-stage-2535.jpg’
‘../logb-2.2/theme/base-2014/images/favicon-bolt.ico’ -> ‘public/theme/base-2014/images/favicon-bolt.ico’
‘../logb-2.2/theme/base-2014/images/forest-grass-lawn-1826.jpg’ -> ‘public/theme/base-2014/images/forest-grass-lawn-1826.jpg’
‘../logb-2.2/theme/base-2014/images/daisies-flowers-grass-623.jpg’ -> ‘public/theme/base-2014/images/daisies-flowers-grass-623.jpg’
‘../logb-2.2/theme/base-2014/listing.twig’ -> ‘public/theme/base-2014/listing.twig’
‘../logb-2.2/theme/base-2014/config.yml’ -> ‘public/theme/base-2014/config.yml’
‘../logb-2.2/theme/base-2014/javascripts’ -> ‘public/theme/base-2014/javascripts’
‘../logb-2.2/theme/base-2014/javascripts/jquery.magnific-popup.min.js’ -> ‘public/theme/base-2014/javascripts/jquery.magnific-popup.min.js’
‘../logb-2.2/theme/base-2014/javascripts/jquery-2.2.3.min.js’ -> ‘public/theme/base-2014/javascripts/jquery-2.2.3.min.js’
‘../logb-2.2/theme/base-2014/javascripts/modernizr.js’ -> ‘public/theme/base-2014/javascripts/modernizr.js’
‘../logb-2.2/theme/base-2014/javascripts/foundation.min.js’ -> ‘public/theme/base-2014/javascripts/foundation.min.js’
‘../logb-2.2/theme/base-2014/javascripts/jquery-2.2.1.min.js’ -> ‘public/theme/base-2014/javascripts/jquery-2.2.1.min.js’
‘../logb-2.2/theme/base-2014/javascripts/jquery-2.1.0.min.js’ -> ‘public/theme/base-2014/javascripts/jquery-2.1.0.min.js’
‘../logb-2.2/theme/base-2014/javascripts/app.js’ -> ‘public/theme/base-2014/javascripts/app.js’
‘../logb-2.2/theme/base-2014/README.md’ -> ‘public/theme/base-2014/README.md’
‘../logb-2.2/theme/base-2014/_aside.twig’ -> ‘public/theme/base-2014/_aside.twig’
‘../logb-2.2/theme/base-2014/index.twig’ -> ‘public/theme/base-2014/index.twig’

clear cache

root@bananapi:/var/www/sites/logb# php app/nut cache:clear

Flushing Bolt's cache
=====================


 [OK] Cache cleared!                                                           

update database

root@bananapi:/var/www/sites/logb# php app/nut database:update

Database modifications required
===============================

 Would you like continue with the update (yes/no) [yes]:
 > yes

 ! [NOTE] Modifications made to the database                                   

 * Updated `bolt_authtoken` table to match current schema. missing column `user_id`, missing index on `user_id`, invalid column `username`, invalid column `ip`, invalid column `useragent`, removed index `idx_740ac52ff85e0677`, missing column `user_id`, missing index on `user_id`, invalid column `username`, invalid column `ip`, invalid column `useragent`, removed index `idx_740ac52ff85e0677`
 * Updated `bolt_entries` table to match current schema. invalid column `title`, invalid column `teaser`, invalid column `body`, invalid column `title`, invalid column `teaser`, invalid column `body`
 * Created table `bolt_field_value`.
 * Updated `bolt_log_change` table to match current schema. invalid column `title`, invalid column `comment`, invalid column `title`, invalid column `comment`
 * Updated `bolt_log_system` table to match current schema. invalid column `ip`, invalid column `ip`
 * Updated `bolt_pages` table to match current schema. invalid column `title`, invalid column `teaser`, invalid column `body`, invalid column `template`, invalid column `title`, invalid column `teaser`, invalid column `body`, invalid column `template`
 * Updated `bolt_relations` table to match current schema. missing index on `from_contenttype, from_id`, missing index on `to_contenttype, to_id`, removed index `idx_4c524bc330354a65`, removed index `idx_4c524bc35acd2645`, removed index `idx_4c524bc378ced90b`, removed index `idx_4c524bc3ea112943`, missing index on `from_contenttype, from_id`, missing index on `to_contenttype, to_id`, removed index `idx_4c524bc330354a65`, removed index `idx_4c524bc35acd2645`, removed index `idx_4c524bc378ced90b`, removed index `idx_4c524bc3ea112943`
 * Updated `bolt_showcases` table to match current schema. invalid column `title`, invalid column `html`, invalid column `textarea`, invalid column `markdown`, invalid column `file`, invalid column `template`, invalid column `selectfield`, invalid column `selectentry`, invalid column `title`, invalid column `html`, invalid column `textarea`, invalid column `markdown`, invalid column `file`, invalid column `template`, invalid column `selectfield`, invalid column `selectentry`
 * Updated `bolt_taxonomy` table to match current schema. missing index on `slug`, invalid column `name`, missing index on `slug`, invalid column `name`
 * Updated `bolt_users` table to match current schema. invalid column `lastip`, invalid column `stack`, invalid column `enabled`, invalid column `shadowpassword`, invalid column `shadowtoken`, invalid column `roles`, invalid column `lastip`, invalid column `stack`, invalid column `enabled`, invalid column `shadowpassword`, invalid column `shadowtoken`, invalid column `roles`


 [OK] Your database is now up to date.                                         

after all this, does Bolt still work? I had to fix cache permissions, but the - yes, Bolt works.

2017-11-20: mmcblk0p1 - php - fix timezone in php.ini

root@bananapi:/var/www/sites/logb# grep date.timezone /etc/php5/cli/php.ini /etc/php5/fpm/php.ini
/etc/php5/cli/php.ini:; http://php.net/date.timezone
/etc/php5/cli/php.ini:;date.timezone =
/etc/php5/cli/php.ini:date.timezone = Europe/Oslo
/etc/php5/fpm/php.ini:; http://php.net/date.timezone
/etc/php5/fpm/php.ini:;date.timezone =
/etc/php5/fpm/php.ini:date.timezone = Europe/Oslo

and restart php5-fpm.service

root@bananapi:/var/www/sites/logb# systemctl restart php5-fpm.service

2017-11-20: mmcblk0p1 - bolt - install Bolt 3.4 fetch

tingo@bananapi:~/dl$ curl -O https://bolt.cm/distribution/archive/3.4/bolt-v3.4.1.tar.gz

extract (as root)

root@bananapi:/var/www/sites/logb# tar zxf /home/tingo/dl/bolt-v3.4.1.tar.gz --strip-components=1

install (as root)

root@bananapi:/var/www/sites/logb# php app/nut init

 Welcome to Bolt! - version 3.4.1.

ok. Next, I change web server setup so public in logb is webroot instead of just logb before

root@bananapi:/var/www/sites/logb# grep root /etc/nginx/sites-enabled/localhost
    # Site root
    root                          /var/www/sites/logb;

after

root@bananapi:/var/www/sites/logb# grep root /etc/nginx/sites-enabled/localhost
    # Site root
    root                          /var/www/sites/logb/public;

and restart nginx

root@bananapi:/var/www/sites/logb# systemctl restart nginx.service

ok. Oops, file system permissions was not ok, fix it (quick and dirty)

root@bananapi:/var/www/sites/logb# chmod -R 777 app/cache/ app/config/ app/database/ extensions/
root@bananapi:/var/www/sites/logb# chmod -R 777 public/thumbs/ public/extensions/ public/files/ public/theme/

yes, now I get the Bolt page at least. error messages

Failed System and/or PHP requirements:
date.timezone setting must be set
Set the "date.timezone" setting in php.ini* (like Europe/Paris).

I finished Bolt setup by creating a user - ok.

2017-11-20: mmcblk0p1 - bolt - prepare for upgrade. I rename the old directory instead of creating a backup:

root@bananapi:/var/www/sites# mv logb logb-2.2

create a new directory for the Bolt 3.4 install

root@bananapi:/var/www/sites# mkdir logb
root@bananapi:/var/www/sites# chown www-data:www-data logb

ok.

2017-11-19: mmcblk0p1 - nginx - I linked the site to enabled

root@bananapi:~# ll /etc/nginx/sites-enabled/
total 8
drwxr-xr-x 2 root root 4096 Nov 20 00:00 ./
drwxr-xr-x 7 root root 4096 Nov 19 21:39 ../
lrwxrwxrwx 1 root root   36 Nov 20 00:00 localhost -> /etc/nginx/sites-available/localhost

and restarted nginx

root@bananapi:~# systemctl restart nginx.service
but got an error on the web page
SQLite was selected as the database type, but the driver does not exist or is not loaded. Please install the pdo_sqlite driver.

check

root@bananapi:~# sudo apt list php5-sqlite
Listing... Done
php5-sqlite/oldstable,oldstable 5.6.30+dfsg-0+deb8u1 armhf

not installed, fix that

root@bananapi:~# sudo apt install php5-sqlite
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
  php5-sqlite
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 20.4 kB of archives.
After this operation, 55.3 kB of additional disk space will be used.
Get:1 http://httpredir.debian.org/debian/ jessie/main php5-sqlite armhf 5.6.30+dfsg-0+deb8u1 [20.4 kB]
Fetched 20.4 kB in 0s (28.2 kB/s)     
Selecting previously unselected package php5-sqlite.
(Reading database ... 57068 files and directories currently installed.)
Preparing to unpack .../php5-sqlite_5.6.30+dfsg-0+deb8u1_armhf.deb ...
Unpacking php5-sqlite (5.6.30+dfsg-0+deb8u1) ...
Processing triggers for php5-fpm (5.6.30+dfsg-0+deb8u1) ...
Setting up php5-sqlite (5.6.30+dfsg-0+deb8u1) ...

Creating config file /etc/php5/mods-available/sqlite3.ini with new version
php5_invoke: Enable module sqlite3 for cli SAPI
php5_invoke: Enable module sqlite3 for fpm SAPI

Creating config file /etc/php5/mods-available/pdo_sqlite.ini with new version
php5_invoke: Enable module pdo_sqlite for cli SAPI
php5_invoke: Enable module pdo_sqlite for fpm SAPI
Processing triggers for php5-fpm (5.6.30+dfsg-0+deb8u1) ...

restart nginx again

root@bananapi:~# systemctl restart nginx.service

and check - it works, bolt is now installed.

2017-11-19: mmcblk0p1 - nginx - bolt I transfer files from the old bolt sites (via scp)

root@bananapi:/var/www/sites/logb# scp -r tingo@bpi:/usr/local/www/logb/* .
[..]

afterwards, fix permissions and ownership

root@bananapi:/var/www/sites/logb# chown www-data:www-data .
root@bananapi:/var/www/sites/logb# chmod -R 777 app/cache/ app/config/ app/database/ extensions/
root@bananapi:/var/www/sites/logb# chmod -R 777 public/thumbs/ public/extensions/ public/files/ public/theme/
chmod: cannot access ‘public/thumbs/’: No such file or directory
chmod: cannot access ‘public/extensions/’: No such file or directory
chmod: cannot access ‘public/files/’: No such file or directory
chmod: cannot access ‘public/theme/’: No such file or directory

ok, the 'public' directory doesn't exist, that's probably ok.

2017-11-19: mmcblk0p1 - nginx - create a site directory for Bolt

root@bananapi:/etc/nginx# cd /var/www
root@bananapi:/var/www# mkdir -p sites/logb

ok.

2017-11-19: mmcblk0p1 - nginx - add configuration files for a bolt log nginx config files are here

root@bananapi:/etc/nginx# pwd
/etc/nginx

site 'localhost'

root@bananapi:/etc/nginx# more sites-available/localhost
server {
    server_name                   localhost;

    # Logging
    access_log                    /var/log/nginx/localhost.access.log;
    error_log                     /var/log/nginx/localhost.error.log;

    # Site root
    root                          /var/www/sites/logb;
    index                         index.php;

    # Bolt specific
    include                       global/bolt.conf;

    # PHP FPM
    include                       global/php-fpm.conf;

    # Restrictions
    include                       global/restrictions.conf;
}

create a directory for global files

root@bananapi:/etc/nginx# mkdir global

bolt.conf

root@bananapi:/etc/nginx# more global/bolt.conf
# Default prefix match fallback, as all URIs begin with /
location / {
    try_files                     $uri $uri/ /index.php?$query_string;
}

# Bolt dashboard and backend access
#
# We use two location blocks here, the first is an exact match to the dashboard
# the next is a strict forward match for URIs under the dashboard. This in turn
# ensures that the exact branding prefix has absolute priority, and that
# restrctions that contain the branding string, e.g. "bolt.db", still apply.
#
# NOTE: If you set a custom branding path, change '/bolt' & '/bolt/' to match
location = /bolt {
    try_files                     $uri /index.php?$query_string;
}
location ^~ /bolt/ {
    try_files                     $uri /index.php?$query_string;
}

# Generated thumbnail images
location ^~ /thumbs {
    try_files                     $uri /index.php; #?$query_string;

    access_log                    off;
    log_not_found                 off;
    expires                       max;
    add_header                    Pragma public;
    add_header                    Cache-Control "public, mustrevalidate, proxy-revalidate";
    add_header                    X-Koala-Status sleeping;
}

# Don't log, and do cache, asset files
location ~* ^.+\.(?:atom|bmp|bz2|css|doc|eot|exe|gif|gz|ico|jpe?g|jpeg|jpg|js|map|mid|midi|mp4|ogg|ogv|otf|png|ppt|rar|rtf|svg|svgz|tar|tgz|ttf|wav|woff|xls|zip
)$ {
    access_log                    off;
    log_not_found                 off;
    expires                       max;
    add_header                    Pragma public;
    add_header                    Cache-Control "public, mustrevalidate, proxy-revalidate";
    add_header                    X-Koala-Status eating;
}

# Don't create logs for favicon.ico, robots.txt requests
location = /(?:favicon.ico|robots.txt) {
    log_not_found                 off;
    access_log                    off;
}

# Redirect requests for */index.php to the same route minus the "index.php" in the URI.
location ~ /index.php/(.*) {
    rewrite ^/index.php/(.*) /$1 permanent;
}

restrictions.conf

root@bananapi:/etc/nginx# more global/restrictions.conf
# Block access to "hidden" files
# i.e. file names that begin with a dot "."
location ~ /\. {
    deny                          all;
}

# Apache .htaccess & .htpasswd files
location ~ /\.(htaccess|htpasswd)$ {
    deny                          all;
}

# Block access to Sqlite database files
location ~ /\.(?:db)$ {
    deny                          all;
}

# Block access to Markdown, Twig & YAML files directly
location ~* /(.*)\.(?:markdown|md|twig|yaml|yml)$ {
    deny                          all;
}

php-fpm.conf

root@bananapi:/etc/nginx# more global/php-fpm.conf
location ~ [^/]\.php(/|$) {
    try_files                     /index.php =404;
    # If you want to also enable execution of PHP scripts from other than the
    # web root index.php you should can change the parameter above to:
    #
    #try_files                     $fastcgi_script_name =404;

    fastcgi_split_path_info       ^(.+?\.php)(/.*)$;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

    # Mitigate https://httpoxy.org/ vulnerabilities
    fastcgi_param HTTP_PROXY      "";

    # Set the HTTP parameter if not set in fastcgi_params
    fastcgi_param HTTPS           $https if_not_empty;

    # If using TCP sockets uncomment the next line
    #fastcgi_pass                  127.0.0.1:9000;

    # If using UNIX sockets UPDATE and uncomment the next line
    #fastcgi_pass                  unix:/run/php-fpm/www.sock;
    fastcgi_pass                  unix:/run/php5-fpm.sock;

    # Include the FastCGI parameters shipped with NGINX
    include                       fastcgi_params;
}

that is it for config files.

2017-09-27: mmcblk0p1 - add my user to the 'adm' group: before

tingo@bananapi:~$ id
uid=1000(tingo) gid=1000(tingo) groups=1000(tingo),20(dialout),27(sudo),29(audio),44(video),46(plugdev),102(systemd-journal),108(netdev),113(bluetooth)

add to group

tingo@bananapi:~$ sudo adduser tingo adm
[sudo] password for tingo:
Adding user `tingo' to group `adm' ...
Adding user tingo to group adm
Done.

verify

tingo@bananapi:~$ id
uid=1000(tingo) gid=1000(tingo) groups=1000(tingo),20(dialout),27(sudo),29(audio),44(video),46(plugdev),102(systemd-journal),108(netdev),113(bluetooth)

oops, doesn't change until logout

tingo@bananapi:~$ id tingo
uid=1000(tingo) gid=1000(tingo) groups=1000(tingo),4(adm),20(dialout),27(sudo),29(audio),44(video),46(plugdev),102(systemd-journal),108(netdev),113(bluetooth)

ok.

2017-09-18: mmcblk0p1 - apt - install fcgiwrap what is it?

tingo@bananapi:~$ sudo apt show fcgiwrap
Package: fcgiwrap
Version: 1.1.0-5
Installed-Size: 94.2 kB
Maintainer: Jordi Mallach <jordi@debian.org>
Depends: libc6 (>= 2.15), libfcgi0ldbl, libsystemd0, init-system-helpers (>= 1.18~), spawn-fcgi (>= 1.6.1)
Enhances: nginx
Homepage: http://nginx.localdomain.pl/wiki/FcgiWrap
Section: web
Priority: extra
Download-Size: 16.7 kB
APT-Sources: http://httpredir.debian.org/debian/ jessie/main armhf Packages
Description: simple server to run CGI applications over FastCGI
 fcgiwrap is a simple server for running CGI applications over FastCGI.
 Its goal is to provide clean CGI support to the nginx webserver, although
 can be used with others.
 .
 fcgiwrap is lightweight and has no configuration, making it possible to
 use the same pool to run different sites.

install

tingo@bananapi:~$ sudo apt install fcgiwrap
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  libfcgi0ldbl spawn-fcgi
The following NEW packages will be installed:
  fcgiwrap libfcgi0ldbl spawn-fcgi
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 187 kB of archives.
After this operation, 631 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
[...]
Processing triggers for systemd (215-17+deb8u7) ...

ok.

2017-09-18: mmcblk0p1 - apt - install more php modules

tingo@bananapi:~$ sudo apt install php5-curl php5-gd php5-intl
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  fontconfig-config fonts-dejavu-core libfontconfig1 libfreetype6 libgd3 libjbig0 libjpeg62-turbo libpng12-0 libtiff5
  libvpx1 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxpm4
Suggested packages:
  libgd-tools
The following NEW packages will be installed:
  fontconfig-config fonts-dejavu-core libfontconfig1 libfreetype6 libgd3 libjbig0 libjpeg62-turbo libpng12-0 libtiff5
  libvpx1 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxpm4 php5-curl php5-gd php5-intl
0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,527 kB of archives.
After this operation, 11.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
[...]
Creating config file /etc/php5/mods-available/curl.ini with new version
php5_invoke: Enable module curl for cli SAPI
php5_invoke: Enable module curl for fpm SAPI
Setting up php5-gd (5.6.30+dfsg-0+deb8u1) ...

Creating config file /etc/php5/mods-available/gd.ini with new version
php5_invoke: Enable module gd for cli SAPI
php5_invoke: Enable module gd for fpm SAPI
Setting up php5-intl (5.6.30+dfsg-0+deb8u1) ...

Creating config file /etc/php5/mods-available/intl.ini with new version
php5_invoke: Enable module intl for cli SAPI
php5_invoke: Enable module intl for fpm SAPI
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Processing triggers for php5-fpm (5.6.30+dfsg-0+deb8u1) ...

ok.

2017-09-18: mmcblk0p1 - php modules that comes with php5-fpm

tingo@bananapi:~$ /usr/sbin/php5-fpm -m
[PHP Modules]
bcmath
bz2
calendar
cgi-fcgi
Core
ctype
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
mbstring
mhash
openssl
pcre
PDO
Phar
posix
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

ok

2017-09-18: mmcblk0p1 - apt - install php5-fpm

tingo@bananapi:~$ sudo apt install php5-fpm
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  libapparmor1 libmagic1 libonig2 libqdbm14 php5-cli php5-common php5-json
Suggested packages:
  file php-pear php5-user-cache
Recommended packages:
  php5-readline
The following NEW packages will be installed:
  libapparmor1 libmagic1 libonig2 libqdbm14 php5-cli php5-common php5-fpm php5-json
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,184 kB of archives.
After this operation, 18.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
[...]
update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar5 to provide /usr/bin/phar (phar) in auto mode

Creating config file /etc/php5/cli/php.ini with new version
Setting up libapparmor1:armhf (2.9.0-3) ...
Setting up php5-fpm (5.6.30+dfsg-0+deb8u1) ...

Creating config file /etc/php5/fpm/php.ini with new version
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Processing triggers for systemd (215-17+deb8u7) ...

ok.

2017-09-18: mmcblk0p1 - apt - install nginx

tingo@bananapi:~$ sudo apt install nginx-light
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  nginx-common
Suggested packages:
  fcgiwrap nginx-doc ssl-cert
The following NEW packages will be installed:
  nginx-common nginx-light
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 388 kB of archives.
After this operation, 756 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
[...]
Setting up nginx-common (1.6.2-5+deb8u5) ...
Setting up nginx-light (1.6.2-5+deb8u5) ...
Processing triggers for systemd (215-17+deb8u7) ...

ok.

tingo@bananapi:~$ dpkg-query -L nginx-light
/.
/usr
/usr/share
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/nginx-light
/usr/share/doc
/usr/share/doc/nginx-light
/usr/share/doc/nginx-light/changelog.Debian.gz
/usr/share/doc/nginx-light/changelog.gz
/usr/share/doc/nginx-light/copyright
/usr/sbin
/usr/sbin/nginx

hmm,

tingo@bananapi:~$ ls -F /etc/nginx
conf.d/       fastcgi_params  koi-win     nginx.conf    scgi_params       sites-enabled/  uwsgi_params
fastcgi.conf  koi-utf         mime.types  proxy_params  sites-available/  snippets/       win-utf

ok, config directory is there.

2017-09-18: mmcblk0p1 - telldus-core - I copied the relevant lines from /etc/tellstick.conf to my new SDcard.

2017-09-18: mmcblk0p1 - telldus-core - create a systemd unit file for telldusd and put it into /etc/systemd/system:

tingo@bananapi:~$ 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

I could reload the systemd daemon now, but it isn't useful so I'll wait until the reboot.

2017-09-18: mmcblk0p1 - telldus-core - compile and install

tingo@bananapi:~/work/telldus-core-2.1.2$ pwd
/home/tingo/work/telldus-core-2.1.2

cmake

tingo@bananapi:~/work/telldus-core-2.1.2$ cmake .
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- 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
-- 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
-- Looking for include file pthread.h
-- Looking for include file 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

make

tingo@bananapi:~/work/telldus-core-2.1.2$ make
[...]
[100%] Building CXX object tdadmin/CMakeFiles/tdadmin.dir/main.cpp.o
Linking CXX executable tdadmin
[100%] Built target tdadmin

make install

tingo@bananapi:~/work/telldus-core-2.1.2$ sudo make install
[ 15%] Built target TelldusCommon
[ 88%] Built target telldusd
[ 96%] Built target telldus-core
[ 98%] 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
-- Removed runtime path from "/usr/local/bin/tdtool"
-- Installing: /usr/local/sbin/tdadmin
-- Removed runtime path from "/usr/local/sbin/tdadmin"
-- Installing: /etc/udev/rules.d/05-tellstick.rules
-- Installing: /usr/local/share/telldus-core/helpers/udev.sh

ok.

2017-09-18: mmcblk0p1 - apt - install some build dependencies

tingo@bananapi:~$ sudo apt install build-essential libftdi1 libftdi-dev libconfuse0 libconfuse-dev cmake
Reading package lists... Done
Building dependency tree      
Reading state information... Done
build-essential is already the newest version.
libftdi1 is already the newest version.
libftdi1 set to manually installed.
The following extra packages will be installed:
  cmake-data libarchive13 libconfuse-common
Suggested packages:
  codeblocks eclipse ninja-build lrzip
The following NEW packages will be installed:
  cmake cmake-data libarchive13 libconfuse-common libconfuse-dev libconfuse0 libftdi-dev
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 3,483 kB of archives.
After this operation, 15.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
[...]
Processing triggers for libc-bin (2.19-18+deb8u10) ...

ok.

2017-09-18: mmcblk0p1 - ssh - change setting before

tingo@bananapi:~$ grep ^PermitRootLogin /etc/ssh/sshd_config
PermitRootLogin yes

after

tingo@bananapi:~$ grep ^PermitRootLogin /etc/ssh/sshd_config
PermitRootLogin no

restart service

tingo@bananapi:~$ sudo systemctl restart ssh.service

ok.

2017-09-18: mmcblk0p1 - after reboot

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.31 stable Debian GNU/Linux 8 (jessie) 4.11.6-sunxi  
System load:   0.81 0.23 0.08      Up time:       0 min       
Memory usage:  5 % of 993MB      IP:            10.1.161.21
CPU temp:      38°C              
Usage of /:    16% of 7.2G      

[ General system configuration: armbian-config ]
Last login: Mon Sep 18 20:13:02 2017 from kg-core1.kg4.no

lsb_release

tingo@bananapi:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 8.9 (jessie)
Release:    8.9
Codename:    jessie

kernel

tingo@bananapi:~$ uname -a
Linux bananapi 4.11.6-sunxi #6 SMP Fri Jun 23 19:56:18 CEST 2017 armv7l GNU/Linux

ok.

2017-09-18: mmcblk0p1 - apt - 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:
  base-files bind9-host bluez debconf debconf-i18n debian-archive-keyring dnsutils git git-man gnupg gpgv libbind9-90
  libc-bin libc-dev-bin libc6 libc6-dev libdns-export100 libdns100 libexpat1 libffi6 libgcrypt20 libgnutls-deb0-28
  libgnutls-openssl27 libirs-export91 libisc-export95 libisc95 libisccc90 libisccfg-export90 libisccfg90 liblwres90
  libmysqlclient18 libpam-modules libpam-modules-bin libpam0g libsoup2.4-1 libxml2 linux-dtb-next-sunxi
  linux-headers-next-sunxi linux-image-next-sunxi linux-libc-dev locales multiarch-support mysql-common perl perl-base
  perl-modules
46 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 56.3 MB of archives.
After this operation, 547 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
[...]
Setting up bluez (5.23-2+deb8u1) ...
Job for bluetooth.service failed. See 'systemctl status bluetooth.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript bluetooth, action "restart" failed.
dpkg: error processing package bluez (--configure):
 subprocess installed post-installation script returned error exit status 1
[...]
Setting up linux-headers-next-sunxi (5.32) ...
Compiling headers - please wait ...
Setting up linux-image-next-sunxi (5.32) ...
update-initramfs: Generating /boot/initrd.img-4.11.6-sunxi
update-initramfs: Converting to u-boot format
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Errors were encountered while processing:
 bluez
E: Sub-process /usr/bin/dpkg returned an error code (1)

ok.

2017-09-18: mmcblk0p1 - apt - run 'update' first, then see what can be upgraded

tingo@bananapi:~$ sudo apt update
[...]
46 packages can be upgraded. Run 'apt list --upgradable' to see them.

list upgradable packages

tingo@bananapi:~$ sudo apt list --upgradable
Listing... Done
base-files/oldstable 8+deb8u9 armhf [upgradable from: 8+deb8u8]
bind9-host/oldstable-updates 1:9.9.5.dfsg-9+deb8u14 armhf [upgradable from: 1:9.9.5.dfsg-9+deb8u11]
bluez/oldstable 5.23-2+deb8u1 armhf [upgradable from: 5.23-2+b1]
debconf/oldstable 1.5.56+deb8u1 all [upgradable from: 1.5.56]
debconf-i18n/oldstable 1.5.56+deb8u1 all [upgradable from: 1.5.56]
debian-archive-keyring/oldstable,oldstable-updates 2017.5~deb8u1 all [upgradable from: 2014.3]
dnsutils/oldstable-updates 1:9.9.5.dfsg-9+deb8u14 armhf [upgradable from: 1:9.9.5.dfsg-9+deb8u11]
git/oldstable 1:2.1.4-2.1+deb8u4 armhf [upgradable from: 1:2.1.4-2.1+deb8u3]
git-man/oldstable 1:2.1.4-2.1+deb8u4 all [upgradable from: 1:2.1.4-2.1+deb8u3]
gnupg/oldstable 1.4.18-7+deb8u4 armhf [upgradable from: 1.4.18-7+deb8u3]
gpgv/oldstable 1.4.18-7+deb8u4 armhf [upgradable from: 1.4.18-7+deb8u3]
libbind9-90/oldstable-updates 1:9.9.5.dfsg-9+deb8u14 armhf [upgradable from: 1:9.9.5.dfsg-9+deb8u11]
libc-bin/oldstable,oldstable 2.19-18+deb8u10 armhf [upgradable from: 2.19-18+deb8u9]
libc-dev-bin/oldstable,oldstable 2.19-18+deb8u10 armhf [upgradable from: 2.19-18+deb8u9]
libc6/oldstable,oldstable 2.19-18+deb8u10 armhf [upgradable from: 2.19-18+deb8u9]
libc6-dev/oldstable,oldstable 2.19-18+deb8u10 armhf [upgradable from: 2.19-18+deb8u9]
libdns-export100/oldstable-updates 1:9.9.5.dfsg-9+deb8u14 armhf [upgradable from: 1:9.9.5.dfsg-9+deb8u11]
libdns100/oldstable-updates 1:9.9.5.dfsg-9+deb8u14 armhf [upgradable from: 1:9.9.5.dfsg-9+deb8u11]
libexpat1/oldstable,oldstable 2.1.0-6+deb8u4 armhf [upgradable from: 2.1.0-6+deb8u3]
libffi6/oldstable,oldstable 3.1-2+deb8u1 armhf [upgradable from: 3.1-2+b2]
libgcrypt20/oldstable,oldstable 1.6.3-2+deb8u4 armhf [upgradable from: 1.6.3-2+deb8u2]
libgnutls-deb0-28/oldstable 3.3.8-6+deb8u7 armhf [upgradable from: 3.3.8-6+deb8u5]
libgnutls-openssl27/oldstable 3.3.8-6+deb8u7 armhf [upgradable from: 3.3.8-6+deb8u5]
libirs-export91/oldstable-updates 1:9.9.5.dfsg-9+deb8u14 armhf [upgradable from: 1:9.9.5.dfsg-9+deb8u11]
libisc-export95/oldstable-updates 1:9.9.5.dfsg-9+deb8u14 armhf [upgradable from: 1:9.9.5.dfsg-9+deb8u11]
libisc95/oldstable-updates 1:9.9.5.dfsg-9+deb8u14 armhf [upgradable from: 1:9.9.5.dfsg-9+deb8u11]
libisccc90/oldstable-updates 1:9.9.5.dfsg-9+deb8u14 armhf [upgradable from: 1:9.9.5.dfsg-9+deb8u11]
libisccfg-export90/oldstable-updates 1:9.9.5.dfsg-9+deb8u14 armhf [upgradable from: 1:9.9.5.dfsg-9+deb8u11]
libisccfg90/oldstable-updates 1:9.9.5.dfsg-9+deb8u14 armhf [upgradable from: 1:9.9.5.dfsg-9+deb8u11]
liblwres90/oldstable-updates 1:9.9.5.dfsg-9+deb8u14 armhf [upgradable from: 1:9.9.5.dfsg-9+deb8u11]
libmysqlclient18/oldstable 5.5.57-0+deb8u1 armhf [upgradable from: 5.5.55-0+deb8u1]
libpam-modules/oldstable 1.1.8-3.1+deb8u2+b1 armhf [upgradable from: 1.1.8-3.1+deb8u2]
libpam-modules-bin/oldstable 1.1.8-3.1+deb8u2+b1 armhf [upgradable from: 1.1.8-3.1+deb8u2]
libpam0g/oldstable 1.1.8-3.1+deb8u2+b1 armhf [upgradable from: 1.1.8-3.1+deb8u2]
libsoup2.4-1/oldstable 2.48.0-1+deb8u1 armhf [upgradable from: 2.48.0-1]
libxml2/oldstable 2.9.1+dfsg1-5+deb8u5 armhf [upgradable from: 2.9.1+dfsg1-5+deb8u4]
linux-dtb-next-sunxi/jessie 5.32 armhf [upgradable from: 5.31]
linux-headers-next-sunxi/jessie 5.32 armhf [upgradable from: 5.31]
linux-image-next-sunxi/jessie 5.32 armhf [upgradable from: 5.31]
linux-libc-dev/oldstable 3.16.43-2+deb8u3 armhf [upgradable from: 3.16.43-2]
locales/oldstable,oldstable 2.19-18+deb8u10 all [upgradable from: 2.19-18+deb8u9]
multiarch-support/oldstable,oldstable 2.19-18+deb8u10 armhf [upgradable from: 2.19-18+deb8u9]
mysql-common/oldstable 5.5.57-0+deb8u1 all [upgradable from: 5.5.55-0+deb8u1]
perl/oldstable 5.20.2-3+deb8u8 armhf [upgradable from: 5.20.2-3+deb8u7]
perl-base/oldstable 5.20.2-3+deb8u8 armhf [upgradable from: 5.20.2-3+deb8u7]
perl-modules/oldstable 5.20.2-3+deb8u8 all [upgradable from: 5.20.2-3+deb8u7]

ok.

2017-09-18: mmcblk0p1 - try with a 8 GB Transcend card (still Class 4)

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.31 stable Debian GNU/Linux 8 (jessie) 4.11.5-sunxi  
System load:   0.31 0.34 0.15      Up time:       2 min       
Memory usage:  5 % of 993MB      IP:            10.1.161.21
CPU temp:      36°C              
Usage of /:    14% of 7.2G      

[ General system configuration: armbian-config ]

card info

tingo@bananapi:~$ sudo parted /dev/mmcblk0 print
Model: SD SD08G (sd/mmc)
Disk /dev/mmcblk0: 7948MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  7789MB  7788MB  primary  ext4

lsblk info

tingo@bananapi:~$ lsblk -i
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0  7.4G  0 disk
`-mmcblk0p1 179:1    0  7.3G  0 part /

kernel

tingo@bananapi:~$ uname -a
Linux bananapi 4.11.5-sunxi #3 SMP Thu Jun 15 02:11:01 CEST 2017 armv7l GNU/Linux

lsb_release

tingo@bananapi:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 8.8 (jessie)
Release:    8.8
Codename:    jessie

ok

2017-09-17: login via ssh

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.31 stable Debian GNU/Linux 8 (jessie) 4.11.5-sunxi  
System load:   0.02 0.23 0.15      Up time:       5 min       
Memory usage:  6 % of 993MB      IP:            10.1.161.21
CPU temp:      36°C              
Usage of /:    29% of 3.5G      

[ General system configuration: armbian-config ]

version and stuff

tingo@bananapi:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 8.8 (jessie)
Release:    8.8
Codename:    jessie

relevant files in /etc

tingo@bananapi:~$ cat /etc/debian_version
8.8
tingo@bananapi:~$ cat /etc/armbian-release
# PLEASE DO NOT EDIT THIS FILE
BOARD=bananapi
BOARD_NAME="Banana Pi"
VERSION=5.31
LINUXFAMILY=sunxi
BRANCH=next
ARCH=arm
IMAGE_TYPE=stable
tingo@bananapi:~$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

disk space used

tingo@bananapi:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             10M     0   10M   0% /dev
tmpfs           199M  9.5M  190M   5% /run
/dev/mmcblk0p1  3.5G  984M  2.5G  29% /
tmpfs           497M     0  497M   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           497M     0  497M   0% /sys/fs/cgroup
tmpfs           497M     0  497M   0% /tmp
log2ram          50M  664K   50M   2% /var/log
tmpfs           100M     0  100M   0% /run/user/0
tmpfs           100M     0  100M   0% /run/user/1000

lsblk output

tingo@bananapi:~$ lsblk -i
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0  3.8G  0 disk
`-mmcblk0p1 179:1    0  3.6G  0 part /

ok

2017-09-17: I booted from a 4 GB SD card with armbian (Debian server - mainline kernel) on. After a while I could login as root with default password, and was immediately prompted to change the root password - very good! Next I asked me to create a user (with sudo capabilities).