-
Notifications
You must be signed in to change notification settings - Fork 104
Database first upload issue #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ok, first of all, to make things clear. There is no
This is going to be a serious test for the local store feature. Do you know how many emails there approximately? I guess attachments might occupy a significant portion of the used space.
Are you sure you run beta 7? Starting from beta 7 local store syncing timeout (fetching timeout) is configurable and the default value is set to 10 minutes. Is there the following options block in your "fetchingRateLimiting": {
"intervalMs": 60000,
"maxInInterval": 250
},
"timeouts": {
"fetching": 600000
} 600000 milliseconds here is equal to 10 minutes. Consider adjusting the following values in
You can also if you want to increase the Please make sure that app doesn't perform the bootstrap fetch for more than one protonmail account in the same time (add one account, wait for bootstrap fetch completion, add the second account ...). Parallel bootstrap fetch running doesn't yet work well enough, will later consider improving it. The log file is going to be huge and messy. There will be for example records containing the constantly updated Can you also calculate based on the log file or using timer what is the actual time of getting the error starting from bootstrap fetch running? 😄
The app is supposed to automatically keep the database up to date, so yes it does some fetching in the background, but those are diff only fetching, not so massive load as the initial/bootstrap fetch. The only way to stop fetching is disabling the local store feature for the account (it's disabled by default).
There will be no If you get the bootstrap fetch successfully completed I'd be interested to know what is the |
Hello - thank you for the feedback - I do confirm it is 2.0-beta7 - the file I execute is "email-securely-app-2.0.0-beta.7-linux-x86_64.AppImage" plus I confirm the options block in my config.json file:
I have put "Setting logLevel" to "verbose" and increased timeouts.fetching to 1200000. I kept maxInInterval at 250. I use the app just for one single protonmail account. It took about 20mins until it failed (I used a timer), with same error message. I can't see something really interesting in the log file. Just in case - when the app runs, I see those processes:
Now I understand that the massive download of the database occurs once - but if it fails, it will try from the beginning each time I switch to database view mode again. I wonder how protonmail servers consider this massive and sudden request.. Oh.. and the AppImage version takes something like 45s to be operationnal (once you've cliked on it) .. ? Is that normal ? (checking it on a J1900 processor though - PassMark benchmark multi thread 1851 / single thread 535). |
Given these points, it's now confirmed that configurable timeout actually takes place since 1200000 milliseconds = 20 minutes. It's a good thing to know. Considering the maxInInterval=250 (request limit per minute), we can assume that the app was able to process about 5000 requests in 20 minutes. 5000 value doesn't necessarily reflect the emails count since app also executes other types of requests (like fetching conversations, labels, etc), maybe up to 10% side requests. If the 10% side requests amount guess is accurate enough, then we can assume that you have got more than 4500 emails.
I guess if you scan the
AppImage is a compressed thing and starting it takes some time even on a more performant machines than you got. I think it's ok to run AppImage package trying a beta releases, but when stable v2 gets released you can just install a normal package ( I suggest to do the following (requires app restart):
|
Ok, today's test failed again but here are some observations - I have set timeouts.fetching to 3600000 (60 minutes) and maxInInterval value to 275. Regarding log file, the max in the first test was "rateLimitedMethodsCallCount" 3036 (yesterday). It went up to 6161 today. It indeed lasted 60mins until I get the error message. Worth mentioning that up to 32min, I had an email-securely growing process taking about 1.5Go of ram at the end - then it suddenly disappeared leaving a new (or not noticed before) email-securely-app--type=gpu-process --no-sandbox (...) process taking half of cpu at least. Nothing interesting in the log from those 32min to 60min. I stupidly didn't open the System Monitor at the beginning to check the download rate and total amount of download - it was at 90Mo when I realized I should have done it, but I opened the System Monitor very late. I'll check it a next time totally, though I did relaunch a db download for some minutes, the download is quiet, about 40-50 ko/s - sometimes a few seconds at 0, sometimes a peak at 100ko/s - but there are breaks quite often [my connection allows 1.2Mo/s]. |
Thanks for the detailed report, it helps in making the app work better. So far it looks like app works properly and you are doing everything right, just increase the
So it's now confirmed that 275 is a new safe
The download is not supposed to be constant, but more like constantly interrupted process. It's by design since we need to tackle the rate limiting restriction Protonmail has put to its API. So basically what you did by setting the |
Ok - I did think I had some time this morning, so I ran a test - but I had to stop at 1:02:00, but I think there is an issue anyway: At 00:00:00: Around 00:25:00 it stopped at 70.9Mo downloaded - nothing more - times to times a 'peak' at 4ko/s but for 1sec... I assume it is the OS, not the app (or Firefox was open but kept in background, not used). Around 00:27:00 00:35:00 00:47:00 1:00:00 Overall memory usage did climb from about 1Go I'd say. So as a summary, it downloaded about 70Mo at an average 50ko/s during 25mins and then stopped. Also worth mentioning that after the test (it did that in the previous test on Sunday actually) when switching back from database mode to 'online' mode - there is a black window - the protonmail web app is not displayed anymore. |
Would be interested to see the Also, consider sending log file to the email address specified here.
Would be interested in seeing a screenshot of that black window. So far I just have a guess that it might be due a low-performance computer. I can't reproduce the issue in my own at the moment since I don't have an account with a huge emails base. |
The rateLimitedMethodsCallCount went up to 6170. And it was indeed at my "around 00:25:00", which was in reality "2018-11-28 10:26:49.099". From this time to 1 hour, the log is quite empty actually... |
I had the same issue, but since 2.0.0 beta 8 it doesn't happen to me anymore. |
I've been communicating with @uberneko privately. Beta 8 release included some adjustments as a result of this communication. Besides I'm going to tweak fetching/persistence logic one more time soon. @Forsaked thanks for the input, do you mind sharing some information (don't have to, or consider answering privately to this email)?:
|
@vladimiry i will check this when i am home.
|
Issue solved with beta9 build "https://www.dropbox.com/sh/t8emnmv0g5ypahm/AADjhplGXInGsNUNAIeZ2nhra?dl=0&lst=" ! |
Improvements have been implemented to solve the issue:
New release is coming shortly. |
Hello !
Discovered that project on reddit protonmail - sounds really great -
Using the 2.0-beta7 with Appimage on a *buntu 18.04 - only on a protonmail (free) account.
When switching to the database mode, it will say 'data loading' for some time (3 min ?) and will eventually send an error message: "Invocation timeout of "buildDbPatch" method on "email-securely-app:webview-api" channel".
I think it even sends this message when being on online mode after a while (does it try to download the db in background ?)
Worth mentioning that my emails are about 350Mo in Protonmail... 3mins may not be enough anyway. I didn't see any database.bin file created.
The text was updated successfully, but these errors were encountered: