I’m trying to get redis working with sidekiq or resque, but keep running into similar problems with I think bundler. In my fly.toml file when I add worker = "bundle exec sidekiq"
under processes
my build fails and spits out the message. It appears to be some kind of issue with trying to redefine constants or something? I really don’t know, but any help would be really appreciated!
WARN: ArgumentError: Trying to register Bundler::GemfileError for status code 4 but Bundler::GemfileError is already registered
Any ideas here?
My toml file is below:
# fly.toml file generated for arelplane on 2022-10-28T18:42:53-04:00
app = "arelplane"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[build]
[build.args]
BUILD_COMMAND = "bin/rails fly:build"
SERVER_COMMAND = "bin/rails fly:server"
[deploy]
release_command = "bin/rails fly:release"
[env]
PORT = "8080"
[experimental]
allowed_public_ports = []
auto_rollback = true
[processes]
web = "bin/rails fly:server"
worker = "bin/bundle exec sidekiq"
[[services]]
http_checks = []
internal_port = 8080
processes = ["web"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
[[statics]]
guest_path = "/app/public"
url_prefix = "/"
and my full build logs are here:
2022-11-02T18:05:58.631 runner[0e5fc57d] ewr [info] Starting instance
2022-11-02T18:05:59.060 runner[0e5fc57d] ewr [info] Configuring virtual machine
2022-11-02T18:05:59.061 runner[0e5fc57d] ewr [info] Pulling container image
2022-11-02T18:06:02.227 runner[0e5fc57d] ewr [info] Unpacking image
2022-11-02T18:06:02.236 runner[0e5fc57d] ewr [info] Preparing kernel init
2022-11-02T18:06:02.524 runner[0e5fc57d] ewr [info] Configuring firecracker
2022-11-02T18:06:02.543 runner[0e5fc57d] ewr [info] Starting virtual machine
2022-11-02T18:06:02.734 app[0e5fc57d] ewr [info] Starting init (commit: ce4cf1b)...
2022-11-02T18:06:02.779 app[0e5fc57d] ewr [info] Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
2022-11-02T18:06:02.779 app[0e5fc57d] ewr [info] no label, UUID=daceb71a-500e-4f8c-88fa-cff7dc824bf4
2022-11-02T18:06:02.782 app[0e5fc57d] ewr [info] Preparing to run: `bin/rails fly:release` as root
2022-11-02T18:06:02.794 app[0e5fc57d] ewr [info] 2022/11/02 18:06:02 listening on [fdaa:0:c93f:a7b:21a1:e5f:c57d:2]:22 (DNS: [fdaa::3]:53)
2022-11-02T18:06:06.792 app[0e5fc57d] ewr [info] Starting clean up.
2022-11-02T18:06:13.943 runner[2b2bdacc] ewr [info] Starting instance
2022-11-02T18:06:14.060 runner[2b2bdacc] ewr [info] Configuring virtual machine
2022-11-02T18:06:14.061 runner[2b2bdacc] ewr [info] Pulling container image
2022-11-02T18:06:14.389 runner[2b2bdacc] ewr [info] Unpacking image
2022-11-02T18:06:14.396 runner[2b2bdacc] ewr [info] Preparing kernel init
2022-11-02T18:06:14.693 runner[2b2bdacc] ewr [info] Configuring firecracker
2022-11-02T18:06:14.735 runner[2b2bdacc] ewr [info] Starting virtual machine
2022-11-02T18:06:14.917 app[2b2bdacc] ewr [info] Starting init (commit: ce4cf1b)...
2022-11-02T18:06:14.936 app[2b2bdacc] ewr [info] Preparing to run: `bin/bundle exec sidekiq` as root
2022-11-02T18:06:14.952 app[2b2bdacc] ewr [info] 2022/11/02 18:06:14 listening on [fdaa:0:c93f:a7b:7c:2b2b:dacc:2]:22 (DNS: [fdaa::3]:53)
2022-11-02T18:06:15.945 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/version.rb:4: warning: already initialized constant Bundler::VERSION
2022-11-02T18:06:15.945 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/version.rb:4: warning: previous definition of VERSION was here
2022-11-02T18:06:15.945 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/constants.rb:4: warning: already initialized constant Bundler::WINDOWS
2022-11-02T18:06:15.945 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/constants.rb:4: warning: previous definition of WINDOWS was here
2022-11-02T18:06:15.945 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/constants.rb:5: warning: already initialized constant Bundler::FREEBSD
2022-11-02T18:06:15.945 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/constants.rb:5: warning: previous definition of FREEBSD was here
2022-11-02T18:06:15.945 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/constants.rb:6: warning: already initialized constant Bundler::NULL
2022-11-02T18:06:15.945 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/constants.rb:6: warning: previous definition of NULL was here
2022-11-02T18:06:15.948 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/rubygems_integration.rb:8: warning: already initialized constant Bundler::RubygemsIntegration::EXT_LOCK
2022-11-02T18:06:15.948 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/rubygems_integration.rb:12: warning: previous definition of EXT_LOCK was here
2022-11-02T18:06:15.948 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/current_ruby.rb:12: warning: already initialized constant Bundler::CurrentRuby::KNOWN_MINOR_VERSIONS
2022-11-02T18:06:15.948 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/current_ruby.rb:12: warning: previous definition of KNOWN_MINOR_VERSIONS was here
2022-11-02T18:06:15.948 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/current_ruby.rb:27: warning: already initialized constant Bundler::CurrentRuby::KNOWN_MAJOR_VERSIONS
2022-11-02T18:06:15.948 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/current_ruby.rb:26: warning: previous definition of KNOWN_MAJOR_VERSIONS was here
2022-11-02T18:06:15.948 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/current_ruby.rb:29: warning: already initialized constant Bundler::CurrentRuby::KNOWN_PLATFORMS
2022-11-02T18:06:15.948 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/current_ruby.rb:28: warning: previous definition of KNOWN_PLATFORMS was here
2022-11-02T18:06:15.956 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:105: warning: already initialized constant Bundler::FileUtils::VERSION
2022-11-02T18:06:15.956 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/vendor/fileutils/lib/fileutils.rb:105: warning: previous definition of VERSION was here
2022-11-02T18:06:15.956 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:1284: warning: already initialized constant Bundler::FileUtils::Entry_::S_IF_DOOR
2022-11-02T18:06:15.956 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/vendor/fileutils/lib/fileutils.rb:1284: warning: previous definition of S_IF_DOOR was here
2022-11-02T18:06:15.957 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:1568: warning: already initialized constant Bundler::FileUtils::Entry_::DIRECTORY_TERM
2022-11-02T18:06:15.957 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/vendor/fileutils/lib/fileutils.rb:1568: warning: previous definition of DIRECTORY_TERM was here
2022-11-02T18:06:15.957 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:1626: warning: already initialized constant Bundler::FileUtils::OPT_TABLE
2022-11-02T18:06:15.957 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/vendor/fileutils/lib/fileutils.rb:1626: warning: previous definition of OPT_TABLE was here
2022-11-02T18:06:15.957 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:1685: warning: already initialized constant Bundler::FileUtils::LOW_METHODS
2022-11-02T18:06:15.957 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/vendor/fileutils/lib/fileutils.rb:1685: warning: previous definition of LOW_METHODS was here
2022-11-02T18:06:15.957 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:1692: warning: already initialized constant Bundler::FileUtils::METHODS
2022-11-02T18:06:15.957 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/vendor/fileutils/lib/fileutils.rb:1692: warning: previous definition of METHODS was here
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] 2022-11-02T18:06:15.959Z pid=520 tid=3ik WARN: ArgumentError: Trying to register Bundler::GemfileError for status code 4 but Bundler::GemfileError is already registered
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] 2022-11-02T18:06:15.959Z pid=520 tid=3ik WARN: /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/errors.rb:9:in `status_code'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/errors.rb:20:in `<class:GemfileError>'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/errors.rb:20:in `<module:Bundler>'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/errors.rb:3:in `<top (required)>'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler.rb:7:in `require_relative'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler.rb:7:in `<top (required)>'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/setup.rb:6:in `require_relative'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/setup.rb:6:in `<top (required)>'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /app/config/boot.rb:3:in `require'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /app/config/boot.rb:3:in `<top (required)>'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /app/config/application.rb:1:in `require_relative'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /app/config/application.rb:1:in `<top (required)>'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /app/config/environment.rb:2:in `require_relative'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /app/config/environment.rb:2:in `<top (required)>'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/sidekiq-6.5.5/lib/sidekiq/cli.rb:274:in `require'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/sidekiq-6.5.5/lib/sidekiq/cli.rb:274:in `boot_application'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/sidekiq-6.5.5/lib/sidekiq/cli.rb:42:in `run'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/sidekiq-6.5.5/bin/sidekiq:31:in `<top (required)>'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /app/vendor/bundle/ruby/3.1.0/bin/sidekiq:25:in `load'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /app/vendor/bundle/ruby/3.1.0/bin/sidekiq:25:in `<top (required)>'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/cli/exec.rb:58:in `load'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/cli/exec.rb:58:in `kernel_load'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/cli/exec.rb:23:in `run'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/cli.rb:484:in `exec'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/cli.rb:31:in `dispatch'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/cli.rb:25:in `start'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/exe/bundle:48:in `block in <top (required)>'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] /usr/local/bundle/gems/bundler-2.3.4/exe/bundle:36:in `<top (required)>'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] bin/bundle:4:in `load'
2022-11-02T18:06:15.959 app[2b2bdacc] ewr [info] bin/bundle:4:in `<main>'
2022-11-02T18:06:16.944 app[2b2bdacc] ewr [info] Starting clean up.
rubys
November 2, 2022, 6:40pm
2
ARG BUNDLER_VERSION=2.3.4
when I type bundler -v
on my machine I get Bundler version 2.3.4
Is there somewhere else it could be set that’s causing a problem?
rubys
November 2, 2022, 7:22pm
4
Try a more recent version of bundle in your Dockerfile: All versions of bundler | RubyGems.org | your community gem host , in fact go for 2.3.25 .
I think what is happening is that there aren’t two versions (Ruby, Bundler), but three (Ruby, Gem, Bundler) that we need to worry about. On my machine, gem -v
returns 3.3.11
, but on a recently deployed server, gem -v
returns 3.3.24
.
My guess is that a recent version of Rubygems needs to be paired with a more recent version of Bundler.
The other alternatives is to downgrade rubygems on the server by adding a command to the Dockerfile: How to install a specific version of RubyGems (and how to downgrade) - makandra dev
Thanks! updated the ARG BUNDLER_VERSION=2.3.25
in the dockerfile, deployed and seem to be getting the same issue. Are there other places I should be setting or updating the bundler version? I updated it on my system to match what I’m doing on production.
I tried launching a new app to see if that fixed the problem since everything I see says I need to run gem update --system, but same issue.
rubys
November 2, 2022, 11:32pm
7
arelplane:
a new app
new as in rails new
or new as in different? I’d love to be able to reproduce this problem so I can debug it.
arelplane:
gem update --system
That should be in your existing Dockerfile
.
Meanwhile, @Brad is working on adding some diagnostics: Check the container environment matches Gemfile.lock by bradgessler · Pull Request #1436 · superfly/flyctl · GitHub - you still will be able to hae full control over the various versions being deployed, and for that matter will be able to remove the checks entirely if you so desire, but if the checks are in place the hope is that the messages will point you in the right direction towards ensuring that the deployed environment matches your development environment.
Oh sorry, a new fly app. I thought maybe there was an old configuration or something that was sticking around from one deploy to another. I also tried a rails new
app as a sanity check, but that worked perfect.
I’d love that as well! I can add you to the repo or give you permission to download from fly?
I’ve been progressively removing things trying to figure out what’s causing this problem. I’ll report back if I figure it out before someone else does.
rubys
November 3, 2022, 12:25am
10
If you have a git repository you are comfortable sharing, the following will produce a file that you can email:
git archive --output ../problem.tgz HEAD
Just commit your changes to git before running the above command.
This file will not include files listed in your .gitignore
, so your master.key, database, logs, etc won’t be included, which is fine.
If you send the file to rubys at fly dot io, I will take a look at it.
rubys
November 3, 2022, 1:37pm
11
I was able to reproduce the problem, and have a fix:
diff --git a/Dockerfile b/Dockerfile
index 044f8dd..9536a57 100755
--- a/Dockerfile
+++ b/Dockerfile
@@ -48,7 +48,9 @@ RUN mkdir -p tmp/pids
RUN curl https://get.volta.sh | bash
ENV VOLTA_HOME /root/.volta
ENV PATH $VOLTA_HOME/bin:/usr/local/bin:$PATH
-RUN volta install node@${NODE_VERSION} yarn@${YARN_VERSION}
+RUN volta install node@${NODE_VERSION} yarn@${YARN_VERSION} && \
+ gem update --system --no-document && \
+ gem install -N bundler -v ${BUNDLER_VERSION}
#######################################################################
@@ -71,9 +73,6 @@ RUN --mount=type=cache,id=dev-apt-cache,sharing=locked,target=/var/cache/apt \
FROM build_deps as gems
-RUN gem update --system --no-document && \
- gem install -N bundler -v ${BUNDLER_VERSION}
-
COPY Gemfile* ./
RUN bundle install && rm -rf vendor/bundle/ruby/*/cache
The problem was that this is a multi-stage build which takes care to ensure that things only needed at build time aren’t included in the final deploy, which unfortunately included the updates to builder itself which are needed.
I’ll update flyctl to include this fix.
Thanks for the help. I’ve made the suggested changes, but am still getting the same build failure:
2022-11-03T15:44:02.212 app[9287b92b] ewr [info] Starting init (commit: 81d5330)...
2022-11-03T15:44:02.235 app[9287b92b] ewr [info] Preparing to run: `bin/bundle exec sidekiq` as root
2022-11-03T15:44:02.246 runner[9287b92b] ewr [info] Virtual machine started successfully
2022-11-03T15:44:02.249 app[9287b92b] ewr [info] 2022/11/03 15:44:02 listening on [fdaa:0:c93f:a7b:21a1:9287:b92b:2]:22 (DNS: [fdaa::3]:53)
2022-11-03T15:44:03.245 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/version.rb:4: warning: already initialized constant Bundler::VERSION
2022-11-03T15:44:03.245 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/version.rb:4: warning: previous definition of VERSION was here
2022-11-03T15:44:03.246 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/constants.rb:4: warning: already initialized constant Bundler::WINDOWS
2022-11-03T15:44:03.246 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/constants.rb:4: warning: previous definition of WINDOWS was here
2022-11-03T15:44:03.246 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/constants.rb:5: warning: already initialized constant Bundler::FREEBSD
2022-11-03T15:44:03.246 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/constants.rb:5: warning: previous definition of FREEBSD was here
2022-11-03T15:44:03.246 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/constants.rb:6: warning: already initialized constant Bundler::NULL
2022-11-03T15:44:03.246 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/constants.rb:6: warning: previous definition of NULL was here
2022-11-03T15:44:03.248 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/rubygems_integration.rb:8: warning: already initialized constant Bundler::RubygemsIntegration::EXT_LOCK
2022-11-03T15:44:03.248 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/rubygems_integration.rb:12: warning: previous definition of EXT_LOCK was here
2022-11-03T15:44:03.249 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/current_ruby.rb:12: warning: already initialized constant Bundler::CurrentRuby::KNOWN_MINOR_VERSIONS
2022-11-03T15:44:03.249 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/current_ruby.rb:12: warning: previous definition of KNOWN_MINOR_VERSIONS was here
2022-11-03T15:44:03.249 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/current_ruby.rb:27: warning: already initialized constant Bundler::CurrentRuby::KNOWN_MAJOR_VERSIONS
2022-11-03T15:44:03.249 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/current_ruby.rb:27: warning: previous definition of KNOWN_MAJOR_VERSIONS was here
2022-11-03T15:44:03.249 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/current_ruby.rb:29: warning: already initialized constant Bundler::CurrentRuby::KNOWN_PLATFORMS
2022-11-03T15:44:03.249 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/current_ruby.rb:29: warning: previous definition of KNOWN_PLATFORMS was here
2022-11-03T15:44:03.258 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:105: warning: already initialized constant Bundler::FileUtils::VERSION
2022-11-03T15:44:03.258 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/vendor/fileutils/lib/fileutils.rb:105: warning: previous definition of VERSION was here
2022-11-03T15:44:03.258 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:1284: warning: already initialized constant Bundler::FileUtils::Entry_::S_IF_DOOR
2022-11-03T15:44:03.258 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/vendor/fileutils/lib/fileutils.rb:1284: warning: previous definition of S_IF_DOOR was here
2022-11-03T15:44:03.258 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:1568: warning: already initialized constant Bundler::FileUtils::Entry_::DIRECTORY_TERM
2022-11-03T15:44:03.258 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/vendor/fileutils/lib/fileutils.rb:1568: warning: previous definition of DIRECTORY_TERM was here
2022-11-03T15:44:03.258 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:1626: warning: already initialized constant Bundler::FileUtils::OPT_TABLE
2022-11-03T15:44:03.258 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/vendor/fileutils/lib/fileutils.rb:1626: warning: previous definition of OPT_TABLE was here
2022-11-03T15:44:03.259 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:1685: warning: already initialized constant Bundler::FileUtils::LOW_METHODS
2022-11-03T15:44:03.259 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/vendor/fileutils/lib/fileutils.rb:1685: warning: previous definition of LOW_METHODS was here
2022-11-03T15:44:03.259 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:1692: warning: already initialized constant Bundler::FileUtils::METHODS
2022-11-03T15:44:03.259 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/vendor/fileutils/lib/fileutils.rb:1692: warning: previous definition of METHODS was here
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] 2022-11-03T15:44:03.266Z pid=520 tid=2p4 WARN: ArgumentError: Trying to register Bundler::GemfileError for status code 4 but Bundler::GemfileError is already registered
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] 2022-11-03T15:44:03.266Z pid=520 tid=2p4 WARN: /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/errors.rb:9:in `status_code'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/errors.rb:20:in `<class:GemfileError>'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/errors.rb:20:in `<module:Bundler>'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/errors.rb:3:in `<top (required)>'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler.rb:7:in `require_relative'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler.rb:7:in `<top (required)>'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/setup.rb:6:in `require_relative'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/site_ruby/3.1.0/bundler/setup.rb:6:in `<top (required)>'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /app/config/boot.rb:3:in `require'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /app/config/boot.rb:3:in `<top (required)>'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /app/config/application.rb:1:in `require_relative'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /app/config/application.rb:1:in `<top (required)>'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /app/config/environment.rb:2:in `require_relative'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /app/config/environment.rb:2:in `<top (required)>'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/sidekiq-6.5.5/lib/sidekiq/cli.rb:274:in `require'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/sidekiq-6.5.5/lib/sidekiq/cli.rb:274:in `boot_application'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/sidekiq-6.5.5/lib/sidekiq/cli.rb:42:in `run'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/sidekiq-6.5.5/bin/sidekiq:31:in `<top (required)>'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /app/vendor/bundle/ruby/3.1.0/bin/sidekiq:25:in `load'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /app/vendor/bundle/ruby/3.1.0/bin/sidekiq:25:in `<top (required)>'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/cli/exec.rb:58:in `load'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/cli/exec.rb:58:in `kernel_load'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/cli/exec.rb:23:in `run'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/cli.rb:486:in `exec'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/cli.rb:31:in `dispatch'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/cli.rb:25:in `start'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/exe/bundle:48:in `block in <top (required)>'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] /usr/local/bundle/gems/bundler-2.3.25/exe/bundle:36:in `<top (required)>'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] bin/bundle:4:in `load'
2022-11-03T15:44:03.266 app[9287b92b] ewr [info] bin/bundle:4:in `<main>'
2022-11-03T15:44:04.243 app[9287b92b] ewr [info] Starting clean up.
2022-11-03T15:44:21.941 runner[14ee3806] ewr [info] Shutting down virtual machine
2022-11-03T15:44:21.969 app[14ee3806] ewr [info] Sending signal SIGINT to main child process w/ PID 520
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] rails aborted!
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] Interrupt:
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/file_utils.rb:54:in `system'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/file_utils.rb:54:in `sh'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/lib/tasks/fly.rake:21:in `block (2 levels) in <main>'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/bugsnag-6.24.2/lib/bugsnag/integrations/rake.rb:20:in `execute'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block in perform'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:18:in `perform'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/command.rb:51:in `invoke'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands.rb:18:in `<main>'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] Tasks: TOP => fly:server
2022-11-03T15:44:21.972 app[14ee3806] ewr [info] (See full trace by running task with --trace)
2022-11-03T15:44:22.446 app[14ee3806] ewr [info] Starting clean up.
Here is my Dockerfile in case I messed something up:
# syntax = docker/dockerfile:experimental
# Dockerfile used to build a deployable image for a Rails application.
# Adjust as required.
#
# Common adjustments you may need to make over time:
# * Modify version numbers for Ruby, Bundler, and other products.
# * Add library packages needed at build time for your gems, node modules.
# * Add deployment packages needed by your application
# * Add (often fake) secrets needed to compile your assets
#######################################################################
# Learn more about the chosen Ruby stack, Fullstaq Ruby, here:
# https://github.com/evilmartians/fullstaq-ruby-docker.
#
# We recommend using the highest patch level for better security and
# performance.
ARG RUBY_VERSION=3.1.2
ARG VARIANT=jemalloc-slim
FROM quay.io/evl.ms/fullstaq-ruby:${RUBY_VERSION}-${VARIANT} as base
LABEL fly_launch_runtime="rails"
ARG NODE_VERSION=18.11.0
ARG YARN_VERSION=1.22.10
ARG BUNDLER_VERSION=2.3.25
ARG RAILS_ENV=production
ENV RAILS_ENV=${RAILS_ENV}
ARG RAILS_MASTER_KEY
ENV RAILS_MASTER_KEY=${RAILS_MASTER_KEY}
ENV RAILS_SERVE_STATIC_FILES true
ENV RAILS_LOG_TO_STDOUT true
ARG BUNDLE_WITHOUT=development:test
ARG BUNDLE_PATH=vendor/bundle
ENV BUNDLE_PATH ${BUNDLE_PATH}
ENV BUNDLE_WITHOUT ${BUNDLE_WITHOUT}
RUN mkdir /app
WORKDIR /app
RUN mkdir -p tmp/pids
RUN curl https://get.volta.sh | bash
ENV VOLTA_HOME /root/.volta
ENV PATH $VOLTA_HOME/bin:/usr/local/bin:$PATH
RUN volta install node@${NODE_VERSION} yarn@${YARN_VERSION} && \
gem update --system --no-document && \
gem install -N bundler -v ${BUNDLER_VERSION}
#######################################################################
# install packages only needed at build time
FROM base as build_deps
ARG BUILD_PACKAGES="git build-essential libpq-dev wget vim curl gzip xz-utils libsqlite3-dev"
ENV BUILD_PACKAGES ${BUILD_PACKAGES}
RUN --mount=type=cache,id=dev-apt-cache,sharing=locked,target=/var/cache/apt \
--mount=type=cache,id=dev-apt-lib,sharing=locked,target=/var/lib/apt \
apt-get update -qq && \
apt-get install --no-install-recommends -y ${BUILD_PACKAGES} \
&& rm -rf /var/lib/apt/lists /var/cache/apt/archives
#######################################################################
# install gems
FROM build_deps as gems
COPY Gemfile* ./
RUN bundle install && rm -rf vendor/bundle/ruby/*/cache
#######################################################################
# install node modules
FROM build_deps as node_modules
COPY package*json ./
RUN npm install
#######################################################################
# install deployment packages
FROM base
ARG DEPLOY_PACKAGES="postgresql-client file vim curl gzip libsqlite3-0"
ENV DEPLOY_PACKAGES=${DEPLOY_PACKAGES}
RUN --mount=type=cache,id=prod-apt-cache,sharing=locked,target=/var/cache/apt \
--mount=type=cache,id=prod-apt-lib,sharing=locked,target=/var/lib/apt \
apt-get update -qq && \
apt-get install --no-install-recommends -y \
${DEPLOY_PACKAGES} \
&& rm -rf /var/lib/apt/lists /var/cache/apt/archives
# copy installed gems
COPY --from=gems /app /app
COPY --from=gems /usr/lib/fullstaq-ruby/versions /usr/lib/fullstaq-ruby/versions
COPY --from=gems /usr/local/bundle /usr/local/bundle
# copy installed node modules
COPY --from=node_modules /app/node_modules /app/node_modules
#######################################################################
# Deploy your application
COPY . .
# Adjust binstubs to run on Linux and set current working directory
RUN chmod +x /app/bin/* && \
sed -i 's/ruby.exe/ruby/' /app/bin/* && \
sed -i '/^#!/aDir.chdir File.expand_path("..", __dir__)' /app/bin/*
# The following enable assets to precompile on the build server. Adjust
# as necessary. If no combination works for you, see:
# https://fly.io/docs/rails/getting-started/existing/#access-to-environment-variables-at-build-time
ENV SECRET_KEY_BASE 1
# ENV AWS_ACCESS_KEY_ID=1
# ENV AWS_SECRET_ACCESS_KEY=1
# Run build task defined in lib/tasks/fly.rake
ARG BUILD_COMMAND="bin/rails fly:build"
RUN ${BUILD_COMMAND}
# Default server start instructions. Generally Overridden by fly.toml.
ENV PORT 8080
ARG SERVER_COMMAND="bin/rails fly:server"
ENV SERVER_COMMAND ${SERVER_COMMAND}
CMD ${SERVER_COMMAND}
and my toml file
# fly.toml file generated for arelplane on 2022-11-02T17:14:05-04:00
app = "arelplane"
kill_signal = "SIGINT"
kill_timeout = 5
[build]
[build.args]
BUILD_COMMAND = "bin/rails fly:build"
SERVER_COMMAND = "bin/rails fly:server"
[deploy]
release_command = "bin/rails fly:release"
[env]
PORT = "8080"
[experimental]
allowed_public_ports = []
auto_rollback = true
[processes]
web = "bin/rails fly:server"
worker = "bin/bundle exec sidekiq"
[[services]]
http_checks = []
internal_port = 8080
processes = ["web"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
[[statics]]
guest_path = "/app/public"
url_prefix = "/"
Hold on. I think todays problem was that I was missing processes = []
at the top of my fly.toml file! Is building now! Thanks for all the help!
FYI. I also had to change my fly.toml to worker = "bundle exec sidekiq"
from worker = "bin/bundle exec sidekiq"