<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
I run Opennebula 3.8.3 on Debian Squeeze. I have noticed Sunstone
fails to start after frontend host reboots. It is reproducible:<br>
<blockquote>root@one1:/etc# service opennebula stop ; service
opennebula-sunstone stop<br>
oned and scheduler stopped<br>
sunstone-server stopped<br>
<br>
root@one1:/etc# service opennebula start ; service
opennebula-sunstone start<br>
Error executing sunstone-server.<br>
Check /var/log/one/sunstone.error and /var/log/one/sunstone.log
for more information<br>
<br>
root@one1:/etc# tail /var/log/one/sunstone.log<br>
:core_auth=>"cipher",<br>
:debug_level=>3,<br>
:tmpdir=>"/var/tmp",<br>
:vnc_proxy_key=>nil,<br>
:port=>9869,<br>
:lang=>"en_US",<br>
:vnc_proxy_port=>29876,<br>
:auth=>"sunstone"}<br>
Sun Apr 07 00:49:00 2013 [E]: Error initializing authentication
system<br>
Sun Apr 07 00:49:00 2013 [E]: [UserPoolInfo] User couldn't be
authenticated, aborting call.<br>
</blockquote>
There is a naive fix for this problem, but I wonder if there is any
better solution?<br>
<br>
--- /usr/bin/sunstone-server- 2013-04-07 00:53:22.000000000 +0200<br>
+++ /usr/bin/sunstone-server 2013-04-07 00:54:01.000000000 +0200<br>
@@ -65,6 +65,9 @@<br>
exit 1<br>
fi<br>
<br>
+ # Wait for opennebula to start (otherwise sunstone fails to start
as well)<br>
+ sleep 5<br>
+<br>
# Start the sunstone daemon<br>
touch $SUNSTONE_LOCK_FILE<br>
ruby $SUNSTONE_SERVER > $SUNSTONE_LOG 2>$SUNSTONE_LOG_ERROR
&<br>
<br>
Best regards,<br>
Alex<br>
<br>
</body>
</html>