次のように、firefox 10.0.12がインストールされたセントロで実行されているサーバーで、自動化されたSeleniumテストを実行しようとしています。
Xvfb :99 -screen 0 800x600x16&
export DISPLAY=:99;
java -jar ./autotesting/selenium-server-standalone-2.28.0.jar&
php ./autotesting/index.php;
index.php は、次のように WebDriver セッションを開始する SimpleTest テスト クラスを指します (facebook php バインディングを使用):
$webdriver = new WebDriver();
$this->session = $webdriver->session('firefox');
$this->session->open($this->url);
ローカルマシンで実行されますが、サーバーでは次の出力が得られます。
13:17:11.344 INFO - Executing: [new session: {browserName=firefox}] at URL: /session)
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
mkdir: `99/.mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}': Not a directory
(Gecko:8766): libgnomevfs-WARNING **: Unable to create ~/.gnome2 directory: Not a directory
Could not create per-user gnome configuration directory `99/.gnome2/': Not a directory
mkdir: `99/.mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}': Not a directory
これをトラブルシューティングするために舞台裏で何が起こっているかについて十分に知りません。なぜ、firefox の実行時に mkdir コマンドが実行されるのですか? root ユーザーではないために失敗しているのでしょうか?