Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

ngrok share not work #146

Open
sy2nyk opened this issue Jul 5, 2016 · 3 comments
Open

ngrok share not work #146

sy2nyk opened this issue Jul 5, 2016 · 3 comments
Labels

Comments

@sy2nyk
Copy link

sy2nyk commented Jul 5, 2016

share_1  | [07/05/16 17:55:38] [INFO] Reading configuration file /.ngrok
share_1  | [07/05/16 17:55:38] [INFO] [client] Trusting root CAs: [assets/client/tls/ngrokroot.crt]
share_1  | [07/05/16 17:55:38] [INFO] [view] [web] Serving web interface on 0.0.0.0:4040
share_1  | [07/05/16 17:55:38] [INFO] Checking for update
share_1  | [07/05/16 17:55:38] [EROR] control recovering from failure dial tcp: lookup ngrokd.ngrok.com: no such host
share_1  | [07/05/16 17:55:38] [INFO] Waiting 1 seconds before reconnecting
share_1  | [07/05/16 17:55:39] [EROR] Error while checking for update: Post https://api.equinox.io/1/Updates: x509: failed to load system roots and no roots provided
share_1  | [07/05/16 17:55:44] [EROR] control recovering from failure dial tcp: lookup ngrokd.ngrok.com: no such host
share_1  | [07/05/16 17:55:44] [INFO] Waiting 2 seconds before reconnecting
share_1  | [07/05/16 17:55:46] [EROR] control recovering from failure dial tcp: lookup ngrokd.ngrok.com: no such host
share_1  | [07/05/16 17:55:46] [INFO] Waiting 4 seconds before reconnecting
share_1  | [07/05/16 17:55:50] [EROR] control recovering from failure dial tcp: lookup ngrokd.ngrok.com: no such host
share_1  | [07/05/16 17:55:50] [INFO] Waiting 8 seconds before reconnecting
share_1  | [07/05/16 17:55:58] [EROR] control recovering from failure dial tcp: lookup ngrokd.ngrok.com: no such host
share_1  | [07/05/16 17:55:58] [INFO] Waiting 16 seconds before reconnecting

@lmakarov
Copy link
Owner

lmakarov commented Jul 5, 2016

@sy2nyk that's for reporting this. I guess no one used this in a while and something got outdated.

@sy2nyk
Copy link
Author

sy2nyk commented Jul 5, 2016

sy2nyk/docker-ngrok

For getting url i'm use docker-compose logs share | grep "URL"

@lmakarov
Copy link
Owner

lmakarov commented Jul 5, 2016

@sy2nyk here's a more recent docker image for ngrok (I guess we should have our own): wernight/ngrok

Try it like this. In docker-compose.yml:

share:
  hostname: share
  image: wernight/ngrok
  ports:
    - "4040:4040"
  links:
    - web:app

then run

docker-compose rm -vf share
dsh up

You can get the assigned domain name by accessing ngrok's web UI at http://192.168.10.10:4040
...
Just saw your new comment. If that works for you - great :)

Going to keep this issue open until we have our own ngrok image and a PR to updates the docs.

I'm also now thinking about having ngrok as a global system service in Drude, however that will make domain management and request inspection per project difficult. As a project level service each ngrok instance is serving a single project, which makes things easier.

@achekulaev achekulaev added the bug label Jul 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants