0
我有一個測試服務器上的一個奇怪的問題......production.log粘
基本上我的應用程序運行良好,但如果我檢查production.log,它是由於某種原因,停留在昨天,當我在應用程序上發生錯誤時......自此,我已修復它,再次部署,但日誌仍然不會更新。從昨天晚上起就像這樣。
所以,如果我嘗試
tail -f log/production.log
最後的日誌我看到的是從昨天開始......這是怎麼回事?這是如此怪異O___o
從我的日誌這裏是:
Started GET "/one" for xx.xx.xx.xx at 2012-06-04 09:14:30 -0400
Processing by ParagraphsController#one as HTML
(0.5ms) SELECT id FROM paragraphs WHERE length = 1
Paragraph Load (0.3ms) SELECT "paragraphs".* FROM "paragraphs" WHERE "paragraphs"."id" = $1 LIMIT 1 [["id", 1]]
Rendered paragraphs/one.html.erb within layouts/application (0.1ms)
Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.8ms)
tail: cannot open `1' for reading: No such file or directory
任何幫助是極大的讚賞!
..即使我認爲我得到了這個問題,那什麼_cannot打開'1'爲reading_error消息?你究竟如何運行「尾巴」? – sarnold
你是對的,我錯了:tail -f production.log 1 - 但是,當我輸入尾巴-100 production.log我得到了相同的(除了尾部錯誤) – alemur
ls -lrt登錄上的最後一個文件列表是最近修改過的文件。該文件的尾部並檢查它是否正在寫入。 –