脚本头premature结束:媒体(问题有关:Rails应用程序部署+乘客+ Ubuntu的+ APACHE) [英] Premature end of script headers: media ( Issue related to :rails app deployment+passenger+ubuntu+apache)

查看:192
本文介绍了脚本头premature结束:媒体(问题有关:Rails应用程序部署+乘客+ Ubuntu的+ APACHE)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是设置一个的Linode服务器和it.its部署我的Rails应用程序3和running.The的问题是,一些图片没有显示在production.locally他们是完全working.i双重检查日志文件( production.log),但没有found.then我检查服务器的error.log文件说。

i just setup a linode server and deploy my rails 3 app on it.its up and running.The problem is that some images are not showing up in the production.locally they are perfectly working.i double checked the log file(production.log) but nothing found.then i check server error.log file that says.

[Sat Dec 29 22:54:14 2012] [error] [client 182.177.228.157] Premature end of script headers: media, referer: http://50.116.57.152/app?v=11&o=33

Check out http://50.116.57.152/app?v=11&o=33  for live demo.

感谢在前进。

推荐答案

我想它out.ImageMagick宝石没有安装我的Linode的服务器上,我用的蜻蜓,这就是为什么错误来了我刚安装了它,bingooooo每一件事图片现在可以正常使用...........所以,球员,如果你所面对的问题,攻双重检查所有安装了所需的宝石知道。

i figured it out.ImageMagick gem was not installed on my linode server and i used dragonfly for images that's why error was coming i just installed it and bingooooo every thing is now working perfectly...........So guys be aware if you are facing the seme problem double check all the required gems installed.

其次,如果你已经安装了红宝石1.9.3p360记得它有缺陷,由于该请求渲染未完成。所以,解决的办法是低于P360红宝石版本,让P327说,如果你使用的是乘客作为Web服务器,然后重新安装。复制3条线的乘客在安装你apache2.cong文件后,给了。重启服务器和这个错误不应该再出现。
谢谢。

Secondly, if you have installed ruby 1.9.3p360 remember it has bugs due to that request rendering does not complete. So the solution is down the ruby version from p360 to let say p327 and if you are using passenger as a web server then reinstall it. Copy 3 lines that passenger gives after installation in you apache2.cong file. restart server and this error should not occur again. thanks.

这篇关于脚本头premature结束:媒体(问题有关:Rails应用程序部署+乘客+ Ubuntu的+ APACHE)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