realm / realm-browser-osx

DEPRECATED - Realm Browser for Mac OS X has been replaced by realm-studio which is cross platform.
https://realm.io
503 stars 54 forks source link

Can't connect to server #295

Closed nightfall708 closed 7 years ago

nightfall708 commented 7 years ago

Hi,

Since I updated to 2.1.7 (91) I can't seem to connect to my server. Connecting from the web browser works fine. I also connect using the browser earlier, so I'm pretty sure it's something in the update.

Failed to connect to Object Server.
Check the URL and that the server is accessible.
stel commented 7 years ago

@switchawk please note (from Realm 2.5.0 Release Notes):

If using synchronized Realms, the Realm Object Server must be running version 1.3.0 or later.

Make sure you use the latest version of Realm Object Server.

adellhk commented 7 years ago

@stel Do you have any instructions on updating our Realm Object Server to a newer version? This may not apply to everyone, but I'm using and AWS public AMI image on EC2 and currently Realm Object Server version 1.0.2.

Edit: followed the instructions here to update my ROS to 1.3.0. For Googlers: When I tried to login to my MacOS Realm Browser with valid credentials I was received the message: The operation couldn’t be completed. (io.realm.sync error 6.) and Check the URL and that the server is accessible. To remedy this I:

# Logged into my EC2 terminal
ssh -i "myKeyFile.pem" ubuntu@my-realm-server.ap-northeast-1.compute.amazonaws.com

# Updated the package definitions
sudo apt-get update

# Stopped the service before upgrading
sudo systemctl stop realm-object-server

# Installed a new version if available
sudo apt-get upgrade realm-object-server-developer

# At this point I got a prompt to review differences between my configuration.yml and the package maintaner's configuration.yml and whether I wanted to keep or overwrite my configuration.yml. I reviewed my changes (to uncomment Facebook as an auth provider)), installed the new ones, and then wrote mine in.
sudo nano /etc/realm/configuration.yml

# Restarted the server to continue operation
sudo systemctl start realm-object-server

# And decided to reboot my EC2 instance since I received a prompt to do that when I logged in.
sudo reboot
stel commented 7 years ago

Happy to hear that your server is up to date now, @adellhk! As you mentioned, you can find instructions for updating and lot of other useful info in our docs ;)