cpbotha / nvpy

Simplenote syncing note-taking application, inspired by Notational Velocity and ResophNotes, but uglier and cross-platformerer.
Other
849 stars 114 forks source link

nvpy is just not working anymore #238

Open JENKOP opened 4 months ago

JENKOP commented 4 months ago

Sync issues. Python 3 problem. SInce I installed nvpy with apt I removed it and installed it with pip

Still cant sync.

Sync step 1 error. Could not update note. some hex numbers.... server{'update_error':<HTTPError 404: 'Not Found'>, 'get_error':

yuuki0xff commented 4 months ago

Please tell me the following info:

JENKOP commented 4 months ago
  1. nvPY 2.3.1

2a. Bodhi Linux, basically Distributor ID:Ubuntu Description: Ubuntu 22.04 LTS Release: 22.04 Codename: jammy

2b. Python 3.10.12

3.Log is full of this and only this (example):

2024-05-01 17:02:28,461 - ERROR - Could not get/update note af9a8866398e4e07b0fec413956362d0: update_error=HTTP Error 404: Not Found, get_error=HTTP Error 404: Not Found 2024-05-01 17:02:28,462 - DEBUG - Updating note 8dc6e0c3-8e25-419f-9f65-34398a3ce90c (local key 8dc6e0c3-8e25-419f-9f65-34398a3ce90c) to server. 2024-05-01 17:02:33,357 - ERROR - Could not get/update note 8dc6e0c3-8e25-419f-9f65-34398a3ce90c: update_error=HTTP Error 404: Not Found, get_error=HTTP Error 404: Not Found

yuuki0xff commented 4 months ago

It's strange that the updating note causes 404 errors.

Did you delete notes from other clients while starting nvpy? Does the problem stay even after a full synchronization? Is only two notes (8dc6e0c3-8e25-419f-9f65-34398a3ce90c, af9a8866398e4e07b0fec413956362d0) having synchronizing issue?

JENKOP commented 4 months ago

No. I think it is basically all notes. Possibly a hundred, When I experienced problems, I opened new simplenote account. After a failed sync attempt, I tried to delete notes directly in simplenote.com

yuuki0xff commented 4 months ago

If you are okay with discarding remote notes, you can upload all notes from local to remote using the nvpy-db-utils.py. https://github.com/cpbotha/nvpy/blob/7fa6ab6fe8aef2492a9981345e66a5c6f89a7b4a/debug-utils/nvpy-db-utils.py

# Back up the nvpy database.
cp -a ~/.nvpy/ ~/.nvpy.backup

# Try to upload a note.
./debug-utils/nvpy-db-utils.py delete --remote af9a8866398e4e07b0fec413956362d0
./debug-utils/nvpy-db-utils.py update --direction upload af9a8866398e4e07b0fec413956362d0

# Try to upload all notes.
./debug-utils/nvpy-db-utils.py delete --remote --all
./debug-utils/nvpy-db-utils.py update --direction upload --all
yuuki0xff commented 4 months ago

I fixed the nvpy-db-utils.py crash issue. Available on the master branch.

When I experienced problems, I opened new simplenote account.

The first issue remains unclear. If you have logs when this issue first occurred, please share me.

JENKOP commented 3 months ago

"I fixed the nvpy-db-utils.py crash issue. Available on the master branch."

Should I update it? How? pip install?

yuuki0xff commented 3 months ago

Download from https://github.com/cpbotha/nvpy/blob/master/debug-utils/nvpy-db-utils.py and run it. If you installed nvpy with pip, the required modules (nvpy and simplenote) have already been installed.