syncloud / platform

Run popular services on your device with one click
https://syncloud.org
GNU General Public License v3.0
400 stars 40 forks source link

RPi 2B Not found with SyncloudApp #291

Closed carlos3dx closed 6 years ago

carlos3dx commented 6 years ago

I've followed the instructions for setup Syncloud on my RPi 2B, but when I try to activate it through the iOS app it says "No devices discovered".

The mobile and the RPi are in the same network, also I'm able to connect through ssh to the RPi.

cyberb commented 6 years ago

Can you access http://[device_ip]:81 This is device activation URL. Discovery may not work on some networks, but all it does it uses this URL. Also this may be a sign of incomplete flash or other issues.

carlos3dx commented 6 years ago

When I try to acess through URL the browser shows the following error.

This site can’t be reached 192.168.1.112 refused to connect. Search Google for 192 168 112 ERR_CONNECTION_REFUSED

I've downloaded the image again and flashed it a couple of times (with Ubuntu image writer and Etcher, both have a verification step) and never worked.

The micro sd has a capacity of 8GB and before flashing syncloud it had arch running on the pi.

cyberb commented 6 years ago

You said you can SSH to it with Syncloud image. Can you run the following command:

systemctl status platform.nginx-public

carlos3dx commented 6 years ago

Thanks @cyberb, the problem was that the service was trying to resolve "localhost", it wasn't present at the hosts file. After editing the hosts file, syncloud starts without problem.

cyberb commented 6 years ago

I would like to fix the problem in our image so it does not happen again, could you post your new hosts file?

Here is how hosts file should look on the image: https://github.com/syncloud/rootfs/blob/master/bootstrap/armhf/etc/hosts

carlos3dx commented 6 years ago

127.0.0.1 raspberrypi2 127.0.0.1 localhost ::1 raspberrypi2