Forums

/var/log/[app].server.log.1 is now missing

  • first of all i want to say pythonAnywhere is awesome so thank you.

  • for the last few years i have had a dashboard app fetching 2 server log files, via sftp, once per day:
    1) /var/log/[app].server.log
    2) /var/log/[app].server.log.1

  • starting this morning (Sept 9, 2023) /var/log/[app].server.log.1 is missing

  • wondering if this intentional or bug or artifact of a logger code update on your end
  • i also noticed that ....access.log.1 and ....schedule.log.1 are also missing
  • your input on this would be helpful so i know how to update the dashboard code

We had an issue with the log rotation system last night, so I think what must have happened was that it crashed after the old .1 file was moved to .2.gz, but before the one without .1 was moved to .1. We're not expecting it to fail again tonight, though, so that should sort everything out.

first reported this issue on sept 9, 2023.

  • this issue occurred another time between sept 9th and oct 9th

And this morning Oct 10, 2023

  • all the server.log files 1-9 are missing
  • all the error.log files 1-9 are missing
  • all the schedule.log files 1-9 are missing

question

  • wondering if the log rotation system is having more issues?

observations

  • when log files go missing my dashboard app lets me know and i have to temporarily tell it to ignore the missing files.
  • over a 1.5 year period prior to sept 9, 2023 this was issue did not occur but since sept 9, 2023 the missing log.x files issue has occurred 3 times.
  • anyway i think pythonanywhere is awesome, i am very happy customer, thank you.

Sorry for the confusion! During last system update (on 2023-10-09) we've updated underlying log infrastructure, that made the logs dissapear. We've recovered your old log files to /var/log/old_logs directory.