trema/trema

RuntimeError

Closed this issue · 3 comments

I built packet_in.c as myapp, then run it and got the following error info;anybody knows the reason?

root@sdn-server:/home/jiapeng/trema/src/examples/packet_in# trema run myapp -c packet_in.conf
/home/jiapeng/trema/ruby/trema/util.rb:32:in sh': Command 'myapp --name myapp ' failed! (RuntimeError) from /home/jiapeng/trema/ruby/trema/daemon.rb:77:inrun!'
from /home/jiapeng/trema/ruby/trema/dsl/runner.rb:157:in maybe_run_apps' from /home/jiapeng/trema/ruby/trema/dsl/runner.rb:156:infork'
from /home/jiapeng/trema/ruby/trema/dsl/runner.rb:156:in maybe_run_apps' from /home/jiapeng/trema/ruby/trema/dsl/runner.rb:34:inrun'
from /home/jiapeng/trema/ruby/trema/command/run.rb:44:in trema_run' from / var/ lib/gems/1.8/gems/trema-0.3.20/././bin/trema:64:ininitialize'
from / var/ lib/gems/1.8/gems/gli-2.6.2/ lib/gli/command_support.rb:121:in call' from / var/ lib/gems/1.8/gems/gli-2.6.2/ lib/gli/command_support.rb:121:inexecute'
from / var/ lib/gems/1.8/gems/gli-2.6.2/ lib/gli/app_support.rb:276:in call_command' from / var/ lib/gems/1.8/gems/gli-2.6.2/ lib/gli/app_support.rb:289:incall'
from / var/ lib/gems/1.8/gems/gli-2.6.2/ lib/gli/app_support.rb:289:in call_command' from / var/ lib/gems/1.8/gems/gli-2.6.2/ lib/gli/app_support.rb:79:inrun'
from / var/ lib/gems/1.8/gems/trema-0.3.20/././bin/trema:288:in `start'
from / var/ lib/gems/1.8/gems/trema-0.3.20/././bin/trema:300

The error message indicates failed to launch your application 'myapp'. Please make sure your application has been successfully built and exists on the current directory.

chibacchine?are you kidding?Of course,the application "myapp" is existed.

I have solved the problem.When I run it in trema work directory,it runs well.It means you should change your current directory to /home/jiapeng/tream.