HTTPMOD schien Filehandle zu sperren => FSVG

Begonnen von andies, 17 Februar 2020, 17:06:40

Vorheriges Thema - Nächstes Thema

andies

Ich habe ein Problem, bei dem ich nicht weiterkomme. Es ist allerdings so, dass das von mir gleich beschriebene Problem anscheinend nur auf meinem Rechner auftritt, betateilchen konnte das nicht reproduzieren. Im Forum gibt es einen einzigen Hinweis von jemandem, der ein vergleichbares Problem beschrieb und sich dann nicht mehr dazu geäußert hat. Insofern ist der Verweis auf HTTPMOD oben möglicherweise irreführend, es könnte auch etwas anderes sein.

Wenn ich dieses (und nur dieses!) HTTPMOD-device neu speichere oder einen get-Befehl auslöse
Internals:
   DEF        none 0
   FUUID      5e244bea-f33f-1115-57c4-19efadd8611de803
   FVERSION   98_HTTPMOD.pm:0.211410/2020-02-07
   Interval   0
   MainURL   
   ModuleVersion 3.5.22 - 7.2.2020
   NAME       BVG
   NOTIFYDEV  global
   NR         355
   NTFY_ORDER 50-BVG
   STATE      27
   TRIGGERTIME 0
   TRIGGERTIME_FMT
   TYPE       HTTPMOD
   CompiledRegexes:
   READINGS:
     2020-02-16 08:55:33   X10-1           09:22</span><br/><span class="delayOnTime">09:22</span>
     2020-02-16 08:55:33   X10-2           09:42</span>
Attributes:
   get01AlwaysNum 1
   get01Name  X10
   get01Name-01 X10-1
   get01Name-02 X10-2
   get01Name-03 X10-3
   get01RegOpt gm
   get01Regex Bus  X10<\/span>[\n]{1}<\/a>[\n]{1}\&gt;\&gt;[\n]{1}Hertzallee, Berlin[\n]{1}<br \/>[\n]{1}<span class=\"bold\">(\d\d:\d\d<\/span>.*?)<\/div>
   get01URL   https://reiseauskunft.bahn.de/bin/bhftafel.exe/dox?si=731545&bt=dep&p=1111111111&max=25&rt=1&use_realtime_filter=1&start=yes&
   group      Info
   room       Info
   stateFormat {BVGDatenHolen();}
   timeout    30
   userattr   get01AlwaysNum get01Name get01Name-01 get01Name-02 get01Name-03 get01RegOpt get01Regex get01URL reading01RegOpt
   verbose    1
   webCmd     holen

werden Filehandle, die damit nichts zu tun haben, anscheinend gesperrt. Es handelt sich um Dateien, die in den Verzeichnissen
Zitat/opt/fhem/FHEM/FhemUtils
/opt/fhem/FHEM/www/images/fhemSVG/
/opt/fhem/FHEM/www/images/openautomation/
liegen. Folge davon ist, dass die Datei uniqueID gesperrt wird und dann nicht mehr gelesen werden kann, das gilt auch für mehrere Icons in fhemSVG.

Konkret: Einmal "get BVG X10" hat zur Folge, dass die Einträge in uniqueID nicht mehr gelesen werden können und der TelegramBot meldet, ich hätte kein API Token gespeichert. Es ist dort aber zu finden. Weiter werden ständig Einträge mit key=uniqueID geschrieben, am Ende blähte sich die uniqueID zu 1MB auf.   

Ich kann mir darauf keinen Reim machen und weiß auch nicht, wie es dazu kommen kann. Die gesamte Geschichte habe ich hier beschrieben: https://forum.fhem.de/index.php/topic,108443.msg1024160.html#msg1024160, wobei ich da erst eine Weile brauchte, um zu kapieren, was da eigentlich ablief. Ich vermute aber, dass Ihr mir hier in diesem Unterforum weiter helfen könnt. Ich würde gern Tipps haben, wie ich dem Problem weiter auf die Spur kommen kann.

Netzteil ist 2,5A, SD-Karte wurde getauscht, FHEM wurde bereits einmal komplett neu aufgesetzt (auf neuer Karte). Dennoch trat das Problem wieder auf und ist zuverlässig reproduzierbar, so dass ich einen Soft- und keinen Hardware-Defekt vermute.
FHEM 6.1 auf RaspPi3 (Raspbian:  6.1.21-v8+; Perl: v5.32.1)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

rudolfkoenig

Probleme mit uniqueID (== fhem.pl) sollten in Sonstiges gemeldet werden.
Auch wenn hier mehr Kompetenz zu erwarten ist, sollte man es nicht missbrauchen.

Sonst:
- uniqueID wird oefters aus der Datei gelesen, als es mir lieb ist (bei jedem define). Das habe ich jetzt gefixt: ab jetzt wird sie im Speicher gemerkt.
- in deiner uniqueID Datei sind mehrere uniqueID Zeilen drin: d.h.
  1. in der Datei wurde uniqueID nicht gefunden.
  2. die Datei konnte gelesen werden, da beim Schreiben eine neue Datei mit dem vorher Gelesenen (minus Zeile mit alten Wert plus neuer Wert) geschrieben wird.
- die Suche erfolgt mit $l =~ m/^$key:(.*)/, das "Minus" beim Schreiben mit $l =~ m/^$key:/). In Deinem Fall ist beides schiefgegangen.
- das Gleiche kann auch fuer die "....svg is not useable" gesagt werden: Die Meldung kommt, wenn ^<svg nicht gefunden wird.


Bitte sicherstellen, dass xxd installiert ist, und wenn das Problem "akut" ist, Folgendes in der Eingabezeile von FHEM ausfuehren (Zeile fuer Zeile), und das Ergebnis hier melden:  { `xxd FHEM/FhemUtils/uniqueID` }
  { `xxd www/images/fhemSVG/npm.svg` }
  { "uniqueID:A" =~ m/^uniqueID:/ ? "YES":"NO" }

andies

