2010-12-07 176 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