Dateien nach Neuinstallation kopieren

Begonnen von MandelHL, 02 Oktober 2020, 14:19:18

Vorheriges Thema - Nächstes Thema

MandelHL

Meine geht nicht. Die hatte ich jahrelang genutzt und zuletzt in 2017 gesichert. Die Sicherung habe ich jetzt eingespielt und geht nicht ...

Otto123

#31
Hi,

ich habe es jetzt nicht ganz verstanden, aber:

  • Wenn Du eine alte fhem.cfg hast - die nicht funktioniert.
  • Wenn eine neue FHEM Installation funktioniert.
Dann:

  • starte eine neues FHEM
  • öffne in einem beliebigen Windows Editor deine alte nicht funktionierende fhem.cfg
  • öffne in einem Browser dein neues FHEM
  • öffne die Raw Def https://wiki.fhem.de/wiki/Erste_Schritte_in_FHEM
  • Und kopiere Abschnitt für Abschnitt aus Deiner alten cfg den Block in die das Raw Def Fenster und drücke execute.

Kontrolliere nach jedem Schritt den Erfolg! Vielleicht einfach in einem zweiten Browser Fenster!
Wenn der Erfolg gut aussieht drückst Du save!

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

MandelHL

ZitatDeaktiviere doch mal den initialUsbCheck...
Erledigt.

Hilft allerdings nicht, um FHEM aufzurufen.

Zitatls -la /opt/fhem/log/fhem-2020*
pi@raspberrypi:~ $ ls -la /opt/fhem/log/fhem-2020*
-rw-r--r-- 1 fhem dialout     4129 Oct  2 14:17 /opt/fhem/log/fhem-2020-10-02.log
-rw-r--r-- 1 fhem dialout    23326 Oct  3 08:53 /opt/fhem/log/fhem-2020-10-03.log
-rw-r--r-- 1 fhem dialout  7809193 Oct  4 23:59 /opt/fhem/log/fhem-2020-10-04.log
-rw-r--r-- 1 fhem dialout 21331800 Oct  5 19:35 /opt/fhem/log/fhem-2020-10-05.log
-rw-r--r-- 1 fhem dialout     1159 Oct  2 12:58 /opt/fhem/log/fhem-2020-10.log


Zitatls -la /opt/fhem/log/fhem-*
pi@raspberrypi:~ $ ls -la /opt/fhem/log/fhem-*
-rw-r--r-- 1 fhem dialout     4129 Oct  2 14:17 /opt/fhem/log/fhem-2020-10-02.log
-rw-r--r-- 1 fhem dialout    23326 Oct  3 08:53 /opt/fhem/log/fhem-2020-10-03.log
-rw-r--r-- 1 fhem dialout  7809193 Oct  4 23:59 /opt/fhem/log/fhem-2020-10-04.log
-rw-r--r-- 1 fhem dialout 21299593 Oct  5 19:34 /opt/fhem/log/fhem-2020-10-05.log
-rw-r--r-- 1 fhem dialout     1159 Oct  2 12:58 /opt/fhem/log/fhem-2020-10.log


ZitatDann die Frage (nochmal ;) ): hast du ein telnet-Device definiert!?
define telnetPort telnet 7072 global
Ist es das?

Zitatcat /opt/fhem/fhem.cfg | grep telnet
pi@raspberrypi:~ $ cat /opt/fhem/fhem.cfg | grep telnet
telnetPort has no associated allowed device with password/globalpassword.\
define telnetPort telnet 7072 global
attr telnetPort room System


Ich hoffe, die Infos helfen, um mein Problem zu lösen.

DANKE.

MadMax-FHEM

Naja, du scheinst Tages-Logs zu haben...

Daher halt den Inhalt des aktuellen Logs posten... ;)

EDIT: also z.B. cat /opt/fhem/log/fhem-2020-10-05.log

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)

MandelHL

