FYI<br><br>P.D.: Alvaro, please, reply to the list as well so more people can lay an eye on it and provide help.<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Alvaro Canales</b> <<a href="mailto:accleo@gmail.com">accleo@gmail.com</a>><br>
Date: Thu, Jun 26, 2008 at 1:07 PM<br>Subject: Re: [one-users] Cannot submit image: Error: Connection refused -connect(2)<br>To: Tino Vazquez <<a href="mailto:tinova@fdi.ucm.es">tinova@fdi.ucm.es</a>><br><br><br>Hello!<br>
<br>I get this error:<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">onehost delete 0<br>/OVS/software/lib/ruby/1.8/net/protocol.rb:133:in `sysread': end of file reached (EOFError)<br>

    from /OVS/software/lib/ruby/1.8/net/protocol.rb:133:in `rbuf_fill'<br>    from /OVS/software/lib/ruby/1.8/timeout.rb:56:in `timeout'<br>    from /OVS/software/lib/ruby/1.8/timeout.rb:76:in `timeout'<br>    from /OVS/software/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill'<br>

    from /OVS/software/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'<br>    from /OVS/software/lib/ruby/1.8/net/protocol.rb:126:in `readline'<br>    from /OVS/software/lib/ruby/1.8/net/http.rb:2017:in `read_status_line'<br>

    from /OVS/software/lib/ruby/1.8/net/http.rb:2006:in `read_new'<br>     ... 8 levels...<br>    from /OVS/opennebula/lib/ruby/one.rb:88:in `call'<br>    from /OVS/opennebula/lib/ruby/one.rb:168:in `call_method'<br>

    from /OVS/opennebula/lib/ruby/one.rb:173:in `method_missing'<br>    from /OVS/opennebula/bin/onehost:245<br></blockquote><br>If I make strace, without your modifications, I get this:<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">

connect(3, {sa_family=AF_INET, sin_port=htons(2633), sin_addr=inet_addr("<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>")}, 16) = -1 EINPROGRESS (Operation now in progress)<br>gettimeofday({1214478702, 774916}, NULL) = 0<br>

select(5, [], [3], [3], {29, 994940})   = 1 (out [3], left {29, 994940})<br>connect(3, {sa_family=AF_INET, sin_port=htons(2633), sin_addr=inet_addr("<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>")}, 16) = 0<br>
fcntl64(3, F_SETFL, O_RDWR)             = 0<br>
fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)<br>fstat64(3, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0<br>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f16000<br>_llseek(3, 0, 0xbff8fc1c, SEEK_CUR)     = -1 ESPIPE (Illegal seek)<br>

fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)<br>fstat64(3, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0<br>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f15000<br>_llseek(3, 0, 0xbff8fc1c, SEEK_CUR)     = -1 ESPIPE (Illegal seek)<br>

write(3, "POST /RPC2 HTTP/1.1\r\nAccept: */*"..., 183) = 183<br>write(3, "<?xml version=\"1.0\" ?><methodCal"..., 200) = 200<br>time(NULL)                              = 1214478702<br>

gettimeofday({1214478702, 776237}, NULL) = 0<br>gettimeofday({1214478702, 776291}, NULL) = 0<br>select(0, [], [], [], {0, 0})           = 0 (Timeout)<br>gettimeofday({1214478702, 776432}, NULL) = 0<br>select(4, [3], [], [], {29, 999804})    = 1 (in [3], left {29, 999804})<br>

read(3, "", 1024)                       = 0<br>rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>close(3)                                = 0<br>munmap(0xb7f15000, 4096)                = 0<br>

close(3)                                = -1 EBADF (Bad file descriptor)<br>munmap(0xb7f16000, 4096)                = 0<br>fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0<br>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f16000<br>

write(1, "Error: end of file reached Fails"..., 49Error: end of file reached Fails here!!!!!!!!!! <br>) = 49<br>rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>rt_sigaction(SIGINT, {SIG_DFL}, {0x80b25e0, [], 0}, 8) = 0<br>

exit_group(-1)                          = ?<br>Process 14673 detached<br></blockquote><br>Hope this helps :)<div><div></div><div class="Wj3C7c"><br><br><br><div class="gmail_quote">On Thu, Jun 26, 2008 at 1:00 PM, Tino Vazquez <<a href="mailto:tinova@fdi.ucm.es" target="_blank">tinova@fdi.ucm.es</a>> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Sorry, there is one more line that should be commented:<div><br><br>-------8<----------<br>

