mattermost / mattermost-mobile

Next generation iOS and Android apps for Mattermost in React Native
https://about.mattermost.com/
Apache License 2.0
2.25k stars 1.36k forks source link

Unable to use the Mattermost Mobile App on my iPhone #7992

Closed dschwartznyc closed 4 months ago

dschwartznyc commented 5 months ago

Summary

I am unable to connect to a Mattermost Server using the IOS Mattermost App despite connecting via the desktop app and a web browser on my phone and my desktop.

Environment Information

Steps to reproduce

  1. Install the app from the AppStore
  2. attempt to connect to the server (can provide privately)

Expected behavior

I expect to be able to connect to the server and use the app

Observed behavior (that appears unintentional)

Consistently, the result is "Cannot connect to the server"

Possible fixes

N/A

amyblais commented 5 months ago

Hi @dschwartznyc,

  1. You can find your server version from Profile -> Settings -> About Mattermost.
  2. Does this troubleshooting doc help https://docs.mattermost.com/deploy/mobile-troubleshoot.html#i-keep-getting-a-message-cannot-connect-to-the-server-please-check-your-server-url-and-internet-connection?
dschwartznyc commented 5 months ago

The Server version is: 9.8.0

Looked through the suggestions at the troubleshooting link but, wonder whether they are aligned to the issue since the server is accessible by desktop app and browsers on both the desktop and IOS.

amyblais commented 5 months ago

Looked through the suggestions at the troubleshooting link but, wonder whether they are aligned to the issue since the server is accessible by desktop app and browsers on both the desktop and IOS.

The "Cannot connect to the server" error in the mobile app is usually related to an issue with the SSL certificate in the mobile app, which doesn't affect the browser/desktop.

dschwartznyc commented 5 months ago

There does not seem to be a certificate issue. As you can see from the attached extract from the server logs, accessing the server from a mobile (iPhone or Android) results in continuous rewrite of the requested URL.

10.10.8.1 - - [05/Jun/2024:18:38:48 +0100] "HEAD /mattermost HTTP/1.1" 302 - [05/Jun/2024:18:38:48 +0100] 10.10.8.1 TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "HEAD /mattermost HTTP/1.1" -
10.10.8.1 - - [05/Jun/2024:18:38:48 +0100] "HEAD /mattermost/ HTTP/1.1" 302 - [05/Jun/2024:18:38:48 +0100] 10.10.8.1 TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "HEAD /mattermost/ HTTP/1.1" -
10.10.8.1 - - [05/Jun/2024:18:38:48 +0100] "HEAD /mattermost/mattermost HTTP/1.1" 302 - [05/Jun/2024:18:38:48 +0100] 10.10.8.1 TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "HEAD /mattermost/mattermost HTTP/1.1" -
10.10.8.1 - - [05/Jun/2024:18:38:48 +0100] "HEAD /mattermost/mattermost/mattermost HTTP/1.1" 302 - [05/Jun/2024:18:38:48 +0100] 10.10.8.1 TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "HEAD /mattermost/mattermost/mattermost HTTP/1.1" -
10.10.8.1 - - [05/Jun/2024:18:38:48 +0100] "HEAD /mattermost/mattermost/mattermost/mattermost HTTP/1.1" 302 - [05/Jun/2024:18:38:48 +0100] 10.10.8.1 TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "HEAD /mattermost/mattermost/mattermost/mattermost HTTP/1.1" -
10.10.8.1 - - [05/Jun/2024:18:38:48 +0100] "HEAD /mattermost/mattermost/mattermost/mattermost/mattermost HTTP/1.1" 302 -[05/Jun/2024:18:38:48 +0100] 10.10.8.1 TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "HEAD /mattermost/mattermost/mattermost/mattermost/mattermost HTTP/1.1" -

Although it would be confusing as to why it only impacts mobile app connectivity, perhaps this is due to the fact that the server is accessed through a proxy?

amyblais commented 5 months ago

Thank you, please take a look if the suggestions in these issues are helpful in your case: https://github.com/mattermost/mattermost-mobile/issues/7004 and https://github.com/mattermost/docs/issues/7160.

dschwartznyc commented 4 months ago

none of these seem to work

alfredo87 commented 4 months ago

This issue is a “too many redirects errorl…. There is no solution to it… it happens on iOS devices clients only … there is another more detailed exchange on github that gives a workround for the nginx conf file https://github.com/mattermost/docs/issues/7160 The issue is related to MM server NOT iOS client. According to above link it happens when MM is reachable by a directory on the server like https://ynh.my/mattermost

dschwartznyc commented 4 months ago

This solved the issue. TY