Zitatcat /opt/fhem/log/fhem-2020-10-05.log
Undefined subroutine &main::SONOS_getSonosPlayerByName called at ./FHEM/21_SONOS            PLAYER.pm line 242, <$fh> line 7.
2020.10.05 20:25:51 3: global: unknown attribute uniqueID. Type 'attr global ?'             for a detailed list.
2020.10.05 20:25:51 1: Including fhem.cfg
2020.10.05 20:25:51 3: global: unknown attribute uniqueID. Type 'attr global ?'             for a detailed list.
2020.10.05 20:25:52 3: telnetPort: port 7072 opened
2020.10.05 20:25:52 3: WEB: port 8083 opened
2020.10.05 20:25:52 3: WEBphone: port 8084 opened
2020.10.05 20:25:52 3: WEBtablet: port 8085 opened
2020.10.05 20:25:53 1: HMLAN_Parse: HMLAN1 new condition disconnected
2020.10.05 20:25:53 3: Opening HMLAN1 device 192.168.178.10:1000
2020.10.05 20:25:56 1: HMLAN1: Can't connect to 192.168.178.10:1000: Connection             timed out
2020.10.05 20:25:56 1: Including ./FHEM/Aktoren_Schalter.cfg
2020.10.05 20:25:57 1: Including ./FHEM/Aktoren_Sensoren.cfg
2020.10.05 20:25:57 1: Including ./FHEM/Beleuchtung_Aussenbereich.cfg
2020.10.05 20:25:57 1: Including ./FHEM/Geraeteueberwachung.cfg
2020.10.05 20:25:57 1: Including ./FHEM/wetter_yahoo_und_twilight.cfg
2020.10.05 20:26:00 1: define YahooWetter Weather 12832620 600 de: syntax: defin            e <name> Weather [API=<API>] [apikey=<apikey>] [location=<location>] [interval=<            interval>] [lang=<lang>]
2020.10.05 20:26:00 2: [T] Note: Twilight formerly used weather info from yahoo,             but source is offline.
2020.10.05 20:26:00 1: Including ./FHEM/vccu.cfg
2020.10.05 20:26:00 1: Including ./FHEM/Plots.cfg
2020.10.05 20:26:00 1: Including ./FHEM/Sonos.cfg
2020.10.05 20:26:01 1: reload: Error:Modul 00_SONOS deactivated:
Can't locate SOAP/Lite.pm in @INC (you may need to install the SOAP::Lite modul            e) (@INC contains: fhem.p/lib fhem.p/FHEM/lib ./FHEM/lib ./lib ./FHEM ./ /usr/lo            cal/FHEM/share/fhem/FHEM/lib . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl            /5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gnueabihf/perl5/5.28 /us            r/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/share/perl/5.28 /usr/l            ocal/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base) at FHEM/lib/UPnP/Comm            on.pm line 108.
BEGIN failed--compilation aborted at FHEM/lib/UPnP/Common.pm line 108.
Compilation failed in require at FHEM/lib/UPnP/ControlPoint.pm line 39.
BEGIN failed--compilation aborted at FHEM/lib/UPnP/ControlPoint.pm line 39.
Compilation failed in require at ./FHEM/00_SONOS.pm line 194.
BEGIN failed--compilation aborted at ./FHEM/00_SONOS.pm line 194.

2020.10.05 20:26:01 0: Can't locate SOAP/Lite.pm in @INC (you may need to instal            l the SOAP::Lite module) (@INC contains: fhem.p/lib fhem.p/FHEM/lib ./FHEM/lib .            /lib ./FHEM ./ /usr/local/FHEM/share/fhem/FHEM/lib . /etc/perl /usr/local/lib/ar            m-linux-gnueabihf/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gn            ueabihf/perl5/5.28 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/            share/perl/5.28 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base)             at FHEM/lib/UPnP/Common.pm line 108.
BEGIN failed--compilation aborted at FHEM/lib/UPnP/Common.pm line 108.
Compilation failed in require at FHEM/lib/UPnP/ControlPoint.pm line 39.
BEGIN failed--compilation aborted at FHEM/lib/UPnP/ControlPoint.pm line 39.
Compilation failed in require at ./FHEM/00_SONOS.pm line 194.
BEGIN failed--compilation aborted at ./FHEM/00_SONOS.pm line 194.

Undefined subroutine &main::SONOS_getSonosPlayerByName called at ./FHEM/21_SONOS            PLAYER.pm line 242, <$fh> line 7.
2020.10.05 20:26:03 3: global: unknown attribute uniqueID. Type 'attr global ?'             for a detailed list.
2020.10.05 20:26:03 1: Including fhem.cfg
2020.10.05 20:26:03 3: global: unknown attribute uniqueID. Type 'attr global ?'             for a detailed list.
2020.10.05 20:26:03 3: telnetPort: port 7072 opened
2020.10.05 20:26:04 3: WEB: port 8083 opened
2020.10.05 20:26:04 3: WEBphone: port 8084 opened
2020.10.05 20:26:04 3: WEBtablet: port 8085 opened
2020.10.05 20:26:04 1: HMLAN_Parse: HMLAN1 new condition disconnected
2020.10.05 20:26:04 3: Opening HMLAN1 device 192.168.178.10:1000
2020.10.05 20:26:07 1: HMLAN1: Can't connect to 192.168.178.10:1000: Connection             timed out
2020.10.05 20:26:07 1: Including ./FHEM/Aktoren_Schalter.cfg
2020.10.05 20:26:08 1: Including ./FHEM/Aktoren_Sensoren.cfg
2020.10.05 20:26:08 1: Including ./FHEM/Beleuchtung_Aussenbereich.cfg
2020.10.05 20:26:09 1: Including ./FHEM/Geraeteueberwachung.cfg
2020.10.05 20:26:09 1: Including ./FHEM/wetter_yahoo_und_twilight.cfg
2020.10.05 20:26:11 1: define YahooWetter Weather 12832620 600 de: syntax: defin            e <name> Weather [API=<API>] [apikey=<apikey>] [location=<location>] [interval=<            interval>] [lang=<lang>]
2020.10.05 20:26:12 2: [T] Note: Twilight formerly used weather info from yahoo,             but source is offline.
2020.10.05 20:26:12 1: Including ./FHEM/vccu.cfg
2020.10.05 20:26:12 1: Including ./FHEM/Plots.cfg
2020.10.05 20:26:12 1: Including ./FHEM/Sonos.cfg
2020.10.05 20:26:12 1: reload: Error:Modul 00_SONOS deactivated:
Can't locate SOAP/Lite.pm in @INC (you may need to install the SOAP::Lite modul            e) (@INC contains: fhem.p/lib fhem.p/FHEM/lib ./FHEM/lib ./lib ./FHEM ./ /usr/lo            cal/FHEM/share/fhem/FHEM/lib . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl            /5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gnueabihf/perl5/5.28 /us            r/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/share/perl/5.28 /usr/l            ocal/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base) at FHEM/lib/UPnP/Comm            on.pm line 108.
BEGIN failed--compilation aborted at FHEM/lib/UPnP/Common.pm line 108.
Compilation failed in require at FHEM/lib/UPnP/ControlPoint.pm line 39.
BEGIN failed--compilation aborted at FHEM/lib/UPnP/ControlPoint.pm line 39.
Compilation failed in require at ./FHEM/00_SONOS.pm line 194.
BEGIN failed--compilation aborted at ./FHEM/00_SONOS.pm line 194.

2020.10.05 20:26:12 0: Can't locate SOAP/Lite.pm in @INC (you may need to instal            l the SOAP::Lite module) (@INC contains: fhem.p/lib fhem.p/FHEM/lib ./FHEM/lib .            /lib ./FHEM ./ /usr/local/FHEM/share/fhem/FHEM/lib . /etc/perl /usr/local/lib/ar            m-linux-gnueabihf/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gn            ueabihf/perl5/5.28 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/            share/perl/5.28 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base)             at FHEM/lib/UPnP/Common.pm line 108.
BEGIN failed--compilation aborted at FHEM/lib/UPnP/Common.pm line 108.
Compilation failed in require at FHEM/lib/UPnP/ControlPoint.pm line 39.
BEGIN failed--compilation aborted at FHEM/lib/UPnP/ControlPoint.pm line 39.
Compilation failed in require at ./FHEM/00_SONOS.pm line 194.
BEGIN failed--compilation aborted at ./FHEM/00_SONOS.pm line 194.

