[one-users] sunstone fails to start after frontend reboot

Javier Fontan jfontan at opennebula.org
Mon Apr 8 10:00:54 PDT 2013


We are aware of this problem and I think I've just fixed it in one-4.0
branch [1]. The problem is that the authentication classes try to get
the list of users on start but this is really not needed. In the
linked issue there is a change that I think can be applied in one-3.8.

[1] http://dev.opennebula.org/issues/1269

On Mon, Apr 8, 2013 at 12:03 PM, Alexandre Bezroutchko <abb at gremwell.com> wrote:
> Hello,
>
> I run Opennebula 3.8.3 on Debian Squeeze. I have noticed Sunstone fails to
> start after frontend host reboots. It is reproducible:
>
> root at one1:/etc# service opennebula stop ; service opennebula-sunstone stop
> oned and scheduler stopped
> sunstone-server stopped
>
> root at one1:/etc# service opennebula start ; service opennebula-sunstone start
> Error executing sunstone-server.
> Check /var/log/one/sunstone.error and /var/log/one/sunstone.log for more
> information
>
> root at one1:/etc# tail /var/log/one/sunstone.log
>  :core_auth=>"cipher",
>  :debug_level=>3,
>  :tmpdir=>"/var/tmp",
>  :vnc_proxy_key=>nil,
>  :port=>9869,
>  :lang=>"en_US",
>  :vnc_proxy_port=>29876,
>  :auth=>"sunstone"}
> Sun Apr 07 00:49:00 2013 [E]: Error initializing authentication system
> Sun Apr 07 00:49:00 2013 [E]: [UserPoolInfo] User couldn't be authenticated,
> aborting call.
>
> There is a naive fix for this problem, but I wonder if there is any better
> solution?
>
> --- /usr/bin/sunstone-server-    2013-04-07 00:53:22.000000000 +0200
> +++ /usr/bin/sunstone-server    2013-04-07 00:54:01.000000000 +0200
> @@ -65,6 +65,9 @@
>      exit 1
>    fi
>
> +  # Wait for opennebula to start (otherwise sunstone fails to start as
> well)
> +  sleep 5
> +
>    # Start the sunstone daemon
>    touch $SUNSTONE_LOCK_FILE
>    ruby $SUNSTONE_SERVER > $SUNSTONE_LOG 2>$SUNSTONE_LOG_ERROR &
>
> Best regards,
> Alex
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Javier Fontán Muiños
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | jfontan at opennebula.org | @OpenNebula



More information about the Users mailing list