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

Login Problem

Open sureshdba2003 opened this issue 10 years ago • 13 comments

I try to connect my android application (Rocket.Chat) to our server . it downloads all files but can't connect to server (it show waiting for server connection, trying again ...)

rocket.chat version 0.20 Android 4.4 Rocket chat Android app downloaded from play store.

Its working on via browser. let me know if any ports to be allowed in firewall?

sureshdba2003 avatar Mar 03 '16 11:03 sureshdba2003

How are you running your server? Via docker or using the meteor command?

rodrigok avatar Mar 03 '16 22:03 rodrigok

using meteor command

sureshdba2003 avatar Mar 04 '16 04:03 sureshdba2003

ok, so you should use meteor --mobile-server http://yourServerAddres:port

rodrigok avatar Mar 04 '16 13:03 rodrigok

Yes, i have used the same command meteor --mobile-server http://xxx.xxx.xxx.xxx:3000. but it is didn't work? any other port to be allowed?

sureshdba2003 avatar Mar 05 '16 03:03 sureshdba2003

@sureshdba2003 you should never use the meteor command in production.

engelgabriel avatar Mar 07 '16 12:03 engelgabriel

Please reopen with more info if the problem persists.

engelgabriel avatar Mar 14 '16 16:03 engelgabriel

I have the same problem. starting rocket.chat with pm2. How do I get the --mobile-server into the command line? I don't recall how the pm2 was setup.

jots avatar Mar 17 '16 06:03 jots

Did you build from source or did you download the compiled version?

engelgabriel avatar Mar 17 '16 12:03 engelgabriel

I had a version installed from source from Oct 2015. I overwrote it with the latest by getting code: curl -L https://rocket.chat/releases/latest/download -o rocket.chat.tgz and replacing old directory with the new one and running npm install in programs/server.

jots avatar Mar 17 '16 15:03 jots

Try to use the latest develop, we just did some fixes.

engelgabriel avatar Mar 17 '16 16:03 engelgabriel

Thanks. I tried develop. but it comes up with a bluescreen. devtools shows:

Mixed Content: The page at 'https://server/' was loaded over HTTPS, but
 requested an insecure XMLHttpRequest endpoint
 'http://server:3000/sockjs/info?cb=vpb_5a08pj'. This request has been 
blocked; the content must be served over HTTPS.

why is that :3000 in there? I have nginx ssl proxy in front.

revert back to non dev version and site works again.

jots avatar Mar 17 '16 17:03 jots

Did you configure your ROOT_URL? Or the SIte_URL on the admin panel?

engelgabriel avatar Mar 17 '16 17:03 engelgabriel

Changing SIte_URL on the admin panel fixed it! I had to delete my server entry on the android app and add it again, and it works! thank you!

jots avatar Mar 17 '16 17:03 jots