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

Mismatch in bundler version in Gemfile.lock and rails version in Gemfile #15692

Open
Baschdl opened this issue May 30, 2020 · 5 comments
Open

Comments

@Baschdl
Copy link

Baschdl commented May 30, 2020

Yesterday's PR #15688 bundled the Gemfile.lock with version 2.1.4

2.1.4
but the specified gem 'rails', '4.2.11'
gem 'rails', '4.2.11'
depends on bundler (>= 1.3.0, < 2.0).

Steps to Reproduce

Install everything by hand or run git clone https://github.com/sverhoeven/docker-cartodb.git and docker build -t=sverhoeven/cartodb docker-cartodb/

@Baschdl
Copy link
Author

Baschdl commented May 30, 2020

Commit 94ba82b before the PR works.

@ibrahimmenem
Copy link
Contributor

Hi @Baschdl,

Sorry for the inconvenience we may have caused to you! We are aware of the warning and it should be harmless as long as you have the right bundler version(s).
Regarding the repo you reference the fix should be as simple as updating bundler version to point to 2.1.4 or dynamically detect version from the Gemfile.lock, I also recommend you to update the Dockerfile to start using modern versions of postgresql, nodejs, ruby and python3.
On the other hand, if all you need is using cartodb I recommend you to check the new 12 months free accounts or the student grants.

Thank you for using CARTO :)

@Baschdl
Copy link
Author

Baschdl commented Jun 1, 2020

I also experimented with the py3pg12postgis3 branch but imports in this branch fail with a 9999 error with a file which works on the other branch (sverhoeven/docker-cartodb#89).

I actually assumed that the older versions of postgresql, nodejs, ruby and python are the recommended way as mentioned on https://cartodb.readthedocs.io/en/latest/install.html. It would be nice if you could update the installation instruction accordingly.

@Baschdl
Copy link
Author

Baschdl commented Jun 1, 2020

As mentioned in the original comment, there is a conflict in the bundler version (run with py3pg12postgis3 branch but gem install bundler --version=2.1.4):

Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    rails (= 4.2.11) was resolved to 4.2.11, which depends on
      bundler (< 2.0, >= 1.3.0)

  Current Bundler version:
    bundler (2.1.4)

@ibrahimmenem
Copy link
Contributor

Hi @Baschdl,

In master to overcome the issue you could remove the bundle update thin at https://github.com/sverhoeven/docker-cartodb/blob/master/Dockerfile#L190 (please note that we don't officially support the docker configuration in that repo)

It would be nice if you could update the installation instruction accordingly.

Totally agree. I hope we can do that soon

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