Creates Gmail account twice if no previous state could be loaded

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

Bug Description

How to reproduce:

Run the following commands:

stop account-polld
stop ubuntu-push-client
rm ~/.local/share/account-polld/*

What happens:

account-polld initiates each account twice as soon as it recognizes it cannot load a plugin's state from the storage:

2015/08/02 20:23:22 Creating account with id 3 for com.ubuntu.developer.webapps.webapp-gmail_webapp-gmail
2015/08/02 20:23:22 gmail plugin 3: cannot load previous state from storage: stat /home/phablet/.local/share/account-polld/gmail-3.json: no such file or directory
2015/08/02 20:23:22 Starting poll for account 3
2015/08/02 20:23:22 Polling account 3
2015/08/02 20:23:22 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: Temporary failure in name resolution
2015/08/02 20:23:22 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: Temporary failure in name resolution
2015/08/02 20:23:22 Ending poll for account 3
2015/08/02 20:23:22 Creating account with id 4 for com.ubuntu.developer.webapps.webapp-gmail_webapp-gmail
2015/08/02 20:23:22 gmail plugin 4: cannot load previous state from storage: stat /home/phablet/.local/share/account-polld/gmail-4.json: no such file or directory
2015/08/02 20:23:22 Starting poll for account 4
2015/08/02 20:23:22 Polling account 4
2015/08/02 20:23:22 Error while polling 4: Get https://www.googleapis.com/gmail/v1/users/me/messages?q=is%3Aunread+category%3Apersonal+in%3Ainbox: dial tcp: lookup www.googleapis.com: Temporary failure in name resolution
2015/08/02 20:23:22 Poll for account 4 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: Temporary failure in name resolution
2015/08/02 20:23:22 Ending poll for account 4
2015/08/02 20:23:22 Creating account with id 2 for com.ubuntu.developer.webapps.webapp-gmail_webapp-gmail
2015/08/02 20:23:22 gmail plugin 2: cannot load previous state from storage: stat /home/phablet/.local/share/account-polld/gmail-2.json: no such file or directory
2015/08/02 20:23:22 Starting poll for account 2
2015/08/02 20:23:22 Polling account 2
2015/08/02 20:23:22 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: Temporary failure in name resolution
2015/08/02 20:23:22 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: Temporary failure in name resolution
2015/08/02 20:23:22 Ending poll for account 2
2015/08/02 20:23:31 Creating account with id 4 for com.ubuntu.developer.webapps.webapp-gmail_webapp-gmail
2015/08/02 20:23:31 gmail plugin 4: cannot load previous state from storage: stat /home/phablet/.local/share/account-polld/gmail-4.json: no such file or directory
2015/08/02 20:23:31 Starting poll for account 4
2015/08/02 20:23:31 Polling account 4
2015/08/02 20:23:31 Error while polling 4: Get https://www.googleapis.com/gmail/v1/users/me/messages?q=is%3Aunread+category%3Apersonal+in%3Ainbox: dial tcp: lookup www.googleapis.com: Temporary failure in name resolution
2015/08/02 20:23:31 Poll for account 4 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: Temporary failure in name resolution
2015/08/02 20:23:31 Ending poll for account 4
2015/08/02 20:23:31 Creating account with id 3 for com.ubuntu.developer.webapps.webapp-gmail_webapp-gmail
2015/08/02 20:23:31 gmail plugin 3: cannot load previous state from storage: stat /home/phablet/.local/share/account-polld/gmail-3.json: no such file or directory
2015/08/02 20:23:31 Starting poll for account 3
2015/08/02 20:23:31 Polling account 3
2015/08/02 20:23:31 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: Temporary failure in name resolution
2015/08/02 20:23:31 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: Temporary failure in name resolution
2015/08/02 20:23:31 Ending poll for account 3
2015/08/02 20:23:31 Creating account with id 2 for com.ubuntu.developer.webapps.webapp-gmail_webapp-gmail
2015/08/02 20:23:31 gmail plugin 2: cannot load previous state from storage: stat /home/phablet/.local/share/account-polld/gmail-2.json: no such file or directory
2015/08/02 20:23:31 Starting poll for account 2
2015/08/02 20:23:31 Polling account 2
2015/08/02 20:23:31 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: Temporary failure in name resolution
2015/08/02 20:23:31 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: Temporary failure in name resolution
2015/08/02 20:23:31 Ending poll for account 2
2015/08/02 21:04:30 Received Poll()

(Ignore the network errors. It also happens without them.)

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.