Public bug reported: 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.) ** Affects: account-polld (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1480712 Title: Creates Gmail account twice if no previous state could be loaded To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/account-polld/+bug/1480712/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs