# Openplotter 2020-12-16-OpenPlotter-v2-Headless.img # Installed pypilot with the openplotter setup tool. # then, installed pypilot 0.23 from github # In openplotter pypilot, set Automatic Feb 2 20:23:49 openplotter systemd[1]: Reloading. Feb 2 20:23:49 openplotter systemd[1]: Reloading. Feb 2 20:23:50 openplotter systemd[1]: Reloading. Feb 2 20:23:50 openplotter systemd[1]: Started pypilot. Feb 2 20:23:50 openplotter systemd[1]: Started openplotter-pypilot-read. $ systemctl list-units|grep pypilot openplotter-pypilot-read.service loaded active running openplotter-pypilot-read pypilot.service loaded active running pypilot $ ps -ef|grep pypilot pi 6144 1 2 20:35 ? 00:00:01 /usr/bin/python /usr/local/bin/pypilot pi 6146 1 1 20:35 ? 00:00:00 /usr/bin/python3 /usr/bin/openplotter-pypilot-read pi 6153 6144 0 20:35 ? 00:00:00 /usr/bin/python /usr/local/bin/pypilot pi 6154 6144 0 20:35 ? 00:00:00 /usr/bin/python /usr/local/bin/pypilot pi 6161 6144 0 20:35 ? 00:00:00 /usr/bin/python /usr/local/bin/pypilot pi 6164 6144 0 20:35 ? 00:00:00 /usr/bin/python /usr/local/bin/pypilot pi 6166 6144 0 20:35 ? 00:00:00 /usr/bin/python /usr/local/bin/pypilot pi 6167 6144 0 20:35 ? 00:00:00 /usr/bin/python /usr/local/bin/pypilot pi 6184 930 10 20:35 ? 00:00:01 /usr/bin/python3 /usr/bin/openplotter-pypilot pi 6201 1399 0 20:36 pts/0 00:00:00 grep --color=auto pypilot # In openplotter pypilot, set Only compass Feb 2 20:24:48 openplotter systemd[1]: Stopping pypilot... Feb 2 20:24:48 openplotter systemd[1]: pypilot.service: Main process exited, code=exited, status=1/FAILURE Feb 2 20:24:48 openplotter systemd[1]: pypilot.service: Failed with result 'exit-code'. Feb 2 20:24:48 openplotter systemd[1]: Stopped pypilot. Feb 2 20:24:48 openplotter systemd[1]: Started pypilot_boatimu. Feb 2 20:24:48 openplotter systemd[1]: Stopping openplotter-pypilot-read... Feb 2 20:24:48 openplotter systemd[1]: openplotter-pypilot-read.service: Main process exited, code=killed, status=15/TERM Feb 2 20:24:48 openplotter systemd[1]: openplotter-pypilot-read.service: Succeeded. Feb 2 20:24:48 openplotter systemd[1]: Stopped openplotter-pypilot-read. Feb 2 20:24:48 openplotter systemd[1]: Started openplotter-pypilot-read. $ systemctl list-units|grep pypilot openplotter-pypilot-read.service loaded active running openplotter-pypilot-read ● pypilot.service loaded failed failed pypilot pypilot_boatimu.service loaded active running pypilot_boatimu # Weird: pypilot service failed $ ps -ef|grep pypilot pi 6184 930 3 20:35 ? 00:00:01 /usr/bin/python3 /usr/bin/openplotter-pypilot pi 6269 1 29 20:36 ? 00:00:00 /usr/bin/python /usr/local/bin/pypilot_boatimu -q pi 6271 1 27 20:36 ? 00:00:00 /usr/bin/python3 /usr/bin/openplotter-pypilot-read pi 6276 6269 0 20:36 ? 00:00:00 /usr/bin/python /usr/local/bin/pypilot_boatimu -q pi 6277 6269 2 20:36 ? 00:00:00 /usr/bin/python /usr/local/bin/pypilot_boatimu -q pi 6279 6269 0 20:36 ? 00:00:00 /usr/bin/python /usr/local/bin/pypilot_boatimu -q # In openplotter pypilot, set Disabled Feb 2 20:25:45 openplotter systemd[1]: Stopping pypilot_boatimu... Feb 2 20:25:45 openplotter systemd[1]: pypilot_boatimu.service: Main process exited, code=killed, status=15/TERM Feb 2 20:25:45 openplotter systemd[1]: pypilot_boatimu.service: Succeeded. Feb 2 20:25:45 openplotter systemd[1]: Stopped pypilot_boatimu. Feb 2 20:25:45 openplotter systemd[1]: Stopping openplotter-pypilot-read... Feb 2 20:25:45 openplotter systemd[1]: openplotter-pypilot-read.service: Main process exited, code=killed, status=15/TERM Feb 2 20:25:45 openplotter systemd[1]: openplotter-pypilot-read.service: Succeeded. Feb 2 20:25:45 openplotter systemd[1]: Stopped openplotter-pypilot-read. systemctl list-units|grep pypilot ● pypilot.service loaded failed failed pypilot $ ps -ef|grep pypilot pi 6184 930 1 20:35 ? 00:00:01 /usr/bin/python3 /usr/bin/openplotter-pypilot # Why did it fail? $ systemctl status pypilot.service ● pypilot.service - pypilot Loaded: loaded (/etc/systemd/system/pypilot.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2021-02-02 20:24:48 CET; 1min 40s ago Main PID: 5827 (code=exited, status=1/FAILURE) feb 02 20:23:51 openplotter sudo[5849]: pi : TTY=unknown ; PWD=/home/pi/.pypilot ; USER=root ; COMMAND=/usr/bin/chrt -pi 0 5836 feb 02 20:23:51 openplotter sudo[5849]: pam_unix(sudo:session): session opened for user root by (uid=0) feb 02 20:23:51 openplotter sudo[5849]: pam_unix(sudo:session): session closed for user root feb 02 20:23:51 openplotter sudo[5852]: pi : TTY=unknown ; PWD=/home/pi/.pypilot ; USER=root ; COMMAND=/usr/bin/chrt -pf 1 5827 feb 02 20:23:51 openplotter sudo[5852]: pam_unix(sudo:session): session opened for user root by (uid=0) feb 02 20:23:51 openplotter sudo[5852]: pam_unix(sudo:session): session closed for user root feb 02 20:24:48 openplotter systemd[1]: Stopping pypilot... feb 02 20:24:48 openplotter systemd[1]: pypilot.service: Main process exited, code=exited, status=1/FAILURE feb 02 20:24:48 openplotter systemd[1]: pypilot.service: Failed with result 'exit-code'. feb 02 20:24:48 openplotter systemd[1]: Stopped pypilot. # Reboot (Pypilot switched to Automatic again): - Pypilot daemon NOT stopped before linux shutdown. That is weird. - After linux boot: Feb 2 20:41:42 openplotter systemd[1]: openplotter-pypilot-read.service: Succeeded. Feb 2 20:41:42 openplotter systemd[1]: openplotter-pypilot-read.service: Service RestartSec=2s expired, scheduling restart. Feb 2 20:41:42 openplotter systemd[1]: openplotter-pypilot-read.service: Scheduled restart job, restart counter is at 1. Feb 2 20:41:42 openplotter systemd[1]: Stopped openplotter-pypilot-read. Feb 2 20:41:42 openplotter systemd[1]: Started openplotter-pypilot-read. - Cannot find pypilot service statup logging. Yet it is running. That is also weird.