Zitat von: rudolfkoenig am 17 Februar 2020, 20:26:40
Probleme mit uniqueID (== fhem.pl) sollten in Sonstiges gemeldet werden.
Auch wenn hier mehr Kompetenz zu erwarten ist, sollte man es nicht missbrauchen.
Das war mir schon klar und ich will da auch nicht nerven, aber das war/ist für mich eben kein reines uniqueID-Problem mehr, sondern ein Filehandle-Problem.

Und danke für die Infos, den Code hatte ich zwar gesehen, aber nicht kapiert, wie genau der Fehler denn nun zustande kam. (Wenn ich ehrlich bin, verstehe ich immer noch nicht, wie Perl in der Datei die Zeichenkette "uniqueID" nicht findet, aber die Inhalte auslesen und neu schreiben kann).

xxd ist installiert, nun die Ausgaben
  { `xxd FHEM/FhemUtils/uniqueID` } habe ich, da sind aber zum Teil Passwörter im Klartext drin. Kann ich Dir das per PM schicken? Oder wie kann ich das posten?

00000000: 2320 5468 6973 2066 696c 6520 6973 2061  # This file is a
00000010: 7574 6f20 6765 6e65 7261 7465 642e 0a23  uto generated..#
00000020: 2050 6c65 6173 6520 646f 206e 6f74 206d   Please do not m
00000030: 6f64 6966 792c 206d 6f76 6520 6f72 2064  odify, move or d
00000040: 656c 6574 6520 6974 2e0a 0a75 6e69 7175  elete it...uniqu
00000050: 6549 443a 3761 6132 6138 3736 3339 6366  eID:7aa2a87639cf
00000060: 3539 3739 3166 3536 3131 3962 3939 6331  59791f56119b99c1
00000070: 3131 3135 0a54 656c 6567 7261 6d42 6f74  1115.TelegramBot
00000080: 5f54 656c 6567 7261 6d42 6f74 5f74 6f6b  _TelegramBot_tok
... (ab hier nicht mehr notiert bis) ...
00000590: 6a33 6143 3938 5731 5651 3258 4455 2b6e  j3aC98W1VQ2XDU+n
000005a0: 2b69 7454 797a 6648 5077 434a 6964 664b  +itTyzfHPwCJidfK
000005b0: 673d 3d0a                                g==.

{ `xxd www/images/fhemSVG/npm.svg` } ergibt
00000000: 3c3f 786d 6c20 7665 7273 696f 6e3d 2231  <?xml version="1
00000010: 2e30 2220 656e 636f 6469 6e67 3d22 5554  .0" encoding="UT
00000020: 462d 3822 3f3e 0a3c 7376 6720 786d 6c6e  F-8"?>.<svg xmln
00000030: 733d 2268 7474 703a 2f2f 7777 772e 7733  s="http://www.w3
00000040: 2e6f 7267 2f32 3030 302f 7376 6722 2078  .org/2000/svg" x
00000050: 6d6c 6e73 3a78 6c69 6e6b 3d22 6874 7470  mlns:xlink="http
00000060: 3a2f 2f77 7777 2e77 332e 6f72 672f 3139  ://www.w3.org/19
00000070: 3939 2f78 6c69 6e6b 2220 7769 6474 683d  99/xlink" width=
00000080: 2234 3331 7078 2220 6865 6967 6874 3d22  "431px" height="
00000090: 3433 3270 7822 2076 6965 7742 6f78 3d22  432px" viewBox="
000000a0: 3020 3020 3433 3120 3433 3222 2076 6572  0 0 431 432" ver
000000b0: 7369 6f6e 3d22 312e 3122 3e0a 2020 3c64  sion="1.1">.  <d
000000c0: 6566 732f 3e0a 2020 3c67 2066 696c 6c3d  efs/>.  <g fill=
000000d0: 2223 3030 3030 3030 2220 6964 3d22 6c61  "#000000" id="la
000000e0: 7965 7231 223e 0a20 2020 203c 7061 7468  yer1">.    <path
000000f0: 2064 3d22 4d37 312e 3630 392c 3732 2e35   d="M71.609,72.5
00000100: 3639 204c 3731 2e36 3039 2c33 3539 2e32  69 L71.609,359.2
00000110: 3138 204c 3231 352e 3034 312c 3335 392e  18 L215.041,359.
00000120: 3231 3820 4c32 3135 2e30 3431 2c31 3434  218 L215.041,144
00000130: 2e31 3738 204c 3238 362e 3634 392c 3134  .178 L286.649,14
00000140: 342e 3137 3820 4c32 3836 2e36 3439 2c33  4.178 L286.649,3
00000150: 3539 2e32 3138 204c 3335 382e 3235 372c  59.218 L358.257,
00000160: 3335 392e 3231 3820 4c33 3538 2e32 3537  359.218 L358.257
00000170: 2c37 322e 3536 3920 4c37 312e 3630 382c  ,72.569 L71.608,
00000180: 3732 2e35 3639 204c 3731 2e36 3039 2c37  72.569 L71.609,7
00000190: 322e 3536 3920 5a20 4d34 3330 2e30 382c  2.569 Z M430.08,
000001a0: 302e 3936 204c 3433 302e 3038 2c34 3331  0.96 L430.08,431
000001b0: 2e30 3420 4c30 2c34 3331 2e30 3420 4c30  .04 L0,431.04 L0
000001c0: 2c30 2e39 3620 4c34 3330 2e30 382c 302e  ,0.96 L430.08,0.
000001d0: 3936 205a 2220 6964 3d22 5368 6170 6522  96 Z" id="Shape"
000001e0: 2f3e 0a20 203c 2f67 3e0a 3c2f 7376 673e  />.  </g>.</svg>
000001f0: 0a       

  { "uniqueID:A" =~ m/^uniqueID:/ ? "YES":"NO" } ergibt
YES

FHEM 6.1 auf RaspPi3 (Raspbian:  6.1.21-v8+; Perl: v5.32.1)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

andies

Sorry, ich habe heute eine lange Leitung. Die Daten oben sind ohne Problem, jetzt kommen die Daten mit Problem (also nach dem Aufruf von "get BVG X10"):

bei uniqueID ändern sich die letzten Zeilen:

000005b0: 673d 3d0a 0a75 6e69 7175 6549 443a 3363  g==..uniqueID:3c
000005c0: 3133 6234 3466 6634 6330 3530 6563 6534  13b44ff4c050ece4
000005d0: 6235 3965 6538 6436 3534 6461 3933 0a0a  b59ee8d654da93..
000005e0: 756e 6971 7565 4944 3a31 6233 6461 3538  uniqueID:1b3da58
000005f0: 3930 3230 6662 6466 3333 3035 6466 6362  9020fbdf3305dfcb
00000600: 3338 6561 3839 6638 360a 0a75 6e69 7175  38ea89f86..uniqu
00000610: 6549 443a 3463 3761 6238 6261 3363 6238  eID:4c7ab8ba3cb8
00000620: 6630 3561 6132 3638 3465 3032 3630 6331  f05aa2684e0260c1
00000630: 3933 3863 0a0a 756e 6971 7565 4944 3a37  938c..uniqueID:7
00000640: 6165 3236 3062 3137 3432 3438 3666 6432  ae260b1742486fd2
00000650: 3435 6136 3933 3433 6430 3734 3032 300a  45a69343d074020.
00000660: 0a75 6e69 7175 6549 443a 3435 6432 6633  .uniqueID:45d2f3
00000670: 6534 6261 3836 6463 6234 3937 6539 3230  e4ba86dcb497e920
00000680: 3162 6265 6231 3433 3363 0a0a 756e 6971  1bbeb1433c..uniq
00000690: 7565 4944 3a66 3237 3233 6237 3762 3330  ueID:f2723b77b30
000006a0: 6139 3938 3237 6636 6366 3439 6130 6138  a99827f6cf49a0a8
000006b0: 3030 3931 300a 0a75 6e69 7175 6549 443a  00910..uniqueID:
000006c0: 6438 3836 6139 6463 6431 3262 3332 3739  d886a9dcd12b3279
000006d0: 3630 6366 6438 3435 3166 3635 6433 6163  60cfd8451f65d3ac
000006e0: 0a0a 756e 6971 7565 4944 3a33 6339 6336  ..uniqueID:3c9c6
000006f0: 3730 6136 3833 3136 6363 6631 6234 3966  70a68316ccf1b49f
00000700: 3433 3134 3333 6563 3633 610a 0a75 6e69  431433ec63a..uni
00000710: 7175 6549 443a 3938 6461 6364 3662 6561  queID:98dacd6bea
00000720: 3466 3232 6637 6536 3331 3735 3331 3731  4f22f7e631753171
00000730: 3334 6462 6237 0a                        34dbb7.

