rumpkernel / rumprun-packages

Ready-made packages of software for running on the Rumprun unikernel
Other
203 stars 79 forks source link

Ruby package - Temporary failure in name resolution (SocketError) #94

Closed maniankara closed 8 years ago

maniankara commented 8 years ago

With the given info in the make file, we get this error:

rumprun qemu -g'-nographic -vga none' -i -M 128 -e GEM_HOME=/examples/gems/ruby/2.2.0  -b images/usr.iso,/usr -b images/examples.iso,/examples bin/ruby.bin -I/usr/lib/ruby/2.2.0/ -I/usr/lib/ruby/2.2.0/x86_64-netbsd/ /examples/test_sinatra.rb 
...
...
rumprun: call to ``sigaction'' ignored
rumprun: call to ``_sys___sigprocmask14'' ignored
[2016-03-05 12:57:55] INFO  WEBrick 1.3.1
[2016-03-05 12:57:55] INFO  ruby 2.2.3 (2015-08-18) [x86_64-netbsd]
/usr/lib/ruby/2.2.0/socket.rb:232:in `getaddrinfo': getaddrinfo: Temporary failure in name resolution (SocketError)
    from /usr/lib/ruby/2.2.0/socket.rb:232:in `foreach'
    from /usr/lib/ruby/2.2.0/socket.rb:459:in `tcp_server_sockets'
    from /usr/lib/ruby/2.2.0/webrick/utils.rb:70:in `create_listeners'
    from /usr/lib/ruby/2.2.0/webrick/server.rb:133:in `listen'
    from /usr/lib/ruby/2.2.0/webrick/server.rb:114:in `initialize'
    from /usr/lib/ruby/2.2.0/webrick/httpserver.rb:45:in `initialize'
    from /examples/gems/ruby/2.2.0/gems/rack-1.6.4/lib/rack/handler/webrick.rb:31:in `new'
    from /examples/gems/ruby/2.2.0/gems/rack-1.6.4/lib/rack/handler/webrick.rb:31:in `run'
    from /examples/gems/ruby/2.2.0/gems/sinatra-1.4.6/lib/sinatra/base.rb:1505:in `start_server'
    from /examples/gems/ruby/2.2.0/gems/sinatra-1.4.6/lib/sinatra/base.rb:1443:in `run!'
    from /examples/gems/ruby/2.2.0/gems/sinatra-1.4.6/lib/sinatra/main.rb:25:in `block in <module:Sinatra>'

Re-produceable: Ubuntu 15.04 Linux ubuntu-anovil 3.19.0-47-generic #53-Ubuntu SMP Mon Jan 18 14:02:48 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

reuben-sutton commented 8 years ago

Hi Anoop,

Thanks for the report. Have you configured networking?

On Saturday, March 5, 2016, Anoop Vijayan Maniankara < notifications@github.com> wrote:

With the given info in the make file, we get this error:

rumprun qemu -g'-nographic -vga none' -i -M 128 -e GEM_HOME=/examples/gems/ruby/2.2.0 -b images/usr.iso,/usr -b images/examples.iso,/examples bin/ruby.bin -I/usr/lib/ruby/2.2.0/ -I/usr/lib/ruby/2.2.0/x86_64-netbsd/ /examples/test_sinatra.rb ... ... rumprun: call to sigaction'' ignored rumprun: call to_sys___sigprocmask14'' ignored [2016-03-05 12:57:55] INFO WEBrick 1.3.1 [2016-03-05 12:57:55] INFO ruby 2.2.3 (2015-08-18) [x86_64-netbsd] /usr/lib/ruby/2.2.0/socket.rb:232:in getaddrinfo': getaddrinfo: Temporary failure in name resolution (SocketError) from /usr/lib/ruby/2.2.0/socket.rb:232:inforeach' from /usr/lib/ruby/2.2.0/socket.rb:459:in tcp_server_sockets' from /usr/lib/ruby/2.2.0/webrick/utils.rb:70:increate_listeners' from /usr/lib/ruby/2.2.0/webrick/server.rb:133:in listen' from /usr/lib/ruby/2.2.0/webrick/server.rb:114:ininitialize' from /usr/lib/ruby/2.2.0/webrick/httpserver.rb:45:in initialize' from /examples/gems/ruby/2.2.0/gems/rack-1.6.4/lib/rack/handler/webrick.rb:31:innew' from /examples/gems/ruby/2.2.0/gems/rack-1.6.4/lib/rack/handler/webrick.rb:31:in run' from /examples/gems/ruby/2.2.0/gems/sinatra-1.4.6/lib/sinatra/base.rb:1505:instart_server' from /examples/gems/ruby/2.2.0/gems/sinatra-1.4.6/lib/sinatra/base.rb:1443:in run!' from /examples/gems/ruby/2.2.0/gems/sinatra-1.4.6/lib/sinatra/main.rb:25:inblock in module:Sinatra'

Re-produceable: Ubuntu 15.04 Linux ubuntu-anovil 3.19.0-47-generic #53 https://github.com/rumpkernel/rumprun-packages/issues/53-Ubuntu SMP Mon Jan 18 14:02:48 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

— Reply to this email directly or view it on GitHub https://github.com/rumpkernel/rumprun-packages/issues/94.

maniankara commented 8 years ago

Ha ha, that was a fast reply :) Yes, I spend some time enabling networking etc. Then I figured out that, it just works adding -o param to the end. I am submitting a pull request about this.