Undefined subroutine &main::SONOS_getSonosPlayerByName called at ./FHEM/21_SONOS            PLAYER.pm line 242, <$fh> line 7.
2020.10.05 20:26:14 3: global: unknown attribute uniqueID. Type 'attr global ?'             for a detailed list.
2020.10.05 20:26:14 1: Including fhem.cfg
2020.10.05 20:26:14 3: global: unknown attribute uniqueID. Type 'attr global ?'             for a detailed list.
2020.10.05 20:26:14 3: telnetPort: port 7072 opened
2020.10.05 20:26:15 3: WEB: port 8083 opened
2020.10.05 20:26:15 3: WEBphone: port 8084 opened
2020.10.05 20:26:15 3: WEBtablet: port 8085 opened
2020.10.05 20:26:15 1: HMLAN_Parse: HMLAN1 new condition disconnected
2020.10.05 20:26:15 3: Opening HMLAN1 device 192.168.178.10:1000
2020.10.05 20:26:18 1: HMLAN1: Can't connect to 192.168.178.10:1000: Connection             timed out
2020.10.05 20:26:18 1: Including ./FHEM/Aktoren_Schalter.cfg
2020.10.05 20:26:19 1: Including ./FHEM/Aktoren_Sensoren.cfg
2020.10.05 20:26:20 1: Including ./FHEM/Beleuchtung_Aussenbereich.cfg
2020.10.05 20:26:20 1: Including ./FHEM/Geraeteueberwachung.cfg
2020.10.05 20:26:20 1: Including ./FHEM/wetter_yahoo_und_twilight.cfg
2020.10.05 20:26:23 1: define YahooWetter Weather 12832620 600 de: syntax: defin            e <name> Weather [API=<API>] [apikey=<apikey>] [location=<location>] [interval=<            interval>] [lang=<lang>]
2020.10.05 20:26:23 2: [T] Note: Twilight formerly used weather info from yahoo,             but source is offline.
2020.10.05 20:26:23 1: Including ./FHEM/vccu.cfg
2020.10.05 20:26:23 1: Including ./FHEM/Plots.cfg
2020.10.05 20:26:23 1: Including ./FHEM/Sonos.cfg
2020.10.05 20:26:24 1: reload: Error:Modul 00_SONOS deactivated:
Can't locate SOAP/Lite.pm in @INC (you may need to install the SOAP::Lite modul            e) (@INC contains: fhem.p/lib fhem.p/FHEM/lib ./FHEM/lib ./lib ./FHEM ./ /usr/lo            cal/FHEM/share/fhem/FHEM/lib . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl            /5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gnueabihf/perl5/5.28 /us            r/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/share/perl/5.28 /usr/l            ocal/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base) at FHEM/lib/UPnP/Comm            on.pm line 108.
BEGIN failed--compilation aborted at FHEM/lib/UPnP/Common.pm line 108.
Compilation failed in require at FHEM/lib/UPnP/ControlPoint.pm line 39.
BEGIN failed--compilation aborted at FHEM/lib/UPnP/ControlPoint.pm line 39.
Compilation failed in require at ./FHEM/00_SONOS.pm line 194.
BEGIN failed--compilation aborted at ./FHEM/00_SONOS.pm line 194.

2020.10.05 20:26:24 0: Can't locate SOAP/Lite.pm in @INC (you may need to instal            l the SOAP::Lite module) (@INC contains: fhem.p/lib fhem.p/FHEM/lib ./FHEM/lib .            /lib ./FHEM ./ /usr/local/FHEM/share/fhem/FHEM/lib . /etc/perl /usr/local/lib/ar            m-linux-gnueabihf/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gn            ueabihf/perl5/5.28 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/            share/perl/5.28 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base)             at FHEM/lib/UPnP/Common.pm line 108.
BEGIN failed--compilation aborted at FHEM/lib/UPnP/Common.pm line 108.
Compilation failed in require at FHEM/lib/UPnP/ControlPoint.pm line 39.
BEGIN failed--compilation aborted at FHEM/lib/UPnP/ControlPoint.pm line 39.
Compilation failed in require at ./FHEM/00_SONOS.pm line 194.
BEGIN failed--compilation aborted at ./FHEM/00_SONOS.pm line 194.

Undefined subroutine &main::SONOS_getSonosPlayerByName called at ./FHEM/21_SONOS            PLAYER.pm line 242, <$fh> line 7.
2020.10.05 20:26:25 3: global: unknown attribute uniqueID. Type 'attr global ?'             for a detailed list.
2020.10.05 20:26:25 1: Including fhem.cfg
2020.10.05 20:26:25 3: global: unknown attribute uniqueID. Type 'attr global ?'             for a detailed list.
2020.10.05 20:26:26 3: telnetPort: port 7072 opened
2020.10.05 20:26:26 3: WEB: port 8083 opened
2020.10.05 20:26:26 3: WEBphone: port 8084 opened
2020.10.05 20:26:26 3: WEBtablet: port 8085 opened
2020.10.05 20:26:26 1: HMLAN_Parse: HMLAN1 new condition disconnected
2020.10.05 20:26:26 3: Opening HMLAN1 device 192.168.178.10:1000
2020.10.05 20:26:29 1: HMLAN1: Can't connect to 192.168.178.10:1000: Connection             timed out
2020.10.05 20:26:30 1: Including ./FHEM/Aktoren_Schalter.cfg
2020.10.05 20:26:31 1: Including ./FHEM/Aktoren_Sensoren.cfg
2020.10.05 20:26:31 1: Including ./FHEM/Beleuchtung_Aussenbereich.cfg
2020.10.05 20:26:31 1: Including ./FHEM/Geraeteueberwachung.cfg
2020.10.05 20:26:31 1: Including ./FHEM/wetter_yahoo_und_twilight.cfg


OMG, das sieht ja gruselig aus  :o

Ich habe nur einen Teil des Logs kopiert ...

amenomade

Dir fehlt SOAP::Lite in deiner perl Installation. Wenn das korrigiert ist, kann es vielleicht weiter gehen.

Also entweder mit CPAN , oder under debian mit "sudo apt install libsoap-lite-perl" installieren
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Otto123

Zitat von: MandelHL am 05 Oktober 2020, 20:36:09
OMG, das sieht ja gruselig aus  :o
Wem sagst Du das  ::)
Vergiss was ich oben gesagt habe:  :o
Zitat2020.10.05 20:25:56 1: Including ./FHEM/Aktoren_Schalter.cfg
2020.10.05 20:25:57 1: Including ./FHEM/Aktoren_Sensoren.cfg
2020.10.05 20:25:57 1: Including ./FHEM/Beleuchtung_Aussenbereich.cfg
2020.10.05 20:25:57 1: Including ./FHEM/Geraeteueberwachung.cfg
2020.10.05 20:25:57 1: Including ./FHEM/wetter_yahoo_und_twilight.cfg
Solltest Du beachten (Edit: da war amenomade schneller ;) )
Zitatyou may need to instal            l the SOAP::Lite module
Und am Besten halt es wie Clueso: Neuanfang !
Lass diesen include Kram weg und pflege den Inhalt einfach normal mit ein. Und vergiss erstmal das es scp überhaupt braucht.
Installiere fhem entsprechen debian.fhem.de - den easy way.

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

MandelHL

Ok, Danke für Eure Unterstützung-

Ich hoffe, ich kann aber wenigstens meine Aktoren- und Sensoren-Programmierung behalten oder zumindest einen großen Teil der Inhalte übernehmen.

ZitatLass diesen include Kram weg und pflege den Inhalt einfach normal mit ein.
Ok, wobei das ja die fhem.cfg unheimlich aufbläht. Aber ich probiere es mal ohne "include".

ZitatInstalliere fhem entsprechen debian.fhem.de - den easy way.
Muss ich denn jetzt erst mal fhem löschen, um das dann nach der einfachen Anleitung neu zu installieren?

Otto123

Das wäre am einfachsten, mit sudo apt purge fhem fhem erstmal löschen.
Dann rm -R /opt/fhem um den Pfad auch wirklich zu leeren.

