{"action":"created","issue":{"url":"https://api.github.com/repos/cozy/cozy-emails/issues/574","labels_url":"https://api.github.com/repos/cozy/cozy-emails/issues/574/labels{/name}","comments_url":"https://api.github.com/repos/cozy/cozy-emails/issues/574/comments","events_url":"https://api.github.com/repos/cozy/cozy-emails/issues/574/events","html_url":"https://github.com/cozy/cozy-emails/issues/574","id":96310953,"number":574,"title":"Emails application not starting","user":{"login":"nicodel","id":1799460,"avatar_url":"https://avatars.githubusercontent.com/u/1799460?v=3","gravatar_id":"","url":"https://api.github.com/users/nicodel","html_url":"https://github.com/nicodel","followers_url":"https://api.github.com/users/nicodel/followers","following_url":"https://api.github.com/users/nicodel/following{/other_user}","gists_url":"https://api.github.com/users/nicodel/gists{/gist_id}","starred_url":"https://api.github.com/users/nicodel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicodel/subscriptions","organizations_url":"https://api.github.com/users/nicodel/orgs","repos_url":"https://api.github.com/users/nicodel/repos","events_url":"https://api.github.com/users/nicodel/events{/privacy}","received_events_url":"https://api.github.com/users/nicodel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cozy/cozy-emails/labels/0%20-%20Backlog","name":"0 - Backlog","color":"0052cc"},{"url":"https://api.github.com/repos/cozy/cozy-emails/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-21T13:09:13Z","updated_at":"2015-07-21T13:31:48Z","closed_at":"2015-07-21T13:31:48Z","body":"Hi,\r\nI have Emails application trying to launch for nearly 30 minutes now, and the icon is still spinning.\r\nInstance hosted on Cozy infrastructure (nicolas-6)\r\nData System: 2.0.6\r\nProxy: 2.0.2\r\nHome: 2.0.4\r\nController: 2.0.27\r\nEmails: 0.9.5\r\n\r\nHere are the Emails logs:\r\n```\r\nINFO +0000 models:account FETCHING ACCOUNT nicodel : 9\r\nINFO +0000 models:account   BOXES  0 BOXES TO DESTROY\r\nINFO +0001 models:message createFromImapMessage INBOX 6605\r\nWARN +0000 models:mailbox 4932 + 1 < 4977 on INBOX\r\nWARN +0002 models:mailbox refreshFast fail (Error:     WRONG STATE\r\n    at Mailbox._refreshDeleted (/usr/local/cozy/apps/emails/build/server/models/mailbox.js:549:23)\r\n    at /usr/local/cozy/apps/emails/build/server/models/mailbox.js:439:20\r\n    at /usr/local/cozy/apps/emails/build/server/models/mailbox.js:528:18\r\n    at /usr/local/cozy/apps/emails/node_modules/async/lib/async.js:157:25\r\n    at /usr/local/cozy/apps/emails/build/server/models/mailbox.js:521:22\r\n    at /usr/local/cozy/apps/emails/build/server/models/mailbox.js:935:18\r\n    at Object.async.eachSeries (/usr/local/cozy/apps/emails/node_modules/async/lib/async.js:145:20)\r\n    at Message.module.exports.Message.storeAttachments (/usr/local/cozy/apps/emails/build/server/models/message.js:748:18)\r\n    at /usr/local/cozy/apps/emails/build/server/models/message.js:741:27\r\n    at /usr/local/cozy/apps/emails/build/server/utils/socket_handler.js:100:14), trying deep\r\nINFO +0000 models:mailbox IMAP REFRESH INBOX UID 1:6606\r\nINFO +0000 models:message createFromImapMessage Trash 1599\r\nINFO +0000 models:message createFromImapMessage Trash 1600\r\nINFO +0000 models:message createFromImapMessage Trash 1601\r\nINFO +0000 models:message createFromImapMessage Trash 1602\r\nINFO +0000 models:message createFromImapMessage Trash 1603\r\nINFO +0000 models:message createFromImapMessage Trash 1604\r\nINFO +0000 models:message createFromImapMessage Trash 1605\r\nWARN +0000 models:mailbox 154 + 0 < 156 on Sent\r\nWARN +0001 models:mailbox refreshFast fail (Error:     WRONG STATE\r\n    at Mailbox._refreshDeleted (/usr/local/cozy/apps/emails/build/server/models/mailbox.js:549:23)\r\n    at /usr/local/cozy/apps/emails/build/server/models/mailbox.js:439:20\r\n    at /usr/local/cozy/apps/emails/build/server/models/mailbox.js:528:18\r\n    at /usr/local/cozy/apps/emails/node_modules/async/lib/async.js:157:25\r\n    at /usr/local/cozy/apps/emails/build/server/utils/socket_handler.js:111:14\r\n    at /usr/local/cozy/apps/emails/node_modules/cozydb/lib/model.js:34:14\r\n    at /usr/local/cozy/apps/emails/node_modules/cozydb/lib/cozymodel.js:112:18\r\n    at parseBody (/usr/local/cozy/apps/emails/node_modules/cozydb/node_modules/request-json-light/main.js:74:10)\r\n    at IncomingMessage.<anonymous> (/usr/local/cozy/apps/emails/node_modules/cozydb/node_modules/request-json-light/main.js:99:14)\r\n    at IncomingMessage.emit (events.js:117:20)), trying deep\r\nINFO +0000 models:mailbox IMAP REFRESH Sent UID 1:157\r\nINFO +0000 models:account FETCHING ACCOUNT gmail : 21\r\nINFO +0000 models:account   BOXES  0 BOXES TO DESTROY\r\nWARN +0000 models:mailbox 6579 + 0 < 6587 on INBOX\r\nWARN +0001 models:mailbox refreshFast fail (Error:     WRONG STATE\r\n    at Mailbox._refreshDeleted (/usr/local/cozy/apps/emails/build/server/models/mailbox.js:549:23)\r\n    at /usr/local/cozy/apps/emails/build/server/models/mailbox.js:439:20\r\n    at /usr/local/cozy/apps/emails/build/server/models/mailbox.js:528:18\r\n    at /usr/local/cozy/apps/emails/node_modules/async/lib/async.js:157:25\r\n    at /usr/local/cozy/apps/emails/build/server/utils/socket_handler.js:111:14\r\n    at /usr/local/cozy/apps/emails/node_modules/cozydb/lib/model.js:34:14\r\n    at /usr/local/cozy/apps/emails/node_modules/cozydb/lib/cozymodel.js:112:18\r\n    at parseBody (/usr/local/cozy/apps/emails/node_modules/cozydb/node_modules/request-json-light/main.js:74:10)\r\n    at IncomingMessage.<anonymous> (/usr/local/cozy/apps/emails/node_modules/cozydb/node_modules/request-json-light/main.js:99:14)\r\n    at IncomingMessage.emit (events.js:117:20)), trying deep\r\nINFO +0000 models:mailbox IMAP REFRESH INBOX UID 9280:19279\r\nINFO +0000 models:mailbox IMAP REFRESH INBOX UID 1:9279\r\nINFO +0000 models:message MAIL [Gmail]/Important:14971 ADDED TO BOX\r\nINFO +0000 models:message MAIL [Gmail]/Important:14972 ADDED TO BOX\r\nINFO +0000 models:message MAIL [Gmail]/Important:14973 ADDED TO BOX\r\nINFO +0000 models:message MAIL [Gmail]/Important:14974 ADDED TO BOX\r\nINFO +0000 models:message MAIL [Gmail]/Important:14975 ADDED TO BOX\r\nWARN +0000 models:mailbox 12177 + 5 < 12193 on [Gmail]/Important\r\nWARN +0000 models:mailbox refreshFast fail (Error:     WRONG STATE\r\n    at Mailbox._refreshDeleted (/usr/local/cozy/apps/emails/build/server/models/mailbox.js:549:23)\r\n    at /usr/local/cozy/apps/emails/build/server/models/mailbox.js:439:20\r\n    at /usr/local/cozy/apps/emails/build/server/models/mailbox.js:528:18\r\n    at /usr/local/cozy/apps/emails/node_modules/async/lib/async.js:157:25\r\n    at /usr/local/cozy/apps/emails/build/server/models/mailbox.js:521:22\r\n    at /usr/local/cozy/apps/emails/build/server/models/message.js:645:14\r\n    at /usr/local/cozy/apps/emails/build/server/utils/socket_handler.js:111:14\r\n    at /usr/local/cozy/apps/emails/node_modules/cozydb/lib/model.js:34:14\r\n    at /usr/local/cozy/apps/emails/node_modules/cozydb/lib/cozymodel.js:112:18\r\n    at parseBody (/usr/local/cozy/apps/emails/node_modules/cozydb/node_modules/request-json-light/main.js:74:10)), trying deep\r\nINFO +0000 models:mailbox IMAP REFRESH Important UID 4988:14987\r\nINFO +0000 models:message MAIL [Gmail]/Important:14986 ADDED TO BOX\r\nINFO +0000 models:message MAIL [Gmail]/Important:14985 ADDED TO BOX\r\nINFO +0000 models:message MAIL [Gmail]/Important:14984 ADDED TO BOX\r\nINFO +0000 models:message MAIL [Gmail]/Important:14983 ADDED TO BOX\r\nINFO +0000 models:message MAIL [Gmail]/Important:14982 ADDED TO BOX\r\nINFO +0000 models:message MAIL [Gmail]/Important:14981 ADDED TO BOX\r\nINFO +0000 models:message MAIL [Gmail]/Important:14980 ADDED TO BOX\r\nINFO +0000 models:message MAIL [Gmail]/Important:14979 ADDED TO BOX\r\nINFO +0000 models:message MAIL [Gmail]/Important:14978 ADDED TO BOX\r\nINFO +0000 models:message MAIL [Gmail]/Important:14977 ADDED TO BOX\r\nINFO +0000 models:message MAIL [Gmail]/Important:14976 ADDED TO BOX\r\nINFO +0000 models:mailbox IMAP REFRESH Important UID 1:4987\r\nWARN +0000 models:mailbox 1764 + 0 < 1765 on [Gmail]/Messages envoyÃ©s\r\nWARN +0003 models:mailbox refreshFast fail (Error:     WRONG STATE\r\n    at Mailbox._refreshDeleted (/usr/local/cozy/apps/emails/build/server/models/mailbox.js:549:23)\r\n    at /usr/local/cozy/apps/emails/build/server/models/mailbox.js:439:20\r\n    at /usr/local/cozy/apps/emails/build/server/models/mailbox.js:528:18\r\n    at /usr/local/cozy/apps/emails/node_modules/async/lib/async.js:157:25\r\n    at /usr/local/cozy/apps/emails/build/server/utils/socket_handler.js:111:14\r\n    at /usr/local/cozy/apps/emails/node_modules/cozydb/lib/model.js:34:14\r\n    at /usr/local/cozy/apps/emails/node_modules/cozydb/lib/cozymodel.js:112:18\r\n    at parseBody (/usr/local/cozy/apps/emails/node_modules/cozydb/node_modules/request-json-light/main.js:74:10)\r\n    at IncomingMessage.<anonymous> (/usr/local/cozy/apps/emails/node_modules/cozydb/node_modules/request-json-light/main.js:99:14)\r\n    at IncomingMessage.emit (events.js:117:20)), trying deep\r\nINFO +0000 models:mailbox IMAP REFRESH Messages envoyÃ©s UID 1:1843\r\nWARN +0000 models:mailbox 17397 + 0 < 17419 on [Gmail]/Tous les messages\r\nWARN +0001 models:mailbox refreshFast fail (Error:     WRONG STATE\r\n    at Mailbox._refreshDeleted (/usr/local/cozy/apps/emails/build/server/models/mailbox.js:549:23)\r\n    at /usr/local/cozy/apps/emails/build/server/models/mailbox.js:439:20\r\n    at /usr/local/cozy/apps/emails/build/server/models/mailbox.js:528:18\r\n    at /usr/local/cozy/apps/emails/node_modules/async/lib/async.js:157:25\r\n    at /usr/local/cozy/apps/emails/build/server/utils/socket_handler.js:111:14\r\n    at /usr/local/cozy/apps/emails/node_modules/cozydb/lib/model.js:34:14\r\n    at /usr/local/cozy/apps/emails/node_modules/cozydb/lib/cozymodel.js:112:18\r\n    at parseBody (/usr/local/cozy/apps/emails/node_modules/cozydb/node_modules/request-json-light/main.js:74:10)\r\n    at IncomingMessage.<anonymous> (/usr/local/cozy/apps/emails/node_modules/cozydb/node_modules/request-json-light/main.js:99:14)\r\n    at IncomingMessage.emit (events.js:117:20)), trying deep\r\nINFO +0000 models:mailbox IMAP REFRESH Tous les messages UID 13379:23378\r\nINFO +0000 models:mailbox IMAP REFRESH Tous les messages UID 3379:13378\r\nINFO +0000 models:mailbox IMAP REFRESH Tous les messages UID 1:3378\r\nINFO +0000 models:message MAIL Trash:6666 ADDED TO BOX\r\nINFO +0000 models:message MAIL Trash:6667 ADDED TO BOX\r\nINFO +0000 models:message createFromImapMessage Spam 1640\r\nINFO +0000 config initial refresh completed\r\nINFO +0001 config Initialization complete\r\n```\r\nThis sequence is repeating itself endlessly, its seems. It did not identify weird logs from Home, Data System or Proxy linked to that."},"comment":{"url":"https://api.github.com/repos/cozy/cozy-emails/issues/comments/123304552","html_url":"https://github.com/cozy/cozy-emails/issues/574#issuecomment-123304552","issue_url":"https://api.github.com/repos/cozy/cozy-emails/issues/574","id":123304552,"user":{"login":"aenario","id":1580287,"avatar_url":"https://avatars.githubusercontent.com/u/1580287?v=3","gravatar_id":"","url":"https://api.github.com/users/aenario","html_url":"https://github.com/aenario","followers_url":"https://api.github.com/users/aenario/followers","following_url":"https://api.github.com/users/aenario/following{/other_user}","gists_url":"https://api.github.com/users/aenario/gists{/gist_id}","starred_url":"https://api.github.com/users/aenario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aenario/subscriptions","organizations_url":"https://api.github.com/users/aenario/orgs","repos_url":"https://api.github.com/users/aenario/repos","events_url":"https://api.github.com/users/aenario/events{/privacy}","received_events_url":"https://api.github.com/users/aenario/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T13:31:48Z","updated_at":"2015-07-21T13:31:48Z","body":"Well, something is definitively wrong here. Basically, home failed to see that emails was started.\r\nBut this is most probably an error with cozy-home or cozy-controller. If you manage to reproduce, could you try to get the logs from the home client ?\r\n\r\nClosing this issue in the meantime.\r\n"}}