Forem Creators and Builders 🌱

TechSquidTV
TechSquidTV

Posted on

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

Following the docker instructions was pretty straight forward until it was time to launch the service.

Failed command: bin/container-setup

Error:

Service 'rails' failed to build: The command '/bin/sh -c bundle check || bundle install --jobs 20 --retry 5' returned a non-zero code: 137
Enter fullscreen mode Exit fullscreen mode

Happy to provide any information that would be useful, it doesn't appear the Dockerfile is versioned.

Top comments (6)

Collapse
 
akhil profile image
Akhil Naidu

Send the first error, or entire log if you are not aware of it.

Collapse
 
techsquidtv profile image
TechSquidTV

Hey Akhil,

Thanks for responding. I originally thought maybe I found the issue but I was wrong.

This is the entire output from running the command

x@x:~/forem$ bin/container-setup
Building the Forem container image!
This will take a while if you are building the container for the first time.
bundle uses an image, skipping
yarn uses an image, skipping
db uses an image, skipping
redis uses an image, skipping
elasticsearch uses an image, skipping
sidekiq uses an image, skipping
seed uses an image, skipping
webpacker uses an image, skipping
Building rails
Step 1/31 : FROM quay.io/forem/ruby:2.7.1
 ---> 08eb0dc31868
Step 2/31 : USER root
 ---> Using cache
 ---> cf9594df8ac9
Step 3/31 : RUN curl -sL https://dl.yarnpkg.com/rpm/yarn.repo -o /etc/yum.repos.d/yarn.repo &&     dnf install -y bash curl git ImageMagick iproute less libcurl libcurl-devel
          libffi-devel libxml2-devel libxslt-devel nodejs pcre-devel                    postgresql postgresql-devel ruby-devel tzdata yarn                    && dnf -y clean all                    && rm -rf /var/cache/yum
 ---> Using cache
 ---> 9de82126fffa
Step 4/31 : ENV APP_USER=forem
 ---> Using cache
 ---> 23db52ded6ce
Step 5/31 : ENV APP_UID=1000
 ---> Using cache
 ---> c287237ca76d
Step 6/31 : ENV APP_GID=1000
 ---> Using cache
 ---> 3e0c46361c23
Step 7/31 : ENV APP_HOME=/opt/apps/forem/
 ---> Using cache
 ---> 41c8b27c07da
Step 8/31 : RUN mkdir -p ${APP_HOME} && chown "${APP_UID}":"${APP_GID}" "${APP_HOME}"
 ---> Using cache
 ---> 9b17b6487fd3
Step 9/31 : RUN groupadd -g "${APP_GID}" "${APP_USER}" &&     adduser -u "${APP_UID}" -g "${APP_GID}" -d "${APP_HOME}" "${APP_USER}"
 ---> Using cache
 ---> dddb665e3c02
Step 10/31 : ENV BUNDLER_VERSION=2.1.4
 ---> Using cache
 ---> 64456ba5e5f2
Step 11/31 : RUN gem install bundler:"${BUNDLER_VERSION}"
 ---> Using cache
 ---> 8e0e4241da1a
Step 12/31 : ENV GEM_HOME=/opt/apps/bundle/
 ---> Using cache
 ---> 1a6ddcbd616c
Step 13/31 : ENV BUNDLE_SILENCE_ROOT_WARNING=1 BUNDLE_APP_CONFIG="${GEM_HOME}"
 ---> Using cache
 ---> 7d0aed00ace2
Step 14/31 : ENV PATH "${GEM_HOME}"/bin:$PATH
 ---> Using cache
 ---> bdd6c956deb4
Step 15/31 : RUN mkdir -p "${GEM_HOME}" && chown "${APP_UID}":"${APP_GID}" "${GEM_HOME}"
 ---> Using cache
 ---> 1610d85f4fc1
Step 16/31 : ENV DOCKERIZE_VERSION=v0.6.1
 ---> Using cache
 ---> 61c5c1d62bca
Step 17/31 : RUN wget https://github.com/jwilder/dockerize/releases/download/"${DOCKERIZE_VERSION}"/dockerize-linux-amd64-"${DOCKERIZE_VERSION}".tar.gz     && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-"${DOCKERIZE_VERSION}".tar.gz     && rm dockerize-linux-amd64-"${DOCKERIZE_VERSION}".tar.gz
 ---> Using cache
 ---> f23e164edab7
Step 18/31 : WORKDIR "${APP_HOME}"
 ---> Using cache
 ---> de1ba294f559
Step 19/31 : COPY ./.ruby-version "${APP_HOME}"
 ---> Using cache
 ---> 3b8667833aa9
Step 20/31 : COPY ./Gemfile ./Gemfile.lock "${APP_HOME}"
 ---> Using cache
 ---> 85df8f72628b
Step 21/31 : RUN bundle config build.sassc --disable-march-tune-native
 ---> Using cache
 ---> 5f39d55e18bb
Step 22/31 : RUN bundle check || bundle install --jobs 20 --retry 5
 ---> Running in 866c52c7aa4a
https://github.com/thepracticaldev/acts_as_follower.git (at master@06393d3) is
not yet checked out. Run `bundle install` first.
Fetching gem metadata from https://rubygems.org/.......
Fetching https://github.com/thepracticaldev/acts_as_follower.git
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
Gem::Specification#rubyforge_project= called from /opt/apps/bundle/bundler/gems/acts_as_follower-06393d3693a1/acts_as_follower.gemspec:15.
Fetching rake 13.0.1
Installing rake 13.0.1
Fetching concurrent-ruby 1.1.7
Fetching thread_safe 0.3.6
Fetching zeitwerk 2.4.0
Fetching builder 3.2.4
Fetching erubi 1.9.0
Fetching mini_portile2 2.4.0
Fetching crass 1.0.6
Fetching rack 2.2.3
Fetching nio4r 2.5.2
Fetching websocket-extensions 0.1.5
Fetching mimemagic 0.3.5
Fetching mini_mime 1.0.2
Fetching public_suffix 4.0.5
Fetching execjs 2.7.0
Fetching method_source 1.0.0
Fetching thor 0.20.3
Fetching kaminari-core 1.2.1
Fetching ffi 1.13.1
Fetching minitest 5.14.1
Installing zeitwerk 2.4.0
Installing builder 3.2.4
Installing erubi 1.9.0
Installing crass 1.0.6
Installing mini_portile2 2.4.0
Installing websocket-extensions 0.1.5
Installing mini_mime 1.0.2
Installing execjs 2.7.0
Installing thread_safe 0.3.6
Fetching tilt 2.0.10
Installing public_suffix 4.0.5
Installing rack 2.2.3
Installing method_source 1.0.0
Fetching selectize-rails 0.12.6
Installing nio4r 2.5.2 with native extensions
Installing concurrent-ruby 1.1.7
Installing thor 0.20.3
Installing kaminari-core 1.2.1
Fetching errbase 0.2.0
Fetching device_detector 1.0.3
Fetching geocoder 1.6.3
Fetching amazing_print 1.2.1
Fetching ast 2.4.1
Fetching aws-eventstream 1.1.0
Installing mimemagic 0.3.5
Installing minitest 5.14.1
Installing selectize-rails 0.12.6
Installing tilt 2.0.10
Fetching aws_cf_signer 0.1.3
Installing ast 2.4.1
Fetching ice_nine 0.11.2
Fetching bcrypt 3.1.13
Installing geocoder 1.6.3
Installing errbase 0.2.0
Installing aws-eventstream 1.1.0
Fetching benchmark-ips 2.7.2
Installing aws_cf_signer 0.1.3
Installing ffi 1.13.1 with native extensions
Installing amazing_print 1.2.1
Installing device_detector 1.0.3
Installing benchmark-ips 2.7.2
Installing ice_nine 0.11.2
Installing bcrypt 3.1.13 with native extensions
Fetching multipart-post 2.1.1
Fetching coderay 1.1.2
Fetching browser 4.2.0
Fetching html_tokenizer 0.0.7
Fetching bindex 0.8.1
Fetching smart_properties 1.15.0
Fetching chartkick 3.4.0
Fetching debug_inspector 0.0.3
Fetching environs 1.1.0
Fetching brakeman 4.9.0
Fetching msgpack 1.3.3
Using bundler 2.1.4
Installing debug_inspector 0.0.3 with native extensions
Installing multipart-post 2.1.1
Installing html_tokenizer 0.0.7 with native extensions
Installing smart_properties 1.15.0
Installing browser 4.2.0
Installing environs 1.1.0
Installing bindex 0.8.1 with native extensions
Installing chartkick 3.4.0
Installing coderay 1.1.2
Installing msgpack 1.3.3 with native extensions
Installing brakeman 4.9.0
Fetching hashie 4.1.0
Fetching multi_json 1.15.0
Fetching yajl-ruby 1.4.1
Fetching buftok 0.2.0
Fetching uniform_notifier 1.13.0
Installing buftok 0.2.0
Installing uniform_notifier 1.13.0
Installing hashie 4.1.0
Installing multi_json 1.15.0
Installing yajl-ruby 1.4.1 with native extensions
Fetching byebug 11.1.1
Installing byebug 11.1.1 with native extensions
Fetching regexp_parser 1.7.1
Fetching mini_magick 4.10.1
Fetching fastimage 2.1.1
Installing mini_magick 4.10.1
Installing fastimage 2.1.1
Installing regexp_parser 1.7.1
Fetching http-accept 1.7.0
Fetching childprocess 3.0.0
Installing http-accept 1.7.0
Installing childprocess 3.0.0
Fetching unf_ext 0.0.7.7
Fetching mime-types-data 3.2020.0512
Fetching netrc 0.11.0
Fetching coffee-script-source 1.12.2
Fetching connection_pool 2.2.3
Fetching safe_yaml 1.0.5
Fetching dante 0.2.0
Installing netrc 0.11.0
Installing connection_pool 2.2.3
Installing dante 0.2.0
Installing coffee-script-source 1.12.2
Installing safe_yaml 1.0.5
Installing mime-types-data 3.2020.0512
Installing unf_ext 0.0.7.7 with native extensions
Fetching database_cleaner 1.8.5
Installing database_cleaner 1.8.5
Fetching heapy 0.1.4
Fetching mini_histogram 0.1.3
Fetching ruby-statistics 2.1.2
Fetching enumerable-statistics 2.0.1
Fetching orm_adapter 0.5.0
Fetching diff-lcs 1.3
Fetching distribution 0.8.0
Fetching docile 1.3.2
Fetching dogstatsd-ruby 4.8.1
Fetching dotenv 2.7.6
Fetching eventmachine 1.2.5
Fetching http_parser.rb 0.6.0
Fetching emoji_regex 3.0.0
Fetching equalizer 0.0.11
Installing heapy 0.1.4
Installing ruby-statistics 2.1.2
Installing dogstatsd-ruby 4.8.1
Installing docile 1.3.2
Installing orm_adapter 0.5.0
Installing diff-lcs 1.3
Installing dotenv 2.7.6
Installing mini_histogram 0.1.3
Installing emoji_regex 3.0.0
Installing equalizer 0.0.11
Installing enumerable-statistics 2.0.1 with native extensions
Installing http_parser.rb 0.6.0 with native extensions
Installing eventmachine 1.2.5 with native extensions
Installing distribution 0.8.0
ERROR: Service 'rails' failed to build: The command '/bin/sh -c bundle check || bundle install --jobs 20 --retry 5' returned a non-zero code: 137
Enter fullscreen mode Exit fullscreen mode

I posted below I thought maybe it had crashed but that was not the case. I am not seeing any other logs available, please let me know if this is useful.

Collapse
 
akhil profile image
Akhil Naidu

Let me know your VPS specifications; also, if possible, try to use a minimum of 2gb RAM. Any think less than 2GB RAM requires a lot of modifications and reallocation of ram manually.

ex: Even if you have an installation you will get run time errors and time delay errors

Thread Thread
 
techsquidtv profile image
TechSquidTV

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 • Edited

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
Collapse
 
akhil profile image
Akhil Naidu

Solution 01: Add this to your VPS host file: 127.0.0.1 rails
or you can do this
Solution 02: Change your APP_DOMAIN= XX.XX.XX.XX this is your VPS, external IP.