Movable TypeのPSGI環境で503エラーになる場合の対処

Movable TypeのPSGI環境で503エラーになる場合の対処

Posted at February 8,2016 12:03 AM
Tag:[MovableType, PSGI]
  • Hatena ブックマーク
  • del.icio.us
  • livedoor
  • Google Bookmarks
  • Yahoo!ブックマーク
  • POOKMARK Airlines
  • ニフティクリップ
  • Buzzurl
  • newsing it!

Movable TypeのPSGI環境で503エラーになる場合の対処を紹介します。

久しぶりにPSGI環境にログインしようとしたときのエラーで、単なる備忘録です。

1.問題点

さくらVPSのMT(PSGI)の管理画面にログインしようとしたところ、503エラーが発生。

Apacheログの内容は次のとおり。

mt.cgiにアクセスしたときのログです。

/var/log/httpd/access_log

xxx.xxx.xxx.xxx - - [07/Feb/2016:14:35:24 +0900] "GET /cgi-bin/mt/mt.cgi HTTP/1.1" 503 403 "-" "Mozilla/5.0 (Windows NT 6.0; rv:37.0) Gecko/20100101 Firefox/37.0"

/var/log/httpd/error_log

[Sun Feb 07 14:35:24 2016] [error] proxy: HTTP: disabled connection for (localhost)

こちらはmt.psgiにアクセスしたときのログです。

/var/log/httpd/access_log

xxx.xxx.xxx.xxx - - [07/Feb/2016:14:35:54 +0900] "GET /cgi-bin/mt/mt.psgi HTTP/1.1" 503 403 "-" "Mozilla/5.0 (Windows NT 6.0; rv:37.0) Gecko/20100101 Firefox/37.0"

/var/log/httpd/error_log

[Sun Feb 07 14:35:54 2016] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:5000 (localhost) failed
[Sun Feb 07 14:35:54 2016] [error] ap_proxy_connect_backend disabling worker for (localhost)

2.対処

starmanを起動することで回復しました。

$ cd /var/www/cgi-bin/mt
$ starman --pid /var/www/html/mt/pids/mt.pid ./mt.psgi
Pid_file "/var/www/html/mt/pids/mt.pid" already exists.  Overwriting!
2016/02/07-14:40:09 Starman::Server (type Net::Server::PreFork) starting! pid(24831)
Resolved [*]:5000 to [0.0.0.0]:5000, IPv4
Binding to TCP port 5000 on host 0.0.0.0 with IPv4
Setting gid to "500 500 10 500"
関連記事
トラックバックURL


コメントする
コメントするにはまずサインインしてください。
Loading...