Du kannst alles übernehmen was Du findest / hast. Warum sollte das nicht gehen?

ZitatOk, wobei das ja die fhem.cfg unheimlich aufbläht. Aber ich probiere es mal ohne "include".
Du solltest die fhem.cfg nicht anschauen und nicht mal daran denken dass es sie überhaupt gibt. FHEM händelt das schon für Dich. Ganz ehrlich: Du hast kaum Ahnung wie man mit einem Linux System umgeht, Deine Datensicherung ist marode - aber Du machst Dir Gedanken um Dinge die überhaupt nicht relevant sind!? :o
Wenn Du die einzelnen Blöcke über die Raw Def eingibst, wird FHEM Dir Fehler melden wenn etwas nicht passt. Das ist viel komfortabler als wenn Du völlig ohne Plan etwas per Hand in fhem.cfg schreibst.

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

MandelHL

#39
Ich verstehe, bin einsichtig und weiß, dass Du recht hast - Danke Dir  ;)

MandelHL

#40
Toll, so einfach scheint selbst das Löschen nicht zu sein ...

dpkg: warning: while removing fhem, directory '/opt/fhem/FHEM/firmware' not empt    y so not removed
pi@raspberrypi:~ $ rm -R /opt/fhem
rm: descend into write-protected directory '/opt/fhem'? Y
rm: descend into write-protected directory '/opt/fhem/FHEM'?
rm: descend into write-protected directory '/opt/fhem/lib'? y
rm: descend into write-protected directory '/opt/fhem/lib/FHEM'?
rm: remove write-protected regular file '/opt/fhem/CHANGED'?
rm: descend into write-protected directory '/opt/fhem/restoreDir'? ^^[
rm: descend into write-protected directory '/opt/fhem/www'? ^[
rm: descend into write-protected directory '/opt/fhem/log'?
pi@raspberrypi:~ $
pi@raspberrypi:~ $
pi@raspberrypi:~ $
pi@raspberrypi:~ $ sudo apt purge fhem
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package fhem
pi@raspberrypi:~ $ rm -R /opt/fhem
rm: descend into write-protected directory '/opt/fhem'?


Der Befehl "rm:descend remove ..." kommt unendlich oft ...

Die fhem.cfg ist jetzt weg, das FHEM-Verzeichnis aber noch da. Ist dann FHEM gelöscht?
Wenn nicht, was muss ich nun machen, um FHEM vollständig zu löschen?

Otto123

#41
Moin,

Naja Du brauchst erhöhte Rechte und musst sudo davor setzen :) habe ich vergessen.

Edit: wieder sudo vergessen  :-[
sudo rm -R /opt/fhem Ich würde auf alle Fälle auch das Verzeichnis "wegräumen" - wer weiß was bei der Installation sonst wieder passiert.

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

MandelHL

#42
Moin,

hier hatte ich ja
Zitatsudo apt purge fhem
eingegeben.

Kann ich die Fehlermeldung E: Unable to locate package fhem denn ignorieren? Die kommt ja auf den "sudo apt purge fhem"-Befehl hin.

Und statt
Zitatrm -R /opt/fhem
muss ich "sudo" davor setzen?

Danke und Gruße,
Mandel

Otto123

#43
purge fhem geht nur einmal, das hat ja beim ersten Mal geklappt.

sudo hatte ich wieder vergessen zu schreiben.

apt purge ... - entfernt das Paket (fhem) im System.
rm -R ... - entfernt den Pfad mit allen Dateien drin
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

MandelHL

Danke, Otto.

Nun ist fhem komplett gelöscht und ich halte mich an die Anleitung "Debian.fhem The easy way".

Hier steht nun ja, dass
ZitatAll steps have to be run as root or with appropriate sudo privileges.

Das habe ich auch gleich wieder bemerkt. Denn die Befehle lassen sich ja nicht ausführen, auch nicht mit einem "sudo" davor.
Ich bekomme dann die Fehlermeldung "E: This command can only be used by root."

Was muss ich den machen, um die Befehle einzugeben?

Danke für Deine Hilfe,
Mandel