Forem Creators and Builders 🌱

Discussion on: Docker-Compose image build error | Service 'rails' failed to build

 
techsquidtv profile image
TechSquidTV Author

Let me give it a bump up and try, I'll report back.

This was attempted on a $5 a month VPS from Vultr with "1 CPU" and 1Gb of memory. If ram is the only issue I can bump to 2Gb for $10 a month. Adding another core is $20 a month.

It doesn't appear that I am shown memory usage but CPU should potentially be safe based on some charts I can see.

Will report soon, thank you!

Thread Thread
 
techsquidtv profile image
TechSquidTV Author • Edited on

Good news, I believe we have made it further after upgrading to 2Gb. But, I do think it has hung up.

bundle_1         | Installing orm_adapter 0.5.0
seed_1           | 2020/09/04 22:52:57 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 1s
sidekiq_1        | 2020/09/04 22:52:57 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 1s
seed_1           | 2020/09/04 22:52:58 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 1s
sidekiq_1        | 2020/09/04 22:52:58 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 1s
sidekiq_1        | 2020/09/04 22:52:59 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 1s
seed_1           | 2020/09/04 22:52:59 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: connect: connection refused. Sleeping 1s
seed_1           | 2020/09/04 22:53:00 Problem with request: Get http://rails:3000: dial tcp 172.18.0.7:3000: 
Enter fullscreen mode Exit fullscreen mode

That continues for some time, once in a while changing out with:

sidekiq_1        | 2020/09/04 23:11:56 Problem with request: Get http://rails:3000: dial tcp: lookup rails on 127.0.0.11:53: read udp 127.0.0.1:34099->127.0.0.11:53: i/o timeout. Sleeping 1s
seed_1           | 2020/09/04 23:11:55 Problem with request: Get http://rails:3000: dial tcp: lookup rails on 127.0.0.11:53: read udp 127.0.0.1:43474->127.0.0.11:53: i/o timeout. Sleeping 1s
seed_1           | 2020/09/04 23:12:16 Problem with request: Get http://rails:3000: dial tcp: lookup rails on 127.0.0.11:53: read udp 127.0.0.1:49766->127.0.0.11:53: i/o timeout. Sleeping 1s
sidekiq_1        | 2020/09/04 23:12:16 Problem with request: Get http://rails:3000: dial tcp: lookup rails on 127.0.0.11:53: read udp 127.0.0.1:34515->127.0.0.11:53: i/o timeout. Sleeping 1s
Enter fullscreen mode Exit fullscreen mode

Looks like it errors out after some time:

seed_1           | Caused by:
seed_1           | Patron::HostResolutionError: Could not resolve host: elasticsearch
seed_1           | /opt/apps/bundle/gems/patron-0.13.3/lib/patron/session.rb:330:in `handle_request'
seed_1           | /opt/apps/bundle/gems/patron-0.13.3/lib/patron/session.rb:330:in `request'
seed_1           | /opt/apps/bundle/gems/faraday-1.0.1/lib/faraday/adapter/patron.rb:32:in `block in call'
seed_1           | /opt/apps/bundle/gems/faraday-1.0.1/lib/faraday/adapter.rb:60:in `connection'
seed_1           | /opt/apps/bundle/gems/faraday-1.0.1/lib/faraday/adapter/patron.rb:29:in `call'
seed_1           | /opt/apps/bundle/gems/honeycomb-beeline-2.1.2/lib/honeycomb/integrations/faraday.rb:27:in `block in call'
seed_1           | /opt/apps/bundle/gems/honeycomb-beeline-2.1.2/lib/honeycomb/client.rb:68:in `start_span'
seed_1           | /opt/apps/bundle/gems/honeycomb-beeline-2.1.2/lib/honeycomb/integrations/faraday.rb:16:in `call'
seed_1           | /opt/apps/bundle/gems/faraday-1.0.1/lib/faraday/rack_builder.rb:153:in `build_response'
seed_1           | /opt/apps/bundle/gems/faraday-1.0.1/lib/faraday/connection.rb:492:in `run_request'
seed_1           | /opt/apps/bundle/gems/elasticsearch-transport-7.9.0/lib/elasticsearch/transport/transport/http/faraday.rb:40:in `block in perform_request'
seed_1           | /opt/apps/bundle/gems/elasticsearch-transport-7.9.0/lib/elasticsearch/transport/transport/base.rb:288:in `perform_request'
seed_1           | /opt/apps/bundle/gems/elasticsearch-transport-7.9.0/lib/elasticsearch/transport/transport/http/faraday.rb:37:in `perform_request'
seed_1           | /opt/apps/bundle/gems/elasticsearch-transport-7.9.0/lib/elasticsearch/transport/client.rb:176:in `perform_request'
seed_1           | /opt/apps/bundle/gems/ddtrace-0.39.0/lib/ddtrace/contrib/elasticsearch/patcher.rb:102:in `block in perform_request'
seed_1           | /opt/apps/bundle/gems/ddtrace-0.39.0/lib/ddtrace/tracer.rb:283:in `trace'
seed_1           | /opt/apps/bundle/gems/ddtrace-0.39.0/lib/ddtrace/contrib/elasticsearch/patcher.rb:67:in `perform_request'
seed_1           | /opt/apps/bundle/gems/elasticsearch-api-7.9.0/lib/elasticsearch/api/actions/index.rb:73:in `index'
seed_1           | /opt/apps/forem/app/services/search/client.rb:19:in `public_send'
seed_1           | /opt/apps/forem/app/services/search/client.rb:19:in `block in method_missing'
seed_1           | /opt/apps/forem/app/services/search/client.rb:36:in `request'
seed_1           | /opt/apps/forem/app/services/search/client.rb:18:in `method_missing'
seed_1           | /opt/apps/forem/app/services/search/base.rb:5:in `index'
seed_1           | /opt/apps/forem/app/models/concerns/searchable.rb:11:in `index_to_elasticsearch_inline'
seed_1           | /opt/apps/forem/app/models/user.rb:661:in `index_roles'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/associations/builder/collection_association.rb:39:in `block (2 levels) in define_callback'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/associations/collection_association.rb:465:in `block in callback'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/associations/collection_association.rb:464:in `each'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/associations/collection_association.rb:464:in `callback'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/associations/collection_association.rb:456:in `replace_on_target'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/associations/collection_association.rb:285:in `add_to_target'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/associations/collection_association.rb:424:in `block in concat_records'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/associations/collection_association.rb:422:in `each'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/associations/collection_association.rb:422:in `concat_records'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/associations/has_many_association.rb:108:in `concat_records'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/associations/has_many_through_association.rb:40:in `concat_records'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/associations/collection_association.rb:120:in `block in concat'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/associations/collection_association.rb:135:in `block in transaction'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `block in transaction'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/transaction.rb:280:in `block in within_new_transaction'
seed_1           | /opt/apps/bundle/gems/activesupport-6.0.3.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
seed_1           | /opt/apps/bundle/gems/activesupport-6.0.3.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
seed_1           | /opt/apps/bundle/gems/activesupport-6.0.3.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
seed_1           | /opt/apps/bundle/gems/activesupport-6.0.3.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
seed_1           | /opt/apps/bundle/gems/activesupport-6.0.3.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/transaction.rb:278:in `within_new_transaction'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `transaction'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/transactions.rb:212:in `transaction'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/associations/collection_association.rb:134:in `transaction'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/associations/collection_association.rb:120:in `concat'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/associations/has_many_through_association.rb:21:in `concat'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/associations/collection_proxy.rb:1026:in `<<'
seed_1           | /opt/apps/bundle/gems/rolify-5.3.0/lib/rolify/adapters/active_record/role_adapter.rb:49:in `add'
seed_1           | /opt/apps/bundle/gems/rolify-5.3.0/lib/rolify/role.rb:19:in `add_role'
seed_1           | /opt/apps/forem/db/seeds.rb:92:in `block (2 levels) in <main>'
seed_1           | /opt/apps/forem/db/seeds.rb:73:in `times'
seed_1           | /opt/apps/forem/db/seeds.rb:73:in `block in <main>'
seed_1           | /opt/apps/forem/db/seeds.rb:19:in `create_if_none'
seed_1           | /opt/apps/forem/db/seeds.rb:70:in `<main>'
seed_1           | /opt/apps/bundle/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in `load'
seed_1           | /opt/apps/bundle/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in `load'
seed_1           | /opt/apps/bundle/gems/railties-6.0.3.2/lib/rails/engine.rb:559:in `load_seed'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:440:in `load_seed'
seed_1           | /opt/apps/bundle/gems/activerecord-6.0.3.2/lib/active_record/railties/databases.rake:331:in `block (2 levels) in <main>'
seed_1           | /opt/apps/bundle/gems/honeycomb-beeline-2.1.2/lib/honeycomb/integrations/rake.rb:21:in `block in execute'
seed_1           | /opt/apps/bundle/gems/honeycomb-beeline-2.1.2/lib/honeycomb/client.rb:68:in `start_span'
seed_1           | /opt/apps/bundle/gems/honeycomb-beeline-2.1.2/lib/honeycomb/integrations/rake.rb:16:in `execute'
seed_1           | /opt/apps/bundle/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
seed_1           | /usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `load'
seed_1           | /usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `kernel_load'
seed_1           | /usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:28:in `run'
seed_1           | /usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli.rb:476:in `exec'
seed_1           | /usr/share/gems/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
seed_1           | /usr/share/gems/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
seed_1           | /usr/share/gems/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
seed_1           | /usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli.rb:30:in `dispatch'
seed_1           | /usr/share/gems/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
seed_1           | /usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in `start'
seed_1           | /usr/share/gems/gems/bundler-2.1.4/libexec/bundle:46:in `block in <top (required)>'
seed_1           | /usr/share/gems/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in `with_friendly_errors'
seed_1           | /usr/share/gems/gems/bundler-2.1.4/libexec/bundle:34:in `<top (required)>'
seed_1           | /usr/local/bin/bundle:23:in `load'
seed_1           | /usr/local/bin/bundle:23:in `<main>'
seed_1           | Tasks: TOP => db:seed
seed_1           | (See full trace by running task with --trace)
seed_1           | 2020/09/05 00:23:15 Command exited with error: exit status 1
forem_seed exited with code 1

Enter fullscreen mode Exit fullscreen mode