etesync / android

EteSync - Secure, end-to-end encrypted, and privacy respecting sync for your contacts, calendars and tasks.
https://www.etesync.com
GNU General Public License v3.0
296 stars 33 forks source link

Android app will not connect to etebase #216

Closed mattdale77 closed 1 year ago

mattdale77 commented 1 year ago

I have a local etebase running. From one phone I could create an account an sync. From another it will not connect an does not even look like it is trying to.

Debug info

--- BEGIN DEBUG INFO ---

SOFTWARE INFORMATION EteSync version: 2.3.0 (20300) Installed from: org.fdroid.fdroid.privileged CONFIGURATION Power saving disabled: yes android.permission.READ_CONTACTS permission: granted android.permission.WRITE_CONTACTS permission: granted android.permission.READ_CALENDAR permission: granted android.permission.WRITE_CALENDAR permission: granted org.dmfs.permission.READ_TASKS permission: denied org.dmfs.permission.WRITE_TASKS permission: denied org.tasks.permission.READ_TASKS permission: denied org.tasks.permission.WRITE_TASKS permission: denied System-wide synchronization: automatically

SQLITE DUMP android_metadata | locale | | en_GB |

settings | setting | value |

SERVICES DUMP

JOURNALS DUMP

SYSTEM INFORMATION Android version: 12 (lineage_enchilada-userdebug 12 SQ3A.220705.004 eng.root.20221019.154944 dev-keys) Device: OnePlus ONEPLUS A6003 (OnePlus6)

And the following recorded with verbose logging

2022-11-19 12:22:10 2 [com.etesync.syncadapter.ui.setup.DetectConfigurationFragment] DetectConfigurationFragment: loading 2022-11-19 12:22:11 2 [CustomCertService] CustomCertService created 2022-11-19 12:22:11 2 [CustomCertService] No key store for trusted certifcates (yet); creating in-memory key store. 2022-11-19 12:22:11 67 [com.etesync.syncadapter.HttpClient] --> GET http://192.168.0.44:3735/api/v1/authentication/is_etebase/ 2022-11-19 12:22:11 67 [com.etesync.syncadapter.HttpClient] ACCEPT: application/msgpack 2022-11-19 12:22:11 67 [com.etesync.syncadapter.HttpClient] --> END GET 2022-11-19 12:22:26 67 [com.etesync.syncadapter.HttpClient] <-- HTTP FAILED: java.net.SocketTimeoutException: failed to connect to /192.168.0.44 (port 3735) from /192.168.0.154 (port 40444) after 15000ms 2022-11-19 12:22:26 67 [com.etesync.syncadapter.ui.setup.BaseConfigurationFinder] Attempting to login to EteSync legacy 2022-11-19 12:22:26 67 [com.etesync.syncadapter.HttpClient] --> POST http://192.168.0.44:3735/api-token-auth/ 2022-11-19 12:22:26 67 [com.etesync.syncadapter.HttpClient] Content-Type: application/x-www-form-urlencoded 2022-11-19 12:22:26 67 [com.etesync.syncadapter.HttpClient] Content-Length: 27 2022-11-19 12:22:26 67 [com.etesync.syncadapter.HttpClient] 2022-11-19 12:22:26 67 [com.etesync.syncadapter.HttpClient] username=matt&password=test 2022-11-19 12:22:26 67 [com.etesync.syncadapter.HttpClient] --> END POST (27-byte body) 2022-11-19 12:22:41 67 [com.etesync.syncadapter.HttpClient] <-- HTTP FAILED: java.net.SocketTimeoutException: failed to connect to /192.168.0.44 (port 3735) from /192.168.0.154 (port 40446) after 15000ms 2022-11-19 12:22:41 67 [com.etesync.syncadapter.ui.setup.BaseConfigurationFinder] failed to connect to /192.168.0.44 (port 3735) from /192.168.0.154 (port 40446) after 15000ms 2022-11-19 12:22:41 2 [com.etesync.syncadapter.ui.setup.DetectConfigurationFragment] Failed login configuration failed to connect to /192.168.0.44 (port 3735) from /192.168.0.154 (port 40446) after 15000ms 2022-11-19 12:23:03 2 [CustomCertService] CustomCertService destroyed

Screenshot_20221119-122254_EteSync

mattdale77 commented 1 year ago

I'm not sure why but I have been able to resolve this by using https. It's weird that this worked on one phone but not the other

tasn commented 1 year ago

Dunno. :)