Die Probleme gab es ja mit der Datei { `xxd www/images/openautomation/phone_call_end_in.svg` }, in der Logdatei steht auch "not useable" und hier habe ich nach der Eingabe
00000000: 3c3f 786d 6c20 7665 7273 696f 6e3d 2231  <?xml version="1
00000010: 2e30 2220 7374 616e 6461 6c6f 6e65 3d22  .0" standalone="
00000020: 6e6f 223f 3e0a 3c21 444f 4354 5950 4520  no"?>.<!DOCTYPE
00000030: 7376 6720 5055 424c 4943 2022 2d2f 2f57  svg PUBLIC "-//W
00000040: 3343 2f2f 4454 4420 5356 4720 3230 3031  3C//DTD SVG 2001
00000050: 3039 3034 2f2f 454e 220a 2022 6874 7470  0904//EN". "http
00000060: 3a2f 2f77 7777 2e77 332e 6f72 672f 5452  ://www.w3.org/TR
00000070: 2f32 3030 312f 5245 432d 5356 472d 3230  /2001/REC-SVG-20
00000080: 3031 3039 3034 2f44 5444 2f73 7667 3130  010904/DTD/svg10
00000090: 2e64 7464 223e 0a3c 7376 6720 7665 7273  .dtd">.<svg vers
000000a0: 696f 6e3d 2231 2e30 2220 786d 6c6e 733d  ion="1.0" xmlns=
000000b0: 2268 7474 703a 2f2f 7777 772e 7733 2e6f  "http://www.w3.o
000000c0: 7267 2f32 3030 302f 7376 6722 0a20 7769  rg/2000/svg". wi
000000d0: 6474 683d 2234 3638 7074 2220 6865 6967  dth="468pt" heig
000000e0: 6874 3d22 3436 3570 7422 2076 6965 7742  ht="465pt" viewB
000000f0: 6f78 3d22 3020 3020 3436 3820 3436 3522  ox="0 0 468 465"
00000100: 0a20 7072 6573 6572 7665 4173 7065 6374  . preserveAspect
00000110: 5261 7469 6f3d 2278 4d69 6459 4d69 6420  Ratio="xMidYMid
00000120: 6d65 6574 223e 0a3c 6d65 7461 6461 7461  meet">.<metadata
00000130: 3e0a 4372 6561 7465 6420 6279 2070 6f74  >.Created by pot
00000140: 7261 6365 2031 2e38 2c20 7772 6974 7465  race 1.8, writte
00000150: 6e20 6279 2050 6574 6572 2053 656c 696e  n by Peter Selin
00000160: 6765 7220 3230 3031 2d32 3030 370a 3c2f  ger 2001-2007.</
00000170: 6d65 7461 6461 7461 3e0a 3c67 2074 7261  metadata>.<g tra
00000180: 6e73 666f 726d 3d22 7472 616e 736c 6174  nsform="translat
00000190: 6528 302c 3436 3529 2073 6361 6c65 2830  e(0,465) scale(0
000001a0: 2e31 3538 3130 382c 2d30 2e31 3538 3130  .158108,-0.15810
000001b0: 3829 220a 6669 6c6c 3d22 2330 3030 3030  8)".fill="#00000
000001c0: 3022 2073 7472 6f6b 653d 226e 6f6e 6522  0" stroke="none"
000001d0: 3e0a 3c70 6174 6820 643d 224d 3136 3820  >.<path d="M168
000001e0: 3238 3133 2063 2d36 3620 2d36 3520 2d31  2813 c-66 -65 -1
000001f0: 3236 202d 3133 3120 2d31 3335 202d 3134  26 -131 -135 -14
00000200: 3720 2d32 3920 2d35 3620 2d31 3220 2d39  7 -29 -56 -12 -9
00000210: 3020 3130 3520 2d32 3034 0a31 3233 202d  0 105 -204.123 -
00000220: 3132 3020 3135 3420 2d31 3432 2032 3030  120 154 -142 200
00000230: 202d 3134 3220 3239 2030 2034 3920 3135   -142 29 0 49 15
00000240: 2031 3532 2031 3136 2031 3130 2031 3037   152 116 110 107
00000250: 2031 3530 2031 3630 2031 3530 2031 3937   150 160 150 197
00000260: 2030 2032 390a 2d35 3920 3130 3120 2d31   0 29.-59 101 -1
00000270: 3634 2031 3937 202d 3130 3020 3933 202d  64 197 -100 93 -
00000280: 3131 3120 3130 3020 2d31 3438 2031 3030  111 100 -148 100
00000290: 202d 3339 2030 202d 3437 202d 3620 2d31   -39 0 -47 -6 -1
000002a0: 3630 202d 3131 377a 206d 3230 3620 2d31  60 -117z m206 -1
000002b0: 350a 6331 3820 2d31 3820 3633 202d 3635  5.c18 -18 63 -65
000002c0: 2031 3030 202d 3130 3420 6c36 3720 2d37   100 -104 l67 -7
000002d0: 3220 2d31 3032 202d 3130 3120 632d 3536  2 -102 -101 c-56
000002e0: 202d 3535 202d 3130 3620 2d31 3031 202d   -55 -106 -101 -
000002f0: 3131 3120 2d31 3031 202d 3133 0a30 202d  111 -101 -13.0 -
00000300: 3230 3820 3139 3120 2d32 3038 2032 3033  208 191 -208 203
00000310: 2030 2031 3520 3139 3220 3230 3720 3230   0 15 192 207 20
00000320: 3720 3230 3720 3720 3020 3238 202d 3135  7 207 7 0 28 -15
00000330: 2034 3720 2d33 327a 222f 3e0a 3c70 6174   47 -32z"/>.<pat
00000340: 6820 643d 224d 3132 3030 2032 3337 3520  h d="M1200 2375
00000350: 632d 3639 202d 3639 202d 3132 3720 2d31  c-69 -69 -127 -1
00000360: 3235 202d 3133 3020 2d31 3235 202d 3320  25 -130 -125 -3
00000370: 3020 2d35 3020 3432 202d 3130 3520 3933  0 -50 42 -105 93
00000380: 202d 3131 320a 3130 3520 2d31 3330 2031   -112.105 -130 1
00000390: 3137 202d 3137 3720 3131 3720 2d32 3920  17 -177 117 -29
000003a0: 3020 2d34 3820 2d31 3520 2d31 3539 202d  0 -48 -15 -159 -
000003b0: 3132 3720 2d31 3339 202d 3134 3120 2d31  127 -139 -141 -1
000003c0: 3533 202d 3136 3620 2d31 3233 202d 3232  53 -166 -123 -22
000003d0: 350a 3920 2d31 3820 3630 202d 3735 2031  5.9 -18 60 -75 1
000003e0: 3133 202d 3132 3620 6c39 3620 2d39 3220  13 -126 l96 -92
000003f0: 2d31 3337 202d 3133 3620 632d 3935 202d  -137 -136 c-95 -
00000400: 3933 202d 3133 3820 2d31 3432 202d 3133  93 -138 -142 -13
00000410: 3820 2d31 3537 2030 202d 3333 0a32 3620  8 -157 0 -33.26
00000420: 2d36 3520 3538 202d 3731 2031 3520 2d34  -65 58 -71 15 -4
00000430: 2032 3435 202d 3335 2035 3132 202d 3731   245 -35 512 -71
00000440: 2034 3736 202d 3634 2034 3835 202d 3634   476 -64 485 -64
00000450: 2035 3130 202d 3436 2031 3420 3130 2032   510 -46 14 10 2
00000460: 3620 3237 2032 380a 3339 2035 2033 3520  6 27 28.39 5 35
00000470: 2d31 3239 2031 3030 3620 2d31 3431 2031  -129 1006 -141 1
00000480: 3032 3220 2d34 3420 3536 202d 3637 2034  022 -44 56 -67 4
00000490: 3520 2d32 3037 202d 3935 7a20 6d2d 3239  5 -207 -95z m-29
000004a0: 3820 2d31 3037 2063 3438 202d 3531 2038  8 -107 c48 -51 8
000004b0: 380a 2d39 3520 3838 202d 3938 2030 202d  8.-95 88 -98 0 -
000004c0: 3320 2d34 3720 2d35 3220 2d31 3034 202d  3 -47 -52 -104 -
000004d0: 3130 3920 6c2d 3130 3520 2d31 3035 202d  109 l-105 -105 -
000004e0: 3836 2038 3520 632d 3438 2034 3620 2d39  86 85 c-48 46 -9
000004f0: 3120 3932 202d 3936 2031 3031 0a2d 3820  1 92 -96 101.-8
00000500: 3134 2039 2033 3620 3931 2031 3138 2035  14 9 36 91 118 5
00000510: 3620 3535 2031 3036 2031 3030 2031 3133  6 55 106 100 113
00000520: 2031 3030 2036 2030 2035 3120 2d34 3220   100 6 0 51 -42
00000530: 3939 202d 3932 7a20 6d34 3532 202d 3335  99 -92z m452 -35
00000540: 3320 6332 370a 2d32 3031 2034 3720 2d33  3 c27.-201 47 -3
00000550: 3638 2034 3520 2d33 3730 202d 3420 2d33  68 45 -370 -4 -3
00000560: 202d 3631 3720 3735 202d 3730 3820 3931   -617 75 -708 91
00000570: 206c 2d33 3420 3620 3331 3920 3331 3920   l-34 6 319 319
00000580: 6331 3735 2031 3735 2033 3231 2033 3139  c175 175 321 319
00000590: 0a33 3234 2033 3139 2033 2030 2032 3820  .324 319 3 0 28
000005a0: 2d31 3634 2035 3420 2d33 3635 7a22 2f3e  -164 54 -365z"/>
000005b0: 0a3c 7061 7468 2064 3d22 4d33 3020 3131  .<path d="M30 11
000005c0: 3830 2063 2d32 3920 2d32 3920 2d32 3620  80 c-29 -29 -26
000005d0: 2d37 3420 3620 2d39 3920 6c32 3720 2d32  -74 6 -99 l27 -2
000005e0: 3120 3134 3234 2030 2031 3432 3420 3020  1 1424 0 1424 0
000005f0: 3234 2032 3520 6333 3020 3239 0a33 3220  24 25 c30 29.32
00000600: 3638 2035 2039 3520 2d32 3020 3230 202d  68 5 95 -20 20 -
00000610: 3333 2032 3020 2d31 3435 3520 3230 202d  33 20 -1455 20 -
00000620: 3134 3232 2030 202d 3134 3335 2030 202d  1422 0 -1435 0 -
00000630: 3134 3535 202d 3230 7a22 2f3e 0a3c 7061  1455 -20z"/>.<pa
00000640: 7468 2064 3d22 4d39 3935 2038 3639 2063  th d="M995 869 c
00000650: 2d32 3730 202d 3720 2d35 3738 202d 3335  -270 -7 -578 -35
00000660: 202d 3737 3420 2d36 3920 2d31 3230 202d   -774 -69 -120 -
00000670: 3232 202d 3135 3420 2d33 3420 2d31 3836  22 -154 -34 -186
00000680: 202d 3730 202d 3139 0a2d 3231 202d 3230   -70 -19.-21 -20
00000690: 202d 3336 202d 3230 202d 3333 3520 6c30   -36 -20 -335 l0
000006a0: 202d 3331 3420 3238 202d 3239 2063 3438   -314 28 -29 c48
000006b0: 202d 3530 2038 3220 2d35 3420 3432 3720   -50 82 -54 427
000006c0: 2d35 3020 6c33 3135 2033 2034 3720 3238  -50 l315 3 47 28
000006d0: 2063 3535 0a33 3220 3838 2038 3220 3131   c55.32 88 82 11
000006e0: 3720 3137 3720 3335 2031 3132 202d 3233  7 177 35 112 -23
000006f0: 2031 3032 2035 3336 2031 3031 2034 3334   102 536 101 434
00000700: 202d 3120 3439 3120 2d33 2035 3032 202d   -1 491 -3 502 -
00000710: 3137 2036 202d 3920 3233 202d 3533 0a33  17 6 -9 23 -53.3
00000720: 3820 2d39 3720 3331 202d 3936 2036 3120  8 -97 31 -96 61
00000730: 2d31 3339 2031 3138 202d 3137 3020 3431  -139 118 -170 41
00000740: 202d 3232 2034 3920 2d32 3220 3337 3720   -22 49 -22 377
00000750: 2d32 3220 3337 3120 3020 3337 3420 3120  -22 371 0 374 1
00000760: 3431 3720 3634 2032 330a 3333 2032 3320  417 64 23.33 23
00000770: 3338 2032 3320 3332 3520 3020 3237 3420  38 23 325 0 274
00000780: 2d31 2032 3933 202d 3230 2033 3234 202d  -1 293 -20 324 -
00000790: 3236 2034 3220 2d36 3820 3539 202d 3139  26 42 -68 59 -19
000007a0: 3520 3832 202d 3336 3020 3635 202d 3938  5 82 -360 65 -98
000007b0: 3620 3930 0a2d 3137 3530 2036 397a 206d  6 90.-1750 69z m
000007c0: 3131 3430 202d 3133 3920 6332 3633 202d  1140 -139 c263 -
000007d0: 3137 2035 3135 202d 3435 2036 3638 202d  17 515 -45 668 -
000007e0: 3736 206c 3237 202d 3620 3020 2d32 3534  76 l27 -6 0 -254
000007f0: 2030 202d 3235 3420 2d33 3034 2030 0a63   0 -254 -304 0.c
00000800: 2d31 3637 2030 202d 3331 3220 3320 2d33  -167 0 -312 3 -3
00000810: 3231 2036 202d 3230 2038 202d 3431 2034  21 6 -20 8 -41 4
00000820: 3820 2d36 3520 3132 3820 2d32 3520 3738  8 -65 128 -25 78
00000830: 202d 3535 2031 3234 202d 3130 3020 3135   -55 124 -100 15
00000840: 3020 2d33 3420 3230 0a2d 3532 2032 3120  0 -34 20.-52 21
00000850: 2d35 3235 2032 3420 2d33 3430 2032 202d  -525 24 -340 2 -
00000860: 3530 3620 3020 2d35 3432 202d 3820 2d37  506 0 -542 -8 -7
00000870: 3220 2d31 3520 2d31 3039 202d 3631 202d  2 -15 -109 -61 -
00000880: 3134 3720 2d31 3735 202d 3434 202d 3133  147 -175 -44 -13
00000890: 350a 2d31 3420 2d31 3235 202d 3337 3620  5.-14 -125 -376
000008a0: 2d31 3235 206c 2d33 3130 2030 2030 2032  -125 l-310 0 0 2
000008b0: 3534 2030 2032 3535 2035 3320 3130 2063  54 0 255 53 10 c
000008c0: 3131 3620 3234 2034 3638 2036 3220 3637  116 24 468 62 67
000008d0: 3720 3734 2031 3435 2038 0a31 3132 3420  7 74 145 8.1124
000008e0: 3620 3132 3635 202d 337a 222f 3e0a 3c2f  6 1265 -3z"/>.</
000008f0: 673e 0a3c 2f73 7667 3e0a                 g>.</svg>.

