2010-12-07 130 views
0

好的我认为我已经接近让乘客和Apache工作。我注意到一些gem文件没有安装导航到网址后,看看我的rails应用程序是否工作。 Passanger错误页面让我知道什么宝石丢失,所以我安装了它们。导致Apache/Passanger内部服务器错误的Rails错误

现在去URL我得到一个500内部错误页面没有有用的信息,所以我检查了服务器上的日志文件,这是我看到的。

Rails Error: Unable to access log file. Please ensure that /home/mydirectory/dev/vb/log/production.log exists and is chmod 0666. $ 
Rack: /home/mydirectory/dev/vb: symbol lookup error: /usr/local/rvm/gems/[email protected]/gems/sqlite3-ruby-1.2.4/lib/sqlite$ 
[Tue Dec 07 20:12:17 2010] [error] [client 64.58.208.22] Premature end of script headers: 
[ pid=20653 thr=140618873321280 file=ext/apache2/Hooks.cpp:816 time=2010-12-07 20:12:17.617 ]: The backend application (proce$ 
Rack: /home/mydirectory/dev/vb: symbol lookup error: /usr/local/rvm/gems/[email protected]/gems/sqlite3-ruby-1.2.4/lib/sqlite$ 
[Tue Dec 07 20:12:43 2010] [error] [client 64.58.208.22] Premature end of script headers: 


Rack: /home/mydirectory/dev/vb: symbol lookup error: /usr/local/rvm/gems/[email protected]/gems/sqlite3-ruby-1.2.4/lib/sqlite$ 
[Tue Dec 07 20:13:25 2010] [error] [client 64.58.208.22] Premature end of script headers: 
[ pid=21932 thr=140618873321280 file=ext/apache2/Hooks.cpp:816 time=2010-12-07 20:13:25.168 ]: The backend application (proce$ 
Rack: /home/mydirectory/dev/vb: symbol lookup error: /usr/local/rvm/gems/[email protected]/gems/sqlite3-ruby-1.2.4/lib/sqlite$ 
[Tue Dec 07 20:13:31 2010] [error] [client 64.58.208.22] Premature end of script headers: 
[ pid=20623 thr=140618873321280 file=ext/apache2/Hooks.cpp:816 time=2010-12-07 20:13:31.266 ]: The backend application (proce$ 
Rails Error: Unable to access log file. Please ensure that /home/mydirectory/dev/vb/log/production.log exists and is chmod 0666. $ 
Rack: /home/mydirectory/dev/vb: symbol lookup error: /usr/local/rvm/gems/[email protected]/gems/sqlite3-ruby-1.2.4/lib/sqlite$ 
[Tue Dec 07 20:24:56 2010] [error] [client 64.58.208.22] Premature end of script headers: 
[ pid=20622 thr=140618873321280 file=ext/apache2/Hooks.cpp:816 time=2010-12-07 20:24:56.442 ]: The backend application (proce$ 
Rack: /home/mydirectory/dev/vb: symbol lookup error: /usr/local/rvm/gems/[email protected]/gems/sqlite3-ruby-1.2.4/lib/sqlite$ 

任何人有任何建议,我应该看看下。我曾尝试运行bundler,并使用rvm来安装sqlite3,但我仍然遇到同样的问题。再次

感谢您的帮助

回答

1

你有没有检查建议的错误日志的第一线?

Rails Error: Unable to access log file. Please ensure that /home/mydirectory/dev/vb/log/production.log exists and is chmod 0666. 
+0

是的......当我看到那里没有一个production.log所以我创建了一个,并确保设置权限 – mattwallace 2010-12-07 20:47:52