[英]Mongrel Cluster fails to start
I have an issue with Mongrel cluster start-up, when I start the cluster I am getting the following error: /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 'gem_original_require': no such file to load -- /home/admin/test-project/test-app/config/environment (LoadError) 我在启动集群时遇到Mongrel集群启动问题,出现以下错误: /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:'gem_original_require'中:否要加载的文件-/ home / admin / test-project / test-app / config / environment(LoadError)
I am using this command to start the server (as root): 我正在使用以下命令来启动服务器(以根用户身份):
For mongrel set-up I did the following (as root): 对于杂种设置,我做了以下操作(作为根用户):
I have checked the permissions on the files in the config folder and they are as follows: 我已经检查了config文件夹中文件的权限,它们如下:
Other details: 其他详情:
"mongrel_rails start" works fine. “ mongrel_rails start”工作正常。
Any help would be appreciated. 任何帮助,将不胜感激。
Thank you. 谢谢。
Govind Naroji Govind Naroji
Why are you doing cd /config/environment
? 为什么要执行
cd /config/environment
? You should start your server from the root directory of your application. 您应该从应用程序的根目录启动服务器。
I suppose that I was getting this error due to permissions issue. 我想由于权限问题而出现此错误。 all the files in the app/config folder were owned by mongrel user and I was trying to start it with root user.
app / config文件夹中的所有文件均由mongrel用户拥有,而我试图以root用户启动它。
I had switched to passenger and I was getting the same issue with passenger. 我改用了乘客,但乘客也遇到了同样的问题。 The issue is now resolved - I made the admin user as the owner of all the files in the app and then started the server with user as admin.
现在,此问题已得到解决-我以admin用户为该应用程序中所有文件的所有者,然后以admin用户身份启动服务器。
We have decided to use passenger instead of mongrel as mongrel_cluster does seem to be broken in 2.3.8 - we are getting an ActionController::InvalidAuthenticityToken error with mongrel which we don't get on passenger or webrick. 我们已决定使用乘客而不是杂种,因为mongrel_cluster在2.3.8中似乎已被破坏-我们收到杂种杂物的ActionController :: InvalidAuthenticityToken错误,而乘客或webrick上却没有。
So finally its passenger+nginx for us. 所以最后是我们的乘客+ nginx。
Cheers! 干杯!
Govind Naroji Govind Naroji
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.