Plötzlich keine Verbindung mehr zum OWServer

Begonnen von efyzz, 12 Januar 2024, 23:45:58

Vorheriges Thema - Nächstes Thema

Dr. Boris Neubert

Ich habe versucht, eine Teststellung aufzubauen und die ow*-Pakete unter Debian 11.8 Bullseye mit den Default-Einstellungen installiert. Leider bekomme ich noch nicht einmal den owhttp mit Fake-Devices ans Laufen. owserver läuft, aber die Ports sind nicht erreichbar. Werde erst einmal keine weitere Zeit darauf verwenden, außer jemand hat eine Lösung, wie man den owserver erreichbar machen kann.
Globaler Moderator, Developer, aktives Mitglied des FHEM e.V. (Marketing, Verwaltung)
Bitte keine unaufgeforderten privaten Nachrichten!

efyzz

Hallo Boris,

nochmal vielen Dank, dass Du Deine Zeit hier investierst!

ZitatWenn Du die mitgelieferte OWNet-xxx.pm, die FHEM lädt, mit der neuesten überschrieben hast, und diese dann geladen wird
Falls überhaupt irgendwas geladen wird ... Vielleicht kann er die 3.1p5 auch nicht laden?! Oder würde ich das auf jeden Fall im Log sehen (Verbose 5)?

ZitatAls nächstes könntest Du es mit einen Downgrade des owserver-Pakets versuchen auf die in der Commandref als funktionierend gekennzeichnete Version.
Ich beziehe mich mal hierauf, denn da steht ja in etwa dasselbe wie in der Commandref:
https://wiki.fhem.de/wiki/OWServer_%26_OWDevice#Installation_einer_abweichenden_Version_von_OWNet.pm
owfs Pakete installieren -> Zweite Variante

Der Link zu "owfs_2.8p17-1_all.zip" funktioniert leider nicht. Außerdem weiß ich nicht, ob die dann mit meinem USB/UART-Converter funktionieren würde, denn:
ZitatVersion 3.1p0 von owfs lässt sich derzeit für den Raspberry Pi mit USB-Unterstützung nur kompilieren, wenn man einiges in den Make-Files patcht


Außerdem verstehe ich das nicht so recht:
ZitatEine ältere, kompilierte Version für den RaspberryPi kann hier heruntergeladen werden: owfs_2.8p17-1_all.zip

sudo apt-get install automake autoconf autotools-dev gcc g++ libtool libusb-dev fuse-utils libfuse-dev swig python-dev tcl-dev php5-dev
sudo apt-get install git git-buildpackage dh-make quilt php5-cli
git clone [git://git.debian.org/collab-maint/owfs.git git://git.debian.org/collab-maint/owfs.git] git
git-buildpackage -uc -us
cd ..
sudo dpkg -i ./owserver_2.8p7+cvs20110310-1_i386.deb ./libow-2.8-7_2.8p7+cvs20110310-1_i386.deb ./owfs-common_2.8p7+cvs20110310-1_all.deb
sudo dpkg -i ./owhttpd_2.8p7+cvs20110310-1_i386.deb

Hier wird scheinbar die 2.8p7 installiert. Ist das als alternativer Weg zum Download der owfs_2.8p17-1_all.zip zu verstehen?


Also habe ich die 3.1p0 von Github runtergeladen und versucht den Patch anzuwenden. Das kriege ich allerdings nicht hin ...
Ich mache sowas zum ersten Mal, vielleicht mache ich was falsch. Habe die Sourcen mit dem Laptop runtergeladen von dieser Seite (Grüner Button auf "Download zip"):
https://github.com/owfs/owfs/tree/v3.1p0
Dann die Zip auf den Raspberry kopiert und dort entpackt. Darin ist ein Ordner "owfs-3.1p0", der Patch zeigt jedoch auf "owfs-3.1p0_org". Also wie wende ich den Patch richtig an?


Was mich sehr wundert ist, dass die aktuelle 3.2p4 auch schon knapp 4 Jahre alt ist. Warum sollte die erst jetzt im Upgrade enthalten sein? Ich habe das Gefühl, wir sind auf dem Holzweg ... Vielleicht ist doch eher das Problem, dass das FHEM-Modul nicht mal die 3.1p5.pm laden kann ...?

ZitatLeider bekomme ich noch nicht einmal den owhttp mit Fake-Devices ans Laufen. owserver läuft, aber die Ports sind nicht erreichbar.
Bei mir läuft wie gesagt der httpd. Somit sind die Ports bei mir scheinbar erreichbar.
RaspberryPi3B, Bookworm Lite
Homematic Funkmodul HM-MOD-RPI-PCB
------------------------------------------------------------------------
Ich bin kein Programmierer ... aber ich weiß, auf welcher Seite der Lötkolben heiß ist.

Wernieman

Um mal auf andere Ideen zu kommen .. was mir Spontan einfällt, was hast Du für eine perl-Version installiert? Und auch Packete per CPAN installiert?
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

efyzz

Moin,

andere Ideen klingt gut :)

ii  perl                                 5.36.0-7+deb12u1                 arm64        Larry Wall's Practical Extraction and Report Language
ii  perl-base                            5.36.0-7+deb12u1                 arm64        minimal Perl system
ii  perl-modules-5.36                    5.36.0-7+deb12u1                 all          Core Perl modules
ii  perl-openssl-defaults:arm64          7+b1                             arm64        version compatibility baseline for Perl OpenSSL packages
Was sagt uns das?

CPAN habe ich nicht genutzt.
RaspberryPi3B, Bookworm Lite
Homematic Funkmodul HM-MOD-RPI-PCB
------------------------------------------------------------------------
Ich bin kein Programmierer ... aber ich weiß, auf welcher Seite der Lötkolben heiß ist.

Wernieman

O.K. da ist auch nichts auffälliges ....

Wobei .. hast DU nicht mehr perl-Module installiert?
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

efyzz

Die ein oder andere Lib habe ich sicherlich zusätzlich installiert. Hier alles zu perl:

$ dpkg -l | grep "perl"
ii  fhem                                 6.2.28184                        all          GPL'd perl server for house automation.
ii  libalgorithm-diff-perl               1.201-1                          all          module to find differences between files
ii  libalgorithm-diff-xs-perl:arm64      0.04-8+b1                        arm64        module to find differences between files (XS accelerated)
ii  libalgorithm-merge-perl              0.08-5                           all          Perl module for three-way merge of textual data
ii  libauthen-sasl-perl                  2.1600-3                         all          Authen::SASL - SASL Authentication framework
ii  libb-hooks-endofscope-perl           0.26-1                           all          module for executing code after a scope finished compilation
ii  libb-hooks-op-check-perl:arm64       0.22-2+b1                        arm64        Perl wrapper for OP check callbacks
ii  libcgi-fast-perl                     1:2.15-1                         all          CGI subclass for work with FCGI
ii  libcgi-pm-perl                       4.55-1                           all          module for Common Gateway Interface applications
ii  libclass-inspector-perl              1.36-3                           all          Perl module that provides information about classes
ii  libclass-method-modifiers-perl       2.14-1                           all          Perl module providing method modifiers
ii  libclass-xsaccessor-perl             1.19-4+b1                        arm64        Perl module providing fast XS accessors
ii  libclone-perl:arm64                  0.46-1                           arm64        module for recursively copying Perl datatypes
ii  libcommon-sense-perl:arm64           3.75-3                           arm64        module that implements some sane defaults for Perl programs
ii  libconvert-binhex-perl               1.125-3                          all          Perl5 module for extracting data from macintosh BinHex files
ii  libcrypt-cbc-perl                    3.04-3                           all          implementation of cipher block chaining (CBC) mode
ii  libcrypt-pbkdf2-perl                 0.161520-2                       all          Perl implementation of PBKDF2 password hash
ii  libcrypt-rijndael-perl               1.16-1+b2                        arm64        Perl module implementing the Rijndael algorithm
ii  libcryptx-perl                       0.077-1+b1                       arm64        Perl module that provides a self-contained cryptographic toolkit
ii  libdata-dump-perl                    1.25-1                           all          Perl module to help dump data structures
ii  libdbd-sqlite3-perl:arm64            1.72-1                           arm64        Perl DBI driver with a self-contained RDBMS
ii  libdbi-perl:arm64                    1.643-4                          arm64        Perl Database Interface (DBI)
ii  libdevel-callchecker-perl:arm64      0.008-2                          arm64        custom op checking attached to subroutines
ii  libdevice-serialport-perl            1.04-4+b1                        arm64        emulation of Win32::SerialPort for Linux/POSIX
ii  libdigest-hmac-perl                  1.04+dfsg-2                      all          module for creating standard message integrity checks
ii  libdigest-sha3-perl                  1.05-1+b1                        arm64        Perl extension for SHA-3
ii  libdpkg-perl                         1.21.22                          all          Dpkg perl modules
ii  libdynaloader-functions-perl         0.003-3                          all          deconstructed dynamic C library loading
ii  libencode-locale-perl                1.05-3                           all          utility to determine the locale encoding
ii  libexporter-tiny-perl                1.006000-1                       all          tiny exporter similar to Sub::Exporter
ii  libfcgi-perl                         0.82+ds-2                        arm64        helper module for FastCGI
ii  libfile-fcntllock-perl               0.22-4+b1                        arm64        Perl module for file locking with fcntl(2)
ii  libfile-find-rule-perl               0.34-3                           all          module to search for files based on rules
ii  libfile-listing-perl                 6.15-1                           all          module to parse directory listings
ii  libfont-afm-perl                     1.20-4                           all          Perl interface to Adobe Font Metrics files
ii  libhtml-form-perl                    6.11-1                           all          module that represents an HTML form element
ii  libhtml-format-perl                  2.16-2                           all          module for transforming HTML into various formats
ii  libhtml-parser-perl:arm64            3.81-1                           arm64        collection of modules that parse HTML text documents
ii  libhtml-tagset-perl                  3.20-6                           all          data tables pertaining to HTML
ii  libhtml-tree-perl                    5.07-3                           all          Perl module to represent and create HTML syntax trees
ii  libhttp-cookies-perl                 6.10-1                           all          HTTP cookie jars
ii  libhttp-daemon-perl                  6.16-1                           all          simple http server class
ii  libhttp-date-perl                    6.05-2                           all          module of date conversion routines
ii  libhttp-message-perl                 6.44-1                           all          perl interface to HTTP style messages
ii  libhttp-negotiate-perl               6.01-2                           all          implementation of content negotiation
ii  libimport-into-perl                  1.002005-2                       all          module for importing packages into other packages
ii  libio-html-perl                      1.004-3                          all          open an HTML file with automatic charset detection
ii  libio-sessiondata-perl               1.03-3                           all          set of modules for non-blocking I/O
ii  libio-socket-ssl-perl                2.081-2                          all          Perl module implementing object oriented interface to SSL sockets
ii  libio-stringy-perl                   2.111-3                          all          modules for I/O on in-core objects (strings/arrays)
ii  libjson-perl                         4.10000-1                        all          module for manipulating JSON-formatted data
ii  libjson-xs-perl                      4.030-2+b1                       arm64        module for manipulating JSON-formatted data (C/XS-accelerated)
ii  liblocale-gettext-perl               1.07-5                           arm64        module using libc functions for internationalization in Perl
ii  liblwp-mediatypes-perl               6.04-2                           all          module to guess media type for a file or a URL
ii  liblwp-protocol-https-perl           6.10-1                           all          HTTPS driver for LWP::UserAgent
ii  libmailtools-perl                    2.21-2                           all          modules to manipulate email in perl programs
ii  libmath-int128-perl                  0.22-4                           arm64        Perl module to manipulate 128 bits integers
ii  libmath-int64-perl                   0.54-2+b1                        arm64        module to manipulate 64 bits integers in Perl
ii  libmath-round-perl                   0.07-3                           all          Perl extension for rounding numbers
ii  libmime-tools-perl                   5.510-1                          all          Perl5 modules for MIME-compliant messages
ii  libmodule-implementation-perl        0.09-2                           all          module for loading one of several alternate implementations of a module
ii  libmodule-runtime-perl               0.016-2                          all          Perl module for runtime module handling
ii  libmoo-perl                          2.005005-1                       all          Minimalist Object Orientation library (with Moose compatibility)
ii  libnamespace-autoclean-perl          0.29-2                           all          module to remove imported symbols after compilation
ii  libnamespace-clean-perl              0.27-2                           all          module for keeping imports and functions out of the current namespace
ii  libnet-http-perl                     6.22-1                           all          module providing low-level HTTP connection client
ii  libnet-smtp-ssl-perl                 1.04-2                           all          Perl module providing SSL support to Net::SMTP
ii  libnet-ssleay-perl:arm64             1.92-2+b1                        arm64        Perl module for Secure Sockets Layer (SSL)
ii  libnumber-compare-perl               0.03-3                           all          module for performing numeric comparisons in Perl
ii  libpackage-stash-perl                0.40-1                           all          module providing routines for manipulating stashes
ii  libpackage-stash-xs-perl:arm64       0.30-1+b1                        arm64        Perl module providing routines for manipulating stashes (XS version)
ii  libparams-classify-perl:arm64        0.015-2+b1                       arm64        Perl module for argument type classification
ii  libperl5.36:arm64                    5.36.0-7+deb12u1                 arm64        shared Perl library
ii  libreadonly-perl                     2.050-3                          all          facility for creating read-only scalars, arrays and hashes
ii  libref-util-perl                     0.204-2                          all          set of utility functions for checking references
ii  libref-util-xs-perl                  0.117-2+b1                       arm64        XS implementation for Ref::Util
ii  libregexp-ipv6-perl                  0.03-3                           all          Regular expression for IPv6 addresses
ii  librole-tiny-perl                    2.002004-1                       all          Perl module for minimalist role composition
ii  librrds-perl:arm64                   1.7.2-4+b8                       arm64        time-series data storage and display system (Perl interface, shared)
ii  libsoap-lite-perl                    1.27-3                           all          Perl implementation of a SOAP client and server
ii  libstrictures-perl                   2.000006-1                       all          Perl module to turn on strict and make all warnings fatal
ii  libsub-exporter-progressive-perl     0.001013-3                       all          module for using Sub::Exporter only if needed
ii  libsub-identify-perl                 0.14-3                           arm64        module to retrieve names of code references
ii  libsub-name-perl:arm64               0.26-2+b1                        arm64        module for assigning a new name to referenced sub
ii  libsub-quote-perl                    2.006008-1                       all          helper modules for subroutines
ii  libtask-weaken-perl                  1.06-2                           all          module for ensuring that a platform has weaken support
ii  libtext-charwidth-perl:arm64         0.04-11                          arm64        get display widths of characters on the terminal
ii  libtext-diff-perl                    1.45-2                           all          Perl module to find differences in files and record sets
ii  libtext-glob-perl                    0.11-3                           all          Perl module for matching globbing patterns against text
ii  libtext-iconv-perl:arm64             1.7-8                            arm64        module to convert between character sets in Perl
ii  libtext-wrapi18n-perl                0.06-10                          all          internationalized substitute of Text::Wrap
ii  libtimedate-perl                     2.3300-2                         all          collection of modules to manipulate date/time information
ii  libtry-tiny-perl                     0.31-2                           all          module providing minimalistic try/catch
ii  libtype-tiny-perl                    2.002001-1                       all          tiny, yet Moo(se)-compatible type constraint
ii  libtype-tiny-xs-perl:arm64           0.025-1                          arm64        boost for some of Type::Tiny's built-in type constraints
ii  libtypes-serialiser-perl             1.01-1                           all          module providing simple data types for common serialisation formats
ii  liburi-perl                          5.17-1                           all          module to manipulate and access URI strings
ii  libvariable-magic-perl               0.63-1+b1                        arm64        module to associate user-defined magic to variables from Perl
ii  libwww-perl                          6.68-1                           all          simple and consistent interface to the world-wide web
ii  libwww-robotrules-perl               6.02-1                           all          database of robots.txt-derived permissions
ii  libxml-libxml-perl                   2.0207+dfsg+really+2.0134-1+b1   arm64        Perl interface to the libxml2 library
ii  libxml-namespacesupport-perl         1.12-2                           all          Perl module for supporting simple generic namespaces
ii  libxml-parser-perl                   2.46-4                           arm64        Perl module for parsing XML files
ii  libxml-sax-base-perl                 1.09-3                           all          base class for SAX drivers and filters
ii  libxml-sax-expat-perl                0.51-2                           all          Perl module for a SAX2 driver for Expat (XML::Parser)
ii  libxml-sax-perl                      1.02+dfsg-3                      all          Perl module for using and building Perl SAX2 XML processors
ii  libxml-simple-perl                   2.25-2                           all          Perl module for reading and writing XML
ii  libxmlrpc-lite-perl                  0.717-5                          all          client and server implementation of the XML-RPC protocol
ii  libxstring-perl:arm64                0.005-2+b1                       arm64        module containing isolated string helpers from B
ii  perl                                 5.36.0-7+deb12u1                 arm64        Larry Wall's Practical Extraction and Report Language
ii  perl-base                            5.36.0-7+deb12u1                 arm64        minimal Perl system
ii  perl-modules-5.36                    5.36.0-7+deb12u1                 all          Core Perl modules
ii  perl-openssl-defaults:arm64          7+b1                             arm64        version compatibility baseline for Perl OpenSSL packages
RaspberryPi3B, Bookworm Lite
Homematic Funkmodul HM-MOD-RPI-PCB
------------------------------------------------------------------------
Ich bin kein Programmierer ... aber ich weiß, auf welcher Seite der Lötkolben heiß ist.

