Deploy stucks on message about RubyZip 3.0 coming #747
Replies: 19 comments 4 replies
-
I encountered this issue as well. I attempted deployment five times and each time, it got stuck at RubyZip 3.0. However, when I changed the Ruby version in the Dockerfile from 3.3.0 to ARG RUBY_VERSION=3.2.3 and also updated |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply, Dong. Maybe I'll try to "play" with ruby version
if I have the same issue when I have to deploy something next time.
However, this time I've just built a docker image of my project and
deployed it via private docker registry. So I don't think that problem was
related to Dockerfile and ruby version in it. More like the problem is
Kamal itself with ruby 3.3.0, as I had my issue on the same ruby version.
|
Beta Was this translation helpful? Give feedback.
-
I encountered a similar issue, when using Maybe related? Shopify/bootsnap#415 |
Beta Was this translation helpful? Give feedback.
-
Anyone has any solution to this? Encountering this now. Ruby version 3.3.2 |
Beta Was this translation helpful? Give feedback.
-
Same problem here. Any solution? |
Beta Was this translation helpful? Give feedback.
-
I'm experiencing the same issue. I'm on:
|
Beta Was this translation helpful? Give feedback.
-
My kamal deploy was also hanging and reverting to ruby |
Beta Was this translation helpful? Give feedback.
-
Kamal deploy/setup freezes for me everytime in this step:
$ yarn build:css:compile && yarn build:css:prefix
$ sass ./app/assets/stylesheets/application.bootstrap.scss:./app/assets/builds/application.css --no-source-map --load-path=node_modules EditThe problem for me was sass or bootstrap, i changed to --css tailwind and it worked. |
Beta Was this translation helpful? Give feedback.
-
Same problem here when trying to build with Ruby 3.3.x (current latest version 3.3.4 and also has the problem). Once bundler has finished, the build doesn't carry on with the rest of the build process. |
Beta Was this translation helpful? Give feedback.
-
Same problem here. |
Beta Was this translation helpful? Give feedback.
-
Same problem here |
Beta Was this translation helpful? Give feedback.
-
Updated to Docker v4.34.0, and Ruby 3.3.5 and I still have the same problem. If someone can point me in a direction, I can try help debug. I just don't know where to start. Otherwise, what additional information would be helpful? Thanks. |
Beta Was this translation helpful? Give feedback.
-
When I press Control + C to interrupt the process, I get the following dump: /Users/grant/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/sshkit-1.23.1/lib/sshkit/backends/local.rb:57:in |
Beta Was this translation helpful? Give feedback.
-
In my case, changing Ruby versions did not help – however, the comment above about building on Intel for ARM got me to something working: in my case, I'm on an Intel MacPro and building for an Intel/AMD64 VPS. So I added the following to my builder:
local:
arch: amd64 And it worked like a charm :) |
Beta Was this translation helpful? Give feedback.
-
Well done Olivier, that was my problem! I was missing that in my configuration and my builds work when I add this in. Plus, they build faster since it seems the default option builds for ARM and AMD ... Thank you very much!! |
Beta Was this translation helpful? Give feedback.
-
Kamal 2 will default to only building for the architecture specified in builder/arch rather than multiarch by default. This should mean very quick builds when you're building for the same architecture, but also faster builds even when you're doing it cross-architecture. |
Beta Was this translation helpful? Give feedback.
-
This still happens to me on Kamal 2.3.0, developing locally on Mac and deploying to arm64 on Hetzner, with the |
Beta Was this translation helpful? Give feedback.
-
I had the same problem, and don't have it anymore... and wish I could tell you exactly what I did to fix it. 😬 I was using Docker more frequently years ago, and reinstalled it just to try out Kamal. New Rails 8 project, nothing weird in it. I opened up Docker Desktop, stopped all containers and deleted all images and everything. Stopped Docker Desktop and restarted it. Tried building again, and got past the end of the Bundler stage. Last time I used Docker, I had to figure out how the buildx stuff works so I could build a Ruby gem for multiple architectures. So my guess is a bad build image. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello!
I'm new to Rails and I'm tying to deploy Rails project to my VPS via Kamal for the first time. And the process stucks on warning about that RubyZip 3.0 is coming. I got no error messages, just this:
No matter if the command in terminal was "kamal setup" or "kamal deploy", the process stucks right here every time. I've been waiting first time for about an hour, second time for two, but nothing more happened
What can be a reason for that behavior and how can I avoid this situation? What should I pay attention and/or fix to get my project deployed?
Thank you in advance for your help.
Beta Was this translation helpful? Give feedback.
All reactions