Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Problem with Android application

Open cdgonzg opened this issue 9 years ago • 9 comments

Hi!, I've installed rocket chat server on Ubuntu 16.04 server, but when i try to connect from app on Android, the server give me a message, the message says: "waiting for server connection, trying again...". Any ideas?

cdgonzg avatar Jun 13 '17 18:06 cdgonzg

More infos. Firewall? Rocket.Chat logfiles? Can you connect via browser from your cell phone to Rocket.Chat?

localguru avatar Jun 13 '17 18:06 localguru

We don't have firewalls, with browsers Connecticut with out problems, maybe the app uses specific ports or specific configuration, I don't know.

cdgonzg avatar Jun 13 '17 19:06 cdgonzg

This is the view from the tablet I'm trying to connect, from browser I can connect with out problems. Sorry for my english, is very basic. screenshot_20170614-113850

cdgonzg avatar Jun 14 '17 16:06 cdgonzg

Are you using SSL? I don't remember if the symptoms were exactly the same but when I first set up rocket chat I didn't have the intermediate certificates installed for Nginx and I saw something similar. I could connect using a web browser but the Android client would fail. Installing the intermediate certificates provided by my CA fixed the issue.

JackNWeems avatar Jun 16 '17 13:06 JackNWeems

Try remove application and install again. Some ppl in my team had similar problem and reinstalled app help them.

Archer4l avatar Jun 18 '17 13:06 Archer4l

  1. Do you have SSL in use?
  2. Did you use a reversy proxy, and if you did, did you also remember to forward Websockets?

An example reverse proxy configuration for apache:

NameVirtualHost *:443
<VirtualHost *:443>
    ServerAdmin [email protected]
    ServerName yourdomain.com
    SSLCertificateFile /etc/letsencrypt/live/yourdomain.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/yourdomain.com/privkey.pem
    Include /etc/letsencrypt/options-ssl-apache.conf

<Location />
        Order allow,deny
        Allow from all
</Location>

RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*)           ws://localhost:3005/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*)           http://localhost:3005/$1 [P,L]

ProxyPassReverse / http://localhost:3005/			
	
SSLCertificateChainFile /etc/letsencrypt/live/yoursite.com/chain.pem
</VirtualHost>

ToniIltanen avatar Jun 19 '17 04:06 ToniIltanen

@danymanya I'm really sorry for the delay... is this issue still happening for you?

rafaelks avatar Mar 14 '18 22:03 rafaelks

@rafaelks not problem, this issue not happening now. With a fresh installation and new rules in my firewall solved that. Thanks a lot.

cdgonzg avatar Mar 15 '18 12:03 cdgonzg

Amazing! Closing it for now 👍

rafaelks avatar Mar 15 '18 14:03 rafaelks