Bullseye

Begonnen von Frank_Huber, 08 November 2021, 18:11:51

Vorheriges Thema - Nächstes Thema

Hotbird

Das ist nur die Logmeldung unseres Staubsaugers ( Roborock ). Welche Demo meinst Du?

Otto123

Du hast interaktive den debug Modus gestartet ohne den fhem service vorher zu beenden.

Du solltest mal den debug Modus starten und den fhem service vorher wirklich beenden!
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Hotbird

mhh, es scheint wohl noch etwas gefehlt zu haben.. Chris hat mich darauf gebracht...
Nach einem sudo cpan Crypt::Rijndael_PP komme ich jetzt auch nach einem Reboot auf die Weboberfläche... Sehr komisch...

CoolTux

Einmal muss
Crypt::Cipher::AES or Crypt::Rijndael_PP is required!
gelöst werden.

apt-get install libcryptx-perl oder libcrypt-cbc-perl
versuch erstmal ersteres

und dann am besten den Perl Prozess für FHEM noch mal sauber beenden.

Can't open server port at 8083: Address already in use. Exiting.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

fuchsnase

Hallo,

bisher (Buster) habe ich wiringpi für RPI_GPIO verwendet (wg. Pullup- Pulldown-Widerstände). In Bullseye ist wiringpi nicht mehr enthalten und das Git-Repository ist nicht erreichbar.

Wie kann das Problem gelöst werden?


Stelaku


TomS85

Ich versuche gerade meinen Raspi auf Bulleye zu upgraden, habe aber noch ein Problem mit unerfüllten Abhängigkeiten. Irgendein Problem scheint er hier mit Python zu haben. Weiß ggf. jemand, wie ich das Problem in den Griff bekommen kann?

Zitatsudo apt full-upgrade

Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
Statusinformationen werden eingelesen... Fertig
Probieren Sie »apt --fix-broken install«, um dies zu korrigieren.
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
gyp : Hängt ab von: python:any (< 2.8)
       Hängt ab von: python:any (>= 2.7~)
nodered : Hängt ab von: python (>= 2.7)
python-asn1crypto : Hängt ab von: python:any (< 2.8)
                     Hängt ab von: python:any (>= 2.7.5-5~)
python-cffi-backend : Hängt ab von: python (< 2.8)
                       Hängt ab von: python (>= 2.7~)
                       Hängt ab von: python:any (< 2.8)
                       Hängt ab von: python:any (>= 2.7~)
python-crypto : Hängt ab von: python (< 2.8)
                 Hängt ab von: python (>= 2.7~)
                 Hängt ab von: python:any (< 2.8)
                 Hängt ab von: python:any (>= 2.7~)
python-cryptography : Hängt ab von: python (< 2.8)
                       Hängt ab von: python (>= 2.7~)
                       Hängt ab von: python-six (>= 1.4.1) ist aber nicht installiert
                       Hängt ab von: python:any (< 2.8)
                       Hängt ab von: python:any (>= 2.7~)
python-dbus : Hängt ab von: python (< 2.8)
               Hängt ab von: python (>= 2.7~)
               Hängt ab von: python:any (< 2.8)
               Hängt ab von: python:any (>= 2.7~)
               Empfiehlt: python-gi ist aber nicht installierbar
python-defusedxml : Hängt ab von: python:any (< 2.8)
                     Hängt ab von: python:any (>= 2.7~)
python-enum34 : Hängt ab von: python:any (< 2.8)
                 Hängt ab von: python:any (>= 2.7.5-5~)
python-fourletterphat : Hängt ab von: python:any (< 2.8)
                         Hängt ab von: python:any (>= 2.7.5-5~)
python-funcsigs : Hängt ab von: python:any (< 2.8)
                   Hängt ab von: python:any (>= 2.7.5-5~)
python-gobject-2 : Hängt ab von: python (>= 2.7)
                    Hängt ab von: python (< 2.8)
python-gpiozero : Hängt ab von: python:any (< 2.8)
                   Hängt ab von: python:any (>= 2.7~)
                   Empfiehlt: python-rpi.gpio ist aber nicht installierbar
python-idna : Hängt ab von: python:any (< 2.8)
               Hängt ab von: python:any (>= 2.7.5-5~)
python-ipaddress : Hängt ab von: python:any (< 2.8)
                    Hängt ab von: python:any (>= 2.7.5-5~)
python-itsdangerous : Hängt ab von: python:any (< 2.8)
                       Hängt ab von: python:any (>= 2.7.5-5~)
python-jwt : Hängt ab von: python:any (< 2.8)
              Hängt ab von: python:any (>= 2.7~)
python-minecraftpi : Hängt ab von: python:any (< 2.8)
                      Hängt ab von: python:any (>= 2.7.5-5~)
