<div dir="ltr">Hi Hector,<br><br>I'm using Ubuntu 10.04, and I think I've solved the issue of rack using links :<br><br>> : <a href="http://comments.gmane.org/gmane.comp.distributed.opennebula.user/2257" target="_blank">http://comments.gmane.org/gmane.comp.distributed.opennebula.user/2257</a><br>

><br>
>>     gem install json sinatra thin rack<br>
>>     cd /usr/bin/; ln -s rackup1.8 rackup # might be required<br>
>>     apt-get install rails thin<br><br>Reagrds,<br><br>Amine<br><br><div class="gmail_quote">On Thu, Sep 1, 2011 at 4:29 PM, Héctor Sanjuán <span dir="ltr"><<a href="mailto:hsanjuan@opennebula.org">hsanjuan@opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
To me it looks like the path to "rackup" is not the one it should be (im<br>
guessing its Ubuntu here?). If rack is installed via "gem install", the<br>
right "rackup" is probably under "/var/lib/gems/1.8/bin".<br>
<br>
Commonly this problem appears because Sunstone is using<br>
"/usr/bin/rackup" (probably from a package) instead of the<br>
"/var/lib/gems/1.8/bin/rackup".<br>
<br>
Check that this is the case (run "which rackup") and, if so, uninstall<br>
any rack packages and a) include /var/lib/gems/1.8/bin in PATH or b)<br>
Create a symlink to "/var/lib/gems/1.8/bin/rackup" in /usr/bin.<br>
<br>
Hope it helps and let us know if it works,<br>
<br>
Hector<br>
<br>
El 01/09/11 13:26, Amine Ghrab escribió:<br>
<div class="im">> Hi all,<br>
><br>
> I'm trying to install Sunstone on OpenNebula 3, and I'm getting the<br>
> following error when trying to log at the address : <a href="http://localhost:9869/" target="_blank">http://localhost:9869/</a><br>
><br>
> The server seems to be correctly started :<br>
><br>
>     oneadmin@ena-desktop:~$ /usr/bin/sunstone-server start<br>
</div>>     sunstone-server listening on <a href="http://127.0.0.1:9869" target="_blank">127.0.0.1:9869</a> <<a href="http://127.0.0.1:9869" target="_blank">http://127.0.0.1:9869</a>><br>
<div><div></div><div class="h5">><br>
><br>
> I've followed the discussion<br>
> : <a href="http://comments.gmane.org/gmane.comp.distributed.opennebula.user/2257" target="_blank">http://comments.gmane.org/gmane.comp.distributed.opennebula.user/2257</a><br>
><br>
>>     gem install json sinatra thin rack<br>
>>     cd /usr/bin/; ln -s rackup1.8 rackup # might be required<br>
>>     apt-get install rails thin<br>
><br>
> The log file output is :<br>
><br>
>         NameError: uninitialized constant Rack::Multipart<br>
><br>
>         /var/lib/gems/1.8/gems/rack-1.3.2/lib/rack/request.rb:306:in<br>
>         `parse_multipart'<br>
><br>
>         /var/lib/gems/1.8/gems/rack-1.3.2/lib/rack/request.rb:182:in `POST'<br>
><br>
>         /var/lib/gems/1.8/gems/rack-1.3.2/lib/rack/methodoverride.rb:15:in<br>
>         `call'<br>
><br>
>         /var/lib/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1272:in<br>
>         `call'<br>
><br>
>         /var/lib/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1303:in<br>
>         `synchronize'<br>
><br>
>         /var/lib/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1272:in<br>
>         `call'<br>
><br>
>         /var/lib/gems/1.8/gems/rack-1.3.2/lib/rack/lint.rb:48:in `_call'<br>
><br>
>         /var/lib/gems/1.8/gems/rack-1.3.2/lib/rack/lint.rb:36:in `call'<br>
><br>
>         /var/lib/gems/1.8/gems/rack-1.3.2/lib/rack/showexceptions.rb:24:in<br>
>         `call'<br>
><br>
>         /var/lib/gems/1.8/gems/rack-1.3.2/lib/rack/commonlogger.rb:20:in<br>
>         `call'<br>
><br>
>         /usr/lib/ruby/1.8/rack/content_length.rb:13:in `call'<br>
><br>
>         /usr/lib/ruby/1.8/rack/chunked.rb:15:in `call'<br>
><br>
>         /usr/lib/ruby/1.8/thin/connection.rb:76:in `pre_process'<br>
><br>
>         /usr/lib/ruby/1.8/thin/connection.rb:74:in `catch'<br>
><br>
>         /usr/lib/ruby/1.8/thin/connection.rb:74:in `pre_process'<br>
><br>
>         /usr/lib/ruby/1.8/thin/connection.rb:57:in `process'<br>
><br>
>         /usr/lib/ruby/1.8/thin/connection.rb:42:in `receive_data'<br>
><br>
>         /usr/lib/ruby/1.8/eventmachine.rb:240:in `run_machine'<br>
><br>
>         /usr/lib/ruby/1.8/eventmachine.rb:240:in `run'<br>
><br>
>         /usr/lib/ruby/1.8/thin/backends/base.rb:57:in `start'<br>
><br>
>         /usr/lib/ruby/1.8/thin/server.rb:156:in `start'<br>
><br>
>         /usr/lib/ruby/1.8/rack/handler/thin.rb:14:in `run'<br>
><br>
>         /usr/lib/ruby/1.8/rack/server.rb:155:in `start'<br>
><br>
>         /usr/lib/ruby/1.8/rack/server.rb:83:in `start'<br>
><br>
>         /usr/bin/rackup:4<br>
><br>
>         127.0.0.1 - - [01/Sep/2011 12:17:36] "POST /login HTTP/1.1" 500<br>
>         1538 0.0211<br>
><br>
><br>
> Regards,<br>
><br>
> Amine<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">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>
<font color="#888888"><br>
<br>
--<br>
Héctor Sanjuán<br>
OpenNebula Sunstone Developer<br>
</font></blockquote></div><br></div>