Redmine - production.log書き込めない


2017年05月23日


ブラウザでRedmineにアクセスすると、下記のエラー発生する。

Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

Back

エラー内容を確認する。

# tail -f /var/log/httpd/error_log 
App 13038 stderr: log writing failed. No space left on device @ io_write - /var/lib/redmine-3.0-stable/log/production.log
App 13038 stderr: log writing failed. No space left on device @ io_write - /var/lib/redmine-3.0-stable/log/production.log
App 13038 stderr: log writing failed. No space left on device @ io_write - /var/lib/redmine-3.0-stable/log/production.log

production.logに書き込めない様子。
ディスク容量がいっぱいなので、とりあえず、production.logを削除して、production.logを作り直す。

# cd /var/lib/redmine-3.0-stable/log/

# ll
-rw-r--r-- 1 user user        36 Jul 25  2015 delete.me
-rw-rw-r-- 1 user user         0 Apr  9  2016 development.log
-rw-rw-r-- 1 user user 301453312 May 23 18:41 production.log

# rm -rf production.log

# ll
-rw-r--r-- 1 user user        36 Jul 25  2015 delete.me
-rw-rw-r-- 1 user user         0 Apr  9  2016 development.log
-rw-rw-r-- 1 user user         0 May 23 18:44 production.log

Apacheの状態を確認して、Apache再起動する。

# systemctl status httpd.service
* httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2017-05-22 09:12:13 JST; 1 day 9h ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 7484 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 29807 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
 Main PID: 8211 (httpd)
   Status: "Total requests: 4541; Current requests/sec: 0; Current traffic:   0 B/sec"
   CGroup: /system.slice/httpd.service
           |- 8211 /usr/sbin/httpd -DFOREGROUND
           |- 8233 PassengerWatchdog
           |- 8236 PassengerHelperAgent
           |- 8242 PassengerLoggingAgent
           |-13143 Passenger RackApp: /var/lib/redmine-3.0-stable
           |-13231 /usr/sbin/httpd -DFOREGROUND
           |-13265 /usr/sbin/httpd -DFOREGROUND
           |-14462 /usr/sbin/httpd -DFOREGROUND
           |-14677 /usr/sbin/httpd -DFOREGROUND
           |-14798 /usr/sbin/httpd -DFOREGROUND
           |-14861 /usr/sbin/httpd -DFOREGROUND
           |-14926 /usr/sbin/httpd -DFOREGROUND
           |-15165 /usr/sbin/httpd -DFOREGROUND
           |-16302 /usr/sbin/httpd -DFOREGROUND
           `-18156 /usr/sbin/httpd -DFOREGROUND

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

# systemctl restart  httpd.service

# systemctl status httpd.service
* httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2017-05-23 18:47:16 JST; 4s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 18576 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 29807 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
 Main PID: 18599 (httpd)
   Status: "Processing requests..."
   CGroup: /system.slice/httpd.service
           |-18599 /usr/sbin/httpd -DFOREGROUND
           |-18603 PassengerHelperAgent
           |-18611 PassengerLoggingAgent
           |-18619 PassengerWatchdog (cleaning up...)
           |-18621 PassengerWatchdog
           |-18624 PassengerHelperAgent
           |-18629 PassengerLoggingAgent
           |-18639 /usr/sbin/httpd -DFOREGROUND
           |-18640 /usr/sbin/httpd -DFOREGROUND
           |-18641 /usr/sbin/httpd -DFOREGROUND
           |-18642 /usr/sbin/httpd -DFOREGROUND
           `-18643 /usr/sbin/httpd -DFOREGROUND

May 23 18:47:15 servername systemd[1]: Starting The Apache HTTP Server...
May 23 18:47:15 servername httpd[18599]: AH00548: NameVirtualHost has no effect and will be removed in the nex...f:367
May 23 18:47:16 servername httpd[18599]: AH00558: httpd: Could not reliably determine the server's fully quali...ssage
May 23 18:47:16 servername systemd[1]: Started The Apache HTTP Server.
Hint: Some lines were ellipsized, use -l to show in full.


Archive