Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Your bundle is locked to mimemagic #2339

Open
HSILA opened this issue May 6, 2021 · 4 comments
Open

Your bundle is locked to mimemagic #2339

HSILA opened this issue May 6, 2021 · 4 comments
Labels

Comments

@HSILA
Copy link

HSILA commented May 6, 2021

I've tried to run Portus on my server. To do so, I pulled the master and then:
docker-compose up -d
First I faced these two errors:

Repository 'devel:tools' is invalid.
[devel:tools|https://download.opensuse.org/repositories/devel:/tools/openSUSE_Leap_15.0/] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'devel:tools' because of the above error.
Repository 'ruby' is invalid.
[ruby|https://download.opensuse.org/repositories/devel:/languages:/ruby/openSUSE_Leap_15.0] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'ruby' because of the above error.
Some of the repositories have not been refreshed because of an error.

Since latest changes for this repo is for two years ago, the links provided for repositories are not available now. I searched the issues and this one solved my first problem. But after trying to bring up docker-compose, another error occurred:

Your bundle is locked to mimemagic (0.3.3), 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.3) has removed it. You'll need to update
your bundle to a version other than mimemagic (0.3.3) that hasn't been removed
in order to install.

The command '/bin/sh -c zypper addrepo https://download.opensuse.org/repositories/devel:/languages:/ruby/openSUSE_Leap_15.2/devel:languages:ruby.repo &&     zypper addrepo https://download.opensuse.org/repositories/devel:/tools/openSUSE_Leap_15.2/ devel:tools &&     zypper --gpg-auto-import-keys ref &&     zypper -n in --no-recommends ruby2.6-devel            libmariadb-devel postgresql-devel            nodejs libxml2-devel libxslt1 git-core            go1.10 phantomjs gcc-c++ &&     zypper -n in --no-recommends -t pattern devel_basis &&     gem install bundler --no-document -v 1.17.3 &&     update-alternatives --install /usr/bin/bundle bundle /usr/bin/bundle.ruby2.6 3 &&     update-alternatives --install /usr/bin/bundler bundler /usr/bin/bundler.ruby2.6 3 &&     bundle install --retry=3 &&     go get -u github.com/vbatts/git-validation &&     go get -u github.com/openSUSE/portusctl &&     mv /root/go/bin/git-validation /usr/local/bin/ &&     mv /root/go/bin/portusctl /usr/local/bin/ &&     zypper -n rm wicked wicked-service autoconf automake            binutils bison cpp flex gdbm-devel gettext-tools            libtool m4 make makeinfo &&     zypper clean -a' returned a non-zero code: 7
ERROR: Service 'portus' failed to build : Build failed

Full log here.

How can I solve this issue?

Portus Version: Latest

@oleaasbo
Copy link

I encountered this error as well using the same approach

@RobertDWhite
Copy link

Removing the Gemfile.lock worked for me. Run docker-compose with the Gemfile.lock removed.

I originally had some marginal luck by modifying some of the versions in the Gemfile.lock, but there were still a few issues that made me go this route. Once removed, though, my Portus container is running successfully.

@oleaasbo
Copy link

oleaasbo commented Aug 6, 2021

I tried to remove the Gemfile.lock and ended up with the same error as before.

@stale
Copy link

stale bot commented Jan 9, 2022

Thanks for all your contributions!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Jan 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants