-
Notifications
You must be signed in to change notification settings - Fork 34
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
too much data to send from app to usercache? #443
Comments
@PatGendre I checked in a fix to the UTF-8 issue (e-mission/cordova-server-communication#22) on May 8, so I am pretty sure that is not an issue. I think this is almost certainly related to the server ability to accept large data sizes since the definition of error code 400 is
However, I do set the incoming MEMFILE_MAX to 1GB
We do this to limit the size of the data sent to the server. The data is chunked and 10,000 entries are sent at a time. If this push was successful, the next push should push the next 10,000 entries and so on until we catch up. Let me check the logs. |
It looks like the server is up and auth + communication with the server is fine since we are able to get data from the server properly
You don't have a reverse proxy (e.g. |
One caveat is that if the request entity is too large, we should see a 413 error Let's see what you find in the logs, otherwise, we may need to add additional logging on the server to figure out what is going on. |
Yes I think so
I don't think we have such a file, where would it be located?
Not really, I don't know where to look at... For instance I don't see much data when I grep usercache/get, only stats data.
I would just have to change the value[ here in bottle.py](MEMFILE_MAX = 102400)? and restart the web server I suppose?
No |
Depends on your configuration for supervisord (in
Yup |
Hi @shankari The console logs looks like this There is a MISMATCH_POST_/usercache/put data name so I suppose sthg went wrong? And for the moment the Force Sync still doesn't work, no data seems to be sent to the usercache in mongo |
Just in case, I also checked the pipeline errors (as there was no webserver errors logged). There are 2 kinds of errors (apparently unrelated, so may be this not relevant here and should be filed in another issue? ) :
|
and I have at last (i takes to be partient!) an interesting error (timeout) in the console log 👍
|
and I have at last (it's rewarding to be patient!) an interesting error (timeout) in the console log 👍
|
The previous timeout error occurred many times today (4 times for write, 4 times for read). There is also another handshake error occurring once; and another type of error that occurred also once today (connection reset by peer)
|
@shankari |
The timeout param default value is 10 seconds in cheroot/server.py I will try and tell you if this works There is again a handshake error? but the server still works. |
FYI, if this recurs, and you want to change the app to reduce the batch size, it is here Unfortunately, it is currently hardcoded, but I will open a new issue to make it configurable |
Ok, Thanks, this might be useful for another time. I will close the issue as finally we've found that it is was due to our code not taking into account the correction of issue 333 in the communication server plugin (and an accent in the French word for August...). |
Hi @shankari , coming back from 4 weeks in Asia, I used very little the app as I had no data connection but e-mission continued tracking, and apparently there was a problem with the sync and I have a lot of trips in draft mode. I checked in mongo and no data has been sent to the database since July 27.
Now when I try to force sync it fails. I suppose this is due to the size of the logs (25MB sqlite, so I had to send them via GDrive instead of GMail) ?
I join the logs (only for today, and I removed the detailed list for the 2 log lines
BuiltinUserCache : After clear complete, cache has xxx entries
because the list are more than 10k entries!It is not clear to me where the ForceSync is actually log, nevertheless:
So I guess it is not the same utf-8 encoding than in issue 333 (but we are in August - août with an accent, like février in February!).
Do we need to go in debug mode with Yann and insert breakpoints in CommunicationHelper like we did with you for issue 333? Thanks in advance!
logs2108only.txt.gz
The text was updated successfully, but these errors were encountered: