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

ruby-build version not found #90

Open
ajsanjoaquin opened this issue Oct 19, 2024 · 2 comments
Open

ruby-build version not found #90

ajsanjoaquin opened this issue Oct 19, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ajsanjoaquin
Copy link

ajsanjoaquin commented Oct 19, 2024

I get a weird error where it does not specify which ruby-build version it was trying to find. Like #71 , I started having an error based on an update and I can build the website locally without any issue, so I decided to lock my ruby and bundler versions in the workflow file (see end of this post).

Here is the log of the action:

Run jeffreytse/jekyll-deploy-action@master
  with:
    provider: github
    token: ***
    branch: gh-pages
    jekyll_src: ./
    jekyll_cfg: _config.yml
    bundler_ver: ~>2.4.0
    ruby_ver: 2.7.8.225
/usr/bin/docker run --name e1f280e530b5aaf55407da713d125c6a012f4_19213a --label 5e1f28 --workdir /github/workspace --rm -e "INPUT_PROVIDER" -e "INPUT_TOKEN" -e "INPUT_REPOSITORY" -e "INPUT_BRANCH" -e "INPUT_JEKYLL_SRC" -e "INPUT_JEKYLL_CFG" -e "INPUT_JEKYLL_BASEURL" -e "INPUT_BUNDLER_VER" -e "INPUT_RUBY_VER" -e "INPUT_CNAME" -e "INPUT_ACTOR" -e "INPUT_PRE_BUILD_COMMANDS" -e "INPUT_SSH_PRIVATE_KEY" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/ajsanjoaquin.github.io/ajsanjoaquin.github.io":"/github/workspace" 5e1f28:0e530b5aaf55407da713d125c6a012f4
Starting the Jekyll Deploy Action
Initialize environment
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/7ACC7FEA9DB168D7732CD503984F2324DB6B808C.rev'
gpg: Done
==> Updating trust database...
gpg: Note: third-party key signatures using the SHA1 algorithm are rejected
gpg: (use option "--allow-weak-key-signatures" to override)
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   2  signed:   5  trust: 0-, 0q, 0n, 0m, 0f, 2u
gpg: depth: 1  valid:   5  signed: 101  trust: 0-, 0q, 0n, 5m, 0f, 0u
gpg: depth: 2  valid:  77  signed:  22  trust: 77-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-11-09
:: Synchronizing package databases...
 core downloading...
 extra downloading...
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (4)             Old Version  New Version  Net Change  Download Size

core/archlinux-keyring  20240709-2   20241015-1     0.00 MiB       1.18 MiB
core/glib2              2.82.1-2     2.82.2-1       0.00 MiB       4.89 MiB
core/iana-etc           20240814-1   20241016-1     0.00 MiB       0.39 MiB
core/libarchive         3.7.6-1      3.7.7-1        0.00 MiB       0.54 MiB

Total Download Size:    6.99 MiB
Total Installed Size:  43.72 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 glib2-2.82.2-1-x86_64 downloading...
 archlinux-keyring-20241015-1-any downloading...
 libarchive-3.7.7-1-x86_64 downloading...
 iana-etc-20241016-1-any downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
upgrading iana-etc...
upgrading libarchive...
upgrading glib2...
upgrading archlinux-keyring...
==> Appending keys from archlinux.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signed 5 keys.
==> Importing owner trust values...
==> Updating trust database...
gpg: Note: third-party key signatures using the SHA1 algorithm are rejected
gpg: (use option "--allow-weak-key-signatures" to override)
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   2  signed:   5  trust: 0-, 0q, 0n, 0m, 0f, 2u
gpg: depth: 1  valid:   5  signed: 102  trust: 0-, 0q, 0n, 5m, 0f, 0u
gpg: depth: 2  valid:  78  signed:  22  trust: 78-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2024-11-18
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
  Skipped: Current root is not booted.
(2/2) Arming ConditionNeedsUpdate...
resolving dependencies...
looking for conflicting packages...

Package (4)           New Version  Net Change  Download Size

extra/perl-error      0.17029-7      0.04 MiB       0.02 MiB
extra/perl-mailtools  2.21-9         0.10 MiB       0.06 MiB
extra/perl-timedate   2.33-7         0.08 MiB       0.03 MiB
extra/git             2.47.0-1      28.29 MiB       6.51 MiB

Total Download Size:    6.62 MiB
Total Installed Size:  28.51 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 git-2.47.0-1-x86_64 downloading...
 perl-mailtools-2.21-9-any downloading...
 perl-timedate-2.33-7-any downloading...
 perl-error-0.17029-7-any downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing perl-error...
installing perl-timedate...
installing perl-mailtools...
installing git...
Optional dependencies for git
    tk: gitk and git gui
    openssh: ssh transport and crypto
    perl-libwww: git svn
    perl-term-readkey: git svn and interactive.singlekey setting
    perl-io-socket-ssl: git send-email TLS support
    perl-authen-sasl: git send-email TLS support
    perl-mediawiki-api: git mediawiki support
    perl-datetime-format-iso8601: git mediawiki support
    perl-lwp-protocol-https: git mediawiki https support
    perl-cgi: gitweb (web interface) support
    python: git svn & git p4
    subversion: git svn
    org.freedesktop.secrets: keyring credential helper
    libsecret: libsecret credential helper [installed]
:: Running post-transaction hooks...
(1/4) Creating system user accounts...
Creating group 'git' with GID 972.
Creating user 'git' (git daemon user) with UID 972 and GID 972.
(2/4) Reloading system manager configuration...
  Skipped: Current root is not booted.
(3/4) Arming ConditionNeedsUpdate...
(4/4) Warn about old perl modules
Cloning into '/github/workspace/.asdf'...
Note: switching to 'ccdd47df9b73d0a22235eb06ad4c48eb57360832'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

resolving dependencies...
looking for conflicting packages...

Package (1)    New Version  Net Change  Download Size

extra/libyaml  0.2.5-3        0.18 MiB       0.06 MiB

Total Download Size:   0.06 MiB
Total Installed Size:  0.18 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 libyaml-0.2.5-3-x86_64 downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing libyaml...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
Cloning into '/github/home/.asdf/repository'...
Downloading ruby-build...
Version not found

If this is a new Ruby version, you may need to update the plugin:
asdf plugin update ruby
initializing plugin repository...

And here is the workflow file used:

      # Use GitHub Deploy Action to build and deploy to Github
      - uses: jeffreytse/jekyll-deploy-action@master
        with:
          provider: 'github'
          token: ${{ secrets.GH_TOKEN }} # It's your Personal Access Token(PAT)
          repository: ''             # Default is current repository
          branch: 'gh-pages'         # Default is gh-pages for github provider
          jekyll_src: './'           # Default is root directory
          jekyll_cfg: '_config.yml'  # Default is _config.yml
          jekyll_baseurl: ''         # Default is according to _config.yml
          bundler_ver: '~>2.4.0'            # >=0 is latest bundler version
          ruby_ver: '2.7.8.225'                   # Default is 3.2.0
          cname: ''                  # Default is to not use a cname
          actor: ''                  # Default is the GITHUB_ACTOR
          pre_build_commands: ''     # Installing additional dependencies (Arch Linux)
@jeffreytse jeffreytse self-assigned this Oct 22, 2024
@ajsanjoaquin
Copy link
Author

Specifying default ruby_ver and bundler_ver according to the most recent version of this repository progresses more in the build process, but it ultimately results in an error installing google-protobuf.

Cloning into '/github/home/.asdf/repository'...
Downloading ruby-build...
initializing plugin repository...==> Downloading ruby-3.2.0.tar.gz...
-> curl -q -fL -o ruby-3.2.0.tar.gz https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 19.4M  100 19.4M    0     0   134M      0 --:--:-- --:--:-- --:--:--  135M
==> Installing ruby-3.2.0...
-> ./configure "--prefix=$HOME/.asdf/installs/ruby/3.2.0" --enable-shared --with-ext=openssl,psych,+
-> make -j 4
-> make install
==> Installed ruby-3.2.0 to /github/home/.asdf/installs/ruby/3.2.0
asdf: Warn: You have configured asdf to preserve downloaded files (with always_keep_download=yes or --keep-download). But
asdf: Warn: the current plugin (ruby) does not support that. Downloaded files will not be preserved.
ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-linux]
Bundler version 2.4.1 (2024-10-23 commit unknown)
Check bundler version from Gemfile.lock
Bundler version 2.5.22 is required by your Gemfile.lock!
Initial comptible bundler
Successfully installed bundler-2.5.22
Parsing documentation for bundler-2.5.22
Installing ri documentation for bundler-2.5.22
Done installing documentation for bundler after 0 seconds
1 gem installed
Cleaning up incompatible bundler cache
Starting bundle install
Don't run Bundler as root. Installing your bundle as root will break this
application for all non-root users on this machine.
Fetching gem metadata from https://rubygems.org/...........
Fetching concurrent-ruby 1.2.2
Fetching eventmachine 1.2.7
Fetching colorator 1.1.0
Fetching public_suffix 5.0.3
Installing colorator 1.1.0
Installing public_suffix 5.0.3
Fetching http_parser.rb 0.8.0
Installing eventmachine 1.2.7 with native extensions
Installing concurrent-ruby 1.2.2
Installing http_parser.rb 0.8.0 with native extensions
Fetching ffi 1.16.1
Installing ffi 1.16.1 with native extensions
Fetching forwardable-extended 2.6.0
Installing forwardable-extended 2.6.0
Fetching google-protobuf 3.25.5
Installing google-protobuf 3.25.5 with native extensions
Fetching rb-fsevent 0.11.2
Installing rb-fsevent 0.11.2
Fetching strscan 3.1.0
Installing strscan 3.1.0 with native extensions
Fetching liquid 4.0.4
Installing liquid 4.0.4
Fetching mercenary 0.4.0
Installing mercenary 0.4.0
Fetching rouge 4.1.3
Installing rouge 4.1.3
Fetching safe_yaml 1.0.5
Installing safe_yaml 1.0.5
Fetching unicode-display_width 2.4.2
Installing unicode-display_width 2.4.2
Fetching webrick 1.8.2
Installing webrick 1.8.2
Fetching addressable 2.8.5
Installing addressable 2.8.5
Fetching i18n 1.14.1
Installing i18n 1.14.1
Fetching tzinfo 2.0.6
Installing tzinfo 2.0.6
Fetching pathutil 0.16.2
Installing pathutil 0.16.2
Fetching rexml 3.3.6
Installing rexml 3.3.6
Fetching terminal-table 3.0.2
Installing terminal-table 3.0.2
Fetching tzinfo-data 1.2023.3
Installing tzinfo-data 1.2023.3
Fetching kramdown 2.4.0
Installing kramdown 2.4.0
Fetching kramdown-parser-gfm 1.1.0
Installing kramdown-parser-gfm 1.1.0
Fetching rb-inotify 0.10.1
Installing rb-inotify 0.10.1
Fetching listen 3.8.0
Installing listen 3.8.0
Fetching jekyll-watch 2.2.1
Installing jekyll-watch 2.2.1
Fetching em-websocket 0.5.3
Installing em-websocket 0.5.3
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/github/workspace/vendor/bundle/ruby/3.2.0/gems/google-protobuf-3.25.5/ext/google/protobuf_c
rake
RUBYARCHDIR\=/github/workspace/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/google-protobuf-3.25.5
RUBYLIBDIR\=/github/workspace/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/google-protobuf-3.25.5
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/3.2.0/rubygems.rb:265:in
`find_spec_for_exe': can't find gem rake (>= 0.a) with executable rake
(Gem::GemNotFoundException)
from
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/3.2.0/rubygems.rb:284:in
`activate_bin_path'
	from /github/home/.asdf/installs/ruby/3.2.0/bin/rake:25:in `<main>'
rake failed, exit code 1
Gem files will remain installed in
/github/workspace/vendor/bundle/ruby/3.2.0/gems/google-protobuf-3.25.5 for
inspection.
Results logged to
/github/workspace/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/google-protobuf-3.25.5/gem_make.out
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/3.2.0/rubygems/ext/builder.rb:102:in
`run'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/3.2.0/rubygems/ext/rake_builder.rb:28:in
`build'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/3.2.0/rubygems/ext/builder.rb:171:in
`build_extension'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/3.2.0/rubygems/ext/builder.rb:205:in
`block in build_extensions'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/3.2.0/rubygems/ext/builder.rb:202:in
`each'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/3.2.0/rubygems/ext/builder.rb:202:in
`build_extensions'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/3.2.0/rubygems/installer.rb:843:in
`build_extensions'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.22/lib/bundler/rubygems_gem_installer.rb:109:in
`build_extensions'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.22/lib/bundler/rubygems_gem_installer.rb:28:in
`install'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.22/lib/bundler/source/rubygems.rb:205:in
`install'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.22/lib/bundler/installer/gem_installer.rb:55:in
`install'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.22/lib/bundler/installer/gem_installer.rb:17:in
`install_from_spec'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.22/lib/bundler/installer/parallel_installer.rb:133:in
`do_install'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.22/lib/bundler/installer/parallel_installer.rb:124:in
`block in worker_pool'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.22/lib/bundler/worker.rb:62:in
`apply_func'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.22/lib/bundler/worker.rb:57:in
`block in process_queue'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.22/lib/bundler/worker.rb:54:in
`loop'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.22/lib/bundler/worker.rb:54:in
`process_queue'
/github/workspace/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.22/lib/bundler/worker.rb:90:in
`block (2 levels) in create_threads'
An error occurred while installing google-protobuf (3.25.5), and Bundler cannot
continue.
In Gemfile:
  jekyll was resolved to 4.3.2, which depends on
    jekyll-sass-converter was resolved to 3.0.0, which depends on
      sass-embedded was resolved to 1.68.0, which depends on
        google-protobuf

@jeffreytse jeffreytse added the bug Something isn't working label Oct 24, 2024
@jeffreytse
Copy link
Owner

Hi @ajsanjoaquin

Thanks for your issue, I will help on this as soon as possible.

Thanks & Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants