I’m having the same issue as well. When I upgrfaded to 4.9.1 I lost the ability to connect with the Android app.
I’ve upgraded to 4.9.2 and I’m still having the same issue(s). The web interface works fine, but the Android app simply refuses to connect. No error message, and nothing in the mattermost logs that I can see.
Change the Forward port 80 to 443 setting to true.
Activate the CAP_NET_BIND_SERVICE capability to allow Mattermost to bind to low ports.
Open a terminal window and change to the Mattermost bin directory.
cd /opt/mattermost/bin
Run the following command:
sudo setcap cap_net_bind_service=+ep ./platform
Install the security certificate. You can use Let’s Encrypt to automatically install and setup the certificate, or you can specify your own certificate.
To use a Let’s Encrypt certificate:
The certificate is retrieved the first time that a client tries to connect to the Mattermost server. Certificates are retrieved for any hostname a client tries to reach the server at.
Change the Use Let’s Encrypt setting to true.
Restart the Mattermost server for these changes to take effect.
Now the SSL is working, I can login to mattermost using Android app, but I’ve no idea on how to renew the SSL now. Hereby attached the config.json of my mattermost setup.
@kongyc870320@Urge4Vert Are you using the latest Mattermost Android version (v1.8)? We have heard other reports of Mattermost not working on Android on 1.8 in the past few days, so I just wanted to confirm.
I tried android Mattermost app 1.8 and Mattermost classic, all didn’t work.
Throughout my finding , I believe the ssl cert and key info are stored under /opt/mattermost/config/letsencrypt.cache/. By removing the file, it will regenerate or renew the certificate.
I’ll let our engineers know, I just have one more question - are you able to access the Mattermost server from the mobile web browser? @kongyc870320@Urge4Vert
I can confirm that on the same mobile device I’m able to connect to the server using Chrome, and log in successfully. The app just keeps say ‘cannot connect’
Also, I see on the app reviews in Google Play store it seems many people are having this same issue.
Hi @kongyc870320
Could you see this post and try if the solution there will work for you?
I just noticed that in your original post, you’ve stated your server URL as https://chat.3lc.my:8065/. However, when I tried that link, it’s not reachable. I’m able to connect at https://chat.3lc.my/ that is without port 8065. Could you confirm if you’re able to connect on Android to https://chat.3lc.my/?
There’s still no update on this? Are you reading your Google reviews about the app? There are three reviews in the last 15 days saying its not working after updating the server.
@amy.blais thanks for the update. I’m using nginx as a front end as suggested in the docs, so there is no port issue.
The suggestion by @saturnino does not apply to my situation.
It was the certificate chain issue. This took awhile to troubleshoot because everything had been working before, including the Android app until the most recent upgrade. Also, running it behind nginx as recommended and the cert chain is a bit different on nginx
Once I merged the chain and the cert the app is working again.