Skip to content
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

Full Syncing non stop #182

Closed
grandfso opened this issue Jul 16, 2019 · 3 comments
Closed

Full Syncing non stop #182

grandfso opened this issue Jul 16, 2019 · 3 comments
Assignees

Comments

@grandfso
Copy link

Hello,
when I launch the latest version of the app (1.2.1 from PyPi), it constantly says 'Full Syncing'. Nothing interesting appears in the logs.

2019-07-16 11:50:27,163 - DEBUG - nvpy logging initialized
2019-07-16 11:50:27,163 - DEBUG - config read from ['/home/grand/.nvpy.cfg']
2019-07-16 11:50:27,448 - DEBUG - Starting full sync.
2019-07-16 11:50:27,499 - DEBUG - Retrieving full note list from server, could take a while.

@yuuki0xff yuuki0xff self-assigned this Jul 16, 2019
@yuuki0xff
Copy link
Collaborator

yuuki0xff commented Jul 22, 2019

The same issue has been confirmed in my environment from June 24, 2019. Probably, the full sync is running. it takes a very long time.

I investigated this issue with packet capture, I confirmed the following.

  1. nvPY sends valid request to API server.
  2. API server reply quickly.
  3. About two seconds after connection is established, a large amount of packet lost continuously, and TCP throughput was extremely reduced.

The point is that download speed is very slow, but the download is ongoing. The same behavior was confirmed using several different networks [1], so I suspects that a band-limiting device exists on the route.

For this problem, what nvPY can do is limited. Because nvPY can not determine reason for the download speed issue whether narrow band network or band-limiting. If you have any good ideas, please let me know.

[1]: Tested on mobile, CATV line and university network

yuuki0xff added a commit that referenced this issue Jul 22, 2019
API server will limit bandwidth while downloading the large response.
To avoid this problem, reduce the response size.

See #182
@yuuki0xff
Copy link
Collaborator

I added a workaround and pushed to master branch. Please try it.

$ python2 -m pip install --upgrade 'git+https://github.com/cpbotha/nvpy.git#egg=nvpy'
$ nvpy

@grandfso
Copy link
Author

I did install the latest version and it is working fine. Many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants