2017-05-09 8 views
0

Herokuにプロジェクトを展開するときに、このような問題に直面したことがありますか?herokuに展開するときの問題

Bundle complete! 40 Gemfile dependencies, 103 gems now installed. 
     Gems in the groups development and test were not installed. 
     Bundled gems are installed into ./vendor/bundle. 
     Bundle completed (3.58s) 
     Cleaning up the bundler cache. 
     Warning: the running version of Bundler (1.13.7) is older than the version that created the lockfile (1.14.6). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. 
     Removing bundler (1.11.2) 
-----> Installing node-v6.10.0-linux-x64 
-----> Detecting rake tasks 
sh: 2: Syntax error: Unterminated quoted string 
sh: 2: Syntax error: Unterminated quoted string 
! 
!  Could not detect rake tasks 
!  ensure you can run `$ bundle exec rake -P` against your app 
!  and using the production group of your Gemfile. 
!  rake aborted! 
!  LoadError: libdmtx.so.0: cannot open shared object file: No such file or directory - /tmp/build_07af0b8150c4d2d6b3e8cd1198b88169/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/Rdmtx-0.2.2/Rdmtx.so 
!  /tmp/build_07af0b8150c4d2d6b3e8cd1198b88169/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:91:in `require' 

私はこのアプリケーションをローカルで使用することができ、$ bundle exec rake -P against私のアプリも実行できます。

PS:私はここに掲載され、私はlibdmtxの問題を抱えていた。このデプロイする直前に:非常によく似たIssues with gem Rdmtx

答えて

0

何かが私に起こった、そしてすべてがプロジェクトの一時ファイルによるものであった、私はあなたが持っていることがわかり同様のエラー:https://github.com/heroku/heroku-buildpack-apt

LoadError: libdmtx.so.0: can not open shared object file: /tmp/build_07af0b8150c4d2d6b3e8cd1198b88169/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/Rdmtx-0.2 .2/Rdmtx.so ! /tmp/build_07af0b8150c4d2d6b3e8cd1198b88169/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:91:in `require ' 

私がやったことは、それらを消去し、バンドルを走っ再度行く、このbuildpackを追加する必要があった

+0

問題はHerokuで起きていることです。私が知っている限り、herokuのtmpフォルダをきれいにすることはできません。 – betogrun

+0

あなたが正しいとすれば、ローカルで一時ファイルを削除し、再度バンドルインストールを実行してからherokuに展開してみると、このデータを持ついくつかの宝石が一時的に格納されている可能性がありますファイル – Andres23Ramirez

+0

'rake tmp:clear'を使ってtmpをきれいにして、もう一度コードを配備しますが、問題は残ります。 herokuはそのlibを見つけることができないようだ。 – betogrun

関連する問題