Home / GitHub Page

Android client: Network connection error

#1

Hi,
I am unable to connect to my Nextcloud server using the Android client. I specify the server address as https://server/nextcloud/remote.php/webdav/Joplin in Android client. I use the same exact address in the Linux client which works perfectly fine. When I click on “Check Synchronization Configuration” in the Android client it sits for a long time saying “Checking… Please wait”. Eventually it reports that “Network Request failed”…

Any idea? adb logcat log does not show anything.

Thanks!

0 Likes

#2

Are the url, username and password definitely correct? Is there anything that could block the connection like firewall, vpn or similar?

0 Likes

#4

Hi Laurent,

Good questions. No, there should not be anything blocking. I can access the server fine from other applications such as DAVx5 and foldersync on the same phone.

0 Likes

#5

There is no logging I can turn on to get more diagnostic information?

0 Likes

#6

I am using an https server with self-signed certificate. Is that an issue?

Can you add some diagnostic logging messages? Such as 1) Connection to web server OK/NOK 2) Nextcloud instance found OK/NOK 3) Login and password is correct OK/NOK.
This is how for example QOwnnotes does it.

If you cannot make these logging changes can you point me to the correct file to change and I can do it myself?

0 Likes

#7

The same URL/login/password works fine on Joplin Linux desktop version.

Here is the debug log from the app:

Date,Level,Message
04-16T20:43:26,30,""“Reducer action”, “DECRYPTION_WORKER_SET”"
04-16T20:43:26,30,""“DecryptionWorker: completed decryption.”"
04-16T20:43:26,30,""“Reducer action”, “DECRYPTION_WORKER_SET”"
04-16T20:43:26,30,""“DecryptionWorker: starting decryption…”"
04-16T20:43:25,30,""“Reducer action”, “FOLDER_UPDATE_ALL”"
04-16T20:43:25,30,""“Updating all notifications…”"
04-16T20:43:25,30,""“Garbage collecting alarms…”"
04-16T20:43:25,30,""“Total resources: 3"”
04-16T20:43:25,30,""“Reducer action”, “SYNC_COMPLETED”"
04-16T20:43:25,30,""“Total folders: 1"”
04-16T20:43:25,30,""“Total notes: 4"”
04-16T20:43:25,30,""“Operations completed: “”
04-16T20:43:25,10,”"“TypeError: Network request failed
onerror@index.android.bundle:133:4815
value@index.android.bundle:118:1505
value@index.android.bundle:117:6656
value@index.android.bundle:117:3396
index.android.bundle:117:9584
value@index.android.bundle:46:1389
value@index.android.bundle:25:3449
index.android.bundle:25:960
value@index.android.bundle:25:2703
value@index.android.bundle:25:932
[native code]”"
04-16T20:42:34,30,""“Reducer action”, “NAV_GO, Log”"
04-16T20:42:27,30,""“Reducer action”, “NAV_BACK”"
04-16T20:42:23,30,""“Reducer action”, “NAV_GO, Status”"
04-16T20:41:46,30,""“Settings have been saved.”"
04-16T20:41:46,30,""“Saving settings…”"
04-16T20:41:46,30,""“Reducer action”, “SETTING_UPDATE_ONE”"
04-16T20:40:39,30,""“Reducer action”, “NAV_GO, Config”"
04-16T20:40:20,30,""“ResourceService::deleteOrphanResources:”, “[]”"
04-16T20:40:20,30,""“ResourceService::indexNoteResources: Completed”"
04-16T20:40:19,30,""“ResourceService::indexNoteResources: Start”"
04-16T20:40:00,30,""“SearchEngine: Updated FTS table in 79ms”"
04-16T20:40:00,30,""“Reducer action”, “NOTE_UPDATE_ALL”"
04-16T20:40:00,30,""“Reducer action”, “NOTE_UPDATE_ALL”"
04-16T20:39:59,30,""“Reducer action”, “SYNC_STARTED”"
04-16T20:39:59,30,""“Starting scheduled sync”"
04-16T20:39:59,30,""“Preparing scheduled sync”"
04-16T20:39:59,30,""“SearchEngine: Updating FTS table…”"
04-16T20:39:56,30,""“Reducer action”, “NAV_GO, Log”"
04-16T20:39:50,30,""“Reducer action”, “DECRYPTION_WORKER_SET”"
04-16T20:39:50,30,""“DecryptionWorker: completed decryption.”"
04-16T20:39:50,30,""“Reducer action”, “DECRYPTION_WORKER_SET”"
04-16T20:39:50,30,""“DecryptionWorker: starting decryption…”"
04-16T20:39:50,30,""“Reducer action”, “NOTE_UPDATE_ALL”"
04-16T20:39:50,30,""“ResourceFetcher: Auto-added resources: 0"”
04-16T20:39:49,30,""“Reducer action”, “APP_STATE_SET”"
04-16T20:39:49,30,""“Application initialized”"
04-16T20:39:49,30,""“Scheduling sync operation…”"
04-16T20:39:49,30,""“Reducer action”, “NAV_GO, Notes”"
04-16T20:39:49,30,""“Reducer action”, “FOLDER_SET_COLLAPSED_ALL”"
04-16T20:39:49,30,""“Reducer action”, “MASTERKEY_UPDATE_ALL”"
04-16T20:39:49,30,""“Reducer action”, “TAG_UPDATE_ALL”"
04-16T20:39:49,30,""“Reducer action”, “FOLDER_UPDATE_ALL”"
04-16T20:39:49,30,""“Scheduling sync operation…”"
04-16T20:39:49,30,""“Reducer action”, “MASTERKEY_REMOVE_NOT_LOADED”"
04-16T20:39:49,30,""“Loaded master keys: 0"”
04-16T20:39:49,30,""“Trying to load 0 master keys…”"
04-16T20:39:49,30,""“Loading folders…”"
04-16T20:39:49,30,""“Loaded master keys: 0"”
04-16T20:39:49,30,""“Trying to load 0 master keys…”"
04-16T20:39:49,30,""“Sync target: 5"”
04-16T20:39:49,30,""“Reducer action”, “SETTING_UPDATE_ALL”"
04-16T20:39:49,30,""“Loading settings…”"
04-16T20:39:49,30,""“Database is ready.”"
04-16T20:39:49,30,""“Current database version”, “18"”
04-16T20:39:49,30,""“Checking for database schema update…”"
04-16T20:39:49,30,""“Database was open successfully”"
04-16T20:39:49,30,""“Starting application net.cozic.joplin-mobile (prod)”"
04-16T20:39:49,30,"""====================================""

0 Likes