python-mote : Hängt ab von: python:any (< 2.8)
               Hängt ab von: python:any (>= 2.7.5-5~)
python-olefile : Hängt ab von: python:any (< 2.8)
                  Hängt ab von: python:any (>= 2.7~)
python-pantilthat : Hängt ab von: python:any (< 2.8)
                     Hängt ab von: python:any (>= 2.7.5-5~)
python-picraft : Hängt ab von: python (>= 2.7)
                  Hängt ab von: python (< 2.8)
python-piglow : Hängt ab von: python:any (< 2.8)
                 Hängt ab von: python:any (>= 2.7.5-5~)
python-pigpio : Hängt ab von: python:any (< 2.8)
                 Hängt ab von: python:any (>= 2.7~)
python-pil : Hängt ab von: python (< 2.8)
              Hängt ab von: python (>= 2.7~)
              Hängt ab von: python:any (< 2.8)
              Hängt ab von: python:any (>= 2.7~)
python-pkg-resources : Hängt ab von: python:any (< 2.8)
                        Hängt ab von: python:any (>= 2.7~)
python-pyflakes : Hängt ab von: python:any (< 2.8)
                   Hängt ab von: python:any (>= 2.7~)
                   Empfiehlt: pyflakes ist aber nicht installierbar
python-pyinotify : Hängt ab von: python:any (< 2.8)
                    Hängt ab von: python:any (>= 2.7.5-5~)
python-scrollphat : Hängt ab von: python:any (< 2.8)
                     Hängt ab von: python:any (>= 2.7.5-5~)
python-serial : Hängt ab von: python:any (< 2.8)
                 Hängt ab von: python:any (>= 2.7.5-5~)
python-setuptools : Hängt ab von: python:any (< 2.8)
                     Hängt ab von: python:any (>= 2.7~)
python-simplejson : Hängt ab von: python (< 2.8)
                     Hängt ab von: python (>= 2.7~)
                     Hängt ab von: python:any (< 2.8)
                     Hängt ab von: python:any (>= 2.7~)
python-smbus : Hängt ab von: python (< 2.8)
                Hängt ab von: python (>= 2.7~)
                Hängt ab von: python:any (< 2.8)
                Hängt ab von: python:any (>= 2.7~)
python-sn3218 : Hängt ab von: python:any (< 2.8)
                 Hängt ab von: python:any (>= 2.7.5-5~)
python-spidev : Hängt ab von: python (< 2.8)
                 Hängt ab von: python (>= 2.7~)
                 Hängt ab von: python:any (< 2.8)
                 Hängt ab von: python:any (>= 2.7~)
python-urllib3 : Hängt ab von: python:any (< 2.8)
                  Hängt ab von: python:any (>= 2.7~)
                  Hängt ab von: python-six ist aber nicht installiert
                  Empfiehlt: python-openssl ist aber nicht installierbar
python-werkzeug : Hängt ab von: python:any (< 2.8)
                   Hängt ab von: python:any (>= 2.7~)
                   Empfiehlt: python-openssl ist aber nicht installierbar
python-wheel : Hängt ab von: python:any (< 2.8)
                Hängt ab von: python:any (>= 2.7~)
                Empfiehlt: python-keyring ist aber nicht installierbar
                Empfiehlt: python-keyrings.alt ist aber nicht installierbar
                Empfiehlt: python-xdg ist aber nicht installierbar
E: Unerfüllte Abhängigkeiten. Versuchen Sie »apt --fix-broken install« ohne Angabe eines Pakets (oder geben Sie eine Lösung an).

Danke und Gruß,
Tom

MadMax-FHEM

Zitat
apt --fix-broken install

Ausprobiert?

Von welchem System/OS-Version kommst du?

Wie bist du vorgegangen?

Ich installiere ja lieber/immer neu bei einem OS-Wechel...

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

TomS85

Ja, habe ich auch schon ausprobiert, aber läuft genauso auf Fehler.

Ich komme von Buster und habe die /etc/apt/sources.list von "buster" auf "bullseye" angepasst, inkl. der Dateien unter /etc/apt/sources.list.d/

Ich vermute mal, dass in bullseye Python2 nicht mehr unterstützt wird und es daher zu den Problemen kommt. Ich habe jetzt erstmal mein Backup wieder zurückgespielt, damit mein FHEM wieder auf buster läuft und werde mir jetzt mal einen weiteren Raspi zum testen und Neuinstallation von Bullseye kaufen.

Wie du schon schreibst, bringt das Update von Debian ja immer unschöne Begleiterscheinungen mit - ich denke, mit einer sauberen Neuinstallation wäre ich da besser dran.

Mit FHEM ansich sind ja bisher keine Probleme mit bullseye bekannt, oder?

Danke und Gruß,
Tom

Otto123

Zitat von: TomS85 am 25 April 2022, 07:10:04
Mit FHEM ansich sind ja bisher keine Probleme mit bullseye bekannt, oder?
Es gibt ja zwei Threads mit Bullseye bzw. debian11 mit der grundlegenden Frage "gibt es da Probleme" oder "ich habe eine Problem" - soweit ich richtig mitgelesen hab: Es gibt keine...
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

fuchsnase

Zitat von: Stelaku am 22 April 2022, 15:39:53
http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/

Damit funst es bei mir unter Bullseye

Gruß

Stephan

Danke. Letztendlich habe ich mit https://github.com/WiringPi/WiringPi WiringPi zum Laufen bekommen.

curt

Ich hatte (habe noch?) erhebliche Probleme mit dem dist-upgrade. (Basis RPi4, buster.)

Nach Umschiffung aller Klippen, die ich im zweiten Code-Block zeige, bekam ich myHmUART nicht zum laufen, selbiger ist in fhem.cfg wie folgt definiert:

define myHmUART HMUARTLGW /dev/ttyAMA0
#define myHmUART HMUARTLGW /dev/serial/by-id/usb-0658_0200-if00
attr myHmUART hmId FF1312
attr myHmUART readingsWatcher 7200,,load
attr myHmUART room 99 System
attr myHmUART verbose 1
#attr myHmUART rfmode HomeMatic


Das dist-upgrade machte schon einige Zicken, unter anderem war die statische IP in /etc/network/interfaces definiert, das ignoriert er nun und schaut bei /etc/dhcpcd.conf nach; wenn er da nichts findet, denkt er sich irgend eine IP aus.



    https://linuxnews.de/2021/11/raspberry-pi-os-auf-bullseye-aktualisieren/
    https://www.laub-home.de/wiki/Raspberry_Pi_OS_auf_Bullseye_aktualisieren
    https://www.bitblokes.de/raspbian-stretch-netzwerk-schnittstellen-heissen-anders-aus-eth0-wird-enxmac-adresse/#:~:text=Netzwerk-Schnittstellen%20hei%C3%9Fen%20anders%20%E2%80%93%20aus%20eth0%20wird%20enx%2BMAC-Adresse,das%20wurde%20eben%20von%20Raspbian%20Jessie%20so%20definiert

apt update
apt full-upgrade
rpi-update
reboot
sed -i 's/buster/bullseye/g' /etc/apt/sources.list
sed -i 's/buster/bullseye/g' /etc/apt/sources.list.d/raspi.list
(eher nicht! sudo apt update && sudo apt install libgcc-8-dev gcc-8-base )
apt update && apt full-upgrade
apt -f install
apt autoremove

/boot/config.txt:
dtoverlay=vc4-kms-v3d
(bei fkms das "f" löschen!)

/etc/systemd/system/dhcpcd.service.d/wait.conf:
[Service]
ExecStart=
ExecStart=/usr/sbin/dhcpcd -q -w

/boot/cmdline.txt:
net.ifnames=0


myHmUART lief ums Verrecken nicht. Ich fand u.a. https://strompi.joy-it.net/de/helpdesk/191 , vor allem aber https://forums.raspberrypi.com/viewtopic.php?t=325366 - dort irritiert, dass das bei ihm wohl nicht stabil läuft.

Mit folgender Konfiguration läuft es jetzt bereits 10 Minuten:

/boot/config.txt
...
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
max_framebuffers=2

[all]
dtoverlay=vc4-kms-v3d

enable_uart=1
dtoverlay=miniuart-bt
core_freq=250
dtparam=spi=off
dtparam=i2c_arm=off



/boot/cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 root=PARTUUID=6c586e13-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait iv6.disable=1 net.ifnames=0


Hatte jemand das gleiche Problem - und das anders gelöst?

Frage an die, die bullseye neu aufsetzten und myHmUART -> HMUARTLGW nutzen: Darf ich mal die beiden fraglichen Dateien (config.txt und cmdline.txt) sehen? Und wie sehen  /lib/systemd/system/hciuart.service und /lib/systemd/system/bthelper@.service aus?
RPI 4 - Jeelink HomeMatic Z-Wave

Otto123

Selbst gewähltes Leid :)
Die gefragten Dateien von meinem frisch aufgesetztem PI3 - die sollten sich aber von denen auf einem PI4 nicht unterscheiden
cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

cat /boot/config.txt
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Disable compensation for displays with overscan
disable_overscan=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[all]

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]
enable_uart=1
dtoverlay=miniuart-bt
core_freq=250

cat /boot/cmdline.txt
console=serial0,115200 console=tty1 root=PARTUUID=24314355-02 rootfstype=ext4 fsck.repair=yes rootwait

