The error encountered was: dial tcp [::1]:3000: getsockopt: connection refusedExposing localhost to the internet via tunneling (using ngrok): HTTP error 400: bad request; invalid hostnameRuby OptionParser throwing ArgumentErrorMaking a Ruby Gem - Cannot Load Such FileRails server quits right when it startsRails server does not start in ubuntu bash for windows 10Error when installing JSON 1.8.3 gem on OS X YosemiteRake Assets:precompile failingconfig/environments/development.rb:30:in `<top (required)>': undefined local variable or method `config' for main:Object (NameError)NoMethodError: undefined method `params' - during controller tests with AuthlogicAction Cable Rails got error “ RuntimeError - Unable to find subscription with identifier”Rails FCM throwing ArgumentError
Japan - Plan around max visa duration
XeLaTeX and pdfLaTeX ignore hyphenation
How do I create uniquely male characters?
Are tax years 2016 & 2017 back taxes deductible for tax year 2018?
Why are 150k or 200k jobs considered good when there are 300k+ births a month?
Download, install and reboot computer at night if needed
A function which translates a sentence to title-case
How can I fix this gap between bookcases I made?
What do you call a Matrix-like slowdown and camera movement effect?
What typically incentivizes a professor to change jobs to a lower ranking university?
How does one intimidate enemies without having the capacity for violence?
DOS, create pipe for stdin/stdout of command.com(or 4dos.com) in C or Batch?
Why are only specific transaction types accepted into the mempool?
Can I interfere when another PC is about to be attacked?
How to make payment on the internet without leaving a money trail?
Set-theoretical foundations of Mathematics with only bounded quantifiers
Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?
Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)
Is there really no realistic way for a skeleton monster to move around without magic?
I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine
Draw simple lines in Inkscape
I see my dog run
New order #4: World
Why is the design of haulage companies so “special”?
The error encountered was: dial tcp [::1]:3000: getsockopt: connection refused
Exposing localhost to the internet via tunneling (using ngrok): HTTP error 400: bad request; invalid hostnameRuby OptionParser throwing ArgumentErrorMaking a Ruby Gem - Cannot Load Such FileRails server quits right when it startsRails server does not start in ubuntu bash for windows 10Error when installing JSON 1.8.3 gem on OS X YosemiteRake Assets:precompile failingconfig/environments/development.rb:30:in `<top (required)>': undefined local variable or method `config' for main:Object (NameError)NoMethodError: undefined method `params' - during controller tests with AuthlogicAction Cable Rails got error “ RuntimeError - Unable to find subscription with identifier”Rails FCM throwing ArgumentError
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am working on getting webhook to land in rails application. My rails server runs and I have already connected to ngrok and external application. But that errors to point out my application doesn't run.
localhost:3000
runs and I can get webhooks to ngrok. What's the matter?
The connection to http://9xxxxxx5.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:3000.
Make sure that a web service is running on localhost:3000 and that it is a valid address.
The error encountered was: dial tcp [::1]:3000: getsockopt: connection refused
After I see localhost:3000, rails application runs. Why that could not connect....
Here is the result ps aux | grep ruby
.
user 63542 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/assets
user 63541 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/channels
user 63540 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/test/mailers/previews
user 63539 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.04 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/uploaders
user 63538 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/services
user 63537 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/models
user 63536 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/mailers
user 63535 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/jobs
user 63534 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/helpers
user 63533 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/controllers
user 63532 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/db
user 63531 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.06 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/config/locales
user 64927 0.0 0.0 4258736 192 s002 R+ 7:42PM 0:00.00 grep ruby
Update
I have tried to kill last one. But I couldn't because process number is random every time like below:
And I could not connect ngrok still ....
ruby-on-rails ruby ngrok
|
show 3 more comments
I am working on getting webhook to land in rails application. My rails server runs and I have already connected to ngrok and external application. But that errors to point out my application doesn't run.
localhost:3000
runs and I can get webhooks to ngrok. What's the matter?
The connection to http://9xxxxxx5.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:3000.
Make sure that a web service is running on localhost:3000 and that it is a valid address.
The error encountered was: dial tcp [::1]:3000: getsockopt: connection refused
After I see localhost:3000, rails application runs. Why that could not connect....
Here is the result ps aux | grep ruby
.
user 63542 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/assets
user 63541 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/channels
user 63540 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/test/mailers/previews
user 63539 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.04 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/uploaders
user 63538 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/services
user 63537 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/models
user 63536 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/mailers
user 63535 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/jobs
user 63534 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/helpers
user 63533 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/controllers
user 63532 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/db
user 63531 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.06 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/config/locales
user 64927 0.0 0.0 4258736 192 s002 R+ 7:42PM 0:00.00 grep ruby
Update
I have tried to kill last one. But I couldn't because process number is random every time like below:
And I could not connect ngrok still ....
ruby-on-rails ruby ngrok
Can you post the full backtrace errors from your rails server in your local terminal?
– lacostenycoder
Mar 22 at 1:15
Thanks for your comment. But I could not find any errors in rails server because this error may be occured by not connecting ngrok with rails.
– k10a
Mar 22 at 1:45
what do you mean byclick localhost:3000
?
– lacostenycoder
Mar 22 at 2:08
type this in the terminal and paste your output in your question.ps aux | grep ruby
– lacostenycoder
Mar 22 at 2:24
@lacostenycoder Thanks so much. I have added the result in questions.
– k10a
Mar 22 at 2:46
|
show 3 more comments
I am working on getting webhook to land in rails application. My rails server runs and I have already connected to ngrok and external application. But that errors to point out my application doesn't run.
localhost:3000
runs and I can get webhooks to ngrok. What's the matter?
The connection to http://9xxxxxx5.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:3000.
Make sure that a web service is running on localhost:3000 and that it is a valid address.
The error encountered was: dial tcp [::1]:3000: getsockopt: connection refused
After I see localhost:3000, rails application runs. Why that could not connect....
Here is the result ps aux | grep ruby
.
user 63542 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/assets
user 63541 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/channels
user 63540 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/test/mailers/previews
user 63539 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.04 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/uploaders
user 63538 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/services
user 63537 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/models
user 63536 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/mailers
user 63535 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/jobs
user 63534 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/helpers
user 63533 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/controllers
user 63532 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/db
user 63531 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.06 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/config/locales
user 64927 0.0 0.0 4258736 192 s002 R+ 7:42PM 0:00.00 grep ruby
Update
I have tried to kill last one. But I couldn't because process number is random every time like below:
And I could not connect ngrok still ....
ruby-on-rails ruby ngrok
I am working on getting webhook to land in rails application. My rails server runs and I have already connected to ngrok and external application. But that errors to point out my application doesn't run.
localhost:3000
runs and I can get webhooks to ngrok. What's the matter?
The connection to http://9xxxxxx5.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:3000.
Make sure that a web service is running on localhost:3000 and that it is a valid address.
The error encountered was: dial tcp [::1]:3000: getsockopt: connection refused
After I see localhost:3000, rails application runs. Why that could not connect....
Here is the result ps aux | grep ruby
.
user 63542 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/assets
user 63541 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/channels
user 63540 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/test/mailers/previews
user 63539 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.04 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/uploaders
user 63538 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/services
user 63537 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/models
user 63536 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/mailers
user 63535 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/jobs
user 63534 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/helpers
user 63533 0.0 0.0 4306992 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/app/controllers
user 63532 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.05 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/db
user 63531 0.0 0.0 4298800 40 s000 S+ 7:00PM 0:00.06 /Users/xxxxxx/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.10.3/bin/fsevent_watch --format=otnetstring --latency 0.1 /Users/xxxxxx/Workspace/app/config/locales
user 64927 0.0 0.0 4258736 192 s002 R+ 7:42PM 0:00.00 grep ruby
Update
I have tried to kill last one. But I couldn't because process number is random every time like below:
And I could not connect ngrok still ....
ruby-on-rails ruby ngrok
ruby-on-rails ruby ngrok
edited Mar 22 at 4:36
k10a
asked Mar 22 at 0:52
k10ak10a
347
347
Can you post the full backtrace errors from your rails server in your local terminal?
– lacostenycoder
Mar 22 at 1:15
Thanks for your comment. But I could not find any errors in rails server because this error may be occured by not connecting ngrok with rails.
– k10a
Mar 22 at 1:45
what do you mean byclick localhost:3000
?
– lacostenycoder
Mar 22 at 2:08
type this in the terminal and paste your output in your question.ps aux | grep ruby
– lacostenycoder
Mar 22 at 2:24
@lacostenycoder Thanks so much. I have added the result in questions.
– k10a
Mar 22 at 2:46
|
show 3 more comments
Can you post the full backtrace errors from your rails server in your local terminal?
– lacostenycoder
Mar 22 at 1:15
Thanks for your comment. But I could not find any errors in rails server because this error may be occured by not connecting ngrok with rails.
– k10a
Mar 22 at 1:45
what do you mean byclick localhost:3000
?
– lacostenycoder
Mar 22 at 2:08
type this in the terminal and paste your output in your question.ps aux | grep ruby
– lacostenycoder
Mar 22 at 2:24
@lacostenycoder Thanks so much. I have added the result in questions.
– k10a
Mar 22 at 2:46
Can you post the full backtrace errors from your rails server in your local terminal?
– lacostenycoder
Mar 22 at 1:15
Can you post the full backtrace errors from your rails server in your local terminal?
– lacostenycoder
Mar 22 at 1:15
Thanks for your comment. But I could not find any errors in rails server because this error may be occured by not connecting ngrok with rails.
– k10a
Mar 22 at 1:45
Thanks for your comment. But I could not find any errors in rails server because this error may be occured by not connecting ngrok with rails.
– k10a
Mar 22 at 1:45
what do you mean by
click localhost:3000
?– lacostenycoder
Mar 22 at 2:08
what do you mean by
click localhost:3000
?– lacostenycoder
Mar 22 at 2:08
type this in the terminal and paste your output in your question.
ps aux | grep ruby
– lacostenycoder
Mar 22 at 2:24
type this in the terminal and paste your output in your question.
ps aux | grep ruby
– lacostenycoder
Mar 22 at 2:24
@lacostenycoder Thanks so much. I have added the result in questions.
– k10a
Mar 22 at 2:46
@lacostenycoder Thanks so much. I have added the result in questions.
– k10a
Mar 22 at 2:46
|
show 3 more comments
2 Answers
2
active
oldest
votes
Thanks @lascostenycoder
I'm so surprised that I could fix that after sudo vi /etc/hosts
.
I had edited for other projects with MAMP. So I could not do that.
Thanks for your help :)
I actually thought of this yesterday but not sure why I didn't suggest to check that. I updated my answer since I should have mentioned that as well.
– lacostenycoder
Mar 22 at 13:20
add a comment |
You need to add the port to your ngrok command, rails default local development is 3000
ngrok http 3000
Then you should be able to type your ngrok address in your browser
http://xxxxxx.ngrok.io/
The only way I'm able to reproduce your error is to stop my rails server, then when I try to open the ngrok url I get your error. So this means either your server is NOT running or ngrok can't connect to it.
UPDATE 2
Make sure you don't have anything going on in /etc/hosts
that could cause a problem.
Update
Make sure you don't have any rogue ruby processes running. Based on your updated comment run this to kill them all
ps aux | grep ruby | awk 'print $2' | xargs kill -9
Or try to see if spring is the problem:
spring status
spring stop
Then check and make sure everything has been killed, then start over from step 1.
ps aux | grep ruby
It may be something specific to your app/config? So try to kill all your running rails servers, if you're not sure, restart your machine. Then go to a new project folder, just add a new rails app and once it's running, try ngrok again and see if it works. Also make sure you use http and https in your ngrok command.
Thanks for your comment. I runngrok http 3000
and then I checked xxxx.ngrok.io on display in Terminal. But that would not work.
– k10a
Mar 22 at 1:41
@k10a is your rails server running in another terminal before you runngrok
? And of course thexxxx
is fake, you'll get a new random hash prefix each time you run a newngrok
– lacostenycoder
Mar 22 at 1:45
Yeah I launched rails server before ngrok and I replace from xxxx to own ngrok url.
– k10a
Mar 22 at 2:01
@k10a how are you launching rails server?
– lacostenycoder
Mar 22 at 2:06
Thanks for your help. In termnial,$ rails s
as usual.
– k10a
Mar 22 at 2:45
|
show 1 more comment
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55291351%2fthe-error-encountered-was-dial-tcp-13000-getsockopt-connection-refused%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks @lascostenycoder
I'm so surprised that I could fix that after sudo vi /etc/hosts
.
I had edited for other projects with MAMP. So I could not do that.
Thanks for your help :)
I actually thought of this yesterday but not sure why I didn't suggest to check that. I updated my answer since I should have mentioned that as well.
– lacostenycoder
Mar 22 at 13:20
add a comment |
Thanks @lascostenycoder
I'm so surprised that I could fix that after sudo vi /etc/hosts
.
I had edited for other projects with MAMP. So I could not do that.
Thanks for your help :)
I actually thought of this yesterday but not sure why I didn't suggest to check that. I updated my answer since I should have mentioned that as well.
– lacostenycoder
Mar 22 at 13:20
add a comment |
Thanks @lascostenycoder
I'm so surprised that I could fix that after sudo vi /etc/hosts
.
I had edited for other projects with MAMP. So I could not do that.
Thanks for your help :)
Thanks @lascostenycoder
I'm so surprised that I could fix that after sudo vi /etc/hosts
.
I had edited for other projects with MAMP. So I could not do that.
Thanks for your help :)
answered Mar 22 at 7:50
k10ak10a
347
347
I actually thought of this yesterday but not sure why I didn't suggest to check that. I updated my answer since I should have mentioned that as well.
– lacostenycoder
Mar 22 at 13:20
add a comment |
I actually thought of this yesterday but not sure why I didn't suggest to check that. I updated my answer since I should have mentioned that as well.
– lacostenycoder
Mar 22 at 13:20
I actually thought of this yesterday but not sure why I didn't suggest to check that. I updated my answer since I should have mentioned that as well.
– lacostenycoder
Mar 22 at 13:20
I actually thought of this yesterday but not sure why I didn't suggest to check that. I updated my answer since I should have mentioned that as well.
– lacostenycoder
Mar 22 at 13:20
add a comment |
You need to add the port to your ngrok command, rails default local development is 3000
ngrok http 3000
Then you should be able to type your ngrok address in your browser
http://xxxxxx.ngrok.io/
The only way I'm able to reproduce your error is to stop my rails server, then when I try to open the ngrok url I get your error. So this means either your server is NOT running or ngrok can't connect to it.
UPDATE 2
Make sure you don't have anything going on in /etc/hosts
that could cause a problem.
Update
Make sure you don't have any rogue ruby processes running. Based on your updated comment run this to kill them all
ps aux | grep ruby | awk 'print $2' | xargs kill -9
Or try to see if spring is the problem:
spring status
spring stop
Then check and make sure everything has been killed, then start over from step 1.
ps aux | grep ruby
It may be something specific to your app/config? So try to kill all your running rails servers, if you're not sure, restart your machine. Then go to a new project folder, just add a new rails app and once it's running, try ngrok again and see if it works. Also make sure you use http and https in your ngrok command.
Thanks for your comment. I runngrok http 3000
and then I checked xxxx.ngrok.io on display in Terminal. But that would not work.
– k10a
Mar 22 at 1:41
@k10a is your rails server running in another terminal before you runngrok
? And of course thexxxx
is fake, you'll get a new random hash prefix each time you run a newngrok
– lacostenycoder
Mar 22 at 1:45
Yeah I launched rails server before ngrok and I replace from xxxx to own ngrok url.
– k10a
Mar 22 at 2:01
@k10a how are you launching rails server?
– lacostenycoder
Mar 22 at 2:06
Thanks for your help. In termnial,$ rails s
as usual.
– k10a
Mar 22 at 2:45
|
show 1 more comment
You need to add the port to your ngrok command, rails default local development is 3000
ngrok http 3000
Then you should be able to type your ngrok address in your browser
http://xxxxxx.ngrok.io/
The only way I'm able to reproduce your error is to stop my rails server, then when I try to open the ngrok url I get your error. So this means either your server is NOT running or ngrok can't connect to it.
UPDATE 2
Make sure you don't have anything going on in /etc/hosts
that could cause a problem.
Update
Make sure you don't have any rogue ruby processes running. Based on your updated comment run this to kill them all
ps aux | grep ruby | awk 'print $2' | xargs kill -9
Or try to see if spring is the problem:
spring status
spring stop
Then check and make sure everything has been killed, then start over from step 1.
ps aux | grep ruby
It may be something specific to your app/config? So try to kill all your running rails servers, if you're not sure, restart your machine. Then go to a new project folder, just add a new rails app and once it's running, try ngrok again and see if it works. Also make sure you use http and https in your ngrok command.
Thanks for your comment. I runngrok http 3000
and then I checked xxxx.ngrok.io on display in Terminal. But that would not work.
– k10a
Mar 22 at 1:41
@k10a is your rails server running in another terminal before you runngrok
? And of course thexxxx
is fake, you'll get a new random hash prefix each time you run a newngrok
– lacostenycoder
Mar 22 at 1:45
Yeah I launched rails server before ngrok and I replace from xxxx to own ngrok url.
– k10a
Mar 22 at 2:01
@k10a how are you launching rails server?
– lacostenycoder
Mar 22 at 2:06
Thanks for your help. In termnial,$ rails s
as usual.
– k10a
Mar 22 at 2:45
|
show 1 more comment
You need to add the port to your ngrok command, rails default local development is 3000
ngrok http 3000
Then you should be able to type your ngrok address in your browser
http://xxxxxx.ngrok.io/
The only way I'm able to reproduce your error is to stop my rails server, then when I try to open the ngrok url I get your error. So this means either your server is NOT running or ngrok can't connect to it.
UPDATE 2
Make sure you don't have anything going on in /etc/hosts
that could cause a problem.
Update
Make sure you don't have any rogue ruby processes running. Based on your updated comment run this to kill them all
ps aux | grep ruby | awk 'print $2' | xargs kill -9
Or try to see if spring is the problem:
spring status
spring stop
Then check and make sure everything has been killed, then start over from step 1.
ps aux | grep ruby
It may be something specific to your app/config? So try to kill all your running rails servers, if you're not sure, restart your machine. Then go to a new project folder, just add a new rails app and once it's running, try ngrok again and see if it works. Also make sure you use http and https in your ngrok command.
You need to add the port to your ngrok command, rails default local development is 3000
ngrok http 3000
Then you should be able to type your ngrok address in your browser
http://xxxxxx.ngrok.io/
The only way I'm able to reproduce your error is to stop my rails server, then when I try to open the ngrok url I get your error. So this means either your server is NOT running or ngrok can't connect to it.
UPDATE 2
Make sure you don't have anything going on in /etc/hosts
that could cause a problem.
Update
Make sure you don't have any rogue ruby processes running. Based on your updated comment run this to kill them all
ps aux | grep ruby | awk 'print $2' | xargs kill -9
Or try to see if spring is the problem:
spring status
spring stop
Then check and make sure everything has been killed, then start over from step 1.
ps aux | grep ruby
It may be something specific to your app/config? So try to kill all your running rails servers, if you're not sure, restart your machine. Then go to a new project folder, just add a new rails app and once it's running, try ngrok again and see if it works. Also make sure you use http and https in your ngrok command.
edited Mar 22 at 13:19
answered Mar 22 at 1:13
lacostenycoderlacostenycoder
4,54611331
4,54611331
Thanks for your comment. I runngrok http 3000
and then I checked xxxx.ngrok.io on display in Terminal. But that would not work.
– k10a
Mar 22 at 1:41
@k10a is your rails server running in another terminal before you runngrok
? And of course thexxxx
is fake, you'll get a new random hash prefix each time you run a newngrok
– lacostenycoder
Mar 22 at 1:45
Yeah I launched rails server before ngrok and I replace from xxxx to own ngrok url.
– k10a
Mar 22 at 2:01
@k10a how are you launching rails server?
– lacostenycoder
Mar 22 at 2:06
Thanks for your help. In termnial,$ rails s
as usual.
– k10a
Mar 22 at 2:45
|
show 1 more comment
Thanks for your comment. I runngrok http 3000
and then I checked xxxx.ngrok.io on display in Terminal. But that would not work.
– k10a
Mar 22 at 1:41
@k10a is your rails server running in another terminal before you runngrok
? And of course thexxxx
is fake, you'll get a new random hash prefix each time you run a newngrok
– lacostenycoder
Mar 22 at 1:45
Yeah I launched rails server before ngrok and I replace from xxxx to own ngrok url.
– k10a
Mar 22 at 2:01
@k10a how are you launching rails server?
– lacostenycoder
Mar 22 at 2:06
Thanks for your help. In termnial,$ rails s
as usual.
– k10a
Mar 22 at 2:45
Thanks for your comment. I run
ngrok http 3000
and then I checked xxxx.ngrok.io on display in Terminal. But that would not work.– k10a
Mar 22 at 1:41
Thanks for your comment. I run
ngrok http 3000
and then I checked xxxx.ngrok.io on display in Terminal. But that would not work.– k10a
Mar 22 at 1:41
@k10a is your rails server running in another terminal before you run
ngrok
? And of course the xxxx
is fake, you'll get a new random hash prefix each time you run a new ngrok
– lacostenycoder
Mar 22 at 1:45
@k10a is your rails server running in another terminal before you run
ngrok
? And of course the xxxx
is fake, you'll get a new random hash prefix each time you run a new ngrok
– lacostenycoder
Mar 22 at 1:45
Yeah I launched rails server before ngrok and I replace from xxxx to own ngrok url.
– k10a
Mar 22 at 2:01
Yeah I launched rails server before ngrok and I replace from xxxx to own ngrok url.
– k10a
Mar 22 at 2:01
@k10a how are you launching rails server?
– lacostenycoder
Mar 22 at 2:06
@k10a how are you launching rails server?
– lacostenycoder
Mar 22 at 2:06
Thanks for your help. In termnial,
$ rails s
as usual.– k10a
Mar 22 at 2:45
Thanks for your help. In termnial,
$ rails s
as usual.– k10a
Mar 22 at 2:45
|
show 1 more comment
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55291351%2fthe-error-encountered-was-dial-tcp-13000-getsockopt-connection-refused%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you post the full backtrace errors from your rails server in your local terminal?
– lacostenycoder
Mar 22 at 1:15
Thanks for your comment. But I could not find any errors in rails server because this error may be occured by not connecting ngrok with rails.
– k10a
Mar 22 at 1:45
what do you mean by
click localhost:3000
?– lacostenycoder
Mar 22 at 2:08
type this in the terminal and paste your output in your question.
ps aux | grep ruby
– lacostenycoder
Mar 22 at 2:24
@lacostenycoder Thanks so much. I have added the result in questions.
– k10a
Mar 22 at 2:46