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

deploy broken: mime-types-data requires Ruby version >= 2.0. #5145

Closed
fasterthanlime opened this issue Nov 21, 2015 · 34 comments
Closed

deploy broken: mime-types-data requires Ruby version >= 2.0. #5145

fasterthanlime opened this issue Nov 21, 2015 · 34 comments

Comments

@fasterthanlime
Copy link

Looks like the deploy step is broken because mime-types 3.0 requires ruby 2.0

Example log

Could you either:

  • Upgrade the deploy step to use ruby 2.0+ (sounds risky though)
  • Specify a more restrictive dependency on mime-types, ~>2.0 for example

Thanks in advance! 🌟

@mnutt
Copy link

mnutt commented Nov 21, 2015

We ran into this and it was keeping us from deploying. A workaround that worked for us:

before_deploy:
- gem install mime-types -v 2.6.2

@fasterthanlime
Copy link
Author

My workaround was:

deploy:
  edge:
    source: fasterthanlime/dpl
    branch: patch-1
  # normal deploy params

but yours is much sweeter :)

I have a PR open at travis-ci/dpl#365 but I'm not sure how good of a fix it is.

andsor added a commit to andsor/pyfssa that referenced this issue Nov 21, 2015
ruslo added a commit to forexample/github-binary-release that referenced this issue Nov 21, 2015
@ruslo
Copy link

ruslo commented Nov 21, 2015

A workaround that worked for us

This fix linux for me but not osx.

barnybug added a commit to barnybug/s3 that referenced this issue Nov 22, 2015
@zhengshaolin
Copy link

@mnutt awesome fix man!

@oryband
Copy link

oryband commented Nov 22, 2015

this still happens to me on a linux private build when uploading to s3:

Fetching: dpl-1.8.8.gem (100%)
Successfully installed dpl-1.8.8
1 gem installed

Installing deploy dependencies
Fetching: jmespath-1.1.3.gem (100%)
Successfully installed jmespath-1.1.3
Fetching: aws-sdk-core-2.2.1.gem (100%)
Successfully installed aws-sdk-core-2.2.1
Fetching: aws-sdk-resources-2.2.1.gem (100%)
Successfully installed aws-sdk-resources-2.2.1
Fetching: aws-sdk-2.2.1.gem (100%)
Successfully installed aws-sdk-2.2.1
4 gems installed
Fetching: mime-types-data-3.2015.1120.gem (100%)
ERROR:  Error installing mime-types:
    mime-types-data requires Ruby version >= 2.0.
/home/travis/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- mime-types (LoadError)
    from /home/travis/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.8.8/lib/dpl/provider.rb:76:in `requires'
    from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.8.8/lib/dpl/provider/s3.rb:7:in `<class:S3>'
    from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.8.8/lib/dpl/provider/s3.rb:5:in `<class:Provider>'
    from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.8.8/lib/dpl/provider/s3.rb:4:in `<module:DPL>'
    from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.8.8/lib/dpl/provider/s3.rb:3:in `<top (required)>'
    from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.8.8/lib/dpl/provider.rb:58:in `const_get'
    from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.8.8/lib/dpl/provider.rb:58:in `block in new'
    from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.8.8/lib/dpl/cli.rb:41:in `fold'
    from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.8.8/lib/dpl/provider.rb:55:in `new'
    from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.8.8/lib/dpl/cli.rb:31:in `run'
    from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.8.8/lib/dpl/cli.rb:7:in `run'
    from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.8.8/bin/dpl:5:in `<top (required)>'
    from /home/travis/.rvm/gems/ruby-1.9.3-p551/bin/dpl:23:in `load'
    from /home/travis/.rvm/gems/ruby-1.9.3-p551/bin/dpl:23:in `<main>'
failed to deploy

@oryband
Copy link

oryband commented Nov 22, 2015

@oryband
Copy link

oryband commented Nov 22, 2015

we can't deploy to production because of this. aws s3 deploys are broken.

@fasterthanlime
Copy link
Author

@oryband yup, the issue is still open, waiting on a response from the @travis-ci team — in the meantime, mnutt's workaround will probably work for you! #5145 (comment) 🔩

@oryband
Copy link

oryband commented Nov 22, 2015

@fasterthanlime thanks, using this hack in the meanwhile.

@sreimers
Copy link

to fix this on linux and osx you can try this modified workaround:

before_deploy:
- rvm 1.9.3 do gem install mime-types -v 2.6.2

https://travis-ci.org/Studio-Link-v2/backend/jobs/92562905

@ruslo
Copy link

ruslo commented Nov 22, 2015

@sreimers It works, thanks!

nripendra added a commit to nripendra/fb-messenger that referenced this issue Nov 22, 2015
bernardosulzbach pushed a commit to bernardosulzbach/dungeon that referenced this issue Nov 22, 2015
It was broken due to an issue with Ruby.
This is meant to be a temporary fix.

travis-ci/travis-ci#5145
bernardosulzbach pushed a commit to bernardosulzbach/dungeon that referenced this issue Nov 22, 2015
It was broken due to an issue with Ruby.
This is meant to be a temporary fix.

travis-ci/travis-ci#5145
sanemat added a commit to lyrictenor/electron-triage-for-github that referenced this issue Nov 22, 2015
deploy broken: mime-types-data requires Ruby version >= 2.0
travis-ci/travis-ci#5145
@jwvanderbeck
Copy link

Having this issue as well

jugglerjer added a commit to thecolumnsproject/thecolumnsproject.github.io that referenced this issue Nov 23, 2015
antonym added a commit to netbootxyz/netboot.xyz that referenced this issue Nov 23, 2015
ArthurHlt added a commit to cloudfoundry-community/mattermost-cf-integrator that referenced this issue Nov 23, 2015
v2ray pushed a commit to v2ray/v2ray-core that referenced this issue Nov 23, 2015
weitzman added a commit to drush-ops/drush that referenced this issue Nov 23, 2015
@dgmstuart
Copy link

Nevermind - ours is a separate issue - unrelated to Travis

@refeuerlein
Copy link

Still having this problem. Opened last year. ?????????????

@BanzaiMan
Copy link
Contributor

@refeuerlein Sorry for the troubles. Sounds like something else updated to require a newer version of mime-types. Please open a separate issue, indicating which provider you are using, and pointing to a build log URL. Thanks.

gerrywastaken added a commit to gerrywastaken/awesome_print that referenced this issue May 5, 2016
Before this fix some of our Travis builds failed with:

    Gem::InstallError: mime-types-data requires Ruby version >= 2.0.

Fix found here:
travis-ci/travis-ci#5145 (comment)
two-pack added a commit to two-pack/redmine_xlsx_format_issue_exporter that referenced this issue May 10, 2016
lalitkapoor added a commit to lalitkapoor/browser-timezone-rails that referenced this issue Jun 5, 2016
lalitkapoor added a commit to lalitkapoor/browser-timezone-rails that referenced this issue Jun 5, 2016
lalitkapoor added a commit to lalitkapoor/browser-timezone-rails that referenced this issue Jun 5, 2016
lalitkapoor added a commit to lalitkapoor/browser-timezone-rails that referenced this issue Jun 5, 2016
lalitkapoor added a commit to lalitkapoor/browser-timezone-rails that referenced this issue Jun 5, 2016
@saikrishnagaddipati
Copy link

Same issue

@mminski
Copy link

mminski commented Oct 14, 2016

Fixed problem by downgrading from rails '4.2.6' to rails '4.1.0'.

@ncri
Copy link

ncri commented Nov 14, 2016

Just noticed my nested_form_fields gem seems to have this issue:

https://travis-ci.org/ncri/nested_form_fields

Anyone any idea what I could do to get the 1.9.3 build pass?

@BanzaiMan
Copy link
Contributor

@ncri Looking at https://rubygems.org/gems/public_suffix/versions, https://rubygems.org/gems/public_suffix/versions/1.4.6 was the last version of public_suffix that run on 1.9.3. Please do note that your issue is completely separate from the issue described here.

@ncri
Copy link

ncri commented Nov 14, 2016

Oh, sorry for this, not sure how I ended up here. Is there an issue open for this? Or should I open one? public_suffix is not needed by my gem, travis seems to add it. At least it's not in my Gemfile.lock. Or is it possible that the gemspec had a gem depending on? But wouldn't it be written into the .lock file in that case?

So it seems I cannot do anything about it myself.

@ncri
Copy link

ncri commented Nov 14, 2016

Ah, never mind, the Gemfile.lock file is not checked in anyway, so I assume I need to enforce a version in one of the gems in my gemspec. Hard to find out which one has the public_suffix dependency though. Any pointers? Thanks! I'm out here then ;-)

@BanzaiMan
Copy link
Contributor

gem dep will show you.

@ncri
Copy link

ncri commented Nov 14, 2016

thx

mikeker pushed a commit to mikeker/drush that referenced this issue Aug 10, 2017
jcppkkk added a commit to jcppkkk/redmine_mail_reminder that referenced this issue Aug 23, 2017
jcppkkk added a commit to jcppkkk/redmine_mail_reminder that referenced this issue Aug 23, 2017
* add travis-ci build testing
* fix travis-ci bugs about mime-types
    travis-ci/travis-ci#5145
* Travis CI: Enable caching, don't install docs
* travis: Also cache rvm dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests