rmfakecloud icon indicating copy to clipboard operation
rmfakecloud copied to clipboard

Error when fetching hostname

Open CameronPrior opened this issue 4 years ago • 1 comments

So after getting this to work with a simple docker container and HTTP, I decided to step up to HTTPS and some reverse proxy.

I have created the docker container and set the STORAGE_URL to the full URL and the PORT to run on 443. The docker container starts and doesn't show any errors in the logs.

When I attempt to connect the RM tablet to the fakecloud - I get the following error in the xochitl logs.

27:03.965 xochitl.watchdog Pinging watchdog 27:06.964 xochitl.network.client Http::GET QUrl("https://service-manager-production-dot-remarkable-production.appspot.com:443/service/json/1/webapp?environment=production&group=&apiVer=3") 27:06.973 xochitl.network.client Error when fetching hostname for AbstractNetworkClient::WebApp "Error transferring https://service-manager-production-dot-remarkable-production.appspot.com:443/service/json/1/webapp?environment=production&group=&apiVer=3 - server replied: Not Found"

If I navigate to that address on the fakecloud I receive the following {"Host":"local.appspot.com","Status":"OK"}

If I ping the service-manager-production-dot-remarkable-production.appspot.com I recieve 64 bytes from 127.0.0.1: seq=0 ttl=64 time=0.200 ms 64 bytes from 127.0.0.1: seq=1 ttl=64 time=0.170 ms 64 bytes from 127.0.0.1: seq=2 ttl=64 time=0.158 ms 64 bytes from 127.0.0.1: seq=3 ttl=64 time=0.173 ms 64 bytes from 127.0.0.1: seq=4 ttl=64 time=0.152 ms

EDIT: Running a quick curl on the service-manager-production-dot-remarkable-production.appspot.com url from the RM tablet gives me the following output.

root@reMarkable:~# curl https://service-manager-production-dot-remarkable-production.appspot.com curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.

I'm hoping someone can tell me what i've done wrong as it should work.

CameronPrior avatar Aug 27 '21 06:08 CameronPrior

not found means it connected but something is not mapped to the api on http level

ddvk avatar Sep 18 '21 18:09 ddvk