[one-users] Sunstone server Failed to Start

Tobias Honacker t.honacker at googlemail.com
Wed Feb 27 02:18:03 PST 2013


Hi,

First of all, OpenNebula 3.8.3 is out, are there any reasons why installing
3.4.1?
Anyways, there seems to be a mysql error. Check your /etc/one/oned.conf.
Is mysql daemon running? Did you set the hostname correctly in oned.conf ?
Host must be resolving the hostname you typed in oned.conf, check
/etc/hosts, too.


Best regards,
Tobias

Von:  Preetham Nagaraju <preetham.nagaraju at gmail.com>
Datum:  Wed, 27 Feb 2013 15:39:46 +0530
An:  <users at lists.opennebula.org>
Betreff:  [one-users] Sunstone server Failed to Start

Hi,

       I have installed Opennebula 3.4.1 on Ubuntu 12.04 machine with KVM
hypervisor (all in Single machine).

I am able to start One :-

oneadmin at opennebula:~$ one start
oneadmin at opennebula:~$

After that i am not able to start oneacctd and sunstone-server. It shows
as:-

oneadmin at opennebula:~$ oneacctd start
Error executing oneacctd.
Check /var/lib/one/var/oneacctd.log for more information

oneadmin at opennebula:~$ sunstone-server start
Stale .lock detected. Erasing it.
Error executing /var/lib/one/lib/sunstone/sunstone-server.rb, please check
the log /var/lib/one/var/sunstone.log


The logs are as follows:-

1. /var/lib/one/var/oneacctd.log
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/adapters/mysql.rb:107:in
`real_connect': Mysql::Error: Unknown MySQL server host 'host' (2)
(Sequel::DatabaseConnectionError)
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/adapters/mysql.rb:107:in
`connect'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool.rb:94:in
`make_new'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool/threaded.rb:
164:in `make_new'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool/threaded.rb:
137:in `available'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool/threaded.rb:
127:in `acquire'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool/threaded.rb:
195:in `sync'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool/threaded.rb:
195:in `synchronize'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool/threaded.rb:
195:in `sync'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool/threaded.rb:
126:in `acquire'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool/threaded.rb:
94:in `hold'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/database/connecting.rb:236:i
n `synchronize'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/adapters/shared/mysql_prepar
ed_statements.rb:34:in `execute'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/adapters/mysql.rb:162:in
`execute_dui'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/database/query.rb:72:in
`execute_ddl'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/database/schema_methods.rb:5
56:in `create_table_from_generator'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/database/schema_methods.rb:1
69:in `create_table'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/database/schema_methods.rb:1
93:in `create_table?'
    from /var/lib/one/lib/ruby/acct/watch_helper.rb:137:in `bootstrap'
    from /var/lib/one/lib/ruby/acct/watch_helper.rb:221
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
    from /var/lib/one/lib/ruby/acct/acctd.rb:35

2. /var/lib/one/var/sunstone.error (sunstone.log is empty)
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/adapters/mysql.rb:107:in
`real_connect': Mysql::Error: Unknown MySQL server host 'host' (2)
(Sequel::DatabaseConnectionError)
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/adapters/mysql.rb:107:in
`connect'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool.rb:94:in
`make_new'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool/threaded.rb:
164:in `make_new'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool/threaded.rb:
137:in `available'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool/threaded.rb:
127:in `acquire'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool/threaded.rb:
195:in `sync'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool/threaded.rb:
195:in `synchronize'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool/threaded.rb:
195:in `sync'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool/threaded.rb:
126:in `acquire'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/connection_pool/threaded.rb:
94:in `hold'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/database/connecting.rb:236:i
n `synchronize'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/adapters/shared/mysql_prepar
ed_statements.rb:34:in `execute'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/adapters/mysql.rb:162:in
`execute_dui'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/database/query.rb:72:in
`execute_ddl'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/database/schema_methods.rb:5
56:in `create_table_from_generator'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/database/schema_methods.rb:1
69:in `create_table'
    from 
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/database/schema_methods.rb:1
93:in `create_table?'
    from /var/lib/one/lib/ruby/acct/watch_helper.rb:137:in `bootstrap'
    from /var/lib/one/lib/ruby/acct/watch_helper.rb:221
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
    from /var/lib/one/lib/ruby/acct/watch_client.rb:18
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
    from /var/lib/one/lib/sunstone/models/SunstoneServer.rb:22
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
    from /var/lib/one/lib/sunstone/sunstone-server.rb:56

I have installed all the necessary packages..

oneadmin at opennebula:~$ gem list

*** LOCAL GEMS ***

daemons (1.1.9)
eventmachine (1.0.0)
json (1.7.7)
mysql (2.9.1)
nokogiri (1.5.6)
rack (1.5.2)
rack-protection (1.3.2)
rake (10.0.3)
sequel (3.44.0)
sinatra (1.3.5)
sqlite3 (1.3.7)
thin (1.5.0)
tilt (1.3.3)
xmlparser (0.7.2.1)

Please get me out of these errors.......

Regards,
Preetham.N



_______________________________________________ Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130227/59f5551e/attachment-0002.htm>


More information about the Users mailing list