[one-users] oneacct error with mysql

Jaime Melis j.melis at fdi.ucm.es
Fri Nov 12 09:33:01 PST 2010


Hello Olivier,

you have to install the mysql gem. Take a look at this:
http://opennebula.org/documentation:rel2.0:accounting#prerequisites

Regards,
Jaime

On Fri, Nov 12, 2010 at 6:22 PM, Olivier Sallou <olivier.sallou at irisa.fr> wrote:
> Hi,
> I changed my config to use MySQL as backend but I have an error with
> oneacct, do you have any idea of what could be the problem ?
> Other one commands works fine.
>
> /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require':
> LoadError: no such file to load -- mysql (Sequel::AdapterNotFound)
>    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
>    from /var/lib/gems/1.8/gems/sequel-3.16.0/lib/sequel/adapters/mysql.rb:4
>    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `k_require'
>    from /var/lib/gems/1.8/gems/sequel-3.16.0/lib/sequel/core.rb:249:in
> `tsk_require'
>    from /var/lib/gems/1.8/gems/sequel-3.16.0/lib/sequel/core.rb:72:in
> `check_requiring_thread'
>    from /var/lib/gems/1.8/gems/sequel-3.16.0/lib/sequel/core.rb:69:in
> `synchronize'
>    from /var/lib/gems/1.8/gems/sequel-3.16.0/lib/sequel/core.rb:69:in
> `check_requiring_thread'
>    from /var/lib/gems/1.8/gems/sequel-3.16.0/lib/sequel/core.rb:249:in
> `tsk_require'
>    from
> /var/lib/gems/1.8/gems/sequel-3.16.0/lib/sequel/database/connecting.rb:23:in
> `adapter_class'
>    from
> /var/lib/gems/1.8/gems/sequel-3.16.0/lib/sequel/database/connecting.rb:52:in
> `connect'
>    from /var/lib/gems/1.8/gems/sequel-3.16.0/lib/sequel/core.rb:119:in
> `connect'
>    from /usr/lib/one/ruby/oneacct.rb:32:in `initialize'
>    from /usr/bin/oneacct:215:in `new'
>    from /usr/bin/oneacct:215:in `initialize'
>    from /usr/bin/oneacct:408:in `new'
>    from /usr/bin/oneacct:408
>
> thanks
>
> Olivier
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



More information about the Users mailing list