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

"bundle install" fails with: 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. #27

Open
Benmuiruri opened this issue Dec 14, 2022 · 1 comment

Comments

@Benmuiruri
Copy link

Benmuiruri commented Dec 14, 2022

Hello team.

When I clone the repo and try bundle install the operation fails with

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.

Some suggestions on StackOverflow suggest running bundle update --conservative mimemagic , which works, and the gems are installed.
The other option that also works is deleting the Gemfile.lock file and then running bundle install.

However, when I start the development server and then visit localhost:3000 the server shuts down and I get a very long cryptic error as shown in the two screenshots.

failing-server-log
failing-server

@Benmuiruri
Copy link
Author

I was able to solve the issue 😄 From the error I saw that its the pg gem that was causing the error.
After applying my technical sophistication on Google it turns out the host value should be blank. So instead of this ..

development:
  <<: *default
  database: microverse_interview_database_dev
  host: localhost

It should be

development:
  <<: *default
  database: microverse_interview_database_dev
  host:

After deleting the localhost value, I started the server, but it failed because the db did not exist so I ran rails db:create which successfully

Created database 'microverse_interview_database_dev'
Created database 'microverse_interview_database_test'

And now the server is starting correctly, and when I visit the localhost:3000 I get the rails default welcome page.

That's how I dealt with the error. Perhaps it might be a good idea to update the README.md

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

1 participant