Server Crashes After Enabling systemd Timer for JupyterHub Task

Hello,

I am connecting to JupyterHub through a server, which is not hosted locally. I want to run a Jupyter notebook at the same time every day using systemd. However, when I test if the scheduled task works after a server restart by running sudo reboot, the server crashes, and I have to access a new server address.

I have two related files: one is mail.service, and the other is mail.timer. When I run sudo systemctl start mail.service, the mail is sent as expected. But after creating, enabling, and starting the timer files (my_task.timer), the system crashes when I run sudo reboot.

Could you please help me figure out what might be going wrong?

What does the scheduled task look like? What are the logs and traceback and any error messages leading up to the crash (e.g. journalctl -u your-unit)?