{ "uniqueID:A" =~ m/^uniqueID:/ ? "YES":"NO" } bleibt bei
YES

und ich habe dann nochmal nach dem Token gesucht
{ "TelegramBot:A" =~ m/^TelegramBot:/ ? "YES":"NO" } ergibt
YES

FHEM 6.1 auf RaspPi3 (Raspbian:  6.1.21-v8+; Perl: v5.32.1)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

rudolfkoenig

Weiter gehts, auch wenn ich keine konkrete Idee habe.
Bitte nur im _akuten_ Problemfall, sonst bringt es nichts.

{ AttrVal("global", "keyFileName", "empty") }
{ "<".getKeyValue("uniqueID").">" }
{ my $u=getKeyValue("uniqueID");; $u =~ s/[^0-9a-f]//g;; length($u) }
{ "<".join(">\n<", FileRead("FHEM/FhemUtils/uniqueID")).">" }
{ "<".join(">\n<", grep /^uniqueID:/,FileRead("FHEM/FhemUtils/uniqueID")).">" }

andies

Super, danke für die Hilfe. Ich habe übrigens den Code von 01_FHEMWEB.pm dahingehend geändert, dass ich mir den Fehlercode habe ausgeben lassen (Zeile 2630)
          Log 1, "$FW_icondir/$p is not useable, error $!";

und erhalte aber nur
2020.02.18 09:10:59 1: ./www/images/fhemSVG/fussgaenger.svg is not useable, error
(die Zeile darauf enthält einen neuen Eintrag)

Zu den Angaben
{ AttrVal("global", "keyFileName", "empty") } liefert
empty

{ "<".getKeyValue("uniqueID").">" } liefert
<>

{ my $u=getKeyValue("uniqueID");; $u =~ s/[^0-9a-f]//g;; length($u) } liefert gar keine Ausgabe, es erscheint der vorher vorhandenen Bildschirm

{ "<".join(">\n<", FileRead("FHEM/FhemUtils/uniqueID")).">" } liefert
<>
<# This file is auto generated.
# Please do not modify, move or delete it.

uniqueID:7aa2a87639cf59791f56119b99c11115
TelegramBot_TelegramBot_token:...zensiert....
FRITZBOX_FritzBox_passwd:...zensiert....
FBAHAHTTP_PASSWORD_fritzbox:...zensiert....
SIP_mySIP_passwd:...zensiert....
FB_CALLLIST-TelefonListe:compressed:...zensiert....

uniqueID:e9119196096d96807eef9f55b88dbcd6

uniqueID:22c3947e2cea08c6b091e99af4584125

uniqueID:0fb52b09e67b0aa20d1f682131692d74

uniqueID:67a1a15b86b4b29906de50abedaeaecb

uniqueID:623279e799b18c6af55044f35e0822ff

uniqueID:6ec1fa7d3fc346658ab26b30f276c85e

uniqueID:47cb21bd0c4a930c4abf906a0e6990c9

uniqueID:678050ac6ff436013cb5d1053e1930ca

uniqueID:0e1c715a0cf26b8d2e04b1174ff8c79d

uniqueID:66ff75d084c03c302c14864b01a1c04f

uniqueID:8aa04bbe85a5581e11059d803ce4b249

uniqueID:63dece9937f9888f4773936901bd6802

uniqueID:a7443a1f4ce2e9412282aac3826d6bab

uniqueID:7a4024794d155ca076c72afd1af49702

uniqueID:6f741b71f3b7025d41d6166707a5a6b5

uniqueID:e5894f659a93987b968bb9312d98bdec

uniqueID:1238f60123190f1d1b4cd8e23c2a61f1

uniqueID:27714ee2d4f2bb8acde39008fae1590d

uniqueID:60cf6c9e0519ec3dd7a92e459a4d7003

uniqueID:f8cc38e8adbed4f7b2227e0a59c818d4

uniqueID:514cc7286e0028dc4c6c93c33556a568

uniqueID:07b336df24d52feff1670f89f9a1d5c5

uniqueID:03f8377f8f4ed275ec9eb91274627bfb

uniqueID:1ed1195811ab1903dfeb599fc1d2e5a3

uniqueID:fa530f670cac4f9a6043715541ed9964

uniqueID:d44e6f04735eaf7342f391d0d4bb918f

uniqueID:e3a3bd1861f14e23fddf2cc2fc87d9db

uniqueID:ff595ecba8cda2573594151a5a014046

uniqueID:952cf256f089397e48af9ee1324f48d5

uniqueID:7b11f4776fad66b08ab42f002b724245

uniqueID:4481846d8b3bbe6ef2cb5261acd582da

uniqueID:868163d569a81f6cef6b1079d422d14a

uniqueID:6b681191a74a8c91c92a2169b4c2dcce

uniqueID:68acf1b7e1ad437553d4909b79643c82

uniqueID:726b35127bf149256a6dd45a8d52202c

uniqueID:8045c6a770d6f9c86310332d6f86070e

uniqueID:12c8c4f1193808f2e5014e4bace7055b

uniqueID:1870689d7575b48a3c1cd0969fcbb552

uniqueID:2f5d304cdc8ed9785e575d8b7565da34

uniqueID:b76c027bb692fcedc50c62f37079958d

uniqueID:57fddde8d7e58b9b86f2e4425de065db

uniqueID:b9a27739c6c3a08b49923a197e766050

uniqueID:280cd43dca642e8333079428a8288d1e

uniqueID:7113298a7a8719edbcf29d5ba6a0fb2f

uniqueID:d638668f3329e66a7bd1fffd17be5f14

uniqueID:ea57030a567a9c25a7eeacb750acc268

uniqueID:9baf087994ec0e7894cd3a0761b9f011

uniqueID:7994ec0e7894cd3a0761b9f0111951a3

uniqueID:d837f9a0d575a1ea32327819db3e0a8e

uniqueID:b823fea868b44c68061a3eb235f323ae

uniqueID:2d635e820077172edb814049552b474e

uniqueID:67fd32c985bcd59220d48300f6f764b6

uniqueID:03a718974bad74a30b6ef634b9840818

uniqueID:2279d5bc2483fd6ef5fb4527b7e172be

uniqueID:bc53a6c3e4f674943c5e17b7cb907677

uniqueID:2392dfecdf7812f1877787ba4ea3d28b

uniqueID:ddafba733dad5830f49b5eef6e38c4b4

uniqueID:946a0964aadbd98a5290077d66a6498e

uniqueID:5951fdbaa5d20593ea041f1b3d940646

uniqueID:af67dc0b32ff04808d000fcaeb19c1d1

uniqueID:4141ad1cece17df84303ff14c91f1338

uniqueID:12f6f5e4f25b750ab40b7f71d567c0c9

uniqueID:489f1a610b80dd352f5c4b1ad5013de7

uniqueID:e1c46952f75f73102d4b143aa12b3289

uniqueID:888c4057817f637a5a8d6cc49cd16f43

uniqueID:3c5ae78e0f2864cf8e03926cad9caed5

uniqueID:0a64e10043dbfced8df46ca37d1f744c

uniqueID:9276d5d7dcc450981e830113c03ed747

uniqueID:03c9200be62eefe494736c8b2b0d6a5e

uniqueID:14a635bf5e22f1e91c4783c13ff0aaa6

uniqueID:14a635bf5e22f1e91c4783c13ff0aaa6

uniqueID:dd67e7fddd7af3ef06645cb871f30834

uniqueID:ea7cebac3e5350c7951f97032a8babc2

uniqueID:587d5e209969e1201ee01268893482e2

uniqueID:ed6e60209b24f6e18cbcac3bfc7f9776

uniqueID:ede64ee7c4b49f3a4d2329bbbf5f6349

uniqueID:f8aa19ddfcddf77f6a41a99b1c6ac638

uniqueID:259c147e8c50be1e4e9c58a290dde991

uniqueID:8f267611b401e723769d8af5ab37b863

uniqueID:50ad9dcb1854cb6efd22865404d6b74c

uniqueID:d46515c6cd786fe9f8f8753f9927fdbf

uniqueID:b1353522ed5ff0cb1c1e463292be5c46

uniqueID:621cedc42b50639730b810ea1d07530b

uniqueID:76547eef5de2007bb19d19a3bc38cad9

uniqueID:81abd14d02e228c7bab9f0e02690bc91

uniqueID:27af5895ec65c34bb7d2163b3f633b6a

uniqueID:3b52b991262c3a4aa5f60db22453be5f

uniqueID:3b52b991262c3a4aa5f60db22453be5f

uniqueID:b44a2ad4a8a2a4f107a48c77d6bfd58a

uniqueID:f27df80bcfa4bbc30416d4dc11071df5

uniqueID:c43241074f5b0df61ecc34c95ae7dd2b

uniqueID:a89e759434c7020e169f04eff33ead2c

uniqueID:a7b1d1a49050f64133c3b11511b8bacd

uniqueID:9e1a42dc578024a2b21683aa3a17db59

uniqueID:8ab74c910fa0d4ce77a6eaaef83f27a1

uniqueID:14c096498eacde4fa404cbc81aa45733

uniqueID:59ef392fafbd0ca1bf5b37718643e535

uniqueID:2fc37259bdad387e2f548f8d4db9f14b

uniqueID:24cc72f8e9f0d8de2ddcdd4d009f6403

uniqueID:7bbb90c11b8486b5b1185e17c75f15ff

uniqueID:646e652a956109b9ced626480556d83d

uniqueID:646e652a956109b9ced626480556d83d

uniqueID:aecdb35aae219b357fcdad90d5891048

uniqueID:2bc7c9480c77ba5c0b9a0bcd85edc3df

uniqueID:a7c2f237ed779aea76f20bb8b86299bb

uniqueID:269005ee9b4daf1a1f01925891ada420

uniqueID:cd669f07af07eff3a1d9f353a198455a

uniqueID:f052b465b4015f5c6b6a855fb287f8c4

uniqueID:9b1e5e45b3553527be36169a95aeade4

uniqueID:98f5e5e342b47f6faffba60dc32709bc

uniqueID:210fb3121c43b24958d7242fb90cfcdd

uniqueID:c87e496df7b3913b4f8f5759e6b9ccbe

uniqueID:36a2de544d7c9cc90ae3c224c86d7c71

uniqueID:c9e49f4c305a11d8bb495305ad87f56d

uniqueID:e49f4c305a11d8bb495305ad87f56da2

uniqueID:5d917d0e7eb49fa5c17a8c15859c146c

uniqueID:f40be7f26d190303edbdfa00dca76c58

uniqueID:52b19546710900dec560bcf0cce2e214

uniqueID:56d8ecfc303d469b6cf4c23adabbbf78

uniqueID:8c4ba2305306797ba25f7bb48c92a5dc

uniqueID:ba8b22c85913377252810933a6a4b63b

uniqueID:829951cfb2456e1bd4a21ac57cf0e084

uniqueID:1f2ad9eb2bb6f72420a9b3aa0f472d51

uniqueID:b58132c521aae45d4090e0f7c81b2a0a

uniqueID:645dc3e9e565482a6b849a9fd5e887c9

uniqueID:69f64682989364d8ead5ff8ada2f7584

uniqueID:69f64682989364d8ead5ff8ada2f7584

uniqueID:dd7ee5fae43e844d645e8e861ef06fe2

uniqueID:bbf6b6e8c8d7e4463a5c9915ec451699

uniqueID:4d4f22a374b52ab19fddbc261d826ba4

uniqueID:d76b9da615f203d49e4be751a4e4c7af

uniqueID:4ab02b88242666d058d029fbe9d37212

uniqueID:5d142243297942d1f0e70c567d0615de

uniqueID:f73633558ae3cf3090dfaa60cf5cf412

uniqueID:0b69c3d33cb573d955b8680bb80908af

uniqueID:dd350f28031dcafa315d3d5ff68be32f

uniqueID:5582c54829431037315c5902e31eef3e

uniqueID:817ef2eee0827e9b708cfa08f9cdd185

uniqueID:817ef2eee0827e9b708cfa08f9cdd185

uniqueID:450dc4ad038b431c8272d3bae9d438ec

uniqueID:54ffd7fe161d9e8a22f4aeaab5660b55

uniqueID:45ef283cdb04efad5ba90229d3be3848

uniqueID:9c981af756a204af4000ad395af9004c

uniqueID:4f7ebbcc47fb5b9d5c3715d70c7ad7a6

uniqueID:ed5c75ceead9b5213792cbc7144151fb

uniqueID:139e9d1d4868f7feee9287b521b8ba74

uniqueID:6d9399bfa50ba5361d0e0e27ca2d53f3

uniqueID:3484cca93ab3e94cc3a56f9a94718f29

uniqueID:92d47b1a959b55fde3ca074ef377fd36

uniqueID:92d47b1a959b55fde3ca074ef377fd36

uniqueID:93811cf59a1c7013c5105920f0440f6d

uniqueID:7c0105ef04394d73aeee5466960e28b6

uniqueID:3a423f205b71f61abc6c3befc7b98f86

uniqueID:cb24d316cf06edc63b4a49f02d709cf5

uniqueID:ea7c545953a293839994f308f8eecdfe

uniqueID:5971c58c96ca61747d8561aa076ef2da

uniqueID:4d74dea6fe215be0bcc4442cf495fe85

uniqueID:94c0ab2d078c48423e8f1353573515d5

uniqueID:e4eed34cf09f1acbe23d01704a8f8a98

uniqueID:64c2cb8bece4da29210d6c61e6bf2d2a

uniqueID:515a6be60233c8f20f74af5723d2811d

uniqueID:c8f20f74af5723d2811db4d60de4df57

uniqueID:5b2995bf46762dedfb81abe3765c7ab8

uniqueID:cf85ba4612e9aeeba9f8c250c9e07b37

uniqueID:18136a6c1fb5f7263dc4e9062b0b3697

uniqueID:9c97469f1bbda5ebf19b90ddc7d5c121

uniqueID:cab294b67d211e66cf5cb7a4a6289767

uniqueID:be9b0b7858005593aaa4344516d1636c

uniqueID:c046ee8cf5b30f0a5d151171a8f04cf7

uniqueID:c046ee8cf5b30f0a5d151171a8f04cf7

uniqueID:15c0fab6b3ec87f7c205504d8dcb9245

uniqueID:d42e968bdf6258883b92d6188a1eba47

uniqueID:287e31e503c171dd9bd5e9716b75ea2c

uniqueID:6d50ac10ea7b1d0a96b2a18799f439db

uniqueID:3d058caa8272f0d2acaa1245d81e68d5

uniqueID:ef2247a344709eaa04d85c1ff703a0d0

uniqueID:a5c90770e9db4a6ecb7d89fa4e886472

uniqueID:9e451fd0d44fb42a36399d996c0bcb2c

uniqueID:9e451fd0d44fb42a36399d996c0bcb2c

uniqueID:2835377dab4a09afafebaa99d7d6f984

uniqueID:000caed70c9e6a093be24ba3f2177edc

uniqueID:cecc67a7533cc13490e6c583aaaf15ac

uniqueID:e00ad8d7a0bdb36d10322999afde3757

uniqueID:8eedf87b7928ede6ea5824b4d3043beb

uniqueID:de78b24a02b8dc4b1ee6295a90caaa48

uniqueID:ce9695f88b7680afe2ecac4bd75a67d6

uniqueID:ce9695f88b7680afe2ecac4bd75a67d6

uniqueID:afc2343ea4589395eebf348ee0fd710a

uniqueID:60cdf3a71a59468459dcd0c48fd087c7

uniqueID:db3ca230877ab7039eb335513f660e46

uniqueID:136bd001dc7d5813e5d8bd4d9d9b224f
>
und nun kommt noch die letzte Frage

{ "<".join(">\n<", grep /^uniqueID:/,FileRead("FHEM/FhemUtils/uniqueID")).">" } ergibt
<>
FHEM 6.1 auf RaspPi3 (Raspbian:  6.1.21-v8+; Perl: v5.32.1)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

rudolfkoenig

Die spitzen Klammern (<>) sind in der Ausgabe des vorletzen Befehls eindeutig an falscher Stelle.

Naechste Runde:{ ord($/) }

Wenn das nicht 10 liefert, dann aus dem Shell in /opt/fhem/FHEM:grep '\$/\s*=' *.pm

andies

#7
Treffer Ohne Problem kommt 10 heraus, nach "set BVG X10" habe ich

{ ord($/) }
32


In der Shell
grep '\$/\s*=' *.pm

00_SIGNALduino.pm: local $/=undef;
36_JeeLink.pm:        local $/=undef;
36_LaCrosseGateway.pm:        local $/ = undef;
37_echodevice.pm: local $/ = undef;
55_DWD_OpenData.pm:      $/ = undef;        # enable slurp file read mode
55_DWD_OpenData.pm:      $/ = $terminator;  # restore default file read mode
55_DWD_OpenData.pm:      $/ = undef;        # enable slurp file read mode
55_DWD_OpenData.pm:      $/ = $terminator;  # restore default file read mode
98_ArduCounter.pm:        local $/=undef;
99_myUtils.pm:  $/ = " | ";


<edit> Oh um Gottes Willen, ich sehe es. Das war ich selber, 99_myUtils. So viel Asche gibt es gar nicht für mein Haupt...
FHEM 6.1 auf RaspPi3 (Raspbian:  6.1.21-v8+; Perl: v5.32.1)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

rudolfkoenig


andies

Ja, war mein Fehler. Ich hatte $/ umdefiniert und nicht rückgängig gemacht, also Layer 8. Vielen Dank, Problem gelöst.
FHEM 6.1 auf RaspPi3 (Raspbian:  6.1.21-v8+; Perl: v5.32.1)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann