Nextcloud Android app won't remain logged in

Freshly reinstalled android app. Credentials are not saved on the phone once application is closed. Nextcloud is not present in Accounts list.
Nothing Phone 1

Made a screenrecording of what is happening: link
Video showing the following:
-Successfully logging in via domain address and 2FA (data censored)
-Showing version number
-Closing app
-Reopening app to meet the login screen again
-Showing settings that no account info has been saved

logs

172.17.0.1 - - [14/May/2024:10:54:52 +0200] "POST /login/challenge/totp?redirect_url=/login/flow/grant?clientIdentifier%3D%26user%3D%26direct%3D0%26stateToken%3DNlufEra2nRjJHmqwkqimg2MGxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 303 1352 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:53 +0200] "GET /apps/theming/favicon?v=b1d57811 HTTP/1.1" 200 16017 "-" "Nothing A063 (Android)"
127.0.0.1 - - [14/May/2024:10:54:53 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.59 (Debian) PHP/8.2.19 (internal dummy connection)"
172.17.0.1 - - [14/May/2024:10:54:53 +0200] "POST /login/challenge/totp?redirect_url=/login/flow/grant?clientIdentifier%3D%26user%3D%26direct%3D0%26stateToken%3DNlufEra2nRjJHmqwkqimg2MGxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 303 825 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:53 +0200] "GET /apps/files/ HTTP/1.1" 200 13953 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:54 +0200] "GET /apps/theming/theme/dark.css?plain=1&v=a4f46a9d HTTP/1.1" 200 1972 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:54 +0200] "GET /apps/theming/theme/dark.css?plain=0&v=a4f46a9d HTTP/1.1" 200 1996 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:54 +0200] "GET /apps/theming/theme/opendyslexic.css?plain=0&v=a4f46a9d HTTP/1.1" 200 1225 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:54 +0200] "GET /apps/theming/theme/light.css?plain=0&v=a4f46a9d HTTP/1.1" 200 2027 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:54 +0200] "GET /apps/theming/theme/dark-highcontrast.css?plain=0&v=a4f46a9d HTTP/1.1" 200 2088 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:54 +0200] "GET /apps/theming/theme/light-highcontrast.css?plain=1&v=a4f46a9d HTTP/1.1" 200 2049 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:54 +0200] "GET /apps/theming/theme/light-highcontrast.css?plain=0&v=a4f46a9d HTTP/1.1" 200 2072 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:54 +0200] "GET /apps/theming/theme/dark-highcontrast.css?plain=1&v=a4f46a9d HTTP/1.1" 200 2065 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:54 +0200] "GET /apps/theming/theme/default.css?plain=1&v=a4f46a9d HTTP/1.1" 200 2001 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:54 +0200] "GET /apps/theming/theme/light.css?plain=1&v=a4f46a9d HTTP/1.1" 200 2001 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:54 +0200] "GET /index.php/apps/files/preview-service-worker.js HTTP/1.1" 200 6630 "https://drive.tevehome.eu/index.php/apps/files/preview-service-worker.js" "Mozilla/5.0 (Linux; Android 14; A063 Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/124.0.6367.123 Mobile Safari/537.36"
172.17.0.1 - - [14/May/2024:10:54:54 +0200] "GET /core/img/logo/logo.svg HTTP/1.1" 200 1335 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:54 +0200] "POST /contactsmenu/contacts HTTP/1.1" 200 880 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:54 +0200] "GET /ocs/v2.php/search/providers?from=%2Fapps%2Ffiles%2F HTTP/1.1" 200 1301 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:55 +0200] "GET /apps/theming/image/logoheader?v=10 HTTP/1.1" 304 1385 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:55 +0200] "GET /apps/theming/image/background?v=10 HTTP/1.1" 200 98612 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:55 +0200] "PROPFIND /remote.php/dav/files/daninet/ HTTP/1.1" 207 2917 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:55 +0200] "GET /ocs/v2.php/apps/user_status/api/v1/user_status HTTP/1.1" 200 977 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:55 +0200] "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1" 200 977 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:55 +0200] "GET /avatar/daninet/64/dark?v=0 HTTP/1.1" 304 919 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:55 +0200] "GET /apps/recommendations/api/recommendations HTTP/1.1" 200 1261 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:56 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1775 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:56 +0200] "GET /core/preview?fileId=44&x=32&y=32&mimeFallback=true&a=0 HTTP/1.1" 303 876 "-" "Mozilla/5.0 (Linux; Android 14; A063 Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/124.0.6367.123 Mobile Safari/537.36"
172.17.0.1 - - [14/May/2024:10:54:56 +0200] "GET /apps/theming/img/core/filetypes/folder.svg?v=a4f46a9d HTTP/1.1" 304 914 "https://drive.tevehome.eu/apps/files/files" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:56 +0200] "GET /core/preview?fileId=46&x=32&y=32&mimeFallback=true&a=0 HTTP/1.1" 304 891 "-" "Mozilla/5.0 (Linux; Android 14; A063 Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/124.0.6367.123 Mobile Safari/537.36"
172.17.0.1 - - [14/May/2024:10:54:56 +0200] "GET /core/preview?fileId=47&x=32&y=32&mimeFallback=true&a=0 HTTP/1.1" 304 891 "-" "Mozilla/5.0 (Linux; Android 14; A063 Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/124.0.6367.123 Mobile Safari/537.36"
172.17.0.1 - - [14/May/2024:10:54:56 +0200] "GET /core/preview?fileId=45&x=32&y=32&mimeFallback=true&a=0 HTTP/1.1" 303 866 "-" "Mozilla/5.0 (Linux; Android 14; A063 Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/124.0.6367.123 Mobile Safari/537.36"
172.17.0.1 - - [14/May/2024:10:54:56 +0200] "GET /core/preview?fileId=49&x=32&y=32&mimeFallback=true&a=0 HTTP/1.1" 304 891 "-" "Mozilla/5.0 (Linux; Android 14; A063 Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/124.0.6367.123 Mobile Safari/537.36"
172.17.0.1 - - [14/May/2024:10:54:56 +0200] "GET /core/preview?fileId=48&x=32&y=32&mimeFallback=true&a=0 HTTP/1.1" 303 876 "-" "Mozilla/5.0 (Linux; Android 14; A063 Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/124.0.6367.123 Mobile Safari/537.36"
172.17.0.1 - - [14/May/2024:10:54:56 +0200] "PROPFIND /remote.php/dav/files/daninet/ HTTP/1.1" 207 2917 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:56 +0200] "GET /ocs/v2.php/apps/text/workspace?path=%2F HTTP/1.1" 200 983 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:57 +0200] "PUT /apps/text/session/47/create HTTP/1.1" 200 1591 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:57 +0200] "GET /apps/theming/favicon/files?v=a4f46a9d HTTP/1.1" 304 890 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:57 +0200] "POST /apps/text/attachments HTTP/1.1" 200 848 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:57 +0200] "POST /apps/text/session/47/sync HTTP/1.1" 200 1430 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:54:57 +0200] "POST /apps/text/session/47/push HTTP/1.1" 200 1596 "-" "Nothing A063 (Android)"
127.0.0.1 - - [14/May/2024:10:54:59 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.59 (Debian) PHP/8.2.19 (internal dummy connection)"
172.17.0.1 - - [14/May/2024:10:54:59 +0200] "GET /index.php/apps/files/preview-service-worker.js HTTP/1.1" 200 6629 "https://drive.tevehome.eu/index.php/apps/files/preview-service-worker.js" "Mozilla/5.0 (Linux; Android 14; A063 Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/124.0.6367.123 Mobile Safari/537.36"
172.17.0.1 - - [14/May/2024:10:55:01 +0200] "GET /settings/admin/overview HTTP/1.1" 200 14427 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/settings/css/settings.css?v=40393716-10 HTTP/1.1" 200 3902 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/settings/img/password.svg HTTP/1.1" 200 777 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /core/img/actions/user.svg HTTP/1.1" 200 996 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/files_external/img/app-dark.svg HTTP/1.1" 200 875 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/notifications/img/notifications-dark.svg HTTP/1.1" 200 802 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /core/js/setupchecks.js?v=d4d26a87-10 HTTP/1.1" 200 1994 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /dist/updatenotification-updatenotification.js?v=d4d26a87-10 HTTP/1.1" 200 9330 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/settings/js/settings.js?v=d4d26a87-10 HTTP/1.1" 200 1896 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/privacy/img/app-dark.svg HTTP/1.1" 200 843 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /core/img/clients/phone.svg HTTP/1.1" 200 866 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/settings/l10n/hu.js?v=d4d26a87-10 HTTP/1.1" 200 21702 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /dist/settings-legacy-admin.js?v=d4d26a87-10 HTTP/1.1" 200 1669 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/logreader/img/app-dark.svg HTTP/1.1" 200 1033 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/workflowengine/img/app-dark.svg HTTP/1.1" 200 1317 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/theming/img/app-dark.svg HTTP/1.1" 200 1120 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /core/img/actions/share.svg HTTP/1.1" 200 811 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /core/img/actions/password.svg HTTP/1.1" 200 776 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/survey_client/img/app-dark.svg HTTP/1.1" 200 2317 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/support/img/section.svg HTTP/1.1" 200 767 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/theming/img/accessibility-dark.svg HTTP/1.1" 200 859 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/settings/img/ai.svg HTTP/1.1" 200 1033 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/files/js/jquery.fileupload.js?v=d4d26a87-10 HTTP/1.1" 200 14333 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/settings/img/admin.svg HTTP/1.1" 200 742 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/theming/theme/default.css?plain=1&v=a4f46a9d HTTP/1.1" 200 2000 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/theming/theme/dark-highcontrast.css?plain=0&v=a4f46a9d HTTP/1.1" 200 2087 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/theming/theme/light.css?plain=1&v=a4f46a9d HTTP/1.1" 200 2000 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/theming/theme/dark-highcontrast.css?plain=1&v=a4f46a9d HTTP/1.1" 200 2064 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/theming/theme/dark.css?plain=1&v=a4f46a9d HTTP/1.1" 200 1973 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/theming/theme/dark.css?plain=0&v=a4f46a9d HTTP/1.1" 200 1996 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/theming/theme/light.css?plain=0&v=a4f46a9d HTTP/1.1" 200 2027 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/theming/theme/light-highcontrast.css?plain=0&v=a4f46a9d HTTP/1.1" 200 2072 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/theming/theme/light-highcontrast.css?plain=1&v=a4f46a9d HTTP/1.1" 200 2048 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/theming/theme/opendyslexic.css?plain=0&v=a4f46a9d HTTP/1.1" 200 1225 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/dav/img/schedule.svg HTTP/1.1" 200 874 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "POST /contactsmenu/contacts HTTP/1.1" 200 880 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /ocs/v2.php/search/providers?from=%2Fsettings%2Fadmin%2Foverview HTTP/1.1" 200 1312 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/theming/image/logoheader?v=10 HTTP/1.1" 304 1385 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /apps/theming/image/background?v=10 HTTP/1.1" 304 1385 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1" 200 977 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /ocs/v2.php/apps/user_status/api/v1/user_status HTTP/1.1" 200 977 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:03 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1775 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:03 +0200] "GET /remote.php/webdav HTTP/1.1" 401 1779 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:03 +0200] "GET /ocs/v2.php/cloud/groups/details HTTP/1.1" 200 975 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:03 +0200] "GET /avatar/daninet/64/dark?v=0 HTTP/1.1" 304 919 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:03 +0200] "GET /core/img/actions/settings-dark.svg HTTP/1.1" 200 1588 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:03 +0200] "GET /apps/activity/img/activity-dark.svg HTTP/1.1" 200 725 "-" "Nothing A063 (Android)"
[Tue May 14 10:55:03.564187 2024] [access_compat:error] [pid 1580] [client 172.17.0.1:58304] AH01797: client denied by server configuration: /var/www/html/data/.ocdata
172.17.0.1 - - [14/May/2024:10:55:03 +0200] "HEAD /data/.ocdata HTTP/1.1" 404 1995 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:04 +0200] "GET /core/img/actions/user-admin.svg HTTP/1.1" 200 2501 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:04 +0200] "GET /apps/serverinfo/img/app-dark.svg HTTP/1.1" 200 950 "-" "Nothing A063 (Android)"
[Tue May 14 10:55:04.450284 2024] [access_compat:error] [pid 1585] [client 172.17.0.1:58334] AH01797: client denied by server configuration: /var/www/html/data/.ocdata
172.17.0.1 - - [14/May/2024:10:55:04 +0200] "GET /core/img/places/contacts.svg HTTP/1.1" 200 1377 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:04 +0200] "HEAD /data/.ocdata HTTP/1.1" 404 1934 "-" "Nextcloud Server Crawler"
[Tue May 14 10:55:04.618101 2024] [access_compat:error] [pid 1583] [client 172.17.0.1:58324] AH01797: client denied by server configuration: /var/www/html/data/.ocdata
172.17.0.1 - - [14/May/2024:10:55:04 +0200] "GET /apps/theming/favicon/settings?v=a4f46a9d HTTP/1.1" 200 16017 "-" "Nothing A063 (Android)"
172.17.0.1 - - [14/May/2024:10:55:04 +0200] "HEAD /data/.ocdata HTTP/1.1" 404 1987 "-" "Nextcloud Server Crawler"
[Tue May 14 10:55:04.757946 2024] [access_compat:error] [pid 1585] [client 172.17.0.1:58334] AH01797: client denied by server configuration: /var/www/html/data/.ocdata
172.17.0.1 - - [14/May/2024:10:55:04 +0200] "HEAD /data/.ocdata HTTP/1.1" 404 1944 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:05 +0200] "HEAD /apps/settings/js/map-test.js.map HTTP/1.1" 200 540 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:05 +0200] "HEAD /apps/settings/js/esm-test.mjs HTTP/1.1" 200 573 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:05 +0200] "HEAD /ocm-provider/ HTTP/1.1" 200 1542 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:06 +0200] "GET /index.php/apps/files/preview-service-worker.js HTTP/1.1" 200 6629 "https://drive.tevehome.eu/index.php/apps/files/preview-service-worker.js" "Mozilla/5.0 (Linux; Android 14; A063 Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/124.0.6367.123 Mobile Safari/537.36"
172.17.0.1 - - [14/May/2024:10:55:06 +0200] "HEAD /ocs-provider/ HTTP/1.1" 200 1565 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:06 +0200] "GET / HTTP/1.1" 302 1629 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:06 +0200] "GET /login HTTP/1.1" 200 7968 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:06 +0200] "GET /.well-known/webfinger HTTP/1.1" 404 1571 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:07 +0200] "GET /.well-known/nodeinfo HTTP/1.1" 404 1574 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:07 +0200] "GET /.well-known/caldav HTTP/1.1" 301 806 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:07 +0200] "GET /remote.php/dav/ HTTP/1.1" 401 1918 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:07 +0200] "PROPFIND /.well-known/caldav HTTP/1.1" 301 751 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [14/May/2024:10:55:07 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.59 (Debian) PHP/8.2.19 (internal dummy connection)"
172.17.0.1 - - [14/May/2024:10:55:07 +0200] "GET /remote.php/dav/ HTTP/1.1" 401 1859 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:07 +0200] "GET /.well-known/carddav HTTP/1.1" 301 806 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:07 +0200] "GET /remote.php/dav/ HTTP/1.1" 401 1920 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:07 +0200] "PROPFIND /.well-known/carddav HTTP/1.1" 301 751 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:07 +0200] "GET /remote.php/dav/ HTTP/1.1" 401 1863 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:08 +0200] "GET /core/fonts/NotoSans-Regular-latin.woff2 HTTP/1.1" 200 16574 "-" "Nextcloud Server Crawler"
172.17.0.1 - - [14/May/2024:10:55:02 +0200] "GET /settings/ajax/checksetup HTTP/1.1" 200 3737 "-" "Nothing A063 (Android)"
127.0.0.1 - - [14/May/2024:10:55:08 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.59 (Debian) PHP/8.2.19 (internal dummy connection)"
127.0.0.1 - - [14/May/2024:10:55:09 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.59 (Debian) PHP/8.2.19 (internal dummy connection)"
127.0.0.1 - - [14/May/2024:10:55:10 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.59 (Debian) PHP/8.2.19 (internal dummy connection)"
127.0.0.1 - - [14/May/2024:10:55:11 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.59 (Debian) PHP/8.2.19 (internal dummy connection)"
127.0.0.1 - - [14/May/2024:10:55:12 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.59 (Debian) PHP/8.2.19 (internal dummy connection)"
127.0.0.1 - - [14/May/2024:10:55:13 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.59 (Debian) PHP/8.2.19 (internal dummy connection)"
127.0.0.1 - - [14/May/2024:10:55:14 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.59 (Debian) PHP/8.2.19 (internal dummy connection)"
127.0.0.1 - - [14/May/2024:10:55:15 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.59 (Debian) PHP/8.2.19 (internal dummy connection)"
127.0.0.1 - - [14/May/2024:10:55:16 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.59 (Debian) PHP/8.2.19 (internal dummy connection)"
127.0.0.1 - - [14/May/2024:10:55:17 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.59 (Debian) PHP/8.2.19 (internal dummy connection)"
127.0.0.1 - - [14/May/2024:10:55:18 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.59 (Debian) PHP/8.2.19 (internal dummy connection)"
127.0.0.1 - - [14/May/2024:10:55:19 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.59 (Debian) PHP/8.2.19 (internal dummy connection)"

You appear to not actually be getting into the client itself after the authentication phase. Instead you’re remaining in the webview and just ended up in the mobile version of the Nextcloud Web UI.

What is supposed to happen is that after the webview lets you complete the authentication, you are brought into the actual Android client.

So that’s the real problem here (not the continuously having to log in).

It may be some interaction that is specific to Nothing OS. Or some bug. Occasionally this comes up. It’s hard to say.

What version of the client?

Can you get a debug log, either from the installed version you have via adb or by reproducing the issue in a Dev version from F-Droid (which has a Settings->Logs menu)?

Nextcloud dev crashed at the very moment I logged in:

### Cause of error
```java
Exception in thread "Thread-13" java.lang.IllegalStateException: Not a JSON Object: null
    at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:101)
    at com.owncloud.android.authentication.AuthenticatorActivity.lambda$anonymouslyPostLoginRequest$1(AuthenticatorActivity.java:385)
    at com.owncloud.android.authentication.AuthenticatorActivity.$r8$lambda$ARmmzvV3NFHBz3Avud8XZ4n_Grk(Unknown Source:0)
    at com.owncloud.android.authentication.AuthenticatorActivity$$ExternalSyntheticLambda8.run(D8$$SyntheticClass:0)
    at java.lang.Thread.run(Thread.java:1012)

App information

  • ID: com.nextcloud.android.beta
  • Version: 20240504
  • Build flavor: versionDev

Device information

  • Brand: Nothing
  • Device: Spacewar
  • Model: A063
  • Id: UP1A.231005.007
  • Product: SpacewarEEA

Firmware

  • SDK: 34
  • Release: 14
  • Incremental: 2404191617

Will try to get debug logs via adb, probably later today.

I just noticed you have a snackbar message popping up in the bottom that says “Strict mode: no HTTP connection allowed!”.

Please check your overwrite* parameters on your Server and your setup checks under Administration settings->Overview.

My guess is your instance is generating http:// redirect URLs under some circumstances, likely due to a misconfiguration or reverse proxy.

Yes, you were right.
I have added the CF server IP as a trusted proxy as well used overwriteprotocol.
Now it is working.

  'trusted_proxies' =>
   array (
   0 => 'cloudflare_server_IP',
   ),
  'overwriteprotocol' => 'https',
1 Like