Connection errors should not increase the penalty count

Bug #1383298 reported by Niklas Wenzel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
account-polld (Ubuntu)
New
Undecided
Unassigned

Bug Description

When the device is not connected to the internet, polling a GMail account fails with "dial tcp: lookup www.googleapis.com: no such host". In that case, the penalty count of that account should not be increased in my opinion as that's mostly only a temporary problem.
For me this error often appears directly after boot before an internet connection could be established. Five minutes later, when trying to poll the account again, it won't do so because the penalty count is set to 1. Therefore, it takes a total of 10 minutes until the server is polled for the first time, which is far too long in my opinion.

Log file (the interval doesn't fit the 5 minute timeframe because I manually triggered the poll):

2014/10/21 10:03:58 Received Poll()
2014/10/21 10:03:58 Starting poll for account 3
2014/10/21 10:03:58 Starting poll for account 2
2014/10/21 10:03:58 Polling account 3
2014/10/21 10:03:58 Polling account 2
2014/10/21 10:03:58 Error while polling 3: Get https://www.googleapis.com/gmail/v1/users/me/messages?q=is%3Aunread+category%3Apersonal+in%3Ainbox: dial tcp: lookup www.googleapis.com: no such host
2014/10/21 10:03:58 Poll for account 3 has failed: Get https://www.googleapis.com/gmail/v1/users/me/messages?q=is%3Aunread+category%3Apersonal+in%3Ainbox: dial tcp: lookup www.googleapis.com: no such host
2014/10/21 10:03:58 Ending poll for account 3
2014/10/21 10:03:58 Error while polling 2: Get https://www.googleapis.com/gmail/v1/users/me/messages?q=is%3Aunread+category%3Apersonal+in%3Ainbox: dial tcp: lookup www.googleapis.com: no such host
2014/10/21 10:03:58 Poll for account 2 has failed: Get https://www.googleapis.com/gmail/v1/users/me/messages?q=is%3Aunread+category%3Apersonal+in%3Ainbox: dial tcp: lookup www.googleapis.com: no such host
2014/10/21 10:03:58 Ending poll for account 2
2014/10/21 10:04:07 Received Poll()
2014/10/21 10:04:07 Leaving poll for account 3 as penalty count is 1
2014/10/21 10:04:07 Leaving poll for account 2 as penalty count is 1

Revision history for this message
Niklas Wenzel (nikwen) wrote :

Ok, this really turns out to appear due to a missing internet connection. I'll rephrase the bug.

Niklas Wenzel (nikwen)
description: updated
summary: - account-polld fails with "dial tcp: lookup www.googleapis.com: no such
- host"
+ Connection errors should not increase the penalty count
Revision history for this message
Niklas Wenzel (nikwen) wrote :

The problem experienced in the description would be fixed by https://code.launchpad.net/~nikwen/account-polld/authentification-penalty-count/+merge/272031. However, that would just be a workaround for that specific case and would not fix the "Connection errors should not increase the penalty count" issue.

Revision history for this message
Niklas Wenzel (nikwen) wrote :
Revision history for this message
Niklas Wenzel (nikwen) wrote :

Ok, the new version of the branch doesn't affect this anymore.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.