Hello, I tried installing forem using Docker on ubuntu 18.04 on a Digital Ocean droplet.
It hasn't worked yet:
Here are the logs
rails_1 | 2021/02/27 18:33:02 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
sidekiq_1 | 2021/02/27 18:33:06 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
sidekiq_1 | 2021/02/27 18:33:06 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:33:07 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:33:07 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
rails_1 | 2021/02/27 18:33:12 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
rails_1 | 2021/02/27 18:33:22 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
sidekiq_1 | 2021/02/27 18:33:26 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
sidekiq_1 | 2021/02/27 18:33:26 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
seed_1 | 2021/02/27 18:33:27 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:33:27 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
rails_1 | 2021/02/27 18:33:32 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
rails_1 | 2021/02/27 18:33:42 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
sidekiq_1 | 2021/02/27 18:33:46 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
sidekiq_1 | 2021/02/27 18:33:46 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:33:47 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:33:47 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
rails_1 | 2021/02/27 18:33:52 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
rails_1 | 2021/02/27 18:34:02 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
sidekiq_1 | 2021/02/27 18:34:06 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
sidekiq_1 | 2021/02/27 18:34:06 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:34:07 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:34:07 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
rails_1 | 2021/02/27 18:34:12 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
rails_1 | 2021/02/27 18:34:22 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
sidekiq_1 | 2021/02/27 18:34:26 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
sidekiq_1 | 2021/02/27 18:34:26 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:34:27 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:34:27 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
rails_1 | 2021/02/27 18:34:32 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
rails_1 | 2021/02/27 18:34:42 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
sidekiq_1 | 2021/02/27 18:34:46 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
sidekiq_1 | 2021/02/27 18:34:46 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:34:47 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:34:47 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
rails_1 | 2021/02/27 18:34:52 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
rails_1 | 2021/02/27 18:35:02 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
sidekiq_1 | 2021/02/27 18:35:06 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
sidekiq_1 | 2021/02/27 18:35:06 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:35:07 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:35:07 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
rails_1 | 2021/02/27 18:35:12 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
rails_1 | 2021/02/27 18:35:22 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
sidekiq_1 | 2021/02/27 18:35:26 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
sidekiq_1 | 2021/02/27 18:35:26 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:35:27 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:35:27 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
rails_1 | 2021/02/27 18:35:32 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
rails_1 | 2021/02/27 18:35:42 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
sidekiq_1 | 2021/02/27 18:35:46 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
sidekiq_1 | 2021/02/27 18:35:46 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:35:47 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:35:48 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
rails_1 | 2021/02/27 18:35:52 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
rails_1 | 2021/02/27 18:36:02 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
sidekiq_1 | 2021/02/27 18:36:06 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
sidekiq_1 | 2021/02/27 18:36:06 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:36:07 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
seed_1 | 2021/02/27 18:36:08 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
rails_1 | 2021/02/27 18:36:12 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
rails_1 | 2021/02/27 18:36:22 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 10s
sidekiq_1 | 2021/02/27 18:36:26 Problem with request: Get http://elasticsearch:9200: dial tcp: lookup elasticsearch on 127.0.0.11:53: server misbehaving. Sleeping 20s
sidekiq_1 | 2021/02/27 18:36:26 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 20s
Thanks, your help would be appreciated
Top comments (12)
In your
/etc/hosts
file please add a new line that points out your localhost (127.0.0.1) to rails.How would I go about doing that?
sudo nano /etc/hosts
It will open a file. add this line to it;
127.0.0.1 rails
Doesn't seem to fix the issue. I did exactly as you said.
Hey, as you said you are using digital ocean droplet, I can suggest you something, if you are willing to spare some time and energy.
Just purge your instance, create another one and follow this guide. I myself wrote it, and I always use this myself to host a development instance.
Hi @sidchaudhary04 , those
server misbehaving
lines in the log are something new to me, have you tried implementing this fix?answer re: Docker network issue: Server misbehaving
For those who have this problem, it is typically related to having an issue with your DNS being unable to resolve
index.docker.io
. I had this issue today working from home where my internet connection has a default DNS server that is notoriously flakey.My dev environment is OSX and…
Hey. Is it not working or just taking a very long time? I know from other who have used Docker that is can take a very long time to get up and running the first time.
I waited 1 hour and 30 minutes, and it said said "timed out waiting for rails:3000 to become available"
Ok thanks for following up. I am asking some of the engineers on the team if they can jump in on this conversation and help out 😃
I tried again with Podman, same issue.
After you do this:
sudo nano /etc/hosts
It will open a file. add this line to it; 127.0.0.1 rails
run
Then run again the compose and wait for it. You will get the same error for a while, but it should work eventually.
Have you managed how to solve the issue?