Autostart für Optolink Splitter bring ich nicht zum laufen #63
Replies: 12 comments 51 replies
-
Moin @schnuller123 ! Schön wäre gewesen, wenn du grad das systemd Skript hier rein gestellt hättest, das du benutzt, und auch gesagt hättest, ob du mit virtueller Umgebung (venv) arbeitest, oder nicht. wenn ich das skript aus Wiki (ohne venv) an deine Infos anpasse, sieht es so aus:
Vielleicht war es das ja schon? ansonsten müsstest du mal Grüsse! |
Beta Was this translation helpful? Give feedback.
-
Hallo [Unit] [Service] [Install] der Autostart geht leider nicht, nur wenn ich ihn im Putty manuell mit folgenden Befehlen starte: Beim booten zeigt er zuerst IP 127.0.1.1 an erst nach ca 1Min dann die richtige!! = Fritzbox DHCP? nochmal Danke !!!!!! |
Beta Was this translation helpful? Give feedback.
-
Hallo 127.0.1.1 kommt am Monitor der direkt am Pi Zero hängt nach ca 1Min blitz er kurz auf ( Clear ? ) und zeigt dann 192.168.178.164 an Eintrag habe ich geändert, aber er startet immer noch nicht sudo systemctl daemon-reload sudo systemctl status optolink-splitter.service pi@raspberrypi:~ $ sudo systemctl status optolink-splitter.service dann wieder eingegeben und MQTT kommen Daten |
Beta Was this translation helpful? Give feedback.
-
mir ist das alles zu hoch.... kann ich das nicht "normal" starten? ich muss im Putty nur folgende sachen starten, dann geht es: cd optolink-splitter mfg Sigi |
Beta Was this translation helpful? Give feedback.
-
habe übrigens nur nen Zero mit folgender aktuellen Software drauf PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)" |
Beta Was this translation helpful? Give feedback.
-
Versuch mal im putty: Wenn er sagt das es kein pyserial und/oder paho-mqtt gibt: Danach soll es ohne venv auch marschieren. |
Beta Was this translation helpful? Give feedback.
-
Hallo FransOv habs gemacht aber: pi@raspberrypi:~/optolink-splitter-main $ python optolinkvs2_switch.py in der Scriptdatei optolinkvs2_switch.py wenn ich dann sudo pip install pyserial eingebe |
Beta Was this translation helpful? Give feedback.
-
Nein , ohne Erfolg pi@raspberrypi:~ $ cd optolink-splitter-main pi@raspberrypi: auch innerhalb der virtuellen Umgebung geht es nicht |
Beta Was this translation helpful? Give feedback.
-
OK jetzt habe ich mal mit pi@raspberrypi:~ $ sudo pip install pyserial × This environment is externally managed
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. dann wären wir wieder bei dieser scheiss venv hab noch versucht: bin am ENDE! |
Beta Was this translation helpful? Give feedback.
-
Am Ende ist immer wieder eine Neustart. |
Beta Was this translation helpful? Give feedback.
-
team nein, aber Teamviewer |
Beta Was this translation helpful? Give feedback.
-
wollen wir auf Whatsapp gehen? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hallo Leute!
zuerst mal mein erstes Problem
bin kein grosser Linux bediener , denke mal das ist das Hauptproblem
dann mal zu den orginal pfade:
/home/pi/optolink/ steht in der anleitung
aber habe herausgefunden, das ich geänderte pfade verwenden muss:
/home/ds/optolink-splitter-main/
ich habe den user "ds" und nicht "pi"
und es wird in der Datei "xxx" von eine Group definiert, was muss ich da haben ds oder pi?
wenn ich es manuell starte dann läuft alles, auch die MQTT ausgabe!!!!
dann auch noch den LOG für den Fehler der autostart funktion:
ds@raspberrypi:~/optolink-splitter-main $ journalctl -xe
░░ A start job for unit optolink-splitter.service has begun execution.
░░ The job identifier is 35340.
Dec 23 23:03:49 raspberrypi systemd[1152]: optolink-splitter.service: Failed to determine group credentials: No such >
Dec 23 23:03:49 raspberrypi systemd[1152]: optolink-splitter.service: Failed at step GROUP spawning /bin/sleep: No su>
░░ Subject: Process /bin/sleep could not be executed
░░ Defined-By: systemd
░░ The process /bin/sleep could not be executed and failed.
░░ The error number returned by this process is ERRNO.
Dec 23 23:03:49 raspberrypi systemd[1]: optolink-splitter.service: Control process exited, code=exited, status=216/GR>
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ An ExecStartPre= process belonging to unit optolink-splitter.service has exited.
░░ The process' exit code is 'exited' and its exit status is 216.
Dec 23 23:03:49 raspberrypi systemd[1]: optolink-splitter.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ The unit optolink-splitter.service has entered the 'failed' state with result 'exit-code'.
Dec 23 23:03:49 raspberrypi systemd[1]: Failed to start Optolink-Splitter Service.
░░ Subject: A start job for unit optolink-splitter.service has failed
░░ Defined-By: systemd
Beta Was this translation helpful? Give feedback.
All reactions