turtl / tracker

This project is for tracking issues, bug reports, and progress on the entire Turtl project.
67 stars 3 forks source link

Stay logged in doesn't always work on Android #395

Open PhilGPk opened 3 years ago

PhilGPk commented 3 years ago

Example usage with problem behaviour:

Last few lines from the debug log 2021-06-22T20:15:44 - [INFO][turtl_core::dispatch] dispatch::dispatch_event() – sync:connected 2021-06-22T20:15:45 - [INFO][turtl_core::sync::incoming] SyncIncoming.sync_from_api() – unknown IO error kind: Other 2021-06-22T20:15:45 - [ERROR][turtl_core::sync] sync::runner() – incoming: main loop: {“err”:{“message”:“failed to lookup address information: No address associated with hostname”,“type”:“io_error”},“file”:“src/sync/incoming.rs”,“line”:198,“wrapped”:true} 2021-06-22T20:15:45 - [INFO][turtl_core::dispatch] dispatch::dispatch_event() – sync:connected 2021-06-22T20:15:46 - [INFO][turtl_core::sync::incoming] SyncIncoming.sync_from_api() – unknown IO error kind: Other 2021-06-22T20:15:46 - [ERROR][turtl_core::sync] sync::runner() – incoming: main loop: {“err”:{“message”:“failed to lookup address information: No address associated with hostname”,“type”:“io_error”},“file”:“src/sync/incoming.rs”,“line”:198,“wrapped”:true} 2021-06-22T20:15:46 - [INFO][turtl_core::dispatch] dispatch::dispatch_event() – sync:connected 2021-06-22T20:15:51 - [INFO][turtl_core] main::init() – created data folder: /data/user/0/com.lyonbros.turtl/files/core 2021-06-22T20:15:51 - [INFO][turtl_core] main::start() – begin 2021-06-22T20:15:51 - [INFO][turtl_core::messaging] messaging::start() – main loop 2021-06-22T20:15:51 - [INFO][turtl_core::messaging] messaging::ui_event() – messaging:ready 2021-06-22T20:15:51 - [INFO][turtl_core::dispatch] dispatch(1): app:api:set-endpoint 2021-06-22T20:15:51 - [INFO][turtl_core::dispatch] dispatch(2): user:login-from-saved 2021-06-22T20:15:51 - [INFO][turtl_core::models::user] User::restore_login() – restored login from "/data/user/0/com.lyonbros.turtl/files/core/1.login" 2021-06-22T20:15:52 - [INFO][turtl_core::dispatch] dispatch(3): app:api:get-endpoint 2021-06-22T20:15:52 - [INFO][turtl_core::dispatch] dispatch(4): app:api:get-old-endpoint 2021-06-22T20:16:29 - [INFO][turtl_core::dispatch] dispatch(5): app:get-log

It's as if it's restarting and losing the login data?? It says "restored login" but clearly hadn't.

Client version android-0.7.2.5 Server is self-hosted, git commit 0e59ee0a47fc5937600999d14ceb1aca6392aec8 Android 9 on a Huawei Honor 8A (model JAT-L29).