A couple months pythonanywhere made me upgrade my server image. Ever since, the scheduled hourly task I have occasionally gets strange errors and won't start.
The errors are hard to reproduce because 1) they only happen occasionally and 2) they tend to be different each time. I also can't troubleshoot them because they are not python errors and they don't have line numbers.
My task is simply cd /home/zadieblack/bot3 && python3.8 run_as_task.py
Some of the errors I've gotten are
/bin/bash: line 1: 24 Segmentation fault python /bin/run_scheduled_task.py 'cd /home/zadieblack/bot3 && python3.8 run_as_task.py'
corrupted size vs. prev_size
/bin/bash: line 1: 24 Aborted python /bin/run_scheduled_task.py 'cd /home/zadieblack/bot3 && python3.8 run_as_task.py'
munmap_chunk(): invalid pointer
/bin/bash: line 1: 24 Aborted python /bin/run_scheduled_task.py 'cd /home/zadieblack/bot3 && python3.8 run_as_task.py'
Again, my code is python (obviously) but these seem to be C errors and they don't have line numbers. They also aren't consistent. Sometimes the task will run fine for a while, then all of a sudden it will get a bunch of these weird errors. They didn't happen before the server image update.
Any ideas?