Creates Gmail account twice if no previous state could be loaded
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/
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.
2015/08/02 20:23:22 gmail plugin 3: cannot load previous state from storage: stat /home/phablet/
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:/
2015/08/02 20:23:22 Poll for account 3 has failed: Get https:/
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.
2015/08/02 20:23:22 gmail plugin 4: cannot load previous state from storage: stat /home/phablet/
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:/
2015/08/02 20:23:22 Poll for account 4 has failed: Get https:/
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.
2015/08/02 20:23:22 gmail plugin 2: cannot load previous state from storage: stat /home/phablet/
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:/
2015/08/02 20:23:22 Poll for account 2 has failed: Get https:/
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.
2015/08/02 20:23:31 gmail plugin 4: cannot load previous state from storage: stat /home/phablet/
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:/
2015/08/02 20:23:31 Poll for account 4 has failed: Get https:/
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.
2015/08/02 20:23:31 gmail plugin 3: cannot load previous state from storage: stat /home/phablet/
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:/
2015/08/02 20:23:31 Poll for account 3 has failed: Get https:/
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.
2015/08/02 20:23:31 gmail plugin 2: cannot load previous state from storage: stat /home/phablet/
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:/
2015/08/02 20:23:31 Poll for account 2 has failed: Get https:/
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.)