Rails 7.1, ruby-3.3.0
I see one “error” on fly deploy
/rails/bin/docker-entrypoint: line 6: 310 Segmentation fault ./bin/rails db:prepare
but deploy succeeds and then
✖ Machine e123 [app] update failed: smoke checks for e123failed: the app appears to be crashing
What should I look for a problem? App works fine on my Mac.
Full transcript
➜ fly deploy
==> Verifying app config
Validating <path-to-project>/crores7/fly.toml
✓ Configuration is valid
--> Verified app config
==> Building image
Remote builder fly-builder-restless-fire-8242 ready
Remote builder fly-builder-restless-fire-8242 ready
==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
[+] Building 171.0s (25/25) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.53kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 72B 0.0s
=> resolve image config for docker.io/docker/dockerfile:1 0.5s
=> CACHED docker-image://docker.io/docker/dockerfile:1@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> [internal] load metadata for docker.io/library/ruby:3.3.0-slim 0.3s
=> [internal] load .dockerignore 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 79.37kB 0.1s
=> [base 1/3] FROM docker.io/library/ruby:3.3.0-slim@sha256:b8185ef6c7bed9ca3dbf4c7f38afee6c9f93de51c1c0feeb54e753796a8e4416 0.0s
=> => resolve docker.io/library/ruby:3.3.0-slim@sha256:b8185ef6c7bed9ca3dbf4c7f38afee6c9f93de51c1c0feeb54e753796a8e4416 0.0s
=> CACHED [base 2/3] WORKDIR /rails 0.0s
=> CACHED [base 3/3] RUN gem update --system --no-document && gem install -N bundler 0.0s
=> [build 1/9] RUN apt-get update -qq && apt-get install --no-install-recommends -y build-essential curl libpq-dev libvips node-gyp pkg-config pyt 29.4s
=> [build 2/9] RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz -C /tmp/ && /tmp/node-build-master/bin/node-build " 5.3s
=> [build 3/9] COPY --link Gemfile Gemfile.lock ./ 0.0s
=> [build 4/9] RUN bundle install && bundle exec bootsnap precompile --gemfile && rm -rf ~/.bundle/ $BUNDLE_PATH/ruby/*/cache $BUNDLE_PATH/ru 103.4s
=> [build 5/9] COPY --link package.json yarn.lock ./ 0.0s
=> [build 6/9] RUN yarn install --frozen-lockfile 9.4s
=> [build 7/9] COPY --link . . 0.2s
=> [build 8/9] RUN bundle exec bootsnap precompile app/ lib/ 0.8s
=> [build 9/9] RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile 9.5s
=> CACHED [stage-2 1/4] RUN apt-get update -qq && apt-get install --no-install-recommends -y curl imagemagick libvips postgresql-client && rm - 0.0s
=> CACHED [stage-2 2/4] COPY --from=build /usr/local/bundle /usr/local/bundle 0.0s
=> [stage-2 3/4] COPY --from=build /rails /rails 2.6s
=> [stage-2 4/4] RUN useradd rails --create-home --shell /bin/bash && chown -R rails:rails db log storage tmp 3.1s
=> exporting to image 3.0s
=> => exporting layers 3.0s
=> => writing image sha256:9676a521ff3b7399486fc4fb7645082cbecbe3fd37b58df028b95cd4257bb2a6 0.0s
=> => naming to registry.fly.io/croatian-restaurants-la:deployment-01HPSN2F4A9B5ZVMAMFQ7WMF91 0.0s
--> Building image done
==> Pushing image to fly
The push refers to repository [registry.fly.io/croatian-restaurants-la]
c2c44ced48ef: Pushed
b2c5bff5dec4: Pushed
f44d8511aedc: Layer already exists
e7ef9f8b0165: Layer already exists
d6c8010fb486: Layer already exists
80a4cfd2b46a: Layer already exists
9f82f1dd3922: Layer already exists
ac6368d7cdbd: Layer already exists
35e93180feb0: Layer already exists
7218fa1ebb50: Layer already exists
ceb365432eec: Layer already exists
deployment-01HPSN2F4A9B5ZVMAMFQ7WMF91: digest: sha256:aaa9c7cb4dd0f7a2f09c685b8ec31cab12571a217d8962ea9a287f1779602a3d size: 2631
--> Pushing image done
image: registry.fly.io/croatian-restaurants-la:deployment-01HPSN2F4A9B5ZVMAMFQ7WMF91
image size: 717 MB
Watch your deployment at https://fly.io/apps/croatian-restaurants-la/monitoring
-------
Updating existing machines in 'croatian-restaurants-la' with rolling strategy
Smoke checks for e2865659b76548 failed: the app appears to be crashing
Check its logs: here's the last lines below, or run 'fly logs -i e2865659b76548':
7f15afa72000-7f15afa74000 rw-p 001d2000 fe:00 718 /usr/lib/x86_64-linux-gnu/libc.so.6
7f15afa74000-7f15afa83000 rw-p 00000000 00:00 0
7f15afa83000-7f15afa93000 r--p 00000000 fe:00 757 /usr/lib/x86_64-linux-gnu/libm.so.6
7f15afa93000-7f15afb06000 r-xp 00010000 fe:00 757 /usr/lib/x86_64-linux-gnu/libm.so.6
7f15afb06000-7f15afb60000 r--p 00083000 fe:00 757 /usr/lib/x86_64-linux-gnu/libm.so.6
7f15afb60000-7f15afb61000 r--p 000dc000 fe:00 757 /usr/lib/x86_64-linux-gnu/libm.so.6
7f15afb61000-7f15afb62000 rw-p 000dd000 fe:00 757 /usr/lib/x86_64-linux-gnu/libm.so.6
7f15afb62000-7f15afb64000 r--p 00000000 fe:00 727 /usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0
7f15afb64000-7f15afb7a000 r-xp 00002000 fe:00 727 /usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0
7f15afb7a000-7f15afb94000 r--p 00018000 fe:00 727 /usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0
7f15afb94000-7f15afb95000 r--p 00031000 fe:00 727 /usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0
7f15afb95000-7f15afb96000 rw-p 00032000 fe:00 727 /usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0
7f15afb96000-7f15afb9e000 rw-p 00000000 00:00 0
7f15afb9e000-7f15afba9000 r--p 00000000 fe:00 744 /usr/lib/x86_64-linux-gnu/libgmp.so.10.4.1
7f15afba9000-7f15afc06000 r-xp 0000b000 fe:00 744 /usr/lib/x86_64-linux-gnu/libgmp.so.10.4.1
7f15afc06000-7f15afc1d000 r--p 00068000 fe:00 744 /usr/lib/x86_64-linux-gnu/libgmp.so.10.4.1
7f15afc1d000-7f15afc1e000 r--p 0007f000 fe:00 744 /usr/lib/x86_64-linux-gnu/libgmp.so.10.4.1
7f15afc1e000-7f15afc1f000 rw-p 00080000 fe:00 744 /usr/lib/x86_64-linux-gnu/libgmp.so.10.4.1
7f15afc1f000-7f15afc22000 r--p 00000000 fe:00 817 /usr/lib/x86_64-linux-gnu/libz.so.1.2.13
7f15afc22000-7f15afc35000 r-xp 00003000 fe:00 817 /usr/lib/x86_64-linux-gnu/libz.so.1.2.13
7f15afc35000-7f15afc3c000 r--p 00016000 fe:00 817 /usr/lib/x86_64-linux-gnu/libz.so.1.2.13
7f15afc3c000-7f15afc3d000 r--p 0001c000 fe:00 817 /usr/lib/x86_64-linux-gnu/libz.so.1.2.13
7f15afc3d000-7f15afc3e000 rw-p 0001d000 fe:00 817 /usr/lib/x86_64-linux-gnu/libz.so.1.2.13
7f15afc42000-7f15afc8c000 r--p 00000000 fe:00 6449 /usr/local/lib/libruby.so.3.3.0
7f15afc8c000-7f15b0080000 r-xp 0004a000 fe:00 6449 /usr/local/lib/libruby.so.3.3.0
7f15b0080000-7f15b0208000 r--p 0043e000 fe:00 6449 /usr/local/lib/libruby.so.3.3.0
7f15b0208000-7f15b021e000 r--p 005c5000 fe:00 6449 /usr/local/lib/libruby.so.3.3.0
7f15b021e000-7f15b0222000 rw-p 005db000 fe:00 6449 /usr/local/lib/libruby.so.3.3.0
7f15b0222000-7f15b0239000 rw-p 00000000 00:00 0
7f15b0239000-7f15b023a000 r--p 00000000 fe:00 700 /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
7f15b023a000-7f15b025f000 r-xp 00001000 fe:00 700 /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
7f15b025f000-7f15b0269000 r--p 00026000 fe:00 700 /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
7f15b0269000-7f15b026b000 r--p 00030000 fe:00 700 /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
7f15b026b000-7f15b026d000 rw-p 00032000 fe:00 700 /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
7ffc21d8c000-7ffc2258b000 rw-p 00000000 00:00 0 [stack]
7ffc22592000-7ffc22596000 r--p 00000000 00:00 0 [vvar]
7ffc22596000-7ffc22598000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
/rails/bin/docker-entrypoint: line 6: 310 Segmentation fault ./bin/rails db:prepare
INFO Main child exited normally with code: 139
INFO Starting clean up.
WARN hallpass exited, pid: 306, status: signal: 15 (SIGTERM)
2024/02/16 19:11:23 listening on [fdaa:0:8ac5:a7b:104:7e08:a927:2]:22 (DNS: [fdaa::3]:53)
[ 2.346279] reboot: Restarting system
INFO Starting init (commit: bfa79be)...
INFO starting statics vsock server
2024/02/16 19:11:24 listening on [fdaa:0:8ac5:a7b:104:7e08:a927:2]:22 (DNS: [fdaa::3]:53)
-- Control frame information -----------------------------------------------
c:0001 p:0000 s:0003 E:000f60 DUMMY [FINISH]
/usr/local/lib/ruby/site_ruby/3.3.0/rubygems.rb:165:in `<module:Gem>'
-- Machine register context ------------------------------------------------
RIP: 0x00007fd80e5e1664 RBP: 0x00007fd80c9df050 RSP: 0x00007fff1d76f2c8
RAX: 0xffffffffffffffff RBX: 0x00007fd80c9df3e8 RCX: 0x00007fd80c9df3e9
/usr/local/lib/libruby.so.3.3(rb_vm_bugreport) /usr/src/ruby/vm_dump.c:1151
/usr/local/lib/libruby.so.3.3(redblack_insert_aux) /usr/src/ruby/shape.c:247
/usr/local/lib/libruby.so.3.3(redblack_red_p) /usr/src/ruby/shape.c:111
/usr/local/lib/libruby.so.3.3(redblack_cache_ancestors) /usr/src/ruby/shape.c:431
/usr/local/lib/libruby.so.3.3(redblack_cache_ancestors+0x15) [0x7fd80e5e19bd] /usr/src/ruby/shape.c:431
/usr/local/lib/libruby.so.3.3(redblack_cache_ancestors) /usr/src/ruby/shape.c:431
/usr/local/lib/libruby.so.3.3(redblack_cache_ancestors+0x15) [0x7fd80e5e19bd] /usr/src/ruby/shape.c:431
/usr/local/lib/libruby.so.3.3(redblack_cache_ancestors) /usr/src/ruby/shape.c:431
/usr/local/lib/libruby.so.3.3(rb_shape_alloc_new_child+0x8) [0x7fd80e5e2908] /usr/src/ruby/shape.c:473
/usr/local/lib/libruby.so.3.3(rb_class_ivar_set) /usr/src/ruby/variable.c:4236
/usr/local/lib/libruby.so.3.3(vm_exec_core) /usr/src/ruby/insns.def:834
/usr/local/lib/libruby.so.3.3(rb_intern_const+0x0) [0x7fd80e5ddd0f] /usr/src/ruby/ruby.c:1730
[0x5573b1a85151]
-- Other runtime information -----------------------------------------------
11 /usr/local/lib/ruby/site_ruby/3.3.0/rubygems/deprecate.rb
5573b1a84000-5573b1a85000 r--p 00000000 fe:00 6236 /usr/local/bin/ruby
5573b1a87000-5573b1a88000 r--p 00002000 fe:00 6236 /usr/local/bin/ruby
7fd8082a5000-7fd80847b000 r--s 00000000 fe:00 718 /usr/lib/x86_64-linux-gnu/libc.so.6
7fd80aa90000-7fd80aaa0000 rw-p 00000000 00:00 0
7fd80abb0000-7fd80abc0000 rw-p 00000000 00:00 0
7fd80ade2000-7fd80ae83000 rw-p 00000000 00:00 0
7fd80b069000-7fd80b06a000 ---p 00000000 00:00 0
7fd80b06a000-7fd80b10b000 rw-p 00000000 00:00 0
7fd80b2f2000-7fd80b393000 rw-p 00000000 00:00 0
7fd80b394000-7fd80b435000 rw-p 00000000 00:00 0
7fd80b435000-7fd80b436000 ---p 00000000 00:00 0
7fd80b760000-7fd80b801000 rw-p 00000000 00:00 0
7fd80b8a4000-7fd80b945000 rw-p 00000000 00:00 0
7fd80b945000-7fd80b946000 ---p 00000000 00:00 0
7fd80bb2b000-7fd80bb2c000 ---p 00000000 00:00 0
7fd80bc70000-7fd80bd11000 rw-p 00000000 00:00 0
7fd80bef7000-7fd80bef8000 ---p 00000000 00:00 0
7fd80bf99000-7fd80bf9a000 ---p 00000000 00:00 0
7fd80c17f000-7fd80c180000 ---p 00000000 00:00 0
7fd80de52000-7fd80de53000 r-xp 00001000 fe:00 132108 /usr/local/lib/ruby/3.3.0/x86_64-linux/enc/trans/transdb.so
7fd80dfba000-7fd80dfbc000 rw-p 00000000 00:00 0
7fd80dfbf000-7fd80dfd6000 r-xp 00003000 fe:00 740 /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
7fd80e157000-7fd80e1aa000 r--p 0017b000 fe:00 718 /usr/lib/x86_64-linux-gnu/libc.so.6
7fd80e1ae000-7fd80e1b0000 rw-p 001d2000 fe:00 718 /usr/lib/x86_64-linux-gnu/libc.so.6
7fd80e1b0000-7fd80e1bf000 rw-p 00000000 00:00 0
7fd80e2d2000-7fd80e2da000 rw-p 00000000 00:00 0
7fd80e2da000-7fd80e2e5000 r--p 00000000 fe:00 744 /usr/lib/x86_64-linux-gnu/libgmp.so.10.4.1
7fd80e35e000-7fd80e371000 r-xp 00003000 fe:00 817 /usr/lib/x86_64-linux-gnu/libz.so.1.2.13
7fd80e378000-7fd80e379000 r--p 0001c000 fe:00 817 /usr/lib/x86_64-linux-gnu/libz.so.1.2.13
7fd80e37e000-7fd80e3c8000 r--p 00000000 fe:00 6449 /usr/local/lib/libruby.so.3.3.0
7fd80e95a000-7fd80e95e000 rw-p 005db000 fe:00 6449 /usr/local/lib/libruby.so.3.3.0
7fd80e976000-7fd80e99b000 r-xp 00001000 fe:00 700 /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
-------
✖ Machine e2865659b76548 [app] update failed: smoke checks for e2865659b76548 failed: the app appears to be crashing
-------
Checking DNS configuration for croatian-restaurants-la.fly.dev
Error: smoke checks for e2865659b76548 failed: the app appears to be crashing```