-
Notifications
You must be signed in to change notification settings - Fork 55
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
Your bundle is locked to mimemagic (0.3.5), but that version could not be found #476
Comments
This is due to the major Rails breakage with the mimemagic gem. To fix this, you would have to unlock rails in the Gemfile.lock and upgrade it to at least 5.2.5. Are you using the https://github.com/ManageIQ/manageiq/blob/jansa/Gemfile.lock.release file? If so, that would need to be updated. cc @bdunne - looks like we need to upgrade rails on a few of the old versions. |
See also ManageIQ/manageiq-rpm_build#143 |
@Fryguy , Thanks for looking at this issue.
[me@centos8t01 manageiq-appliance-build]$ docker run -it manageiq:jansa
[root@72f30b8b1f43 build_scripts]# bin/build.rb
RPM BUILT SUCCESSFULLY |
@tjyang Now that the dust has settled on the mime-magic thing are you still seeing problems? |
@Fryguy , Thanks for the follow-up
[me@centos8t01 manageiq-appliance-build]$ date
Thu Apr 29 04:03:28 EDT 2021
[me@centos8t01 manageiq-appliance-build]$ cat /etc/redhat-release
CentOS Linux release 8.3.2011
[me@centos8t01 manageiq-appliance-build]$
[me@centos8t01 manageiq-appliance-build]$ git log -1
commit 9ae48a5 (HEAD -> kasparov, origin/kasparov)
Merge: cd04ba3 1ad1c25
Author: Jason Frey
Date: Thu Mar 25 15:20:44 2021 -0400
[me@centos8t01 manageiq-appliance-build]$ git branch
Thanks for installing Config Donate: https://opencollective.com/rubyconfig/donate ---> ManageIQ::RPMBuild::SetupSourceRepos#initialize ---> ManageIQ::RPMBuild::SetupSourceRepos#populate ---> ManageIQ::RPMBuild::SetupSourceRepos#clean_build_dir ---> ManageIQ::RPMBuild::SetupSourceRepos#setup_rpm_spec_repo ---> ManageIQ::RPMBuild::SetupSourceRepos#setup_source_repo ---> git clone --depth 1 -b kasparov-1 https://github.com/ManageIQ/manageiq-appliance.git manageiq-appliance You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false ---> git clone --depth 1 -b kasparov-1 https://github.com/ManageIQ/manageiq.git manageiq You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false ---> git clone --depth 1 -b kasparov-1 https://github.com/ManageIQ/manageiq-ui-service.git manageiq-ui-service You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false ---> ManageIQ::RPMBuild::GenerateGemSet#initialize ---> ManageIQ::RPMBuild::GenerateGemSet#backup_environment_variables ---> ManageIQ::RPMBuild::GenerateGemSet#set_environment_variables ---> gem env
---> echo -e "${PATH}\n" ---> gem install bundler -v 2.1.4 ---> ManageIQ::RPMBuild::GenerateGemSet#populate_gem_home ---> gem env
---> gem install mime-types -v 2.6.1 ---> bundle config set --local with qpid_proton systemd ---> bundle 2.1.4 install --jobs 4 --retry 3 Retrying fetcher due to error (3/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rubygems.manageiq.org/. Retrying fetcher due to error (4/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rubygems.manageiq.org/. Could not verify the SSL certificate for https://rubygems.manageiq.org/. |
I'm getting similar output but I pruned the output on
I'm not sure how my bundle could be locked, will try and track that down and see where it can go from here |
@tjyang That error seems unrelated to our build (external problem with rubygems) - can you try again now that that seems fixed? |
|
@tjyang Can you |
@bdunne
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 |
@tjyang Great! Anything else to resolve before we close this issue? |
Should we wait for ManageIQ/manageiq#21215 to be closed ?
|
The build is working can we close this? |
I tried to build kasparov-1 and kasparov-2 , both were able to generated RPMs.
[me@centos8t01 manageiq-appliance-build]$ time bin/rpm-build.sh -t nightly -r kasparov-1
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/manageiq-11.2.0-1.20210723064612.el8.x86_64
Wrote: /root/BUILD/rpms/x86_64/manageiq-appliance-11.2.0-1.20210723064612.el8.x86_64.rpm
Wrote: /root/BUILD/rpms/x86_64/manageiq-appliance-tools-11.2.0-1.20210723064612.el8.x86_64.rpm
Wrote: /root/BUILD/rpms/x86_64/manageiq-core-11.2.0-1.20210723064612.el8.x86_64.rpm
Wrote: /root/BUILD/rpms/x86_64/manageiq-gemset-11.2.0-1.20210723064612.el8.x86_64.rpm
Wrote: /root/BUILD/rpms/x86_64/manageiq-pods-11.2.0-1.20210723064612.el8.x86_64.rpm
Wrote: /root/BUILD/rpms/x86_64/manageiq-system-11.2.0-1.20210723064612.el8.x86_64.rpm
Wrote: /root/BUILD/rpms/x86_64/manageiq-ui-11.2.0-1.20210723064612.el8.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.L8KXGC
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd manageiq-manifest-11.2.0
+ rm -rf /root/rpmbuild/BUILDROOT/manageiq-11.2.0-1.20210723064612.el8.x86_64
+ exit 0
/root/.gem/ruby/gems/aws-sigv4-1.2.4/lib/aws-sigv4/signer.rb:621:in `extract_credentials_provider': missing credentials, provide credentials with one of the following options: (Aws::Sigv4::Errors::MissingCredentialsError)
- :access_key_id and :secret_access_key
- :credentials
- :credentials_provider
from /root/.gem/ruby/gems/aws-sigv4-1.2.4/lib/aws-sigv4/signer.rb:124:in `initialize'
from /root/.gem/ruby/gems/aws-sdk-s3-1.96.2/lib/aws-sdk-s3/plugins/s3_signer.rb:215:in `new'
from /root/.gem/ruby/gems/aws-sdk-s3-1.96.2/lib/aws-sdk-s3/plugins/s3_signer.rb:215:in `build_v4_signer'
from /root/.gem/ruby/gems/aws-sdk-s3-1.96.2/lib/aws-sdk-s3/plugins/s3_signer.rb:14:in `block in '
from /root/.gem/ruby/gems/aws-sdk-core-3.117.0/lib/seahorse/client/configuration.rb:72:in `call'
from /root/.gem/ruby/gems/aws-sdk-core-3.117.0/lib/seahorse/client/configuration.rb:215:in `block in resolve_defaults'
from /root/.gem/ruby/gems/aws-sdk-core-3.117.0/lib/seahorse/client/configuration.rb:59:in `each'
from /root/.gem/ruby/gems/aws-sdk-core-3.117.0/lib/seahorse/client/configuration.rb:59:in `each'
from /root/.gem/ruby/gems/aws-sdk-core-3.117.0/lib/seahorse/client/configuration.rb:214:in `resolve_defaults'
from /root/.gem/ruby/gems/aws-sdk-core-3.117.0/lib/seahorse/client/configuration.rb:207:in `value_at'
from /root/.gem/ruby/gems/aws-sdk-core-3.117.0/lib/seahorse/client/configuration.rb:191:in `block in resolve'
from /usr/share/ruby/set.rb:338:in `each_key'
from /usr/share/ruby/set.rb:338:in `each'
from /root/.gem/ruby/gems/aws-sdk-core-3.117.0/lib/seahorse/client/configuration.rb:191:in `resolve'
from /root/.gem/ruby/gems/aws-sdk-core-3.117.0/lib/seahorse/client/configuration.rb:179:in `apply_defaults'
from /root/.gem/ruby/gems/aws-sdk-core-3.117.0/lib/seahorse/client/configuration.rb:152:in `build!'
from /root/.gem/ruby/gems/aws-sdk-core-3.117.0/lib/seahorse/client/base.rb:65:in `build_config'
from /root/.gem/ruby/gems/aws-sdk-core-3.117.0/lib/seahorse/client/base.rb:22:in `initialize'
from /root/.gem/ruby/gems/aws-sdk-s3-1.96.2/lib/aws-sdk-s3/client.rb:408:in `initialize'
from /root/.gem/ruby/gems/aws-sdk-core-3.117.0/lib/seahorse/client/base.rb:102:in `new'
from /build_scripts/lib/manageiq/rpm_build/s3_common.rb:9:in `client'
from /build_scripts/lib/manageiq/rpm_build/rpm_repo.rb:25:in `block (3 levels) in update'
from /root/.gem/ruby/gems/config-3.1.0/lib/config/options.rb:87:in `each'
from /root/.gem/ruby/gems/config-3.1.0/lib/config/options.rb:87:in `each'
from /build_scripts/lib/manageiq/rpm_build/rpm_repo.rb:24:in `block (2 levels) in update'
from /root/.gem/ruby/gems/config-3.1.0/lib/config/options.rb:87:in `each'
from /root/.gem/ruby/gems/config-3.1.0/lib/config/options.rb:87:in `each'
from /build_scripts/lib/manageiq/rpm_build/rpm_repo.rb:23:in `block in update'
from /usr/share/ruby/tmpdir.rb:93:in `mktmpdir'
from /build_scripts/lib/manageiq/rpm_build/rpm_repo.rb:9:in `update'
from bin/build.rb:52:in `'
Downloading required RPMs...
real 40m46.597s |
Kasparov fixed by: ManageIQ/manageiq#21330 |
Hi
My last successful build was long time ago.
Can you advise where I did wrong ?
I don't know how to fix gem file as pointed out in R1
Fetching ruby2_keywords 0.0.4
Installing ruby2_keywords 0.0.4
Fetching faraday 1.3.0
Installing faraday 1.3.0
Fetching kartograph 0.2.8
Installing kartograph 0.2.8
Fetching resource_kit 0.1.7
Installing resource_kit 0.1.7
Fetching equalizer 0.0.11
Installing equalizer 0.0.11
Fetching virtus 1.0.5
Installing virtus 1.0.5
Fetching droplet_kit 3.13.0
Installing droplet_kit 3.13.0
Using sync 0.5.0
Fetching more_core_extensions 4.3.0
Installing more_core_extensions 4.3.0
Fetching optimist 3.0.1
Installing optimist 3.0.1
Installed plugin bundler-inject
Fetching source index from https://rubygems.manageiq.org/
Fetching gem metadata from https://rubygems.org/......
Your bundle is locked to mimemagic (0.3.5), but that version could not be found
in any of the sources listed in your Gemfile. If you haven't changed sources,
that means the author of mimemagic (0.3.5) has removed it. You'll need to update
your bundle to a version other than mimemagic (0.3.5) that hasn't been removed
in order to install.
[me@centos8t01 manageiq-appliance-build]$
The text was updated successfully, but these errors were encountered: