[one-users] Sunstone server Failed to Start

Preetham Nagaraju preetham.nagaraju at gmail.com
Wed Feb 27 02:09:46 PST 2013


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:in
`synchronize'
    from
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/adapters/shared/mysql_prepared_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:556:in
`create_table_from_generator'
    from
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/database/schema_methods.rb:169:in
`create_table'
    from
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/database/schema_methods.rb:193: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:in
`synchronize'
    from
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/adapters/shared/mysql_prepared_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:556:in
`create_table_from_generator'
    from
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/database/schema_methods.rb:169:in
`create_table'
    from
/var/lib/gems/1.8/gems/sequel-3.44.0/lib/sequel/database/schema_methods.rb:193: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
*
*



*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130227/ef7a9a70/attachment-0001.htm>


More information about the Users mailing list