-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
stuck sync-ing #2
Comments
As a first pass, you probably need to kill the app properly to close the server and restart it. One way to reliably do this: press the square in Android to see all your running apps and then swipe up on the sunrise social app. Re open the app and try again. Heads up, because stuff is sorted by timestamp, it is possible the app is is syncing lots of other threads that are older than your latest and it appears like nothing is being added. But it is. It takes my phone 40-50mins to replicate down the 300± people I follow. To help understand if replication is actually happening, use |
I think I'm seeing the same. adb logcat | grep -F "`adb shell ps | grep sunrise | tr -s [:space:] ' ' | cut -d' ' -f2`" There's quite a lot of logging and I'm not sure it would all be helpful, but here's something that stuck out to me: That is, the green button on the side. Sure enough, soon after, one of the two seemed to re-connect to the other. And at that moment, I got this message in the logcat:
Not sure why it only includes a snippet, but |
This error doesn't stop ALL replication but it suggests a corruption of a single feed which can't be updated any longer. This can happen if the bot crashes during writing messages... If the bot start and stops correctly this should never happen. I will make a note to handle this better. There is code to wipe a single feed but it's not hooked into this automatically. @pietgeursen there is a FSCK method on Sbot that you can call to check for this, too. Long story short, the only class of error that should stop fetching feeds is the broken pipe/connection disconnected category.
Not sure if this number is too low but if your main feed doesn't update correctly it could stop further processing of contact messages which would explain missing content.
I'm converting to only logging prefixes for privacy reasons if the code is just for debugging. People running this on a server would basically produce logs of when they received what from who. I'm also trying to obfuscate IP addresses in the logs for similar reasons. Standard GDPR practice is to null the last two bytes of an IP address for instance. @pietgeursen is there logging or a status page for how many messages are in graphql? would be interesting to know if all the messages made it into sqlite or not to get a better understanding of what is (not) happening. @ahdinosaur a similar logcat dump would be useful to get an idea of where it hangs. |
That's very good thinking! 👍 Okay so if the inconsistency in one feed isn't the reason, then I'll just leave you with a full log and hope you see something I don't. :P |
Oh, I should have made this clearer: This consistency error is bad and you sadly probably need to wipe the data folder and start fresh otherwise it will not be able to establish all your (friends) follows. I also fear that this is currently not possible without loosing the secret... 😰 |
ah, yeah, that is clearer. That's fine, I didn't expect to keep this identity for long anyhow, for pretty much this reason :D |
yes i installed the app when it was first released, been hoping it would eventually work one of these restarts, but i keep seeing the same message from 30 November.
my logs: sunrise-social-2019-12-22.log maybe:
because then immediately after is:
and this happens consistently every time, even when doing a manual disconnect and reconnect. |
Oh! Thanks @ahdinosaur! That just lighted a spark and might possibly should be a new issue in itself... The first error with the .sha256 „keypair“ is from an incoming call asking for such a feed. The go-ssb implementation answers with an error to that but maybe I should silently close the stream? I think the error might make the remote disconnect, also stopping replication in the other direction. |
@ahdinosaur Let's try something. I want to see what happens when we delete just the patchql database and let it rebuild Kill the app. Run adb shell
run-as social.sunrise.app
rm -rf databases Restart the app If you want to delete the go logs and try and re-sync: in the app dir cd app_scuttlebutt/go_log
rm -rf indexes log sublogs |
so i assume i'll need to build from source? |
@ahdinosaur oh noes, I didn't know that was a thing. Maybe if I made debug builds we could use them. For now, just wait for a few days. I want to do a new release with cryptix's latest changes which might fix this issue. When you install the next version, uninstall this version first. Sorry! |
I've just installed the app a few days ago, but hit a similar issue as described here. I also didn't have a debug build. I attempted to force it to be debuggable using these instructions, but was unsuccessful in assembling the APK again. I tried to build it from source, but had two errors: During make, the
I re-downloaded it to no avail. There are no logs that I see in android studio that would indicate there's more information to be had. Second, I thought that maybe ssb-patchql-android should be built first. That java project fails with: failed to load source for a dependency on
At this point, I'm out of things to try. Any chance that next version is coming? :) |
hi folx! (@pietgeursen) 😺
here's an issue for the situation i'm currently in:
what steps could i take to better debug this situation?
would i be able to start over my log, while keeping the same Sunrise identity?
cheers ❤️
The text was updated successfully, but these errors were encountered: