Why Task Logs Are Missing On PythonAnywhere And How To Find Them?

ARON HACK 亞倫害的
2 min readDec 22, 2023

--

Task Missing Or Only Show One Line Message

If you view task logs on PythonAnywhere, you are likely to see a blank page or a summary like:

2023-12-21 05:31:06 -- Completed task, took 16197.73 seconds, return code was 0.

The reason is that PythonAnywhere rotates task logs every day, then moves old logs “/var/log”. Though it is a little bit hard to find, you can click the slash to navigate to the root directory.

In the next step, you can find old logs of the past several days. Because PythonAnywhere doesn’t keep logs for a long time, the best practice is to backup logs as you need.

If you have multiple tasks, how to quickly find the logs you need? Just enter the task log page, the end of url is the schedule log id. It means you can find old logs with the same id.

--

--

ARON HACK 亞倫害的
ARON HACK 亞倫害的

Written by ARON HACK 亞倫害的

唸過設計,當過行銷企劃,蓋過電商網站的零售業數據分析師。 https://www.aronhack.com/ | https://www.linkedin.com/in/aronwu/

No responses yet