Code Monkey home page Code Monkey logo

Comments (7)

yasuhito avatar yasuhito commented on June 27, 2024

trema run を修正したので、いまは TREMA_HOME の指定なしでいきなり show_topology が実行できるはずです。本のほうにはそれで書いてあるので、README.md の修正だけで OK っぽいですね。

@kazuyas 隊長、修正をおねがいしていいですか? 🍻 (ビール 2 杯)

from apps.

amotoki avatar amotoki commented on June 27, 2024

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

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

そうすると、

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
commit 2f43863

from apps.

yasuhito avatar yasuhito commented on June 27, 2024

ありがとうございます。これは恐らく別件のバグですので、すみませんが別 issue を切ってもらえますか?
それとは別に、README.md の更新おねがいします! > @kazuyas

from apps.

amotoki avatar amotoki commented on June 27, 2024

#24 を作っておきました。

from apps.

kazuyas avatar kazuyas commented on June 27, 2024

これ trema 本体の #241 とも関係しています。

trema/trema#241

いまだと、以下のように "" で囲まないとだめだった思います。

$ trema run "./show_topology -G" | graph-easy

#241 はすぐ直りますか?直らないのであれば、"" 付きで修正しておきます。

from apps.

yasuhito avatar yasuhito commented on June 27, 2024

gli を導入してオプションの位置付けを整理したので、たぶんできると思います。
ちょっと gli を確認してみまする。

from apps.

yasuhito avatar yasuhito commented on June 27, 2024

trema/trema#241 に詳しく書きましたが、よくよく考えたら "" 無しだといろいろ問題あるので、コントローラにオプションを付けたい場合には必ず「"" あり」でおねがいします。というわけで README.md のほうよろしくお願いしまする。

from apps.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.