Open jficz opened 2 years ago
I have the exact same problem with the same setup:
The odd thing is that other users with the same backend and the same nextcloud app are not affected. My hypothesis is that this only affects clients which happened to try to authenticate the moment the imap server was down.
Nextcloud server logs:
{"reqId":"GOy3SQVGJdYYmziNtvgp","level":2,"time":"2024-11-14T17:26:13+00:00","remoteAddr":"A.B.C.D","user":"--","app":"core","method":"PUT","url":"/remote.php/dav/files/someuser/auto-upload/Camera/2024/11/20241114_085109.jpg","message":"Login failed: 'someuser' (Remote IP: 'A.B.C.D')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.29.2","version":"29.0.8.1","data":{"app":"core"}}
IMAP log:
front-1 | Nov 14 17:25:55 imap-login: Info: Disconnected: Connection closed (auth failed, 1 attempts in 2 secs): user=<someuser@bayz.de>, method=PLAIN, rip=195.201.8.61, rport=48722, lip=172.18.0.2, lport=993, TLS: Connection closed
admin-1 | [2024-11-14 17:25:55 +0000] [19] [DEBUG] GET /internal/auth/email
admin-1 | [2024-11-14 17:25:55,252] INFO in nginx: Login attempt for: someuser@bayz.de/imap/993 from: 195.201.8.61/48736: failed: badauth: AABBCC
⚠️ Before posting ⚠️
Steps to reproduce
users_external
enabled with IMAP backendExpected behaviour
App should stop nagging about wrong username and password and just work as it did before since nothing changed. Other apps not using the NC account provided by NC app don't have this issue (Talk, browser extensions, etc) but apps using the NC-provided account fail to connect, too.
Actual behaviour
Instead of restoring to working condition transparently the app remains convinced that the stored credentials are wrong and forces a new login, i.e. the login screen is displayed no matter what I try to do, including force-close and phone reboot.
I have to find a computer, log in through a browser and generate a new app token/QR code unnecessarily.
Android version
10
Device brand and model
SM-G960F (Samsung S9)
Stock or custom OS?
Custom (explain in "additional information")
Nextcloud android app version
3.20.3
Nextcloud server version
24.0.4
Using a reverse proxy?
Yes
Android logs
Server error logs
Additional information
LineageOS, custom built