<div><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">

        def call(action, *args)<br>#            begin<br>                response=@server.call("one."+action, "sessionID", *args)<br>

</blockquote><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">                response<<nil if response.length<2<br>                response<br>



 #           rescue Exception => e<br> #              [false, e.message + " Fails here!!!!!!!!!!! "]<br> #           end<br>        end<br>    end</blockquote></div>------>8------------<br><br><br><br></div>

<div><div></div><div><div class="gmail_quote">
On Thu, Jun 26, 2008 at 12:54 PM, Tino Vazquez <<a href="mailto:tinova79@gmail.com" target="_blank">tinova79@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


Hi again,<br><br>We are going to need a bit more info to solve this. Could you please comment the following lines:<br><br>-------8<----------<div><br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">



        def call(action, *args)<br>#            begin<br>                response=@server.call("one."+action, "sessionID", *args)<br>

</blockquote><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">                response<<nil if response.length<2<br>                response<br>



 #           rescue Exception => e<br>                [false, e.message + " Fails here!!!!!!!!!!! "]<br> #           end<br>        end<br>    end</blockquote></div>------>8------------<br><br>repeat the deletion and send back the stacktrace it should now output?<br>



<br>Best regards,<br><font color="#888888"><br>-Tino</font><div><div></div><div><br><br><div class="gmail_quote">On Thu, Jun 26, 2008 at 11:57 AM, Alvaro Canales <<a href="mailto:accleo@gmail.com" target="_blank">accleo@gmail.com</a>> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Oh yes!!<br>You're definitely right, I had not my oned process running. :( Sorry!<br><br>The problem is that it suddenly died and I didn't know about it. I have reproduced when it dies. When I do:<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">





onehost delete 0<br>Error: end of file reached  Fails here!!!!!!!!!!! </blockquote><div>And the oned process dies.<br> </div><div>I have traced the error and it turns out to be the same point as in the previous message, it fails here:<div>




<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">        def call(action, *args)<br>            begin<br>                response=@server.call("one."+action, "sessionID", *args)<br>





</blockquote><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">                response<<nil if response.length<2<br>                response<br>






            rescue Exception => e<br>                [false, e.message + " Fails here!!!!!!!!!!! "]<br>            end<br>        end<br>    end</blockquote><br></div> Do you know what can be? I have this, and want to delete the first host (though I get the same error on all the hosts), which is useless:<br>





 HID NAME                      RVM   TCPU   FCPU   ACPU    TMEM    FMEM STAT<br>   0 invented                    0             0    100                   on<br>   1 localhost                   0             0    100                   on<br>





   2 localhost                   0             0    100                   on<br></div><br>Thank you very much for your help and attention!! :)<div><div></div><div><br><br><br><div class="gmail_quote">On Thu, Jun 26, 2008 at 11:29 AM, Tino Vazquez <<a href="mailto:tinova@fdi.ucm.es" target="_blank">tinova@fdi.ucm.es</a>> wrote:<br>





<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Alvaro,<br><br>Did you change the default port in $ONE_LOCATION/etc/oned.conf?. If not, could you check if the default port is open (2633)?<br>





<br># telnet localhost 2633<br><br>And just to for completeness sake, please note that the "oned" process must be running.<br>
<br>Best regards,<br><br>-Tino<br><br><div class="gmail_quote"><div><div></div><div>On Thu, Jun 26, 2008 at 11:12 AM, Alvaro Canales <<a href="mailto:accleo@gmail.com" target="_blank">accleo@gmail.com</a>> wrote:<br>





</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>
Dear users:<br><br>When I try to submit an image with this command:<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">onevm submit images/myfirstVM.template</blockquote>







