[GELÖST] fhempy: Server startet nicht mehr

Begonnen von MarkusAutomaticus, 03 Mai 2024, 18:17:05

Vorheriges Thema - Nächstes Thema

MarkusAutomaticus

Hallo zusammen,

ich habe fhempy zur Anbindung meiner RCT Solaranlage in FHEM integriert.
Ein Zeit lang hat auch alles geklappt, aber nun ist der fhempy Server und fhempy rot.

Als Fehlermeldung sehe ich folgendes:
prev_error
127.0.0.1: Verbindungsaufbau abgelehnt (111)

Es wird auch angezeigt, dass es eine neue Version gibt:

hostname
Jarvis4
2023-11-01 11:24:59
os
posix
2023-11-01 11:24:59
python
3.10.12
2023-11-01 11:24:59
release
5.15.0-87-generic
2023-11-01 11:24:59
state
disconnected
2024-05-03 18:06:06
system
Linux
2023-11-01 11:24:59
version
0.1.660
2023-11-01 11:24:59
version_available
0.1.694
2023-12-28 11:25:23
version_release_notes
Release Notes
2023-12-28 11:25:23



Aber weder ein "set update" noch ein update und NEustart von FHEM habe etwas gebracht.

Auch das Kommando:
sudo -u fhem pip3 install --upgrade fhempy welches ich hier aufgeschnappt habe, hat nichts am Zustand geändert.

Folgendes ist die Ausgabe obigen Kommandos:
markus@Jarvis4:~$ sudo -u fhem pip3 install --upgrade fhempy
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: fhempy in /opt/fhem/.local/lib/python3.10/site-packages (0.1.660)
Collecting fhempy
  Downloading fhempy-0.1.740-py3-none-any.whl (4.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 6.2 MB/s eta 0:00:00
Collecting websockets==12.0
  Downloading websockets-12.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (130 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 130.2/130.2 KB 10.7 MB/s eta 0:00:00
Collecting aiohttp[speedups]==3.9.5
  Downloading aiohttp-3.9.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 8.3 MB/s eta 0:00:00
Requirement already satisfied: requests==2.31.0 in /opt/fhem/.local/lib/python3.10/site-packages (from fhempy) (2.31.0)
Collecting packaging==24.0
  Downloading packaging-24.0-py3-none-any.whl (53 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.5/53.5 KB 5.0 MB/s eta 0:00:00
Requirement already satisfied: ifaddr==0.2.0 in /opt/fhem/.local/lib/python3.10/site-packages (from fhempy) (0.2.0)
Collecting pycryptodomex==3.20.0
  Downloading pycryptodomex-3.20.0-cp35-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 10.3 MB/s eta 0:00:00
Collecting pexpect==4.9.0
  Downloading pexpect-4.9.0-py2.py3-none-any.whl (63 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.8/63.8 KB 5.9 MB/s eta 0:00:00
Collecting markdown2==2.4.13
  Downloading markdown2-2.4.13-py2.py3-none-any.whl (41 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.3/41.3 KB 3.4 MB/s eta 0:00:00
Collecting aiofiles==23.2.1
  Downloading aiofiles-23.2.1-py3-none-any.whl (15 kB)
Collecting importlib_metadata==7.1.0
  Downloading importlib_metadata-7.1.0-py3-none-any.whl (24 kB)
Collecting zeroconf==0.131.0
  Downloading zeroconf-0.131.0-cp310-cp310-manylinux_2_31_x86_64.whl (10.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.4/10.4 MB 16.0 MB/s eta 0:00:00
Collecting async-upnp-client==0.38.3
  Downloading async_upnp_client-0.38.3.tar.gz (96 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.3/96.3 KB 10.4 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Requirement already satisfied: yarl<2.0,>=1.0 in /opt/fhem/.local/lib/python3.10/site-packages (from aiohttp[speedups]==3.9.5->fhempy) (1.9.2)
Requirement already satisfied: async-timeout<5.0,>=4.0 in /opt/fhem/.local/lib/python3.10/site-packages (from aiohttp[speedups]==3.9.5->fhempy) (4.0.2)
Requirement already satisfied: multidict<7.0,>=4.5 in /opt/fhem/.local/lib/python3.10/site-packages (from aiohttp[speedups]==3.9.5->fhempy) (6.0.4)
Requirement already satisfied: frozenlist>=1.1.1 in /opt/fhem/.local/lib/python3.10/site-packages (from aiohttp[speedups]==3.9.5->fhempy) (1.4.0)
Requirement already satisfied: attrs>=17.3.0 in /opt/fhem/.local/lib/python3.10/site-packages (from aiohttp[speedups]==3.9.5->fhempy) (23.1.0)
Requirement already satisfied: aiosignal>=1.1.2 in /opt/fhem/.local/lib/python3.10/site-packages (from aiohttp[speedups]==3.9.5->fhempy) (1.3.1)
Requirement already satisfied: Brotli in /opt/fhem/.local/lib/python3.10/site-packages (from aiohttp[speedups]==3.9.5->fhempy) (1.0.9)
Requirement already satisfied: aiodns in /opt/fhem/.local/lib/python3.10/site-packages (from aiohttp[speedups]==3.9.5->fhempy) (3.0.0)
Requirement already satisfied: defusedxml>=0.6.0 in /opt/fhem/.local/lib/python3.10/site-packages (from async-upnp-client==0.38.3->fhempy) (0.7.1)
Collecting python-didl-lite~=1.4.0
  Downloading python-didl-lite-1.4.0.tar.gz (15 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: voluptuous>=0.12.1 in /opt/fhem/.local/lib/python3.10/site-packages (from async-upnp-client==0.38.3->fhempy) (0.13.1)
Requirement already satisfied: zipp>=0.5 in /usr/lib/python3/dist-packages (from importlib_metadata==7.1.0->fhempy) (1.0.0)
Collecting ptyprocess>=0.5
  Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests==2.31.0->fhempy) (3.3)
Requirement already satisfied: charset-normalizer<4,>=2 in /opt/fhem/.local/lib/python3.10/site-packages (from requests==2.31.0->fhempy) (3.2.0)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests==2.31.0->fhempy) (2020.6.20)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/lib/python3/dist-packages (from requests==2.31.0->fhempy) (1.26.5)
Requirement already satisfied: pycares>=4.0.0 in /opt/fhem/.local/lib/python3.10/site-packages (from aiodns->aiohttp[speedups]==3.9.5->fhempy) (4.3.0)
Requirement already satisfied: cffi>=1.5.0 in /opt/fhem/.local/lib/python3.10/site-packages (from pycares>=4.0.0->aiodns->aiohttp[speedups]==3.9.5->fhempy) (1.15.1)
Requirement already satisfied: pycparser in /opt/fhem/.local/lib/python3.10/site-packages (from cffi>=1.5.0->pycares>=4.0.0->aiodns->aiohttp[speedups]==3.9.5->fhempy) (2.21)
Building wheels for collected packages: async-upnp-client, python-didl-lite
  Building wheel for async-upnp-client (setup.py) ... done
  Created wheel for async-upnp-client: filename=async_upnp_client-0.38.3-py3-none-any.whl size=87994 sha256=fc832bf729e5fe5046c6a003f217a451023218c8cf05e4cbe92b64ce13c19767
  Stored in directory: /opt/fhem/.cache/pip/wheels/eb/d4/b9/36efc56d03ca65f507a55b829bc9e5d4adc2a3191419e08fed
  Building wheel for python-didl-lite (setup.py) ... done
  Created wheel for python-didl-lite: filename=python_didl_lite-1.4.0-py3-none-any.whl size=12952 sha256=31804c8dcd36246a90bc0f4788d199d1dfad0ad29cfa6c065632f805e50808a5
  Stored in directory: /opt/fhem/.cache/pip/wheels/12/09/c5/0e483ab2294a38bd8b3b66ef0e363ad70c0fc1a2c7104ffd34
Successfully built async-upnp-client python-didl-lite
Installing collected packages: ptyprocess, zeroconf, websockets, python-didl-lite, pycryptodomex, pexpect, packaging, markdown2, importlib_metadata, aiofiles, aiohttp, async-upnp-client, fhempy
  Attempting uninstall: zeroconf
    Found existing installation: zeroconf 0.64.1
    Uninstalling zeroconf-0.64.1:
      Successfully uninstalled zeroconf-0.64.1
  Attempting uninstall: websockets
    Found existing installation: websockets 11.0.3
    Uninstalling websockets-11.0.3:
      Successfully uninstalled websockets-11.0.3
  Attempting uninstall: python-didl-lite
    Found existing installation: python-didl-lite 1.3.2
    Uninstalling python-didl-lite-1.3.2:
      Successfully uninstalled python-didl-lite-1.3.2
  Attempting uninstall: pycryptodomex
    Found existing installation: pycryptodomex 3.18.0
    Uninstalling pycryptodomex-3.18.0:
      Successfully uninstalled pycryptodomex-3.18.0
  Attempting uninstall: markdown2
    Found existing installation: markdown2 2.4.8
    Uninstalling markdown2-2.4.8:
      Successfully uninstalled markdown2-2.4.8
  WARNING: The script markdown2 is installed in '/opt/fhem/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  Attempting uninstall: importlib_metadata
    Found existing installation: importlib-metadata 6.1.0
    Uninstalling importlib-metadata-6.1.0:
      Successfully uninstalled importlib-metadata-6.1.0
  Attempting uninstall: aiohttp
    Found existing installation: aiohttp 3.8.4
    Uninstalling aiohttp-3.8.4:
      Successfully uninstalled aiohttp-3.8.4
  Attempting uninstall: async-upnp-client
    Found existing installation: async-upnp-client 0.31.2
    Uninstalling async-upnp-client-0.31.2:
      Successfully uninstalled async-upnp-client-0.31.2
  WARNING: The script upnp-client is installed in '/opt/fhem/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  Attempting uninstall: fhempy
    Found existing installation: fhempy 0.1.660
    Uninstalling fhempy-0.1.660:
      Successfully uninstalled fhempy-0.1.660
  WARNING: The script fhempy is installed in '/opt/fhem/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed aiofiles-23.2.1 aiohttp-3.9.5 async-upnp-client-0.38.3 fhempy-0.1.740 importlib_metadata-7.1.0 markdown2-2.4.13 packaging-24.0 pexpect-4.9.0 ptyprocess-0.7.0 pycryptodomex-3.20.0 python-didl-lite-1.4.0 websockets-12.0 zeroconf-0.131.0

Wie bekomme ich das System wieder ans Laufen?
FHEM 5.8 |intel NUC Core i3: Ubuntu 22.04 | z-Wave: Aeon Labs USB Stick | Jeelink (v3c): LaCrosse-Sensoren | DuoFern Stick: Rademacher Gurtwickler | Philips Hue Bridge | CUNX: HomeMatic, EnOcean-Pigator

MarkusAutomaticus

Hier noch die Definition:

[code]define fhempy_local BindingsIo fhempy
attr fhempy_local alias fhempy_local
attr fhempy_local devStateIcon {      my $attr_ver = "1.1.0";;;;      my $status_img = "10px-kreis-gruen";;;;      my $status_txt = "connected";;;;      my $ver = ReadingsVal($name, "version", "-");;;;      my $ver_available = ReadingsVal($name, "version_available", $ver);;;;      my $update_icon = "";;;;      my $refresh_img = "refresh";;;;      my $refresh_txt = "Update fhempy";;;;      if ($ver_available ne $ver) {        $refresh_img = "refresh\@orange";;;;        $refresh_txt = "Version ".$ver_available." available for update";;;;      }      if (ReadingsVal($name, "state", "disconnected") eq "disconnected") {        $status_img = "10px-kreis-rot";;;;        $status_txt = "disconnected";;;;      }      $update_icon = "<a  href=\"/fhem?cmd.dummy=set $name update&XHR=1\" title=\"Start ".$ver_available." update\">".FW_makeImage($refresh_img, $refresh_txt)."</a>";;;;      my $restart_icon = "<a  href=\"/fhem?cmd.dummy=set $name restart&XHR=1\" title=\"Restart fhempy\">".FW_makeImage("control_reboot")."</a>";;;;      "<div><a>".FW_makeImage($status_img, $status_txt)."</a><a> ".$ver." </a>".$update_icon.$restart_icon."</div>"    }
attr fhempy_local group fhempy
attr fhempy_local icon file_json-ld2
attr fhempy_local room fhempy
#   BindingType fhempy
#   DEF        fhempy
#   DeviceName ws:127.0.0.1:15733
#   FUUID      64c3ef29-f33f-939b-6b92-e550960611890af5
#   IP         127.0.0.1
#   NAME       fhempy_local
#   NEXT_OPEN  1714753325.39437
#   NR         564
#   NTFY_ORDER 50-fhempy_local
#   PARTIAL   
#   PORT       15733
#   STATE      disconnected
#   TYPE       BindingsIo
#   binary     1
#   devioLoglevel 0
#   eventCount 3
#   installing 0
#   localBinding 1
#   nextOpenDelay 10
#   prev_error 127.0.0.1: Verbindungsaufbau abgelehnt (111)
#   READINGS:
#     2023-11-01 11:24:59   hostname        Jarvis4
#     2023-11-01 11:24:59   os              posix
#     2023-11-01 11:24:59   python          3.10.12
#     2023-11-01 11:24:59   release         5.15.0-87-generic
#     2024-05-03 18:21:55   state           disconnected
#     2023-11-01 11:24:59   system          Linux
#     2023-11-01 11:24:59   version         0.1.660
#     2023-12-28 11:25:23   version_available 0.1.694
#     2023-12-28 11:25:23   version_release_notes <html><a href="https://github.com/fhempy/fhempy/releases" target="_blank">Release Notes</a></html>
#   args:
#     fhempy_local
#     BindingsIo
#     fhempy
#   messages:
#     0:
#
setstate fhempy_local disconnected
setstate fhempy_local 2023-11-01 11:24:59 hostname Jarvis4
setstate fhempy_local 2023-11-01 11:24:59 os posix
setstate fhempy_local 2023-11-01 11:24:59 python 3.10.12
setstate fhempy_local 2023-11-01 11:24:59 release 5.15.0-87-generic
setstate fhempy_local 2024-05-03 18:21:55 state disconnected
setstate fhempy_local 2023-11-01 11:24:59 system Linux
setstate fhempy_local 2023-11-01 11:24:59 version 0.1.660
setstate fhempy_local 2023-12-28 11:25:23 version_available 0.1.694
setstate fhempy_local 2023-12-28 11:25:23 version_release_notes <html><a href="https://github.com/fhempy/fhempy/releases" target="_blank">Release Notes</a></html>

[/code]
FHEM 5.8 |intel NUC Core i3: Ubuntu 22.04 | z-Wave: Aeon Labs USB Stick | Jeelink (v3c): LaCrosse-Sensoren | DuoFern Stick: Rademacher Gurtwickler | Philips Hue Bridge | CUNX: HomeMatic, EnOcean-Pigator

MarkusAutomaticus

Okay, wer log-files lesen kann ist klar im Vorteil  ;D

nachdem ich folgendes eingerichtet habe ist jetzt plötzlich alles gut!
sudo apt install python3.10-venv
FHEM 5.8 |intel NUC Core i3: Ubuntu 22.04 | z-Wave: Aeon Labs USB Stick | Jeelink (v3c): LaCrosse-Sensoren | DuoFern Stick: Rademacher Gurtwickler | Philips Hue Bridge | CUNX: HomeMatic, EnOcean-Pigator