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

sncli constantly crashing, (offline, connection error) after editing notes #101

Closed
chkiss opened this issue Sep 14, 2020 · 4 comments
Closed

Comments

@chkiss
Copy link

chkiss commented Sep 14, 2020

I just started using sncli last week and I love it. That said, in just a few days I have lost notes, learned how to recover them from the /tmp/ directory, and learned how to set the /tmp/ directory not to delete on reboot due to more lost notes, etc. My biggest problem is that the client seems to go offline all the time and is often unresponsive (freezes after editing a note, sometimes never recovering and forcing a ctrl+c)

So far, I haven't been able to predictably reproduce much. Checking the logs after my status changed to "offline, connection error" only really showed "ERROR: Failed to get note list from server" as far as I can tell.

Here's a fuller sncli log of the last few minutes. Is there anything obviously going wrong here? I'm definitely not going offline as I'm on Zoom meetings all day. The "S" key doesn't bring the status back online.
sncli-github.log

@samuelallan72
Copy link

@chkiss sorry you're having this problem. I can't think of why - perhaps the connection to the simplenote api is just very slow? Nothing is async, so if it's always waiting for api requests to update notes, it could cause it to be unresponsive.

Is there anything obviously going wrong here?

This looks pretty normal; just polling for notes updates; one failed. Perhaps the application is getting rate limited maybe. hmmm.

Sorry I can't help much. Let us know if you discover anything new or make any progress debugging. :)

@chkiss
Copy link
Author

chkiss commented Sep 15, 2020 via email

@chkiss
Copy link
Author

chkiss commented Sep 20, 2020

I have noticed that sncli says it's online when I get back to it after my computer was asleep for an extended period, and if I go into a note it will let me edit it like normal. But if I hit j/k and refresh the display, it updates to "offline, connection error." Either way, note edits are at risk of being lost without a sync (but can be recovered from /tmp/).

I'm also thinking this is the same issue as #87.

@chkiss
Copy link
Author

chkiss commented Jan 12, 2021

I still have this issue when I leave sncli open and put my laptop to sleep/wake it back up. To avoid data loss, I've now switched my workflow to just use sncli on an eternal terminal (basically ssh) session to a VPS. I'll close this ticket as I'm no longer affected by it and 87 is an older, still-open issue.

Thanks!

@chkiss chkiss closed this as completed Jan 12, 2021
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