android icon indicating copy to clipboard operation
android copied to clipboard

[BUG] Android mobile app wont accept server address.

Open Ibenson86 opened this issue 6 months ago • 16 comments

Actual behavior

Android Mobile wont authorize using the server address.

Expected behavior

I expect it to authorize so I can then login using username and password.

Steps to reproduce

  1. I enter the servers address the one I use to access it on the desktop.
  2. It says testing connection then times out saying unsuccessful authorization.

Can this problem be reproduced with the official owncloud server? (url: https://ocis.ocis.master.owncloud.works, user: einstein, password: relativity)

Environment data

Android version: S928USQS4BYE4

Device model: Galaxy 24 Ultra Hardware version REV1.0

Stock or customized system: Stock

ownCloud app version: 4.5.1

ownCloud server version: 10.15.2.0

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

{"reqId":"yKpPRHZc2AOmc2ncZRh6","level":2,"time":"2025-06-03T07:32:52+00:00","remoteAddr":"172.18.0.1","user":"--","app":"core","method":"POST","url":"/login","message":"Login failed: 'ibenson86' (Remote IP: '172.18.0.1')"} {"reqId":"2jUF8wd5K1Um6YYPtTqT","level":2,"time":"2025-06-04T08:38:01+00:00","remoteAddr":"172.18.0.1","user":"ibenson86","app":"core","method":"POST","url":"/login/challenge/totp?redirect_url=%252Fapps%252Ffiles%252F%253Fdir%253D%252F%2526fileid%253D6","message":"Two factor verify failed: 'ibenson86' (Remote IP: '172.18.0.1')"} {"reqId":"h3tKFGU2GF9s1KuBwFwJ","level":2,"time":"2025-06-04T08:39:13+00:00","remoteAddr":"172.18.0.1","user":"ibenson86","app":"core","method":"POST","url":"/login/challenge/totp","message":"Two factor verify failed: 'ibenson86' (Remote IP: '172.18.0.1')"}

Ibenson86 avatar Jun 05 '25 00:06 Ibenson86

Can you retry without two factor enabled?

DeepDiver1975 avatar Jun 05 '25 05:06 DeepDiver1975

I have done it with and without 2FA and achieved the same results.

Ibenson86 avatar Jun 05 '25 05:06 Ibenson86

Hi @Ibenson86! Thanks for opening a new issue! 🍻 Could send the logs when 2FA is disabled? In the logs that you sent it seems that it is failing due to a problem related with 2FA, so... Let's see what's happening without it 🤔

joragua avatar Jun 05 '25 06:06 joragua

alright will do

Ibenson86 avatar Jun 05 '25 07:06 Ibenson86

owncloud(1).log

Ibenson86 avatar Jun 05 '25 07:06 Ibenson86

Are the logs from the server or the app? In case they are from the server, they are not useful for us 😅. We would need the logs coming from the app...

joragua avatar Jun 05 '25 07:06 joragua

How do I get the app logs?

Ibenson86 avatar Jun 05 '25 07:06 Ibenson86

Never mind I think I figured it out

Ibenson86 avatar Jun 05 '25 08:06 Ibenson86

Nice, thanks for the logs! 😄 We will take a look as soon as possible and see what's going on

joragua avatar Jun 05 '25 08:06 joragua

in the logs, there are plenty of:

java.net.SocketTimeoutException: failed to connect to /172.17.x.x (port 8080) from /192.168.x.xx (port 522xx) after 60000ms

it's like a connection problem inside that causes a lot of exceptions. It'd help if you'd take the logs with the option Log HTTP requests and responses ticked in.

In case we wouldn't find a reason for your problem, would it be posible to get the url (safety) to test and debug by ourselves with a test account or similar? we would provide you a safe way to send us such info.

jesmrec avatar Jun 05 '25 10:06 jesmrec

Sure

Ibenson86 avatar Jun 05 '25 20:06 Ibenson86

drop a txt file with url (reachable) and credentials to this link

Pwd: F1f8]^kXdH'A

jesmrec avatar Jun 06 '25 06:06 jesmrec

Uploaded

Ibenson86 avatar Jun 07 '25 00:06 Ibenson86

@Ibenson86 the url you sent is not reachable, it seems to be a local ip inside a wlan. If your server just runs there, we will not be able to test it. Do you know if the server is exposed outside?

jesmrec avatar Jun 09 '25 06:06 jesmrec

I have to login when I get home to see. I'll let you know.

Ibenson86 avatar Jun 10 '25 06:06 Ibenson86

Hi @Ibenson86! Any update here? 🤔

joragua avatar Jul 07 '25 11:07 joragua

I will close this issue due to inactivity. Feel free to re-open it if you have anything to add here! 🙌🏻

joragua avatar Jul 31 '25 10:07 joragua

You guys never gave me a fix. I gave you all the info.

On Thu, Jul 31, 2025, 3:41 AM Jorge Aguado Recio @.***> wrote:

Closed #4592 https://github.com/owncloud/android/issues/4592 as completed.

— Reply to this email directly, view it on GitHub https://github.com/owncloud/android/issues/4592#event-18916625437, or unsubscribe https://github.com/notifications/unsubscribe-auth/BSFUNBX32W2UGHEKAXLUZ3L3LHXFZAVCNFSM6AAAAAB6T7UIV6VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJYHEYTMNRSGU2DGNY . You are receiving this because you were mentioned.Message ID: @.***>

Ibenson86 avatar Jul 31 '25 15:07 Ibenson86