これは、通常の読者の1人であるAnuによって報告されたエラーです。彼女は、cluster-fork w
と言います コマンドはエラー「shell-init:現在のディレクトリの取得中にエラーが発生しました:getcwd:親ディレクトリにアクセスできません:そのようなファイルまたはディレクトリはありません」で終了します 「。
エラーの完全なスナップショットは次のとおりです。
$cluster-fork w compute-0-0: shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory down compute-0-1: shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
解決策:
このエラーは主に、このコマンドが実行されたディレクトリがもう存在しない場合に発生します。たとえば、ディレクトリを'test'
に変更したとします。 cluster-fork
を発行しました 指図。 cluster-fork
の実行中 、ディレクトリtest
の場合 が削除され(ディスクスペースを定期的にクリーンアップするプログラム、または別の端末から誤って削除されたプログラムの可能性があります)、'getcwd'
現在の作業ディレクトリを返すことはできません。したがって、cluster-fork
「getcwd:親ディレクトリにアクセスできません:そのようなファイルまたはディレクトリはありません」というエラーが返されます。
このエラーを修正するには、存在しないディレクトリから抜け出す必要があります。通常、'cd'
を発行します ホームディレクトリに移動してcluster-fork
を実行するコマンド コマンド。
cd ..
を使用する 動作せず、同じエラーメッセージが表示されます。