Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kamal deploy freeze on tailwindcss --minify #1238

Open
prodigerati opened this issue Nov 20, 2024 · 5 comments
Open

kamal deploy freeze on tailwindcss --minify #1238

prodigerati opened this issue Nov 20, 2024 · 5 comments

Comments

@prodigerati
Copy link

My first attempt at production release using Rails 8.0.0 -d mysql -j esbuild -c tailwind

Freezes at Rebuilding step below...

 DEBUG [a8b42215]       #20 3.575 Done in 0.80s.
 DEBUG [a8b42215]       #20 4.102 yarn install v1.22.22
 DEBUG [a8b42215]       #20 4.177 [1/4] Resolving packages...
 DEBUG [a8b42215]       #20 4.379 success Already up-to-date.
 DEBUG [a8b42215]       #20 4.387 Done in 0.29s.
 DEBUG [a8b42215]       #20 4.913 yarn run v1.22.22
 DEBUG [a8b42215]       #20 4.959 $ tailwindcss -i ./app/assets/stylesheets/application.tailwind.css -o ./app/assets/builds/application.css --minify
 DEBUG [a8b42215]       #20 5.840 
 DEBUG [a8b42215]       #20 5.840 Rebuilding...

The last time I ran it for over an hour so I did a ctrl + C which resulted in the following output

^C  Finished all in 14562.3 seconds
/Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/sshkit-1.23.2/lib/sshkit/backends/local.rb:57:in `join': Interrupt
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/sshkit-1.23.2/lib/sshkit/backends/local.rb:57:in `block in execute_command'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/3.3.0/open3.rb:540:in `popen_run'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/3.3.0/open3.rb:235:in `popen3'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/sshkit-1.23.2/lib/sshkit/backends/local.rb:44:in `execute_command'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/sshkit-1.23.2/lib/sshkit/backends/abstract.rb:148:in `block in create_command_and_execute'
        from <internal:kernel>:90:in `tap'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/sshkit-1.23.2/lib/sshkit/backends/abstract.rb:148:in `create_command_and_execute'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/sshkit-1.23.2/lib/sshkit/backends/abstract.rb:80:in `execute'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/kamal-2.3.0/lib/kamal/cli/build.rb:55:in `block (4 levels) in push'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/kamal-2.3.0/lib/kamal/cli/build.rb:55:in `chdir'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/kamal-2.3.0/lib/kamal/cli/build.rb:55:in `block (3 levels) in push'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/kamal-2.3.0/lib/kamal/commander.rb:139:in `with_verbosity'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/kamal-2.3.0/lib/kamal/cli/build.rb:54:in `block (2 levels) in push'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/sshkit-1.23.2/lib/sshkit/backends/abstract.rb:31:in `instance_exec'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/sshkit-1.23.2/lib/sshkit/backends/abstract.rb:31:in `run'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/sshkit-1.23.2/lib/sshkit/dsl.rb:10:in `run_locally'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/kamal-2.3.0/lib/kamal/cli/build.rb:34:in `block in push'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/kamal-2.3.0/lib/kamal/cli/base.rb:192:in `with_env'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/kamal-2.3.0/lib/kamal/cli/build.rb:33:in `push'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/kamal-2.3.0/lib/kamal/cli/build.rb:8:in `deliver'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/thor-1.3.2/lib/thor/command.rb:28:in `run'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/thor-1.3.2/lib/thor/invocation.rb:127:in `invoke_command'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/thor-1.3.2/lib/thor.rb:538:in `dispatch'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/thor-1.3.2/lib/thor/invocation.rb:116:in `invoke'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/kamal-2.3.0/lib/kamal/cli/main.rb:32:in `block in deploy'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/kamal-2.3.0/lib/kamal/cli/base.rb:65:in `print_runtime'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/kamal-2.3.0/lib/kamal/cli/main.rb:21:in `deploy'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/thor-1.3.2/lib/thor/command.rb:28:in `run'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/thor-1.3.2/lib/thor/invocation.rb:127:in `invoke_command'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/thor-1.3.2/lib/thor.rb:538:in `dispatch'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/thor-1.3.2/lib/thor/base.rb:584:in `start'
        from /Users/myUser/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/kamal-2.3.0/bin/kamal:9:in `<top (required)>'
        from /Users/myUser/.rbenv/versions/3.3.5/bin/kamal:25:in `load'
        from /Users/myUser/.rbenv/versions/3.3.5/bin/kamal:25:in `<main>'

Please let me know what additional information I can provide that would helpful.
Thank you,

@djmb
Copy link
Collaborator

djmb commented Nov 21, 2024

Seems like it's stuck in the yarn run somewhere? You could add the --verbose flag and see if that highlights anything?

@prodigerati
Copy link
Author

Thank you for the reply. I ran kamal deploy --verbose with the same results. Here is additional output below:

 DEBUG [ea702b1f] Command: docker buildx build --push --platform linux/amd64 --builder kamal-local-docker-container -t user/app_name:0999a35781b9863f81591dfa94871a710c2884b2 -t user/app_name:latest --label service="app_name" --file Dockerfile .
 DEBUG [ea702b1f]       #0 building with "kamal-local-docker-container" instance using docker-container driver
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #1 [internal] load build definition from Dockerfile
 DEBUG [ea702b1f]       #1 transferring dockerfile: 3.03kB done
 DEBUG [ea702b1f]       #1 DONE 0.0s
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #2 resolve image config for docker-image://docker.io/docker/dockerfile:1
 DEBUG [ea702b1f]       #2 ...
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #3 [auth] docker/dockerfile:pull token for registry-1.docker.io
 DEBUG [ea702b1f]       #3 DONE 0.0s
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #2 resolve image config for docker-image://docker.io/docker/dockerfile:1
 DEBUG [ea702b1f]       #2 DONE 0.8s
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #4 docker-image://docker.io/docker/dockerfile:1@sha256:225e5dd094beca432e8c0a1d5e1c465db5f998dca4e439981029b3b81fb39ed5
 DEBUG [ea702b1f]       #4 resolve docker.io/docker/dockerfile:1@sha256:225e5dd094beca432e8c0a1d5e1c465db5f998dca4e439981029b3b81fb39ed5 done
 DEBUG [ea702b1f]       #4 CACHED
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #5 [internal] load metadata for docker.io/library/ruby:3.3.5-slim
 DEBUG [ea702b1f]       #5 ...
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #6 [auth] library/ruby:pull token for registry-1.docker.io
 DEBUG [ea702b1f]       #6 DONE 0.0s
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #5 [internal] load metadata for docker.io/library/ruby:3.3.5-slim
 DEBUG [ea702b1f]       #5 DONE 0.4s
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #7 [internal] load .dockerignore
 DEBUG [ea702b1f]       #7 transferring context: 902B done
 DEBUG [ea702b1f]       #7 DONE 0.0s
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #8 [base 1/3] FROM docker.io/library/ruby:3.3.5-slim@sha256:225a9df53c6f23406f6bc87426ad5bd74b6d99423a8c2ca630f2443dee2447f53
 DEBUG [ea702b1f]       #8 resolve docker.io/library/ruby:3.3.5-slim@sha256:225a9df53c6f23406f6bc87426ad5bd74b6d99423a8c2ca630f2443dee2447f53 done
 DEBUG [ea702b1f]       #8 DONE 0.0s
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #9 [internal] load build context
 DEBUG [ea702b1f]       #9 transferring context: 438.93MB 4.1s done
 DEBUG [ea702b1f]       #9 DONE 4.1s
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #10 [base 3/3] RUN apt-get update -qq &&     apt-get install --no-install-recommends -y curl default-mysql-client libjemalloc2 libvips &&     rm -rf /var/lib/apt/lists /var/cache/apt/archives
 DEBUG [ea702b1f]       #10 CACHED
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #11 [build  1/10] RUN apt-get update -qq &&     apt-get install --no-install-recommends -y build-essential default-libmysqlclient-dev git node-gyp pkg-config python-is-python3 &&     rm -rf /var/lib/apt/lists /var/cache/apt/archives
 DEBUG [ea702b1f]       #11 CACHED
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #12 [base 2/3] WORKDIR /rails
 DEBUG [ea702b1f]       #12 CACHED
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #13 [build  2/10] RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz -C /tmp/ &&     /tmp/node-build-master/bin/node-build "23.1.0" /usr/local/node &&     npm install -g yarn@1.22.22 &&     rm -rf /tmp/node-build-master
 DEBUG [ea702b1f]       #13 CACHED
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #14 [build  3/10] COPY Gemfile Gemfile.lock ./
 DEBUG [ea702b1f]       #14 DONE 0.4s
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #15 [build  4/10] RUN bundle install &&     rm -rf ~/.bundle/ "/usr/local/bundle"/ruby/*/cache "/usr/local/bundle"/ruby/*/bundler/gems/*/.git &&     bundle exec bootsnap precompile --gemfile
 DEBUG [ea702b1f]       #15 0.332 Bundler 2.5.16 is running, but your lockfile was generated with 2.5.22. Installing Bundler 2.5.22 and restarting using that version.
 DEBUG [ea702b1f]       #15 1.223 Fetching gem metadata from https://rubygems.org/.
 DEBUG [ea702b1f]       #15 1.252 Fetching bundler 2.5.22
 DEBUG [ea702b1f]       #15 1.382 Installing bundler 2.5.22
 DEBUG [ea702b1f]       #15 2.336 Fetching gem metadata from https://rubygems.org/.........
 DEBUG [ea702b1f]       #15 3.822 Fetching rake 13.2.1
 DEBUG [ea702b1f]       #15 3.919 Installing rake 13.2.1
 DEBUG [ea702b1f]       #15 3.932 Fetching base64 0.2.0
 DEBUG [ea702b1f]       #15 3.933 Fetching benchmark 0.4.0
 DEBUG [ea702b1f]       #15 3.933 Fetching bigdecimal 3.1.8
 DEBUG [ea702b1f]       #15 3.933 Fetching concurrent-ruby 1.3.4
 DEBUG [ea702b1f]       #15 3.933 Fetching connection_pool 2.4.1
 DEBUG [ea702b1f]       #15 3.933 Fetching drb 2.2.1
 DEBUG [ea702b1f]       #15 3.933 Fetching logger 1.6.1
 DEBUG [ea702b1f]       #15 3.933 Fetching minitest 5.25.1
 DEBUG [ea702b1f]       #15 3.933 Fetching securerandom 0.3.2
 DEBUG [ea702b1f]       #15 3.933 Fetching uri 1.0.2
 DEBUG [ea702b1f]       #15 3.933 Fetching builder 3.3.0
 DEBUG [ea702b1f]       #15 3.933 Fetching erubi 1.13.0
 DEBUG [ea702b1f]       #15 3.941 Installing base64 0.2.0
 DEBUG [ea702b1f]       #15 3.943 Fetching racc 1.8.1
 DEBUG [ea702b1f]       #15 3.948 Installing benchmark 0.4.0
 DEBUG [ea702b1f]       #15 3.951 Fetching crass 1.0.6
 DEBUG [ea702b1f]       #15 3.958 Installing bigdecimal 3.1.8 with native extensions
 DEBUG [ea702b1f]       #15 3.985 Installing connection_pool 2.4.1
 DEBUG [ea702b1f]       #15 3.994 Installing drb 2.2.1
 DEBUG [ea702b1f]       #15 4.040 Fetching rack 3.1.8
 DEBUG [ea702b1f]       #15 4.044 Installing logger 1.6.1
 DEBUG [ea702b1f]       #15 4.052 Installing securerandom 0.3.2
 DEBUG [ea702b1f]       #15 4.069 Installing uri 1.0.2
 DEBUG [ea702b1f]       #15 4.076 Fetching useragent 0.16.10
 DEBUG [ea702b1f]       #15 4.077 Installing minitest 5.25.1
 DEBUG [ea702b1f]       #15 4.082 Installing builder 3.3.0
 DEBUG [ea702b1f]       #15 4.083 Fetching nio4r 2.7.4
 DEBUG [ea702b1f]       #15 4.088 Installing erubi 1.13.0
 DEBUG [ea702b1f]       #15 4.097 Fetching websocket-extensions 0.1.5
 DEBUG [ea702b1f]       #15 4.102 Installing crass 1.0.6
 DEBUG [ea702b1f]       #15 4.117 Installing useragent 0.16.10
 DEBUG [ea702b1f]       #15 4.118 Installing racc 1.8.1 with native extensions
 DEBUG [ea702b1f]       #15 4.126 Installing concurrent-ruby 1.3.4
 DEBUG [ea702b1f]       #15 4.136 Fetching zeitwerk 2.7.1
 DEBUG [ea702b1f]       #15 4.137 Installing websocket-extensions 0.1.5
 DEBUG [ea702b1f]       #15 4.155 Installing rack 3.1.8
 DEBUG [ea702b1f]       #15 4.169 Fetching timeout 0.4.2
 DEBUG [ea702b1f]       #15 4.172 Fetching marcel 1.0.4
 DEBUG [ea702b1f]       #15 4.175 Installing zeitwerk 2.7.1
 DEBUG [ea702b1f]       #15 4.178 Fetching mini_mime 1.1.5
 DEBUG [ea702b1f]       #15 4.179 Installing nio4r 2.7.4 with native extensions
 DEBUG [ea702b1f]       #15 4.192 Installing timeout 0.4.2
 DEBUG [ea702b1f]       #15 4.210 Fetching date 3.4.0
 DEBUG [ea702b1f]       #15 4.213 Installing marcel 1.0.4
 DEBUG [ea702b1f]       #15 4.216 Fetching stringio 3.1.2
 DEBUG [ea702b1f]       #15 4.217 Installing mini_mime 1.1.5
 DEBUG [ea702b1f]       #15 4.228 Fetching io-console 0.7.2
 DEBUG [ea702b1f]       #15 4.239 Installing stringio 3.1.2 with native extensions
 DEBUG [ea702b1f]       #15 4.242 Fetching thor 1.3.2
 DEBUG [ea702b1f]       #15 4.251 Installing date 3.4.0 with native extensions
 DEBUG [ea702b1f]       #15 4.263 Fetching public_suffix 6.0.1
 DEBUG [ea702b1f]       #15 4.264 Installing io-console 0.7.2 with native extensions
 DEBUG [ea702b1f]       #15 4.272 Fetching ast 2.4.2
 DEBUG [ea702b1f]       #15 4.284 Installing thor 1.3.2
 DEBUG [ea702b1f]       #15 4.302 Installing ast 2.4.2
 DEBUG [ea702b1f]       #15 4.304 Fetching bcrypt_pbkdf 1.1.1
 DEBUG [ea702b1f]       #15 4.328 Installing public_suffix 6.0.1
 DEBUG [ea702b1f]       #15 4.330 Installing bcrypt_pbkdf 1.1.1 with native extensions
 DEBUG [ea702b1f]       #15 4.341 Fetching msgpack 1.7.5
 DEBUG [ea702b1f]       #15 4.398 Installing msgpack 1.7.5 with native extensions
 DEBUG [ea702b1f]       #15 4.401 Fetching matrix 0.4.2
 DEBUG [ea702b1f]       #15 4.435 Installing matrix 0.4.2
 DEBUG [ea702b1f]       #15 4.453 Fetching regexp_parser 2.9.2
 DEBUG [ea702b1f]       #15 4.488 Fetching csv 3.3.0
 DEBUG [ea702b1f]       #15 4.514 Fetching dotenv 3.1.4
 DEBUG [ea702b1f]       #15 4.519 Installing regexp_parser 2.9.2
 DEBUG [ea702b1f]       #15 4.559 Installing dotenv 3.1.4
 DEBUG [ea702b1f]       #15 4.566 Installing csv 3.3.0
 DEBUG [ea702b1f]       #15 4.601 Fetching ed25519 1.3.0
 DEBUG [ea702b1f]       #15 4.668 Fetching ffi 1.17.0 (x86_64-linux-gnu)
 DEBUG [ea702b1f]       #15 4.670 Installing ed25519 1.3.0 with native extensions
 DEBUG [ea702b1f]       #15 4.709 Fetching raabro 1.4.0
 DEBUG [ea702b1f]       #15 4.727 Installing raabro 1.4.0
 DEBUG [ea702b1f]       #15 4.741 Fetching mini_magick 4.13.2
 DEBUG [ea702b1f]       #15 4.750 Fetching json 2.8.2
 DEBUG [ea702b1f]       #15 4.763 Installing mini_magick 4.13.2
 DEBUG [ea702b1f]       #15 4.790 Installing json 2.8.2 with native extensions
 DEBUG [ea702b1f]       #15 4.833 Fetching net-ssh 7.3.0
 DEBUG [ea702b1f]       #15 4.842 Installing ffi 1.17.0 (x86_64-linux-gnu)
 DEBUG [ea702b1f]       #15 4.895 Installing net-ssh 7.3.0
 DEBUG [ea702b1f]       #15 5.008 Fetching ostruct 0.6.1
 DEBUG [ea702b1f]       #15 5.028 Fetching language_server-protocol 3.17.0.3
 DEBUG [ea702b1f]       #15 5.030 Installing ostruct 0.6.1
 DEBUG [ea702b1f]       #15 5.034 Fetching mysql2 0.5.6
 DEBUG [ea702b1f]       #15 5.046 Installing language_server-protocol 3.17.0.3
 DEBUG [ea702b1f]       #15 5.072 Installing mysql2 0.5.6 with native extensions
 DEBUG [ea702b1f]       #15 5.189 Fetching parallel 1.26.3
 DEBUG [ea702b1f]       #15 5.204 Installing parallel 1.26.3
 DEBUG [ea702b1f]       #15 5.206 Fetching pdf-core 0.10.0
 DEBUG [ea702b1f]       #15 5.222 Installing pdf-core 0.10.0
 DEBUG [ea702b1f]       #15 5.228 Fetching rainbow 3.1.1
 DEBUG [ea702b1f]       #15 5.240 Installing rainbow 3.1.1
 DEBUG [ea702b1f]       #15 5.249 Fetching rexml 3.3.9
 DEBUG [ea702b1f]       #15 5.282 Installing rexml 3.3.9
 DEBUG [ea702b1f]       #15 5.294 Fetching ruby-progressbar 1.13.0
 DEBUG [ea702b1f]       #15 5.307 Installing ruby-progressbar 1.13.0
 DEBUG [ea702b1f]       #15 5.312 Fetching unicode-display_width 2.6.0
 DEBUG [ea702b1f]       #15 5.327 Installing unicode-display_width 2.6.0
 DEBUG [ea702b1f]       #15 5.334 Fetching rubyzip 2.3.2
 DEBUG [ea702b1f]       #15 5.351 Installing rubyzip 2.3.2
 DEBUG [ea702b1f]       #15 5.369 Fetching websocket 1.2.11
 DEBUG [ea702b1f]       #15 5.384 Installing websocket 1.2.11
 DEBUG [ea702b1f]       #15 5.394 Fetching thruster 0.1.9 (x86_64-linux)
 DEBUG [ea702b1f]       #15 5.684 Installing thruster 0.1.9 (x86_64-linux)
 DEBUG [ea702b1f]       #15 5.784 Fetching websocket-driver 0.7.6
 DEBUG [ea702b1f]       #15 5.805 Installing websocket-driver 0.7.6 with native extensions
 DEBUG [ea702b1f]       #15 6.480 Fetching net-protocol 0.2.2
 DEBUG [ea702b1f]       #15 6.494 Installing net-protocol 0.2.2
 DEBUG [ea702b1f]       #15 6.500 Fetching rack-session 2.0.0
 DEBUG [ea702b1f]       #15 6.517 Installing rack-session 2.0.0
 DEBUG [ea702b1f]       #15 6.522 Fetching rack-test 2.1.0
 DEBUG [ea702b1f]       #15 6.535 Installing rack-test 2.1.0
 DEBUG [ea702b1f]       #15 6.540 Fetching rackup 2.2.1
 DEBUG [ea702b1f]       #15 6.553 Installing rackup 2.2.1
 DEBUG [ea702b1f]       #15 6.556 Fetching addressable 2.8.7
 DEBUG [ea702b1f]       #15 6.574 Installing addressable 2.8.7
 DEBUG [ea702b1f]       #15 6.580 Fetching i18n 1.14.6
 DEBUG [ea702b1f]       #15 6.594 Installing i18n 1.14.6
 DEBUG [ea702b1f]       #15 6.603 Fetching tzinfo 2.0.6
 DEBUG [ea702b1f]       #15 6.626 Installing tzinfo 2.0.6
 DEBUG [ea702b1f]       #15 6.638 Fetching net-scp 4.0.0
 DEBUG [ea702b1f]       #15 6.665 Installing net-scp 4.0.0
 DEBUG [ea702b1f]       #15 6.670 Fetching net-sftp 4.0.0
 DEBUG [ea702b1f]       #15 6.691 Installing net-sftp 4.0.0
 DEBUG [ea702b1f]       #15 6.698 Fetching ruby-vips 2.2.2
 DEBUG [ea702b1f]       #15 6.713 Installing ruby-vips 2.2.2
 DEBUG [ea702b1f]       #15 6.728 Fetching selenium-webdriver 4.26.0
 DEBUG [ea702b1f]       #15 6.971 Fetching nokogiri 1.16.7 (x86_64-linux)
 DEBUG [ea702b1f]       #15 7.501 Fetching brakeman 6.2.2
 DEBUG [ea702b1f]       #15 7.628 Installing selenium-webdriver 4.26.0
 DEBUG [ea702b1f]       #15 7.674 Installing nokogiri 1.16.7 (x86_64-linux)
 DEBUG [ea702b1f]       #15 7.863 Installing brakeman 6.2.2
 DEBUG [ea702b1f]       #15 8.643 Fetching parser 3.3.6.0
 DEBUG [ea702b1f]       #15 8.891 Installing parser 3.3.6.0
 DEBUG [ea702b1f]       #15 8.987 Fetching net-pop 0.1.2
 DEBUG [ea702b1f]       #15 9.005 Installing net-pop 0.1.2
 DEBUG [ea702b1f]       #15 9.021 Fetching net-smtp 0.5.0
 DEBUG [ea702b1f]       #15 9.027 Fetching et-orbi 1.2.11
 DEBUG [ea702b1f]       #15 9.037 Installing net-smtp 0.5.0
 DEBUG [ea702b1f]       #15 9.051 Installing et-orbi 1.2.11
 DEBUG [ea702b1f]       #15 9.071 Fetching sshkit 1.23.2
 DEBUG [ea702b1f]       #15 9.098 Fetching image_processing 1.13.0
 DEBUG [ea702b1f]       #15 9.122 Installing image_processing 1.13.0
 DEBUG [ea702b1f]       #15 9.137 Installing sshkit 1.23.2
 DEBUG [ea702b1f]       #15 9.161 Fetching psych 5.2.0
 DEBUG [ea702b1f]       #15 9.189 Installing psych 5.2.0 with native extensions
 DEBUG [ea702b1f]       #15 9.348 Fetching loofah 2.23.1
 DEBUG [ea702b1f]       #15 9.376 Fetching xpath 3.2.0
 DEBUG [ea702b1f]       #15 9.377 Installing loofah 2.23.1
 DEBUG [ea702b1f]       #15 9.389 Fetching fugit 1.11.1
 DEBUG [ea702b1f]       #15 9.396 Fetching rubocop-ast 1.36.1
 DEBUG [ea702b1f]       #15 9.409 Installing xpath 3.2.0
 DEBUG [ea702b1f]       #15 9.417 Installing fugit 1.11.1
 DEBUG [ea702b1f]       #15 9.440 Installing rubocop-ast 1.36.1
 DEBUG [ea702b1f]       #15 9.449 Fetching rails-html-sanitizer 1.6.0
 DEBUG [ea702b1f]       #15 9.464 Fetching capybara 3.40.0
 DEBUG [ea702b1f]       #15 9.474 Installing rails-html-sanitizer 1.6.0
 DEBUG [ea702b1f]       #15 9.541 Installing capybara 3.40.0
 DEBUG [ea702b1f]       #15 14.25 Fetching reline 0.5.11
 DEBUG [ea702b1f]       #15 14.29 Installing reline 0.5.11
 DEBUG [ea702b1f]       #15 14.72 Fetching puma 6.4.3
 DEBUG [ea702b1f]       #15 14.74 Installing puma 6.4.3 with native extensions
 DEBUG [ea702b1f]       #15 15.68 Fetching rubocop 1.68.0
 DEBUG [ea702b1f]       #15 15.73 Installing rubocop 1.68.0
 DEBUG [ea702b1f]       #15 15.88 Fetching rubocop-minitest 0.36.0
 DEBUG [ea702b1f]       #15 15.88 Fetching rubocop-performance 1.23.0
 DEBUG [ea702b1f]       #15 15.89 Installing rubocop-minitest 0.36.0
 DEBUG [ea702b1f]       #15 15.90 Installing rubocop-performance 1.23.0
 DEBUG [ea702b1f]       #15 16.19 Fetching rdoc 6.8.1
 DEBUG [ea702b1f]       #15 16.22 Installing rdoc 6.8.1
 DEBUG [ea702b1f]       #15 16.25 Fetching irb 1.14.1
 DEBUG [ea702b1f]       #15 16.27 Installing irb 1.14.1
 DEBUG [ea702b1f]       #15 16.28 Fetching debug 1.9.2
 DEBUG [ea702b1f]       #15 16.29 Installing debug 1.9.2 with native extensions
 DEBUG [ea702b1f]       #15 16.57 Fetching net-imap 0.5.1
 DEBUG [ea702b1f]       #15 16.59 Installing net-imap 0.5.1
 DEBUG [ea702b1f]       #15 16.60 Fetching mail 2.8.1
 DEBUG [ea702b1f]       #15 16.62 Installing mail 2.8.1
 DEBUG [ea702b1f]       #15 22.85 Fetching bootsnap 1.18.4
 DEBUG [ea702b1f]       #15 22.89 Installing bootsnap 1.18.4 with native extensions
 DEBUG [ea702b1f]       #15 28.99 Fetching activesupport 8.0.0
 DEBUG [ea702b1f]       #15 28.99 Fetching ttfunk 1.8.0
 DEBUG [ea702b1f]       #15 29.04 Installing activesupport 8.0.0
 DEBUG [ea702b1f]       #15 29.04 Installing ttfunk 1.8.0
 DEBUG [ea702b1f]       #15 29.09 Fetching prawn 2.5.0
 DEBUG [ea702b1f]       #15 29.12 Installing prawn 2.5.0
 DEBUG [ea702b1f]       #15 29.15 Fetching rails-dom-testing 2.2.0
 DEBUG [ea702b1f]       #15 29.15 Fetching globalid 1.2.1
 DEBUG [ea702b1f]       #15 29.15 Fetching activemodel 8.0.0
 DEBUG [ea702b1f]       #15 29.15 Fetching kamal 2.3.0
 DEBUG [ea702b1f]       #15 29.15 Fetching rubocop-rails 2.27.0
 DEBUG [ea702b1f]       #15 29.16 Fetching prawn-table 0.2.2
 DEBUG [ea702b1f]       #15 29.16 Installing rails-dom-testing 2.2.0
 DEBUG [ea702b1f]       #15 29.16 Fetching actionview 8.0.0
 DEBUG [ea702b1f]       #15 29.17 Installing globalid 1.2.1
 DEBUG [ea702b1f]       #15 29.17 Fetching activejob 8.0.0
 DEBUG [ea702b1f]       #15 29.18 Installing activemodel 8.0.0
 DEBUG [ea702b1f]       #15 29.19 Installing kamal 2.3.0
 DEBUG [ea702b1f]       #15 29.22 Installing rubocop-rails 2.27.0
 DEBUG [ea702b1f]       #15 29.22 Installing prawn-table 0.2.2
 DEBUG [ea702b1f]       #15 29.23 Installing activejob 8.0.0
 DEBUG [ea702b1f]       #15 29.26 Installing actionview 8.0.0
 DEBUG [ea702b1f]       #15 29.31 Fetching activerecord 8.0.0
 DEBUG [ea702b1f]       #15 29.40 Installing activerecord 8.0.0
 DEBUG [ea702b1f]       #15 29.42 Fetching rubocop-rails-omakase 1.0.0
 DEBUG [ea702b1f]       #15 29.43 Fetching actionpack 8.0.0
 DEBUG [ea702b1f]       #15 29.43 Fetching jbuilder 2.13.0
 DEBUG [ea702b1f]       #15 29.43 Installing rubocop-rails-omakase 1.0.0
 DEBUG [ea702b1f]       #15 29.46 Installing jbuilder 2.13.0
 DEBUG [ea702b1f]       #15 29.47 Installing actionpack 8.0.0
 DEBUG [ea702b1f]       #15 29.58 Fetching actioncable 8.0.0
 DEBUG [ea702b1f]       #15 29.58 Fetching actionmailer 8.0.0
 DEBUG [ea702b1f]       #15 29.58 Fetching railties 8.0.0
 DEBUG [ea702b1f]       #15 29.59 Installing actioncable 8.0.0
 DEBUG [ea702b1f]       #15 29.60 Installing actionmailer 8.0.0
 DEBUG [ea702b1f]       #15 29.63 Fetching activestorage 8.0.0
 DEBUG [ea702b1f]       #15 29.64 Installing railties 8.0.0
 DEBUG [ea702b1f]       #15 29.65 Installing activestorage 8.0.0
 DEBUG [ea702b1f]       #15 29.71 Fetching actionmailbox 8.0.0
 DEBUG [ea702b1f]       #15 29.71 Fetching actiontext 8.0.0
 DEBUG [ea702b1f]       #15 29.72 Installing actionmailbox 8.0.0
 DEBUG [ea702b1f]       #15 29.75 Installing actiontext 8.0.0
 DEBUG [ea702b1f]       #15 29.81 Fetching rails 8.0.0
 DEBUG [ea702b1f]       #15 29.81 Fetching cssbundling-rails 1.4.1
 DEBUG [ea702b1f]       #15 29.81 Fetching jsbundling-rails 1.3.1
 DEBUG [ea702b1f]       #15 29.81 Fetching propshaft 1.1.0
 DEBUG [ea702b1f]       #15 29.81 Fetching solid_cable 3.0.2
 DEBUG [ea702b1f]       #15 29.81 Fetching solid_cache 1.0.6
 DEBUG [ea702b1f]       #15 29.81 Fetching solid_queue 1.0.2
 DEBUG [ea702b1f]       #15 29.81 Fetching stimulus-rails 1.3.4
 DEBUG [ea702b1f]       #15 29.81 Fetching turbo-rails 2.0.11
 DEBUG [ea702b1f]       #15 29.82 Installing rails 8.0.0
 DEBUG [ea702b1f]       #15 29.82 Fetching activestorage-validator 0.4.0
 DEBUG [ea702b1f]       #15 29.83 Installing cssbundling-rails 1.4.1
 DEBUG [ea702b1f]       #15 29.83 Installing jsbundling-rails 1.3.1
 DEBUG [ea702b1f]       #15 29.84 Installing propshaft 1.1.0
 DEBUG [ea702b1f]       #15 29.85 Installing solid_cable 3.0.2
 DEBUG [ea702b1f]       #15 29.85 Installing solid_cache 1.0.6
 DEBUG [ea702b1f]       #15 29.86 Installing solid_queue 1.0.2
 DEBUG [ea702b1f]       #15 29.93 Installing stimulus-rails 1.3.4
 DEBUG [ea702b1f]       #15 29.94 Installing activestorage-validator 0.4.0
 DEBUG [ea702b1f]       #15 29.95 Installing turbo-rails 2.0.11
 DEBUG [ea702b1f]       #15 29.97 Bundle complete! 30 Gemfile dependencies, 123 gems now installed.
 DEBUG [ea702b1f]       #15 29.97 Gems in the group 'development' were not installed.
 DEBUG [ea702b1f]       #15 29.97 Bundled gems are installed into `/usr/local/bundle`
 DEBUG [ea702b1f]       #15 29.97 Post-install message from i18n:
 DEBUG [ea702b1f]       #15 29.97 PSA: I18n will be dropping support for Ruby < 3.2 in the next major release (April 2025), due to Ruby's end of life for 3.1 and below (https://endoflife.date/ruby). Please upgrade to Ruby 3.2 or newer by April 2025 to continue using future versions of this gem.
 DEBUG [ea702b1f]       #15 29.97 Post-install message from rubyzip:
 DEBUG [ea702b1f]       #15 29.97 RubyZip 3.0 is coming!
 DEBUG [ea702b1f]       #15 29.97 **********************
 DEBUG [ea702b1f]       #15 29.97 
 DEBUG [ea702b1f]       #15 29.97 The public API of some Rubyzip classes has been modernized to use named
 DEBUG [ea702b1f]       #15 29.97 parameters for optional arguments. Please check your usage of the
 DEBUG [ea702b1f]       #15 29.97 following classes:
 DEBUG [ea702b1f]       #15 29.97   * `Zip::File`
 DEBUG [ea702b1f]       #15 29.97   * `Zip::Entry`
 DEBUG [ea702b1f]       #15 29.97   * `Zip::InputStream`
 DEBUG [ea702b1f]       #15 29.97   * `Zip::OutputStream`
 DEBUG [ea702b1f]       #15 29.97 
 DEBUG [ea702b1f]       #15 29.97 Please ensure that your Gemfiles and .gemspecs are suitably restrictive
 DEBUG [ea702b1f]       #15 29.97 to avoid an unexpected breakage when 3.0 is released (e.g. ~> 2.3.0).
 DEBUG [ea702b1f]       #15 29.97 See https://github.com/rubyzip/rubyzip for details. The Changelog also
 DEBUG [ea702b1f]       #15 29.97 lists other enhancements and bugfixes that have been implemented since
 DEBUG [ea702b1f]       #15 29.97 version 2.3.0.
 DEBUG [ea702b1f]       #15 29.97 Post-install message from solid_cache:
 DEBUG [ea702b1f]       #15 29.97 Upgrading from Solid Cache v0.3 or earlier? There are new database migrations in v0.4.
 DEBUG [ea702b1f]       #15 29.97 See https://github.com/rails/solid_cache/blob/main/upgrading_to_version_0.4.x.md for upgrade instructions.
 DEBUG [ea702b1f]       #15 29.97 Post-install message from solid_queue:
 DEBUG [ea702b1f]       #15 29.97 Upgrading to Solid Queue 0.9.0? There are some breaking changes about how recurring tasks are configured.
 DEBUG [ea702b1f]       #15 29.97 
 DEBUG [ea702b1f]       #15 29.97 Upgrading to Solid Queue 0.8.0 from < 0.6.0? You need to upgrade to 0.6.0 first.
 DEBUG [ea702b1f]       #15 29.97 
 DEBUG [ea702b1f]       #15 29.97 Upgrading to Solid Queue 0.4.x, 0.5.x, 0.6.x or 0.7.x? There are some breaking changes about how Solid Queue is started,
 DEBUG [ea702b1f]       #15 29.97 configuration and new migrations.
 DEBUG [ea702b1f]       #15 29.97 
 DEBUG [ea702b1f]       #15 29.97 --> Check https://github.com/rails/solid_queue/blob/main/UPGRADING.md
 DEBUG [ea702b1f]       #15 29.97 for upgrade instructions.
 DEBUG [ea702b1f]       #15 DONE 31.5s
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #16 [build  5/10] COPY package.json yarn.lock ./
 DEBUG [ea702b1f]       #16 DONE 0.1s
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #17 [build  6/10] RUN yarn install --frozen-lockfile
 DEBUG [ea702b1f]       #17 0.682 yarn install v1.22.22
 DEBUG [ea702b1f]       #17 0.747 [1/4] Resolving packages...
 DEBUG [ea702b1f]       #17 0.903 [2/4] Fetching packages...
 DEBUG [ea702b1f]       #17 7.716 warning chart.js@4.4.6: The engine "pnpm" appears to be invalid.
 DEBUG [ea702b1f]       #17 7.719 [3/4] Linking dependencies...
 DEBUG [ea702b1f]       #17 7.724 warning " > @yaireo/tagify@4.32.0" has unmet peer dependency "prop-types@>15.5.7".
 DEBUG [ea702b1f]       #17 7.724 warning " > @yaireo/tagify@4.32.0" has unmet peer dependency "react@*".
 DEBUG [ea702b1f]       #17 7.724 warning " > @yaireo/tagify@4.32.0" has unmet peer dependency "react-dom@*".
 DEBUG [ea702b1f]       #17 7.724 warning " > babel-loader@9.2.1" has unmet peer dependency "webpack@>=5".
 DEBUG [ea702b1f]       #17 9.749 [4/4] Building fresh packages...
 DEBUG [ea702b1f]       #17 10.43 Done in 9.77s.
 DEBUG [ea702b1f]       #17 DONE 10.7s
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #18 [build  7/10] COPY . .
 DEBUG [ea702b1f]       #18 DONE 1.0s
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #19 [build  8/10] RUN bundle exec bootsnap precompile app/ lib/
 DEBUG [ea702b1f]       #19 DONE 0.7s
 DEBUG [ea702b1f] 
 DEBUG [ea702b1f]       #20 [build  9/10] RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
 DEBUG [ea702b1f]       #20 1.640 yarn install v1.22.22
 DEBUG [ea702b1f]       #20 1.719 [1/4] Resolving packages...
 DEBUG [ea702b1f]       #20 1.899 success Already up-to-date.
 DEBUG [ea702b1f]       #20 1.906 Done in 0.28s.
 DEBUG [ea702b1f]       #20 2.418 yarn run v1.22.22
 DEBUG [ea702b1f]       #20 2.464 $ esbuild app/javascript/*.* --bundle --sourcemap --format=esm --outdir=app/assets/builds --public-path=/assets
 DEBUG [ea702b1f]       #20 3.086 
 DEBUG [ea702b1f]       #20 3.086   app/assets/builds/apps.js               1.2mb ⚠️
 DEBUG [ea702b1f]       #20 3.086   app/assets/builds/scripts.js            1.1mb ⚠️
 DEBUG [ea702b1f]       #20 3.086   app/assets/builds/charts.js           371.1kb
 DEBUG [ea702b1f]       #20 3.086   app/assets/builds/application.js      265.7kb
 DEBUG [ea702b1f]       #20 3.086   app/assets/builds/apps.js.map           1.8mb
 DEBUG [ea702b1f]       #20 3.086   app/assets/builds/scripts.js.map        1.6mb
 DEBUG [ea702b1f]       #20 3.086   app/assets/builds/charts.js.map       569.4kb
 DEBUG [ea702b1f]       #20 3.086   app/assets/builds/application.js.map  488.0kb
 DEBUG [ea702b1f]       #20 3.086 
 DEBUG [ea702b1f]       #20 3.111 Done in 0.70s.
 DEBUG [ea702b1f]       #20 3.623 yarn install v1.22.22
 DEBUG [ea702b1f]       #20 3.697 [1/4] Resolving packages...
 DEBUG [ea702b1f]       #20 3.871 success Already up-to-date.
 DEBUG [ea702b1f]       #20 3.878 Done in 0.27s.
 DEBUG [ea702b1f]       #20 4.380 yarn run v1.22.22
 DEBUG [ea702b1f]       #20 4.426 $ tailwindcss -i ./app/assets/stylesheets/application.tailwind.css -o ./app/assets/builds/application.css --minify
 DEBUG [ea702b1f]       #20 5.280 
 DEBUG [ea702b1f]       #20 5.280 Rebuilding...
^C  Finished all in 1437.9 seconds

@djmb
Copy link
Collaborator

djmb commented Nov 21, 2024

Oh sorry, I meant add --verbose to the yarn run command. Though that's triggered by the ./bin/rails assets:precompile so I'll not sure where you would add it.

@prodigerati
Copy link
Author

This continues to happen when trying to deploy with kamal for production.

In development I can run

yarn build:css
yarn run v1.22.22
$ tailwindcss -i ./app/assets/stylesheets/application.tailwind.css -o ./app/assets/builds/application.css --minify

Rebuilding...

Done in 447ms.
✨  Done in 1.00s.

and

yarn build    
yarn run v1.22.22
$ esbuild app/javascript/*.* --bundle --sourcemap --format=esm --outdir=app/assets/builds --public-path=/assets

  app/assets/builds/application.js                   854.7kb
  app/assets/builds/jquery.dataTables.min.js         365.6kb
  app/assets/builds/jquery.js                        240.5kb
  app/assets/builds/app.min.js                       155.6kb
  app/assets/builds/vendors.min.js                   153.6kb
  app/assets/builds/dataTables.custom-ui.min.js        4.4kb
  app/assets/builds/application.js.map                 1.6mb
  app/assets/builds/jquery.dataTables.min.js.map     655.6kb
  app/assets/builds/jquery.js.map                    460.6kb
  app/assets/builds/vendors.min.js.map               235.4kb
  app/assets/builds/app.min.js.map                   189.9kb
  app/assets/builds/dataTables.custom-ui.min.js.map    7.0kb

✨  Done in 0.27s.

However when I run kamal deploy

 DEBUG [9d21dfdc]       #20 2.556 yarn install v1.22.22
 DEBUG [9d21dfdc]       #20 2.655 [1/4] Resolving packages...
 DEBUG [9d21dfdc]       #20 2.786 success Already up-to-date.
 DEBUG [9d21dfdc]       #20 2.792 Done in 0.25s.
 DEBUG [9d21dfdc]       #20 3.335 yarn run v1.22.22
 DEBUG [9d21dfdc]       #20 3.382 $ esbuild app/javascript/*.* --bundle --sourcemap --format=esm --outdir=app/assets/builds --public-path=/assets
 DEBUG [9d21dfdc]       #20 3.998 
 DEBUG [9d21dfdc]       #20 3.998   app/assets/builds/application.js                   854.7kb
 DEBUG [9d21dfdc]       #20 3.998   app/assets/builds/jquery.dataTables.min.js         365.6kb
 DEBUG [9d21dfdc]       #20 3.998   app/assets/builds/jquery.js                        240.5kb
 DEBUG [9d21dfdc]       #20 3.998   app/assets/builds/app.min.js                       155.6kb
 DEBUG [9d21dfdc]       #20 3.998   app/assets/builds/vendors.min.js                   153.6kb
 DEBUG [9d21dfdc]       #20 3.998   app/assets/builds/dataTables.custom-ui.min.js        4.4kb
 DEBUG [9d21dfdc]       #20 3.998   app/assets/builds/application.js.map                 1.6mb
 DEBUG [9d21dfdc]       #20 3.998   app/assets/builds/jquery.dataTables.min.js.map     655.6kb
 DEBUG [9d21dfdc]       #20 3.998   app/assets/builds/jquery.js.map                    460.6kb
 DEBUG [9d21dfdc]       #20 3.998   app/assets/builds/vendors.min.js.map               235.4kb
 DEBUG [9d21dfdc]       #20 3.998   app/assets/builds/app.min.js.map                   189.9kb
 DEBUG [9d21dfdc]       #20 3.998   app/assets/builds/dataTables.custom-ui.min.js.map    7.0kb
 DEBUG [9d21dfdc]       #20 3.998 
 DEBUG [9d21dfdc]       #20 4.032 Done in 0.71s.
 DEBUG [9d21dfdc]       #20 4.615 yarn install v1.22.22
 DEBUG [9d21dfdc]       #20 4.689 [1/4] Resolving packages...
 DEBUG [9d21dfdc]       #20 4.811 success Already up-to-date.
 DEBUG [9d21dfdc]       #20 4.819 Done in 0.21s.
 DEBUG [9d21dfdc]       #20 5.347 yarn run v1.22.22
 DEBUG [9d21dfdc]       #20 5.394 $ tailwindcss -i ./app/assets/stylesheets/application.tailwind.css -o ./app/assets/builds/application.css --minify
 DEBUG [9d21dfdc]       #20 6.405 
 DEBUG [9d21dfdc]       #20 6.405 Rebuilding...
^C  Finished all in 727.0 seconds

I've noticed that locally I have to run yarn build and yarn build:css just before I push to production kamal deploy

Is there a command I can run during kamal deploy or locally using yarn to find the issue?

@prodigerati
Copy link
Author

Update: using the same code base I created a new project with the tailwind css gem instead of the -c tailwind flag and kamal successfully loaded a production docker container.

Only a guess but maybe it has something to do with the location of the tailwind.config.js file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants