加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-17 03:05:31 所属栏目:百科 来源:网络整理
导读:我刚刚开始试用copycopter,但开箱即用的应用程序似乎崩溃了.我几乎只是在 https://github.com/copycopter/copycopter-server运行了指令,但显然有些东西不正常.这是我的heroku日志的最后几行,但如果需要,我可以提供更多细节.我看到它正在使用旧式插件 – 这是
我刚刚开始试用copycopter,但开箱即用的应用程序似乎崩溃了.我几乎只是在 https://github.com/copycopter/copycopter-server运行了指令,但显然有些东西不正常.这是我的heroku日志的最后几行,但如果需要,我可以提供更多细节.我看到它正在使用旧式插件 – 这是相关的,如果有的话需要改变什么?

2013-07-12T03:05:16.164555+00:00 heroku[web.1]: State changed from crashed to starting
2013-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 adapter
2013-07-12T03:05:21.841751+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2013-07-12T03:05:23.382849+00:00 heroku[web.1]: State changed from starting to crashed
2013-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_interrupt
2013-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 1024
2013-07-12T03:05:22.239348+00:00 app[web.1]: >> Listening on 0.0.0.0:35563,CTRL+C to stop
2013-07-12T03:05:23.374312+00:00 heroku[web.1]: Process exited with status 127
2013-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 foobar@xyzzy.com
2013-07-12T03:08:20.694207+00:00 heroku[run.1389]: Awaiting client
2013-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 up
2013-07-12T03:08:27.647200+00:00 heroku[run.1389]: Process exited with status 1
2013-07-12T03:08:27.670344+00:00 heroku[run.1389]: State changed from up to complete
2013-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 foobar@xyzzy.com
2013-07-12T03:09:00.543650+00:00 heroku[run.5825]: Awaiting client
2013-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 up
2013-07-12T03:09:06.612032+00:00 heroku[run.5825]: Process exited with status 0
2013-07-12T03:09:06.625397+00:00 heroku[run.5825]: State changed from up to complete
2013-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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读