Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show_topology fails when TREMA_TMP is other than TREMA_HOME/tmp #24

Open
amotoki opened this issue Jan 28, 2013 · 2 comments
Open

show_topology fails when TREMA_TMP is other than TREMA_HOME/tmp #24

amotoki opened this issue Jan 28, 2013 · 2 comments
Assignees

Comments

@amotoki
Copy link
Member

amotoki commented Jan 28, 2013

こんな感じで Trema を起動しているのですが、

sudo LOGGING_LEVEL=$TREMA_LOG_LEVEL TREMA_TMP=$TREMA_TMP_DIR
trema run -d -c $TREMA_SS_CONFIG

Trema は gem でインストール、TREMA_TMP_DIR は /opt/stack/data/trema になっています。

そうすると、

ubuntu@ostack01:/opt/stack/trema/apps/topology (current)$ sudo ./show_topology -g
Failed to bind ( fd = 4, sun_path = /tmp/sock/trema.show_topology.m.sock, errno = No such file or directory [2] ).
Failed to create a receive queue.
Failed to bind ( fd = 4, sun_path = /tmp/sock/trema.topology-client-28184.sock, errn o = No such file or directory [2] ).
Failed to create a receive queue.
Failed to bind ( fd = 4, sun_path = /tmp/sock/trema.topology-client-28184.sock, errn o = No such file or directory [2] ).
Failed to create a receive queue.
Could not create a PID file: /tmp/pid/show_topology.pid

と怒られました。
標準のパス以外の TREMA_TMP を指定すると動かないように見えます。

環境は以下です。

$ gem list | grep trema
trema (0.3.3)
$ git show | head -1

@yasuhito
Copy link
Member

サンクスです。ちょっと再現する .feature を作ってみます。

@amotoki
Copy link
Member Author

amotoki commented Jan 30, 2013

これって、trema run で show_topology を起動する必要があるんでしたっけ?

#19 の README.md 修正後のコマンドだとちゃんと動きそうに思いますので、のちほど試しておきます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants