Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 3 r11绑定错误,尽管exec命令中有$port 2013-03-04T06:47:21+00:00 heroku[web.1]:状态从开始更改为崩溃 2013-03-04T06:47:21+00:00 heroku[web.1]:状态从崩溃变为启动 **2013-03-04T06:47:22+00:00 heroku[web.1]:使用命令'exec unicorn-p 6662-c./config/unicorn.rb启动进程`** 2013-03-04T06:47:23+00:00应用程序[web.1]:I[2013-03-04T06:47:23.679109#2]信息--:刷新宝石列表 2013-03-04T06:47:24+00:00应用程序[web.1]:弃用警告:供应商/插件中有Rails 2.3样式的插件!对这些插件的支持将在Rails 4.0中删除。将它们移出并打包到您的Gemfile中,或者将它们作为lib/myplugin/*和config/initializers/myplugin.rb折叠到您的应用程序中。有关这方面的更多信息,请参阅发行说明:http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (从at/app/config/environment.rb:5调用) 2013-03-04T06:47:24+00:00应用程序[web.1]:弃用警告:供应商/插件中有Rails 2.3样式的插件!对这些插件的支持将在Rails 4.0中删除。将它们移出并打包到您的Gemfile中,或者将它们作为lib/myplugin/*和config/initializers/myplugin.rb折叠到您的应用程序中。有关这方面的更多信息,请参阅发行说明:http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (从at/app/config/environment.rb:5调用) 2013-03-04T06:47:25+00:00应用程序[web.1]:这构成了安全威胁。强烈建议您 2013-03-04T06:47:25+00:00应用程序[web.1]:cookies。未来版本的机架不支持此功能,并且 2013-03-04T06:47:25+00:00应用程序[web.1]:调用自:/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action\u dispatch/middleware/session/abstract\u store.rb:28:在“初始化”中。 2013-03-04T06:47:25+00:00应用程序[web.1]: 2013-03-04T06:47:25+00:00应用程序[web.1]: 2013-03-04T06:47:25+00:00应用程序[web.1]:提供一个秘密,以防止可能的漏洞利用 2013-03-04T06:47:25+00:00应用程序[web.1]:安全警告:Rack::Session::Cookie未提供任何机密选项。 2013-03-04T06:47:25+00:00应用程序[web.1]:未来版本甚至会使您现有的用户cookie无效。 2013-03-04T06:47:27+00:00应用程序[web.1]:I[2013-03-04T06:47:27.469450#2]信息--:收听地址=0.0.0.0:6662 fd=8 2013-03-04T06:47:27+00:00应用程序[web.1]:与ActiveRecord断开连接 2013-03-04T06:47:27+00:00 heroku[web.1]:错误R11(绑定错误)->绑定到端口55101的进程应为6662(请参阅环境变量port) 2013-03-04T06:47:27+00:00 heroku[web.1]:使用SIGKILL停止进程 2013-03-04T06:47:28+00:00 heroku[web.1]:进程已退出,状态为137 2013-03-04T06:47:28+00:00 heroku[web.1]:状态从开始更改为崩溃 2013-03-04T06:47:31+00:00 heroku[路由器]:at=错误代码=H10 desc=“应用程序崩溃”方法=获取路径=/ivms/13?host=murring-plains-5992.herokuapp.com fwd=“202.157.93.2”dyno=queue=wait=connect=service=status=503字节=_Ruby On Rails 3_Heroku - Fatal编程技术网

Ruby on rails 3 r11绑定错误,尽管exec命令中有$port 2013-03-04T06:47:21+00:00 heroku[web.1]:状态从开始更改为崩溃 2013-03-04T06:47:21+00:00 heroku[web.1]:状态从崩溃变为启动 **2013-03-04T06:47:22+00:00 heroku[web.1]:使用命令'exec unicorn-p 6662-c./config/unicorn.rb启动进程`** 2013-03-04T06:47:23+00:00应用程序[web.1]:I[2013-03-04T06:47:23.679109#2]信息--:刷新宝石列表 2013-03-04T06:47:24+00:00应用程序[web.1]:弃用警告:供应商/插件中有Rails 2.3样式的插件!对这些插件的支持将在Rails 4.0中删除。将它们移出并打包到您的Gemfile中,或者将它们作为lib/myplugin/*和config/initializers/myplugin.rb折叠到您的应用程序中。有关这方面的更多信息,请参阅发行说明:http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (从at/app/config/environment.rb:5调用) 2013-03-04T06:47:24+00:00应用程序[web.1]:弃用警告:供应商/插件中有Rails 2.3样式的插件!对这些插件的支持将在Rails 4.0中删除。将它们移出并打包到您的Gemfile中,或者将它们作为lib/myplugin/*和config/initializers/myplugin.rb折叠到您的应用程序中。有关这方面的更多信息,请参阅发行说明:http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (从at/app/config/environment.rb:5调用) 2013-03-04T06:47:25+00:00应用程序[web.1]:这构成了安全威胁。强烈建议您 2013-03-04T06:47:25+00:00应用程序[web.1]:cookies。未来版本的机架不支持此功能,并且 2013-03-04T06:47:25+00:00应用程序[web.1]:调用自:/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action\u dispatch/middleware/session/abstract\u store.rb:28:在“初始化”中。 2013-03-04T06:47:25+00:00应用程序[web.1]: 2013-03-04T06:47:25+00:00应用程序[web.1]: 2013-03-04T06:47:25+00:00应用程序[web.1]:提供一个秘密,以防止可能的漏洞利用 2013-03-04T06:47:25+00:00应用程序[web.1]:安全警告:Rack::Session::Cookie未提供任何机密选项。 2013-03-04T06:47:25+00:00应用程序[web.1]:未来版本甚至会使您现有的用户cookie无效。 2013-03-04T06:47:27+00:00应用程序[web.1]:I[2013-03-04T06:47:27.469450#2]信息--:收听地址=0.0.0.0:6662 fd=8 2013-03-04T06:47:27+00:00应用程序[web.1]:与ActiveRecord断开连接 2013-03-04T06:47:27+00:00 heroku[web.1]:错误R11(绑定错误)->绑定到端口55101的进程应为6662(请参阅环境变量port) 2013-03-04T06:47:27+00:00 heroku[web.1]:使用SIGKILL停止进程 2013-03-04T06:47:28+00:00 heroku[web.1]:进程已退出,状态为137 2013-03-04T06:47:28+00:00 heroku[web.1]:状态从开始更改为崩溃 2013-03-04T06:47:31+00:00 heroku[路由器]:at=错误代码=H10 desc=“应用程序崩溃”方法=获取路径=/ivms/13?host=murring-plains-5992.herokuapp.com fwd=“202.157.93.2”dyno=queue=wait=connect=service=status=503字节=

Ruby on rails 3 r11绑定错误,尽管exec命令中有$port 2013-03-04T06:47:21+00:00 heroku[web.1]:状态从开始更改为崩溃 2013-03-04T06:47:21+00:00 heroku[web.1]:状态从崩溃变为启动 **2013-03-04T06:47:22+00:00 heroku[web.1]:使用命令'exec unicorn-p 6662-c./config/unicorn.rb启动进程`** 2013-03-04T06:47:23+00:00应用程序[web.1]:I[2013-03-04T06:47:23.679109#2]信息--:刷新宝石列表 2013-03-04T06:47:24+00:00应用程序[web.1]:弃用警告:供应商/插件中有Rails 2.3样式的插件!对这些插件的支持将在Rails 4.0中删除。将它们移出并打包到您的Gemfile中,或者将它们作为lib/myplugin/*和config/initializers/myplugin.rb折叠到您的应用程序中。有关这方面的更多信息,请参阅发行说明:http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (从at/app/config/environment.rb:5调用) 2013-03-04T06:47:24+00:00应用程序[web.1]:弃用警告:供应商/插件中有Rails 2.3样式的插件!对这些插件的支持将在Rails 4.0中删除。将它们移出并打包到您的Gemfile中,或者将它们作为lib/myplugin/*和config/initializers/myplugin.rb折叠到您的应用程序中。有关这方面的更多信息,请参阅发行说明:http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (从at/app/config/environment.rb:5调用) 2013-03-04T06:47:25+00:00应用程序[web.1]:这构成了安全威胁。强烈建议您 2013-03-04T06:47:25+00:00应用程序[web.1]:cookies。未来版本的机架不支持此功能,并且 2013-03-04T06:47:25+00:00应用程序[web.1]:调用自:/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action\u dispatch/middleware/session/abstract\u store.rb:28:在“初始化”中。 2013-03-04T06:47:25+00:00应用程序[web.1]: 2013-03-04T06:47:25+00:00应用程序[web.1]: 2013-03-04T06:47:25+00:00应用程序[web.1]:提供一个秘密,以防止可能的漏洞利用 2013-03-04T06:47:25+00:00应用程序[web.1]:安全警告:Rack::Session::Cookie未提供任何机密选项。 2013-03-04T06:47:25+00:00应用程序[web.1]:未来版本甚至会使您现有的用户cookie无效。 2013-03-04T06:47:27+00:00应用程序[web.1]:I[2013-03-04T06:47:27.469450#2]信息--:收听地址=0.0.0.0:6662 fd=8 2013-03-04T06:47:27+00:00应用程序[web.1]:与ActiveRecord断开连接 2013-03-04T06:47:27+00:00 heroku[web.1]:错误R11(绑定错误)->绑定到端口55101的进程应为6662(请参阅环境变量port) 2013-03-04T06:47:27+00:00 heroku[web.1]:使用SIGKILL停止进程 2013-03-04T06:47:28+00:00 heroku[web.1]:进程已退出,状态为137 2013-03-04T06:47:28+00:00 heroku[web.1]:状态从开始更改为崩溃 2013-03-04T06:47:31+00:00 heroku[路由器]:at=错误代码=H10 desc=“应用程序崩溃”方法=获取路径=/ivms/13?host=murring-plains-5992.herokuapp.com fwd=“202.157.93.2”dyno=queue=wait=connect=service=status=503字节=,ruby-on-rails-3,heroku,Ruby On Rails 3,Heroku,所以exec从正确的端口6662开始,但以错误的端口结束。每一个国家都在发生这种情况 heroku ps:重新启动或heroku重新启动 我错过了什么 环境: 铁路3 红宝石193 heroku cedar stack您能显示您的文件吗?Heroku将为每个dyno动态分配一个端口变量。此值可能会更改。过度重启。因此,您的web进程类型应该读取端口变量值,并使用它 请参见此示例,它是这样做的: 2013-03-04T06:47:21+00:00 heroku[web.1]: State chan

所以exec从正确的端口6662开始,但以错误的端口结束。每一个国家都在发生这种情况 heroku ps:重新启动或heroku重新启动

我错过了什么

环境: 铁路3 红宝石193
heroku cedar stack

您能显示您的文件吗?Heroku将为每个dyno动态分配一个端口变量。此值可能会更改。过度重启。因此,您的web进程类型应该读取端口变量值,并使用它

请参见此示例,它是这样做的:

2013-03-04T06:47:21+00:00 heroku[web.1]: State changed from starting to crashed
2013-03-04T06:47:21+00:00 heroku[web.1]: State changed from crashed to starting
**2013-03-04T06:47:22+00:00 heroku[web.1]: Starting process with command `exec unicorn -p 6662 -c ./config/unicorn.rb`**
2013-03-04T06:47:23+00:00 app[web.1]: I, [2013-03-04T06:47:23.679109 #2]  INFO -- : Refreshing Gem list
2013-03-04T06:47:24+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/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-03-04T06:47:24+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/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-03-04T06:47:25+00:00 app[web.1]:         This poses a security threat. It is strongly recommended that you
2013-03-04T06:47:25+00:00 app[web.1]:         cookies. This will not be supported in future versions of Rack, and
2013-03-04T06:47:25+00:00 app[web.1]:         Called from: /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/session/abstract_store.rb:28:in `initialize'.
2013-03-04T06:47:25+00:00 app[web.1]: 
2013-03-04T06:47:25+00:00 app[web.1]: 
2013-03-04T06:47:25+00:00 app[web.1]:         provide a secret to prevent exploits that may be possible from crafted
2013-03-04T06:47:25+00:00 app[web.1]:         SECURITY WARNING: No secret option provided to Rack::Session::Cookie.
2013-03-04T06:47:25+00:00 app[web.1]:         future versions will even invalidate your existing user cookies.
2013-03-04T06:47:27+00:00 app[web.1]: I, [2013-03-04T06:47:27.469450 #2]  INFO -- : listening on addr=0.0.0.0:6662 fd=8
2013-03-04T06:47:27+00:00 app[web.1]: Disconnected from ActiveRecord
2013-03-04T06:47:27+00:00 heroku[web.1]: Error R11 (Bad bind) -> Process bound to port 55101, should be 6662 (see environment variable PORT)
2013-03-04T06:47:27+00:00 heroku[web.1]: Stopping process with SIGKILL
2013-03-04T06:47:28+00:00 heroku[web.1]: Process exited with status 137
2013-03-04T06:47:28+00:00 heroku[web.1]: State changed from starting to crashed
2013-03-04T06:47:31+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ivms/13? host=murmuring-plains-5992.herokuapp.com fwd="202.157.93.2" dyno= queue= wait= connect= service= status=503 bytes=

my procfile:web:exec unicorn-p$PORT-c./config/unicorn.rb我的procfile:web:exec unicorn-p$PORT-c./config/unicorn.rb使用命令启动进程
exec unicorn-p 6662-c./config/unicorn.rb
**错误R11(绑定错误)->绑定到端口55101的进程应为6662(请参阅环境,使其以正确的端口开始,但最终以错误的端口结束。我猜您的unicorn配置文件可能是通过侦听之类的方式绑定到端口的。请尝试示例配置。
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb