簡體   English   中英

在Phusion Passenger下運行的Rails應用程序只顯示白屏

[英]Rails app running under Phusion Passenger shows only a white screen

我之前發布了另一個關於使用Passenger進行部署的問題 這個問題結果是一個權限問題,我通過遞歸地在www文件夾上運行chmod來修復它。

現在,我沒有得到Phusion錯誤頁面,但我得到了死亡的白色屏幕。 Rails日志顯示沒有錯誤消息,我無法弄清楚這里發生了什么。

編輯:這些來自錯誤日志...至少我認為他們這樣做。 無論出於何種原因,所有error.log都被gzip壓縮。 頁面的狀態代碼是500 Internal Server Error。

SQLite3::CantOpenException (unable to open database file):

SQLite3::CantOpenException (unable to open database file):

EDIT2:FInally從服務器輸出了一些錯誤。 :-P

[Sat Sep 18 17:49:55 2010] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.2 with Suhosin-Patch Phusion_Passenger/3.0.0.pre2 configured -- resuming normal operations
Rails Error: Unable to access log file. Please ensure that /var/www/rails/releases/20100918182135/log/production.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.

ActiveRecord::StatementInvalid (SQLite3::SQLException: no such table: welcomes: SELECT "welcomes".* FROM "welcomes"): app/controllers/welcomes_controller.rb:5:in `index'
ActiveRecord::StatementInvalid (SQLite3::SQLException: no such table: welcomes: SELECT     "welcomes".* FROM "welcomes"): app/controllers/welcomes_controller.rb:5:in `index'

您的錯誤日志可能被日志輪換守護程序gzip壓縮。 它是大多數服務器的標准組件。

無論如何,你得到一個白頁,因為,正如錯誤所說,你的數據庫文件有問題,可能是另一個權限問題。 修復它,它應該工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM