ruby-on-rails-3 – 在Heroku(Rails)上崩溃的Copycopter服务器

ruby-on-rails-3 – 在Heroku(Rails)上崩溃的Copycopter服务器,第1张

概述我刚刚开始试用copycopter,但开箱即用的应用程序似乎崩溃了.我几乎只是在 https://github.com/copycopter/copycopter-server运行了指令,但显然有些东西不正常.这是我的heroku日志的最后几行,但如果需要,我可以提供更多细节.我看到它正在使用旧式插件 – 这是相关的,如果有的话需要改变什么? 2013-07-12T03:05:16.164555+ 我刚刚开始试用copycopter,但开箱即用的应用程序似乎崩溃了.我几乎只是在 https://github.com/copycopter/copycopter-server运行了指令,但显然有些东西不正常.这是我的heroku日志的最后几行,但如果需要,我可以提供更多细节.我看到它正在使用旧式插件 – 这是相关的,如果有的话需要改变什么?

2013-07-12T03:05:16.164555+00:00 heroku[web.1]: State changed from crashed to starting2013-07-12T03:05:19.529261+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -p 35563`2013-07-12T03:05:20.460981+00:00 app[web.1]: The source :rubygems is deprecated because http requests are insecure.2013-07-12T03:05:20.460981+00:00 app[web.1]: Please change your source to 'https://rubygems.org' if possible,or 'http://rubygems.org' if not.2013-07-12T03:05:21.439397+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile,or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:2)2013-07-12T03:05:21.439132+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile,or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:2)2013-07-12T03:05:21.841751+00:00 app[web.1]: >> Using rack adapter2013-07-12T03:05:21.841751+00:00 app[web.1]: Connecting to database specifIEd by DATABASE_URL2013-07-12T03:05:23.382849+00:00 heroku[web.1]: State changed from starting to crashed2013-07-12T03:05:22.241366+00:00 app[web.1]: ruby: symbol lookup error: /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-0.12.10/lib/rubyeventmachine.so: undefined symbol: rb_enable_interrupt2013-07-12T03:05:22.239348+00:00 app[web.1]: >> Thin web server (v1.3.1 codename Triple Espresso)2013-07-12T03:05:22.239348+00:00 app[web.1]: >> Maximum connections set to 10242013-07-12T03:05:22.239348+00:00 app[web.1]: >> Listening on 0.0.0.0:35563,CTRL+C to stop2013-07-12T03:05:23.374312+00:00 heroku[web.1]: Process exited with status 1272013-07-12T03:05:29.748682+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=myname.herokuapp.com fwd="XX.XXX.XXX.XX" dyno= connect= service= status=503 bytes=2013-07-12T03:05:30.170778+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=myname.herokuapp.com fwd="XX.XXX.XXX.XX" dyno= connect= service= status=503 bytes=2013-07-12T03:08:14.843800+00:00 heroku[API]: Starting process with command `bundle exec rake copycopter:project name=My Project name USERname=admin PASSWORD=password` by [email protected]:08:20.694207+00:00 heroku[run.1389]: Awaiting clIEnt2013-07-12T03:08:20.742807+00:00 heroku[run.1389]: Starting process with command `bundle exec rake copycopter:project name=My Project name USERname=admin PASSWORD=password`2013-07-12T03:08:21.977568+00:00 heroku[run.1389]: State changed from starting to up2013-07-12T03:08:27.647200+00:00 heroku[run.1389]: Process exited with status 12013-07-12T03:08:27.670344+00:00 heroku[run.1389]: State changed from up to complete2013-07-12T03:08:53.981716+00:00 heroku[API]: Starting process with command `bundle exec rake copycopter:project name=MyProjectname USERname=admin PASSWORD=password` by [email protected]:09:00.543650+00:00 heroku[run.5825]: Awaiting clIEnt2013-07-12T03:09:00.597438+00:00 heroku[run.5825]: Starting process with command `bundle exec rake copycopter:project name=MyProjectname USERname=admin PASSWORD=password`2013-07-12T03:09:01.900564+00:00 heroku[run.5825]: State changed from starting to up2013-07-12T03:09:06.612032+00:00 heroku[run.5825]: Process exited with status 02013-07-12T03:09:06.625397+00:00 heroku[run.5825]: State changed from up to complete2013-07-12T03:09:11.063317+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=myname.herokuapp.com fwd="XX.XXX.XXX.XX" dyno= connect= service= status=503 bytes=2013-07-12T03:09:11.277609+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=myname.herokuapp.com fwd="XX.XXX.XXX.XX" dyno= connect= service= status=503 bytes=2013-07-12T03:09:12.850149+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=myname.herokuapp.com fwd="XX.XXX.XXX.XX" dyno= connect= service= status=503 bytes=2013-07-12T03:09:13.020609+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=myname.herokuapp.com fwd="XX.XXX.XXX.XX" dyno= connect= service= status=503 bytes=2013-07-12T03:09:41.765591+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=myname.herokuapp.com fwd="XX.XXX.XXX.XX" dyno= connect= service= status=503 bytes=2013-07-12T03:09:42.022288+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=myname.herokuapp.com fwd="XX.XXX.XXX.XX" dyno= connect= service= status=503 bytes=
解决方法 我遇到过同样的问题.我在本地更改了copycopter-server的gemfile:

轨道3.2.6到轨道3.2.13
“source:rubygems”必须是“source”https://rubygems.org“
最重要的是,gemfile.lock中的eventmachine版本必须更新为:
“eventmachine(1.0.3)”

然后运行bundle update rails,bundle install并再次推送到heroku,heroku再次运行rake db:migrate.

希望这也适合你!

参考文献:https://github.com/copycopter/copycopter-server/issues/86

总结

以上是内存溢出为你收集整理的ruby-on-rails-3 – 在Heroku(Rails)上崩溃的Copycopter服务器全部内容,希望文章能够帮你解决ruby-on-rails-3 – 在Heroku(Rails)上崩溃的Copycopter服务器所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1290563.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-09
下一篇 2022-06-09

发表评论

登录后才能评论

评论列表(0条)

保存