I run my Raspberries headless and my SSH sessions are usually brief. Too brief to encounter the intermittent errors that seem to stop my Python scripts: I'm therefore in the dark as to the root causes sometimes. I think, though I'm not sure, it may be due to file access conflicts.
The scripts are initiated using cron at boot and typically function for a few hours before failing: because the RPi's are located in a remote location I'm unable to keep remote connection alive for that period to watch the execution of the script and the error unfold (and thus observe the error message).
Does a log file exist for Python runtime errors or can such be enabled in my scripts?
4 posts • Page 1 of 1