ngrok believe tunnels are open when they definitely are not

Created on 4 Jan 2019  路  2Comments  路  Source: inconshreveable/ngrok

The ngrok process is not running as you'll be able to see below. I double checked the status tab on my ngrok profile page and it says no existing tunnels are open. Am I doing something stupid?

myuser@myuser:~$ ngrok start --all --log "logoutput"
Tunnel session failed: Your account may not run more than 8 tunnels over a single ngrok client session.
The tunnels already running on this session are:
[http://myuser.3.ngrok.io http://myuser.2.ngrok.io https://myuser.1.ngrok.io https://myuser.2.ngrok.io https://myuser.3.ngrok.io http://myuser.1.ngrok.io https://myuser.0.ngrok.io tcp://0.tcp.ngrok.io:14160]


ERR_NGROK_324

myuser@myuser:~$ cat logoutput
t=2019-01-04T10:03:57-0500 lvl=info msg="no configuration paths supplied"
t=2019-01-04T10:03:57-0500 lvl=info msg="using configuration at default config path" path=/home/myuser/.ngrok2/ngrok.yml
t=2019-01-04T10:03:57-0500 lvl=info msg="open config file" path=/home/myuser/.ngrok2/ngrok.yml err=nil
t=2019-01-04T10:03:57-0500 lvl=info msg="run component" obj=controller comp="memory storage"
t=2019-01-04T10:03:57-0500 lvl=info msg="run component" obj=controller comp=consoleui
t=2019-01-04T10:03:57-0500 lvl=info msg="run component" obj=controller comp="Tunnel session"
t=2019-01-04T10:03:57-0500 lvl=info msg="run component" obj=controller comp=web
t=2019-01-04T10:03:57-0500 lvl=info msg="starting web service" obj=web addr=127.0.0.1:4040
t=2019-01-04T10:03:57-0500 lvl=info msg="run component" obj=controller comp=updater
t=2019-01-04T10:03:57-0500 lvl=info msg="tunnel session started" obj=tunSess
t=2019-01-04T10:03:57-0500 lvl=info msg="client session established" obj=csess id=2ffb5a1eae95
t=2019-01-04T10:03:57-0500 lvl=eror msg="session closing" obj=tunSess err="Your account may not run more than 8 tunnels over a single ngrok client session.\nThe tunnels already running on this session are:\n[http://myuser.3.ngrok.io http://myuser.2.ngrok.io https://myuser.1.ngrok.io https://myuser.2.ngrok.io https://myuser.3.ngrok.io http://myuser.1.ngrok.io https://myuser.0.ngrok.io tcp://0.tcp.ngrok.io:14160]\n\n\nERR_NGROK_324\n"
t=2019-01-04T10:03:57-0500 lvl=info msg="component stopped" obj=controller comp="Tunnel session" err="Your account may not run more than 8 tunnels over a single ngrok client session.\nThe tunnels already running on this session are:\n[http://myuser.3.ngrok.io http://myuser.2.ngrok.io https://myuser.1.ngrok.io https://myuser.2.ngrok.io https://myuser.3.ngrok.io http://myuser.1.ngrok.io https://myuser.0.ngrok.io tcp://0.tcp.ngrok.io:14160]\n\n\nERR_NGROK_324\n"
t=2019-01-04T10:03:57-0500 lvl=info msg="requesting shutdown" obj=controller
t=2019-01-04T10:03:57-0500 lvl=info msg="tunnel session closing permanently" obj=tunSess err="not reconnecting, session closed by the client side"
t=2019-01-04T10:03:57-0500 lvl=info msg="accept failed" obj=csess id=2ffb5a1eae95 err="reconnecting session closed"
t=2019-01-04T10:03:57-0500 lvl=info msg="component stopped" obj=controller comp="memory storage" err=nil
t=2019-01-04T10:03:57-0500 lvl=info msg="component stopped" obj=controller comp=consoleui err=nil
t=2019-01-04T10:03:57-0500 lvl=info msg="component stopped" obj=controller comp=updater err=nil
t=2019-01-04T10:03:57-0500 lvl=info msg="component stopped" obj=controller comp=web err=nil
t=2019-01-04T10:03:57-0500 lvl=info msg="all component stopped" obj=controller
t=2019-01-04T10:03:57-0500 lvl=crit msg="command failed" err="Tunnel session failed: Your account may not run more than 8 tunnels over a single ngrok client session.\nThe tunnels already running on this session are:\n[http://myuser.3.ngrok.io http://myuser.2.ngrok.io https://myuser.1.ngrok.io https://myuser.2.ngrok.io https://myuser.3.ngrok.io http://myuser.1.ngrok.io https://myuser.0.ngrok.io tcp://0.tcp.ngrok.io:14160]\n\n\nERR_NGROK_324\n"

myuser@myuser:~$ ps aux | grep ngrok
myuser    28761  0.0  0.0  14228   984 pts/20   S+   10:08   0:00 grep --color=auto ngrok

myuser@myuser:~$ cat ~/.ngrok2/ngrok.yml 
authtoken: <redacted>
tunnels:
    http0:
        addr: 8000
        proto: http
        subdomain: myuser.0
    http1:
        addr: 8001
        proto: http
        subdomain: myuser.1
    http2:
        addr: 8002
        proto: http
        subdomain: myuser.2
    http3:
        addr: 8003
        proto: http
        subdomain: myuser.3
    ssh:
        addr: 22
        proto: tcp
        subdomain: myuser.tcp

Most helpful comment

You probably figured it out, but for others like me coming through a search engine to here: Add bind_tls to your tunnel configs in your config file to make sure ngrok only starts 1 tunnel per address.

All 2 comments

The problem is ngrok is opening a tunnel for both http and https so because I have 4 http tunnels listed (which will spin up 8 tunnels, 1 for each http and https) and I have 1 ssh tunnel, than I exceed the limit of 8 tunnels. This must have been a change in version 2.x

You probably figured it out, but for others like me coming through a search engine to here: Add bind_tls to your tunnel configs in your config file to make sure ngrok only starts 1 tunnel per address.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wujunze picture wujunze  路  9Comments

IngwiePhoenix picture IngwiePhoenix  路  7Comments

DB1500 picture DB1500  路  8Comments

ricardoasc picture ricardoasc  路  5Comments

cleocn picture cleocn  路  6Comments