[one-users] Sunstone on port 80 in 4.0.1

Dmitri Chebotarov dchebota at gmu.edu
Mon Jun 17 13:36:53 PDT 2013


I figured that 'oneadmin' user doesn't have permissions to bind to port 80 (<1024). 

Is there a recommended way to run sunstone on port 80?

Thanks.

On Jun 17, 2013, at 16:28 , Dmitri Chebotarov <dchebota at gmu.edu>
 wrote:

> Hi
> 
> I'm trying to run sunstone on port 80 and getting error when starting opennebula-sunstore. 
> Anyone experiencing this issue? Running opennebula-sunstone-4.0.1 (upgraded from 3.8->4.0->4.0.1).
> 
> # cat /var/log/one/sunstone.log
> --------------------------------------
>         Server configuration
> --------------------------------------
> {:debug_level=>3,
> :port=>80,
> :one_xmlrpc=>"http://localhost:2633/RPC2",
> :memcache_namespace=>"opennebula.sunstone",
> :sessions=>"memory",
> :lang=>"en_US",
> :vnc_proxy_cert=>nil,
> :auth=>"opennebula",
> :memcache_host=>"localhost",
> :marketplace_url=>"https://marketplace.c12g.com/appliance",
> :tmpdir=>"/var/tmp",
> :vnc_proxy_key=>nil,
> :core_auth=>"cipher",
> :memcache_port=>11211,
> :vnc_proxy_port=>29876,
> :vnc_proxy_support_wss=>false,
> :host=>"<IP>"}
> --------------------------------------
> 
> == Sinatra/1.0 has taken the stage on 80 for development with backup from Thin
>>> Thin web server (v1.2.8 codename Black Keys)
>>> Maximum connections set to 1024
>>> Listening on <IP>:80, CTRL+C to stop
> 
> # cat /var/log/one/sunstone.error
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_tcp_server': no acceptor (RuntimeError)
> 	from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_server'
> 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/backends/tcp_server.rb:16:in `connect'
> 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/backends/base.rb:53:in `start'
> 	from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `call'
> 	from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
> 	from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
> 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/backends/base.rb:61:in `start'
> 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/server.rb:159:in `start'
> 	from /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/thin.rb:14:in `run'
> 	from /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:946:in `run!'
> 	from /usr/lib/one/sunstone/sunstone-server.rb:431
> 
> Port 80 is 'available':
> 
> # netstat -n --listening
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address               Foreign Address             State
> tcp        0      0 0.0.0.0:51914               0.0.0.0:*                   LISTEN
> tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN
> tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN
> tcp        0      0 0.0.0.0:2633                0.0.0.0:*                   LISTEN
> tcp        0      0 :::111                      :::*                        LISTEN
> tcp        0      0 :::22                       :::*                        LISTEN
> tcp        0      0 :::50281                    :::*                        LISTEN
> udp        0      0 0.0.0.0:111                 0.0.0.0:*
> udp        0      0 0.0.0.0:926                 0.0.0.0:*
> udp        0      0 0.0.0.0:47272               0.0.0.0:*
> udp        0      0 0.0.0.0:945                 0.0.0.0:*
> udp        0      0 0.0.0.0:872                 0.0.0.0:*
> udp        0      0 :::111                      :::*
> udp        0      0 :::926                      :::*
> udp        0      0 :::34908                    :::*
> 
> selinux is diabled.
> 
> Thank you for your help.
> 
> --
> Thank you,
> 
> Dmitri Chebotarov
> VCL Sys Eng, Engineering & Architectural Support, TSD - Ent Servers & Messaging
> 223 Aquia Building, Ffx, MSN: 1B5
> Phone: (703) 993-6175 | Fax: (703) 993-3404
> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> 



--
Thank you,

Dmitri Chebotarov
VCL Sys Eng, Engineering & Architectural Support, TSD - Ent Servers & Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175 | Fax: (703) 993-3404






More information about the Users mailing list