<div><br>I get the following error:<br></div><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">Error: Connection refused - connect(2)</blockquote>







<div><br>I have seen that the error comes in the "def call(action, *args)" call, in file lib/ruby/one.rb:<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">







 # Server class. This is the one that makes xml-rpc calls.<br>    class Server<br>        #def initialize(host="localhost", port=60666, path="/RPC2")<br>        #    @server=XMLRPC::Client.new(host, path, port)<br>







        #end<br><br>        def initialize(endpoint=nil)<br>            if endpoint<br>                one_endpoint=endpoint<br>            elsif ENV["ONE_XMLRPC"]<br>                one_endpoint=ENV["ONE_XMLRPC"]<br>







            else<br>                one_endpoint="<a href="http://localhost:2633/RPC2" target="_blank">http://localhost:2633/RPC2</a>"<br>            end<br>            @server=XMLRPC::Client.new2(one_endpoint)<br>






        end<br>
<br>        def call(action, *args)<br>            begin<br>                response=@server.call("one."+action, "sessionID", *args)<br>                response<<nil if response.length<2<br>                response<br>







            rescue Exception => e<br>                [false, e.message + " Fails here!!!!!!!!!!! "]<br>            end<br>        end<br>    end<br></blockquote> <br>Do you know what I can do? I'm lost, I don't know what to investigate...<br>







Many thanks in advance!<br></div><font color="#888888"><br><br>-- <br>Álvaro
</font><br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>Constantino Vázquez, Grid Technology Engineer/Researcher: <a href="http://www.dsa-research.org/doku.php?id=people:tinova" target="_blank">http://www.dsa-research.org/doku.php?id=people:tinova</a><br>






DSA Research Group: <a href="http://dsa-research.org" target="_blank">http://dsa-research.org</a><br>Globus GridWay Metascheduler: <a href="http://www.GridWay.org" target="_blank">http://www.GridWay.org</a> <br>OpenNebula Virtual Infrastructure Engine: <a href="http://www.OpenNebula.org" target="_blank">http://www.OpenNebula.org</a>
</font></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Álvaro
</font></blockquote></div><br><br clear="all"><br>-- <br>Constantino Vázquez, Grid Technology Engineer/Researcher: <a href="http://www.dsa-research.org/doku.php?id=people:tinova" target="_blank">http://www.dsa-research.org/doku.php?id=people:tinova</a><br>




DSA Research Group: <a href="http://dsa-research.org" target="_blank">http://dsa-research.org</a><br>Globus GridWay Metascheduler: <a href="http://www.GridWay.org" target="_blank">http://www.GridWay.org</a>  <br>OpenNebula Virtual Infrastructure Engine: <a href="http://www.OpenNebula.org" target="_blank">http://www.OpenNebula.org</a>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Constantino Vázquez, Grid Technology Engineer/Researcher: <a href="http://www.dsa-research.org/doku.php?id=people:tinova" target="_blank">http://www.dsa-research.org/doku.php?id=people:tinova</a><br>


DSA Research Group: <a href="http://dsa-research.org" target="_blank">http://dsa-research.org</a><br>Globus GridWay Metascheduler: <a href="http://www.GridWay.org" target="_blank">http://www.GridWay.org</a>  <br>OpenNebula Virtual Infrastructure Engine: <a href="http://www.OpenNebula.org" target="_blank">http://www.OpenNebula.org</a>
</div></div></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Álvaro
</font></div><br><br clear="all"><br>-- <br>Constantino Vázquez, Grid Technology Engineer/Researcher: <a href="http://www.dsa-research.org/doku.php?id=people:tinova">http://www.dsa-research.org/doku.php?id=people:tinova</a><br>
DSA Research Group: <a href="http://dsa-research.org">http://dsa-research.org</a><br>Globus GridWay Metascheduler: <a href="http://www.GridWay.org">http://www.GridWay.org</a>  <br>OpenNebula Virtual Infrastructure Engine: <a href="http://www.OpenNebula.org">http://www.OpenNebula.org</a>