nylas / nylas-mail

:love_letter: An extensible desktop mail app built on the modern web. Forks welcome!
https://nylas.com/nylas-mail/
MIT License
24.8k stars 1.38k forks source link

N1 installation in unusable state after adding account #1651

Open snikch opened 8 years ago

snikch commented 8 years ago

I tried to add a new account after updating to the latest version and I've ended up in an unusable state. My current state is an empty inbox (no accounts visible), and the account preference page will not open.

image

image

image

The process I went through to get into this state, was:

Here's what my console looks like when I open up the app with debug flags.

image

ColinDuquesnoy commented 8 years ago

I've faced a similar issue with a fresh install of N1 0.4.32 on KaOS

N1 package: https://github.com/KaOS-Community-Packages/n1/blob/master/PKGBUILD

Steps to reproduce

Workaround

I'll try a fresh N1 install on OSX and Windows later today and will let you know how it went.

Let me know if you need more info.

ColinDuquesnoy commented 8 years ago

I'll try a fresh N1 install on OSX and Windows later today and will let you know how it went.

I cannot reproduce this on OSX, Windows and Ubuntu 14.04.

Here are more information about the issue:

screenshot_20160511_174304

screenshot_20160511_174346

{"host":"localhost","timestamp":"2016-05-11T17:34:16.887Z","payload":["ActionBridge: default Action Bridge Received: db-store-trigger"]}
{"host":"localhost","timestamp":"2016-05-11T17:34:17.232Z","payload":["0: PRAGMA main.page_size = 8192;"]}
{"host":"localhost","timestamp":"2016-05-11T17:34:17.232Z","payload":["0: PRAGMA main.cache_size = 20000;"]}
{"host":"localhost","timestamp":"2016-05-11T17:34:17.232Z","payload":["0: PRAGMA main.synchronous = NORMAL;"]}
{"host":"localhost","timestamp":"2016-05-11T17:34:17.277Z","payload":["44: PRAGMA journal_mode = WAL;"]}
{"host":"localhost","timestamp":"2016-05-11T17:34:17.277Z","payload":["45: PRAGMA user_version"]}
{"host":"localhost","timestamp":"2016-05-11T17:34:17.283Z","payload":["0: SELECT `JSONBlob`.`data` FROM `JSONBlob`  WHERE `JSONBlob`.`id` = 'NylasSyncWorker:cu5vkmgd5bqyrm1fmqtc35a2w'  LIMIT 1"]}
{"host":"localhost","timestamp":"2016-05-11T17:34:17.303Z","payload":["0: SELECT `Category`.`data` FROM `Category`   "]}
{"host":"localhost","timestamp":"2016-05-11T17:34:17.309Z","payload":["0: SELECT `JSONBlob`.`data` FROM `JSONBlob`  WHERE `JSONBlob`.`id` = 'task-queue'  LIMIT 1"]}
{"host":"localhost","timestamp":"2016-05-11T17:34:17.316Z","payload":["0: SELECT * FROM `ThreadCounts`"]}
{"host":"localhost","timestamp":"2016-05-11T17:34:17.318Z","payload":["0: SELECT `JSONBlob`.`data` FROM `JSONBlob`  WHERE `JSONBlob`.`id` = 'ContactRankingsForcu5vkmgd5bqyrm1fmqtc35a2w'  LIMIT 1"]}
{"host":"localhost","timestamp":"2016-05-11T17:34:17.320Z","payload":["0: SELECT `JSONBlob`.`data` FROM `JSONBlob`  WHERE `JSONBlob`.`id` = 'MailRules-V2'  LIMIT 1"]}
{"host":"localhost","timestamp":"2016-05-11T17:34:17.321Z","payload":["0: SELECT `Thread`.`data` FROM `Thread`  WHERE `Thread`.`last_message_received_timestamp` = -1  ORDER BY `Thread`.`last_message_received_timestamp` DESC LIMIT 0"]}
{"host":"localhost","timestamp":"2016-05-11T17:34:17.321Z","payload":["0: SELECT `Message`.`data` FROM `Message` INNER JOIN `MessagePluginMetadata` AS `M5` ON `M5`.`id` = `Message`.`id` WHERE `M5`.`value` = '1hnytbkg4wd1ahodatwxdqlb5'  ORDER BY `Message`.`date` ASC LIMIT 500"]}
{"host":"localhost","timestamp":"2016-05-11T17:34:17.324Z","payload":["0: SELECT `JSONBlob`.`data` FROM `JSONBlob`  WHERE `JSONBlob`.`id` = 'emoji'  LIMIT 1"]}
{"host":"localhost","timestamp":"2016-05-11T17:34:17.324Z","payload":["0: SELECT `Thread`.`data` FROM `Thread`  WHERE `Thread`.`last_message_received_timestamp` = -1  ORDER BY `Thread`.`last_message_received_timestamp` DESC LIMIT 200 OFFSET 0"]}
Streaming log data to /tmp/Nylas-N1-9442.9479.log
Window load time: 10210ms
undefined
ErrorReporter: Shipping Logs. Exception occurred
/usr/share/nylas/resources/app.asar/src/nylas-private-ship-logs-task
Request for Contact Rankings failed for account cu5vkmgd5bqyrm1fmqtc35a2w. APIError: Cannot make Nylas request for account cu5vkmgd5bqyrm1fmqtc35a2w auth token.
undefined
503
IncomingMessage
[SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random()
Running log ship: /tmp, Nylas-N1-9442[.0-9]*.log$
Error uploading /tmp/Nylas-N1-9442.9473.log: status code 204
Error uploading /tmp/Nylas-N1-9442.9479.log: status code 204
Error uploading /tmp/Nylas-N1-9442.log: status code 204
ErrorReporter: Shipped Logs.
Completed ANALYZE of database
callum-oakley commented 8 years ago

Also affected by this on Arch. Looks like I'm not the only one either: https://aur.archlinux.org/packages/n1