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

Comments

Projects
None yet
@fasterthanlime

fasterthanlime commented Nov 21, 2015

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

This comment has been minimized.

Show comment
Hide comment
@mnutt

mnutt 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

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

This comment has been minimized.

Show comment
Hide comment
@fasterthanlime

fasterthanlime Nov 21, 2015

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.

fasterthanlime commented Nov 21, 2015

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

Fix deploy
Workaround for:
* travis-ci/travis-ci#5145
@ruslo

This comment has been minimized.

Show comment
Hide comment
@ruslo

ruslo Nov 21, 2015

A workaround that worked for us

This fix linux for me but not osx.

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

This comment has been minimized.

Show comment
Hide comment
@zhengshaolin

zhengshaolin Nov 22, 2015

@mnutt awesome fix man!

zhengshaolin commented Nov 22, 2015

@mnutt awesome fix man!

@oryband

This comment has been minimized.

Show comment
Hide comment
@oryband

oryband 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 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

This comment has been minimized.

Show comment
Hide comment
@oryband

This comment has been minimized.

Show comment
Hide comment
@oryband

oryband Nov 22, 2015

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

oryband commented Nov 22, 2015

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

@fasterthanlime

This comment has been minimized.

Show comment
Hide comment
@fasterthanlime

fasterthanlime Nov 22, 2015

@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) 🔩

fasterthanlime commented Nov 22, 2015

@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

This comment has been minimized.

Show comment
Hide comment
@oryband

oryband Nov 22, 2015

@fasterthanlime thanks, using this hack in the meanwhile.

oryband commented Nov 22, 2015

@fasterthanlime thanks, using this hack in the meanwhile.

@sreimers

This comment has been minimized.

Show comment
Hide comment
@sreimers

sreimers Nov 22, 2015

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

sreimers commented Nov 22, 2015

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

This comment has been minimized.

Show comment
Hide comment
@ruslo

ruslo Nov 22, 2015

@sreimers It works, thanks!

ruslo commented Nov 22, 2015

@sreimers It works, thanks!

@nripendra nripendra referenced this issue Nov 22, 2015

Closed

Travis deploy #32

nripendra added a commit to nripendra/fb-messenger that referenced this issue Nov 22, 2015

bernardosulzbach added a commit to bernardosulzbach/dungeon that referenced this issue Nov 22, 2015

Fixed Travis CI deploy step
It was broken due to an issue with Ruby.
This is meant to be a temporary fix.

travis-ci/travis-ci#5145

bernardosulzbach added a commit to bernardosulzbach/dungeon that referenced this issue Nov 22, 2015

Fixed Travis CI deploy step
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

chore(release): work around
deploy broken: mime-types-data requires Ruby version >= 2.0
travis-ci/travis-ci#5145
@jwvanderbeck

This comment has been minimized.

Show comment
Hide comment
@jwvanderbeck

jwvanderbeck Nov 23, 2015

Having this issue as well

jwvanderbeck commented Nov 23, 2015

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 antonym/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

This comment has been minimized.

Show comment
Hide comment
@dgmstuart

dgmstuart Nov 27, 2015

Nevermind - ours is a separate issue - unrelated to Travis

dgmstuart commented Nov 27, 2015

Nevermind - ours is a separate issue - unrelated to Travis

NathanKell added a commit to KSP-RO/RP-0 that referenced this issue Dec 6, 2015

@refeuerlein

This comment has been minimized.

Show comment
Hide comment
@refeuerlein

refeuerlein Apr 22, 2016

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

refeuerlein commented Apr 22, 2016

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

@BanzaiMan

This comment has been minimized.

Show comment
Hide comment
@BanzaiMan

BanzaiMan Apr 22, 2016

Member

@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.

Member

BanzaiMan commented Apr 22, 2016

@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

Fix Travis mime-types dependency issue
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

This comment has been minimized.

Show comment
Hide comment
@saikrishnagaddipati

saikrishnagaddipati commented Jun 17, 2016

Same issue

bragboy added a commit to sunspot/sunspot that referenced this issue Jun 22, 2016

nordewal added a commit to swisscom/puppet-scaleio that referenced this issue Jul 7, 2016

@mminski

This comment has been minimized.

Show comment
Hide comment
@mminski

mminski Oct 14, 2016

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

mminski commented Oct 14, 2016

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

@ncri

This comment has been minimized.

Show comment
Hide comment
@ncri

ncri 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?

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

This comment has been minimized.

Show comment
Hide comment
@BanzaiMan

BanzaiMan Nov 14, 2016

Member

@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.

Member

BanzaiMan commented Nov 14, 2016

@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

This comment has been minimized.

Show comment
Hide comment
@ncri

ncri 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 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

This comment has been minimized.

Show comment
Hide comment
@ncri

ncri 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 ;-)

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

This comment has been minimized.

Show comment
Hide comment
@BanzaiMan

BanzaiMan Nov 14, 2016

Member

gem dep will show you.

Member

BanzaiMan commented Nov 14, 2016

gem dep will show you.

@ncri

This comment has been minimized.

Show comment
Hide comment
@ncri

ncri commented Nov 14, 2016

thx

mikeker added a commit to mikeker/drush that referenced this issue Aug 10, 2017

jcppkkk pushed 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

Integrate with Trivas CI & Gemfile fix (#89)
* 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