efyzz

Ich habe mal in den Apt Cache geschaut:
$ ls -l /var/cache/apt/archives/ow*
-rw-r--r-- 1 root root  6012 Oct 31  2022 /var/cache/apt/archives/owfs_3.2p4+dfsg1-4.1_all.deb
-rw-r--r-- 1 root root 14368 Oct 31  2022 /var/cache/apt/archives/owfs-common_3.2p4+dfsg1-4.1_all.deb
-rw-r--r-- 1 root root 20828 Jan  6  2023 /var/cache/apt/archives/owfs-fuse_3.2p4+dfsg1-4.1+b1_arm64.deb
-rw-r--r-- 1 root root 42660 Jan  6  2023 /var/cache/apt/archives/owftpd_3.2p4+dfsg1-4.1+b1_arm64.deb
-rw-r--r-- 1 root root 28676 Jan  6  2023 /var/cache/apt/archives/owhttpd_3.2p4+dfsg1-4.1+b1_arm64.deb
-rw-r--r-- 1 root root 28564 Jan  6  2023 /var/cache/apt/archives/owserver_3.2p4+dfsg1-4.1+b1_arm64.deb
-rw-r--r-- 1 root root 29208 Jan  6  2023 /var/cache/apt/archives/ow-shell_3.2p4+dfsg1-4.1+b1_arm64.deb

Die Pakete sind aus Januar 2023 und älter. Beweist das nicht, dass sie beim apt upgrade letzte Woche nicht dabei waren? Stattdessen wird es bei der Bookworm-Installation im November schon dieselbe Version gewesen sein.
Somit liegt es also nicht an der OWserver-Version. Oder sehe ich das falsch?
RaspberryPi3B, Bookworm Lite
Homematic Funkmodul HM-MOD-RPI-PCB
------------------------------------------------------------------------
Ich bin kein Programmierer ... aber ich weiß, auf welcher Seite der Lötkolben heiß ist.

Dr. Boris Neubert

Hallo,

es spricht einiges dafür, die Ursache an einer anderen Stelle zu suchen.

Bedenklich finde ich es, dass ich noch nicht einmal den owserver zum Laufen bringe.

Ich schwanke zwischen meine Zeit anderweitig zu verbringen und meinem Jagdtrieb nachzugehen. Vielleicht aktualisiere ich meinen Server diese Woche erst einmal auf Debian 12 Bookworm und starte mit einer sauberen Installation der owserver-Pakete neu.

Bevor ich den owserver und owhttp bei mir nicht am Laufen habe, ist an einer Weitersuche gar nicht zu denken.

Viele Grüße
Boris
Globaler Moderator, Developer, aktives Mitglied des FHEM e.V. (Marketing, Verwaltung)
Bitte keine unaufgeforderten privaten Nachrichten!

efyzz

Hallo Boris,

dann hoffe ich mal, dass Dich der Jagdtrieb noch packt :)

Ich habe mir erstmal eine Krücke gebaut und lese die Temperaturen nun mit HTTPMOD vom owhttpd.

Bis dahin, Waidmannsheil!
RaspberryPi3B, Bookworm Lite
Homematic Funkmodul HM-MOD-RPI-PCB
------------------------------------------------------------------------
Ich bin kein Programmierer ... aber ich weiß, auf welcher Seite der Lötkolben heiß ist.