Seite 1 von 7

Log Viewer funktioniert nicht

Verfasst: 3. Sep 2018 15:13
von hardl
Seit ein paar Tagen kann ich den LogViewer nicht mehr aufrufen, egal ob über openhabian9001 oder http://.......,
Im Finder (MAC) unter events.log oder openhab.log ist alles zu sehen.
Hat jemand eine Lösung?

Re: Log Viewer funktioniert nicht

Verfasst: 3. Sep 2018 15:41
von hr3
Wenn schon, dann ...:9001
Kannst du den LogViewer denn sehen, wenn du ...8080 aufruft?

Re: Log Viewer funktioniert nicht

Verfasst: 3. Sep 2018 16:15
von hardl
ja, ich sehe den Willkommen-Schirm mit 6 Buttons, 5 funktionieren, beim LogViewer kommt "Safari kann openhabianpi nicht öffnen, da es keine Verbindung zum openhabianpi-Server aufbauen kann"

Re: Log Viewer funktioniert nicht

Verfasst: 3. Sep 2018 17:18
von udo1toni
läuft denn der Dienst? logTail ist ein eigener Dienst, der gestartet sein muss.

Re: Log Viewer funktioniert nicht

Verfasst: 3. Sep 2018 18:45
von hardl
Wo finde ich das?
Bis letzte Woche ging das problemlos.

Re: Log Viewer funktioniert nicht

Verfasst: 3. Sep 2018 19:09
von udo1toni
Naja, kommt ja drauf an, wo Dein openHAB läuft. Wenn Du ein System auf Basis eines Raspberry hast, läuft darauf vermutlich ein Raspbian, wenn es einigermaßen aktuelle ist, handelt es sich um debian jessie oder stretch, die beide systemd verwenden.

Code: Alles auswählen

openhabian@openhabianpi:~$ systemctl status frontail
sollte normalerweise eine Ausgabe wie diese hier erzeugen:

Code: Alles auswählen

 frontail.service - Frontail openHAB instance, reachable at http://openhab2:9001
   Loaded: loaded (/etc/systemd/system/frontail.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2018-08-16 13:16:39 CEST; 2 weeks 4 days ago
     Docs: https://github.com/mthenw/frontail
           https://github.com/openhab/openhabian/issues/28
 Main PID: 361 (frontail)
    Tasks: 10 (limit: 4915)
   CGroup: /system.slice/frontail.service
           ├─361 /usr/bin/frontail --ui-highlight --ui-highlight-preset /usr/lib/node_modules/frontail/preset/openhab.json -t openhab -l 2000 -n
           └─731 tail -n 200 -F /var/log/openhab2/openhab.log /var/log/openhab2/events.log
Wenn da nicht active (running) steht, hast Du die Ursache Deines Problems gefunden und kannst versuchen, den Dienst einfach wieder zu starten:

Code: Alles auswählen

openhabian@openhabianpi:~$ sudo systemctl start frontail

Re: Log Viewer funktioniert nicht

Verfasst: 3. Sep 2018 19:25
von hardl
Danke, aber es kommt leider "Kommando nicht gefunden".

Es läuft auf einem Raspi 3,
stretch
openHAB 2.3.0-1

Re: Log Viewer funktioniert nicht

Verfasst: 3. Sep 2018 21:48
von udo1toni
Das kann eigentlich nicht sein.

Sowohl sudo als auch systemctl sollten installiert sein.
Falls sudo nicht installiert ist, kannst Du Dich mittels als root anmelden. Dann braucht es kein sudo vor dem systemctl.

Re: Log Viewer funktioniert nicht

Verfasst: 4. Sep 2018 10:03
von hardl
Jetzt hat es funktioniert.
● frontail.service - Frontail openHAB instance, reachable at http://openHABianPi:9001
Loaded: loaded (/etc/systemd/system/frontail.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2018-09-03 17:28:49 CEST; 16h ago
Docs: https://github.com/mthenw/frontail
https://github.com/openhab/openhabian/issues/28
Process: 666 ExecStart=/usr/bin/frontail --ui-highlight --ui-highlight-preset /usr/lib/node_modules/frontail/preset/openhab.jso
Main PID: 666 (code=exited, status=1/FAILURE)

Sep 03 17:28:49 openHABianPi systemd[1]: frontail.service: Main process exited, code=exited, status=1/FAILURE
Sep 03 17:28:49 openHABianPi systemd[1]: frontail.service: Unit entered failed state.
Sep 03 17:28:49 openHABianPi systemd[1]: frontail.service: Failed with result 'exit-code'.
Sep 03 17:28:49 openHABianPi systemd[1]: frontail.service: Service hold-off time over, scheduling restart.
Sep 03 17:28:49 openHABianPi systemd[1]: Stopped Frontail openHAB instance, reachable at http://openHABianPi:9001.
Sep 03 17:28:49 openHABianPi systemd[1]: frontail.service: Start request repeated too quickly.
Sep 03 17:28:49 openHABianPi systemd[1]: Failed to start Frontail openHAB instance, reachable at http://openHABianPi:9001.
Sep 03 17:28:49 openHABianPi systemd[1]: frontail.service: Unit entered failed state.
Sep 03 17:28:49 openHABianPi systemd[1]: frontail.service: Failed with result 'exit-code'.

mit restart kommt folgender Fehler:

[09:58:11] openhabian@openHABianPi:~$ ● frontail.service - Frontail openHAB instance, reachable at http://openHABianPi:9001
-bash: ●: Kommando nicht gefunden.
[09:58:34] openhabian@openHABianPi:~$ Loaded: loaded (/etc/systemd/system/frontail.service; enabled; vendor preset: enabled)
-bash: Syntaxfehler beim unerwarteten Wort `('
[09:58:34] openhabian@openHABianPi:~$ Active: failed (Result: exit-code) since Mon 2018-09-03 17:28:49 CEST; 16h ago
-bash: Syntaxfehler beim unerwarteten Wort `('
[09:58:34] openhabian@openHABianPi:~$ Docs: https://github.com/mthenw/frontail
-bash: Docs:: Kommando nicht gefunden.
[09:58:34] openhabian@openHABianPi:~$ https://github.com/openhab/openhabian/issues/28
-bash: https://github.com/openhab/openhabian/issues/28: Datei oder Verzeichnis nicht gefunden
[09:58:34] openhabian@openHABianPi:~$ Process: 666 ExecStart=/usr/bin/frontail --ui-highlight --ui-highlight-preset /usr/lib/node_modules/frontail/preset/openhab.jso
-bash: Process:: Kommando nicht gefunden.
[09:58:34] openhabian@openHABianPi:~$ Main PID: 666 (code=exited, status=1/FAILURE)
-bash: Syntaxfehler beim unerwarteten Wort `('
[09:58:34] openhabian@openHABianPi:~$
[09:58:34] openhabian@openHABianPi:~$ Sep 03 17:28:49 openHABianPi systemd[1]: frontail.service: Main process exited, code=exited, status=1/FAILURE
-bash: Sep: Kommando nicht gefunden.
[09:58:34] openhabian@openHABianPi:~$ Sep 03 17:28:49 openHABianPi systemd[1]: frontail.service: Unit entered failed state.
-bash: Sep: Kommando nicht gefunden.
[09:58:34] openhabian@openHABianPi:~$ Sep 03 17:28:49 openHABianPi systemd[1]: frontail.service: Failed with result 'exit-code'.
-bash: Sep: Kommando nicht gefunden.
[09:58:34] openhabian@openHABianPi:~$ Sep 03 17:28:49 openHABianPi systemd[1]: frontail.service: Service hold-off time over, scheduling restart.
-bash: Sep: Kommando nicht gefunden.
[09:58:34] openhabian@openHABianPi:~$ Sep 03 17:28:49 openHABianPi systemd[1]: Stopped Frontail openHAB instance, reachable at http://openHABianPi:9001.
-bash: Sep: Kommando nicht gefunden.
[09:58:34] openhabian@openHABianPi:~$ Sep 03 17:28:49 openHABianPi systemd[1]: frontail.service: Start request repeated too quickly.
-bash: Sep: Kommando nicht gefunden.
[09:58:34] openhabian@openHABianPi:~$ Sep 03 17:28:49 openHABianPi systemd[1]: Failed to start Frontail openHAB instance, reachable at http://openHABianPi:9001.
-bash: Sep: Kommando nicht gefunden.
[09:58:34] openhabian@openHABianPi:~$ Sep 03 17:28:49 openHABianPi systemd[1]: frontail.service: Unit entered failed state.
-bash: Sep: Kommando nicht gefunden.
[09:58:34] openhabian@openHABianPi:~$ Sep 03 17:28:49 openHABianPi systemd[1]: frontail.service: Failed with result 'exit-code'.
-bash: Sep: Kommando nicht gefunden.
[09:58:34] openhabian@openHABianPi:~$

Re: Log Viewer funktioniert nicht

Verfasst: 4. Sep 2018 11:38
von udo1toni
Was sagt denn

Code: Alles auswählen

sudo journalctl -xu frontail 
Diese Fehlermeldung:

Code: Alles auswählen

-bash: Syntaxfehler beim unerwarteten Wort `('
deutet ja darauf hin, dass in der service Datei ein Tippfehler ist. Dazu müsstest Du aber selbst etwas daran geändert haben...
Schau mal nach, was in /etc/systemd/system/frontail.service steht