sphinx-kotlin
sphinx-kotlin copied to clipboard
Setup blockers
Got a fresh relay server up and running, installed Kotlin app on GrapheneOS.
The first time I initialized the client it was givng me a "generate token failed" error, but then I came back and opened the app a few minutes later and it started walking me through the setup process by asking me to set a PIN and my name.
However, I can't get past the name setting screen. No matter what I input, I receive an error that says "Failed to retrieve main contact"
I think we need @05nelsonm to check into this one since he is familiar with the setup refactor. Seems like even when the generate token endpoint fails, the app is storing the next step on step tracker, so it's taking user to next step once app is closed and re opened. Then it will always fail to retrieve main contact because the token was never set and app can't connect with relay at all. So app should be uninstalled to start signup over, and I would suggest to tail relay logs while signing up to get more details about why the generate token endpoint is failing.
Instead of uninstalling, you can clear the app data from Android Settings for the app
- Long press the App from the launcher icon
- click the "I" (info)
- Storage & Cache
- Clear Data
Yes I'll look into what is going on with a failed request to generate the code when I get home.
Clearing app data helps with the reset, still trying to figure out what this token generation failure is all about.
Tried this again with v2.2.1 server and 1.0.0-alpha29 android client but registration still fails with "generate token failed" error.
@jlopp the only way to debug and figure this out is checking the logs on relay at the moment you signup. That way we could know if the app is actually hitting the generate token endpoint on relay or not, and if it's doing it then why it's failing
OK, do I need to start the server with any additional args to get more verbose output? IIRC nothing gets logged when I try to sign up.
@gonzaloaune @Evanfeenstra could you please help @jlopp with the right way to tail logs while signing up?
@jlopp are you using Umbrel, myNode, etc or a custom install? You might find a way to tail the logs from our Troubleshoot guide: https://github.com/stakwork/sphinx-relay/wiki/Troubleshoot
If you can't find it, we're happy to help in Telegram
Custom install on ubuntu - just running the server via "npm run prod" and it seems to be outputting logs to the console. I haven't been able to find logs anywhere else.
When I try to connect the mobile app to my server, I don't see anything in the server logs. For all I know, there's some sort of network connection failure happening, but the only error I see anywhere is the "generate token failed" error in the mobile app.
@jlopp for sure there must be logs starting somewhere, can you check here sudo tail -f /var/log/syslog
? I think that's the default location if nothing is provided.
Yup sounds like a network issue. Make sure your port is open!