priestc / flightloggin2

Online Pilot Logbook
http://flightlogg.in
Other
20 stars 14 forks source link

Automatic email backup failing #10

Open carthis opened 11 years ago

carthis commented 11 years ago

The automated email logbook backup hasn't worked since approximately May 2013. A manual backup initiated from the website works fine.

priestc commented 11 years ago

It only sends you an email if there has been a change to your logbook in the preceding period. If you don't log a new flight, you won't get an email. Also, is your email correct?

carthis commented 11 years ago

Email is correct, and I've logged about 250h since May, all entered into the logbook. They're not being redirected to spam, and pressing the manual backup button works fine.

bovine commented 11 years ago

I received an automated backup on backup-2013-10-21.tsv so it doesn't seem entirely broken.

priestc commented 11 years ago

Most likely, your particular email is not being sent. I'd have to check the email log, but it is possible your email provider is marking all of flightloggin's mail as spam. Are you using yahoo mail by any chance? This happened before with yahoo, but it may have happened again.

carthis commented 11 years ago

Nope, it's not being sent to spam. I'm on Gmail. Like I said, it was working fine, and then May 29, 2013 was the last automated one I received. Now I only receive the manual backups when I hit the button.

priestc commented 11 years ago

... hmm I'm not sure whats causing it then. I'll look into it some more...

bovine commented 11 years ago

You should make the backup page show the status/timestamp of the last automated and last manual backups.

You could also make a process that monitors the /var/log/maillog and scrapes out lines that reference the message-id of any automated or manual backup, and display those log lines on the backup status page for that user.

priestc commented 11 years ago

Theres a management command that handles the automatic backups (which get called from cron). That process knows if the mail is sent or not. Currently, the status of the email gets written to a file, but that could change to being stored in a BackupHistory model (or something), which can then be displayed on the backup page.

carthis commented 10 years ago

This issue is still occurring. Only the manual backup works.