<div dir="ltr">Hi Stefan,<div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 28, 2014 at 5:57 PM, Stefan Kooman <span dir="ltr"><<a href="mailto:stefan@bit.nl" target="_blank">stefan@bit.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi list,<br>
<br>
Running oneact as oneadmin user I get the following error:<br>
<br>
oneacct<br>
[VirtualMachinePoolAccounting] Internal Error.<br>
<br>
oned.log shows:<br>
<br>
Tue Jan 28 17:21:19 2014 [ReM][D]: Req:6624 UID:0<br>
VirtualMachinePoolAccounting invoked, -2, -1, -1<br>
Tue Jan 28 17:21:19 2014 [ONE][E]: SQL command was: SELECT history.body<br>
FROM history INNER JOIN vm_pool WHERE vid=oid GROUP BY vid,seq, error<br>
1055 : 'opennebula.history.body' isn't in GROUP BY<br>
Tue Jan 28 17:21:19 2014 [ReM][E]: Req:6624 UID:0<br>
VirtualMachinePoolAccounting result FAILURE<br>
[VirtualMachinePoolAccounting] Internal Error<br>
<br>
I don't know for sure it ever worked after I upgraded to onennebula-4.4.<br>
<br>
It might have to do with our mysql server settings (sql-mode):<br>
sql-mode =<br>
STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY<br>
<br>
But I'm not sure.<br>
<br>
How to best debug this issue?<br>
<br>
Gr. Stefan<br></blockquote><div><br></div><div>It definitely looks like a problem with the ONLY_FULL_GROUP_BY flag.</div><div>Now that I think about it, we don't really need the group by, and it may probably be a bug and we meant to use ORDER BY [1].</div>
<div><br></div><div>Regards</div><div><br></div><div>[1] <a href="http://dev.opennebula.org/issues/2700">http://dev.opennebula.org/issues/2700</a></div><div><br></div></div>--<br><div>Carlos Martín, MSc<br>Project Engineer</div>
<div>OpenNebula - Flexible Enterprise Cloud Made Simple<br><div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.opennebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span></div>
</div></div></div>