GT 4のglobus-start-containerとglobus-stop-containerで発生した問題

2791 ワード

GT 4のglobus-start-containerとglobus-stop-containerで発生した問題今日GT 4を使用する場合、
globus-start-container起動コンテナとglobus-stop-container終了コンテナで問題が発生しました.以下にまとめます.
1.まず採用
globus-start-container-nosecはコンテナを起動し、このコマンドはGT 4インスタンスプログラムを実行する際によく使用されます.
2.次にglobus-stop-containerを使用してコンテナを終了します.
しかし、globus-stop-containerコマンドを使用してコンテナの使用を終了すると、connection refusedのエラーが発生することがわかりました.
もう一つのウィンドウは
globus-start-container-nosecが容器を起動したとき、Address in useと言いました.
いろいろ考えたあげく、Globusのサイトを参考にして、自分の実践を通じて、やっとこの問題を解決しました.
1.まず
globus-start-container,globus.orgでは、次のように記述されています.
Starts a standalone container. By default a secure container is started on port 8443 and is accessible via HTTPS. On successful startup a list of services will be displayed on the console. By default the non secure (HTTP) container is started on port 8080.
2.
globus-start-containerに-nosecパラメータを加えると、
globus-start-container-nosecコマンドの場合
Starts a non secure (HTTP) container. Please note that this option only disables transport security. Message security still can be used.
3.globus-stop-containerについて、globus.orgでは次のように記述されています.
Stops a standalone container. By default this command will attempt to stop a container running on
localhost:8443 and perform a
soft shutdown.
これで採用理由がわかります
globus-start-container-nosecは8080ポートで起動したcontainerですが、globus-stop-containerが8443ポートでcontainerを閉じるとconnection refusedのエラーが発生し、containerも本当に閉じていません.
このときcontainerを再起動すると、前回のcontainerが閉じていないため、使用したポートを占有しているため、address in useのエラーが発生します.
したがって、一般的には、Ctrl-Cを直接使用してcontainerを閉じるのが良い方法です.
globus-stop-containerでcontainerを閉じるには、起動時に採用する必要があります
globus-start-containerは-nosecパラメータを追加しません.
globus-stop-containerを使用してcontainerを閉じるときに注意しなければならない問題は、権限の問題です.
By default globus-stop-container must be executed with the same credentials as the container it is running with. If the ShutdownService or the container is configured with separate private key and certificate files (usually /etc/grid-security/containercert.pem and /etc/grid-security/containerkey.pem ) do the following to stop the container:
 $ grid-proxy-init -cert /etc/grid-security/containercert.pem \
-key /etc/grid-security/containerkey.pem \
-out containerproxy.pem
$ setenv X509_USER_PROXY containerproxy.pem
$ globus-stop-container
$ unsetenv X509_USER_PROXY
$ rm containerproxy.pem


globus-stop-container container ,
containercert.pem containerkey.pem containerproxy.pem,
container。 /tmp/x509up-uuid(uid globus-stop-container uid)
, 。