systemctl cat hciuart
# /lib/systemd/system/hciuart.service
[Unit]
Description=Configure Bluetooth Modems connected by UART
ConditionFileNotEmpty=/proc/device-tree/soc/gpio@7e200000/bt_pins/brcm,pins
After=dev-serial1.device

[Service]
Type=forking
ExecStart=/usr/bin/btuart

[Install]
WantedBy=dev-serial1.device

systemctl cat bthelper@
# /lib/systemd/system/bthelper@.service
[Unit]
Description=Raspberry Pi bluetooth helper
Requires=hciuart.service bluetooth.service
After=hciuart.service
Before=bluetooth.service

[Service]
Type=oneshot
ExecStart=/usr/bin/bthelper %I
RemainAfterExit=yes

Die wirklich wesentlichen 2 Schritte zum Erfolg stehen hier: https://wiki.fhem.de/wiki/Raspberry_Pi#Verwendung_UART_f.C3.BCr_Zusatzmodule

Ich glaube ja vor allem, Du kommst in wenigen Minuten zu einem prinzipiellen Erfolg (mit Zugriff auf die originalen Dateien) ;) wenn Du einfach mal ne frische SD Card und ein frisches Rapberry OS Image und frisches FHEM nimmst und gemäß Wiki installierst.

Gruß Otto

Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

curt

Zitat von: Otto123 am 23 Juli 2022, 08:59:24
Selbst gewähltes Leid :)
Die gefragten Dateien von meinem frisch aufgesetztem PI3 - die sollten sich aber von denen auf einem PI4 nicht unterscheiden

Zunächst herzlichen Dank für Deine Antwort.
Die von Dir gezeigte ist recht genau die Konfiguration, die ich auch nach dem Upgrade hatte - und mit der hmUART nicht läuft. Erst mit den von mir genannten Änderungen lief es dann.

Zitat von: Otto123 am 23 Juli 2022, 08:59:24
Die wirklich wesentlichen 2 Schritte zum Erfolg stehen hier: https://wiki.fhem.de/wiki/Raspberry_Pi#Verwendung_UART_f.C3.BCr_Zusatzmodule

Leider nicht, nicht in der von mir genannten Konfiguration.

Zitat von: Otto123 am 23 Juli 2022, 08:59:24
Ich glaube ja vor allem, Du kommst in wenigen Minuten zu einem prinzipiellen Erfolg (mit Zugriff auf die originalen Dateien) ;) wenn Du einfach mal ne frische SD Card und ein frisches Rapberry OS Image und frisches FHEM nimmst und gemäß Wiki installierst.

Vermutlich verstehe ich da etwas falsch, ich komme gedanklich da eher auf Tage bis Wochen: Ein RPi4 mit neuem bullseye bestücken und dann FHEM völlig neu aufsetzen? Oder die bisherige FHEM-Installation dann übertragen? Wie meinst Du es konkret?

Es zeigen sich nach dem dist-upgrade noch weitere schwere Probleme, dazu im nächsten Beitrag.
RPI 4 - Jeelink HomeMatic Z-Wave

curt

Zitat von: CoolTux am 16 März 2022, 11:39:25
Einmal muss
Crypt::Cipher::AES or Crypt::Rijndael_PP is required!
gelöst werden.

Gleiches Problem bei Putzi, welches ein Xiaomi-Wischsauger ist und vermittels der erweiterten Version (ist leider nicht im normalen Update-Prozess) von 72_Xiaomi... gesteuert wird.

Zitat von: CoolTux am 16 März 2022, 11:39:25
apt-get install libcryptx-perl oder libcrypt-cbc-perl
versuch erstmal ersteres

Es ist völlig egal ob eins oder beide installiert sind. Auch libcrypt-rijndael-perl ist installiert. Im Ergebnis ist der Staubsauger nicht erreichbar.

Ein ähnliches Problem bei der Wetterstation WS980 (Modul ws980wifi, im Standard-Update-Prozess) - sie ist nicht erreichbar. Laut Log startet die Abfrage zur firmware - und scheitert vermutlich. Im Ergebnis kommen keine Daten von der Wetterstation.

Weiterer Effekt, möglicherweise Seiteneffekt: FHEM stürzt nun oft ab, geschätzt 10x in 24h. (FHEM wird bei mir über systemd gestartet, wie im Wiki vorgeschlagen. Auch da hakt es: Bei Systemstart kommt FHEM nicht immer hoch.)

Nun ist die ernsthafte Frage: Wo fange ich eigentlich an? Ich sehe mich ja eher als Nutzer, ich will Hausautomation nutzen. Rein gefühlt wäre es das einfachste, die Sicherung von buster zurückzuspielen und das System veraltet immer weiter. Aber das kann es ja auch nicht sein.
RPI 4 - Jeelink HomeMatic Z-Wave