Mongrelの停止について

172 views
Skip to first unread message

tama

unread,
Nov 17, 2010, 8:01:27 PM11/17/10
to Redmine Users (japanese)
Mongrelの停止について1点ご質問させてください。

①Mongrelの停止について
現在、下記コマンドを打つと、
-----------------------------
mongrel_rails stop
-----------------------------
以下のメッセージが表示されます。
-----------------------------------------------------------------------------------
!!! PID file log/mongrel.pid does not exist. Not running?
mongrel::stop reported an error. Use mongrel_rails mongrel::stop -h to
get help.
-----------------------------------------------------------------------------------
どうもmongrelのスタートは問題なさそうなのですが、ストップ(停止)が出来ておらず、それが原因でThemaやHTMLタグの有効化が出来てい
ないのではないかと想定しています。

ちなみに環境は、
----------------------------
Windows Server2003 R2
Redmine 1.0.3
Ruby 1.8.6
Ruby on Rails 2.3.5
MySQL 5.1.52
Apache 2.2.17
Mongrel 1.1.5
Mongrel_cluster 1.0.5
---------------------------
です。

どなたか、お分かりになる方教えてください。
正直、かなり困っています。。
どうかお願い致します。

fmkt

unread,
Nov 17, 2010, 9:16:38 PM11/17/10
to Redmine Users (japanese)
こんにちは。

Mongrel_cluster 1.0.5
をインストールされてるようですが、
スタートの方法を
mongrel_rails cluster::start
とやってませんか?

もしそうなら、

mongrel_rails cluster::stop

とされてはいかがでしょうか。

ちなみにpidファイルが見つからないというメッセージなので、
tmp/pids にそれらしきpidファイルがあれば -P オプションで指定してもいいかもしれません。

参考
$ mongrel_rails help
Usage: mongrel_rails <command> [options]
Available commands are:

- cluster::configure
- cluster::restart
- cluster::start
- cluster::status
- cluster::stop
- restart
- start
- stop

$ mongrel_rails stop -h
Usage: mongrel_rails <command> [options]
-c, --chdir PATH Change to dir before starting
(will be expanded).
-f, --force Force the shutdown (kill -9).
-w, --wait SECONDS Wait SECONDS before forcing
shutdown
-P, --pid FILE Where the PID file is located.
-h, --help Show this message
--version Show version


On 11月18日, 午前10:01, tama <tamatama0...@gmail.com> wrote:
> Mongrelの停止について1点ご質問させてください。
>
> ①Mongrelの停止について
> 現在、下記コマンドを打つと、
> -----------------------------
> mongrel_rails stop
> -----------------------------
> 以下のメッセージが表示されます。
> ------------------------------------------------------------------------------------
> !!! PID file log/mongrel.pid does not exist. Not running?
> mongrel::stop reported an error. Use mongrel_rails mongrel::stop -h to
> get help.
> ------------------------------------------------------------------------------------

tama

unread,
Nov 18, 2010, 4:00:52 AM11/18/10
to Redmine Users (japanese)
fmkt様

早急のご連絡及び、アドバイスありがとうございました。
大変感謝しております。
いただきましたアドバイスの通り、
mongrel_rails cluster::stop
を実施いたしました。
結果、ThemaやHTMLタグの有効になりました。
ありがとうございます。

しかし一方で、下記のようなエラーがでました。
--------------------------------------------------------------------------
C:\redmine-1.0.3>mongrel_rails cluster::stop C:/Ruby/lib/ruby/gems/1.8/
gems/mongrel_cluster-1.0.5/lib/mongrel_cluster/init.rb
:204:in ``': No such file or directory - ps -ewwo pid,command
(Errno::ENOENT)
--------------------------------------------------------------------------

やはりpidの部分でひっかかっているのでしょうか。
念のためmongrel_cluster.ymlの中身は以下のようになっています。
-------------------------------------------------
log_file: log/mongrel.log
port: 3000
environment: production
pid_file: tmp/pids/mongrel.pid
servers: 2
-------------------------------------------------
pidファイルは出来ているものの、中身がカラッポの状態です。
カラッポでよいのでしょうか。

もし何か、ご存知のことがあればどなたかアドバイスいただけますでしょうか。
※また、同時に新たな問題も発生いたしました。
こちらは別のトピックとして再度ご質問させていただきます。

皆様、どうかよろしくお願い致します。

fmkt

unread,
Nov 18, 2010, 4:12:08 AM11/18/10
to Redmine Users (japanese)
そういえば、Windows環境ですね。

私はWindowsで動かしていないので適切なアドバイスはできませんが、
Windowsではclusterではなくserviceを使う方がいいのかもしれません。

以下、参考になるでしょうか。

http://www.redmine.org/wiki/1/HowTo_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache#Install-mongrel-service-win32-service-gems
http://www.redmine.org/wiki/1/HowTo_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache#Setup-windows-services
> > > -------------------------------------------------------------------------------------
> > > !!! PID file log/mongrel.pid does not exist. Not running?
> > > mongrel::stop reported an error. Use mongrel_rails mongrel::stop -h to
> > > get help.
> > > -------------------------------------------------------------------------------------
> > > どうもmongrelのスタートは問題なさそうなのですが、ストップ(停止)が出来ておらず、それが原因でThemaやHTMLタグの有効化が出来てい
> > > ないのではないかと想定しています。
>
> > > ちなみに環境は、
> > > ----------------------------
> > > Windows Server2003 R2
> > > Redmine 1.0.3
> > > Ruby 1.8.6
> > > Ruby on Rails 2.3.5
> > > MySQL 5.1.52
> > > Apache 2.2.17
> > > Mongrel 1.1.5
> > > Mongrel_cluster 1.0.5
> > > ---------------------------
> > > です。
>
> > > どなたか、お分かりになる方教えてください。
> > > 正直、かなり困っています。。
> > > どうかお願い致します。- 引用テキストを表示しない -
>
> - 引用テキストを表示 -

tama

unread,
Nov 18, 2010, 8:52:59 PM11/18/10
to Redmine Users (japanese)
fmktさん

アドバイスありがとうございます。
serviceというのがあるのを初めて知りました。
clusterの設定がどうもうまくいかないので、serviceを試してみたいと思います。

ありがとうございます。



On 11月18日, 午後6:12, fmkt <fmkt.ne...@gmail.com> wrote:
> そういえば、Windows環境ですね。
>
> 私はWindowsで動かしていないので適切なアドバイスはできませんが、
> Windowsではclusterではなくserviceを使う方がいいのかもしれません。
>
> 以下、参考になるでしょうか。
>
> http://www.redmine.org/wiki/1/HowTo_Install_Redmine_in_a_sub-URI_on_W...http://www.redmine.org/wiki/1/HowTo_Install_Redmine_in_a_sub-URI_on_W...
Reply all
Reply to author
Forward
0 new messages