You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Yordan Kostov <Yo...@NSOGROUP.COM> on 2021/10/19 10:32:05 UTC
Usage server not collecting data
Hey everyone,
ACS 4.15.2 + XCP-NG 8.2.
The usage server is configured a few months ago according to this guide - http://docs.cloudstack.apache.org/en/latest/adminguide/usage.html?#configuring-the-usage-server
Decided to start working on some reports recenetly but it seems data is not being collected properly.
In cloud_usage table there are entries between 2021-04-22 23:59:59 and 2021-05-19 23:59:59 but nothing after that.
Here is /usage.log Warns and Errors:
2021-10-19 12:17:03,491 WARN [db.Transaction.Transaction] (Usage-Job-1:null) (logid:) txn: Commit called when it is not a transaction: -UsageManagerImpl.parse:858-UsageManagerImpl.runInContextInternal:405-UsageManagerImpl$1.runInContext:347-ManagedContextRunnable$1.run:48-DefaultManagedContext$1.call:55-DefaultManagedContext.callWithContext:102-DefaultManagedContext.runWithContext:52-ManagedContextRunnable.run:45-UsageManagerImpl.run:349-Executors$RunnableAdapter.call:515-FutureTask.run:264-ScheduledThreadPoolExecutor$ScheduledFutureTask.run:304
2021-10-19 12:17:03,491 WARN [apache.cloudstack.alerts] (Usage-Job-1:null) (logid:) alertType:: 20 // dataCenterId:: 0 // podId:: 0 // clusterId:: null // message:: Usage job failed. Job id: 250784
2021-10-19 12:21:18,343 ERROR [cloud.usage.UsageManagerImpl] (Usage-Job-1:null) (logid:) Exception in usage manager
java.lang.NullPointerException
Any idea what can be the issue here?
Regards,
Jordan
RE: Usage server not collecting data
Posted by Yordan Kostov <Yo...@NSOGROUP.COM>.
Thank you.
Issue is opened (https://github.com/apache/cloudstack/issues/5587) and full usage.log is attached.
Regards,
Jordan
-----Original Message-----
From: Wei ZHOU <us...@gmail.com>
Sent: Tuesday, October 19, 2021 1:40 PM
To: users <us...@cloudstack.apache.org>
Subject: Re: Usage server not collecting data
[X] This message came from outside your organization
Hi,
It looks like a bug. Please file an issue on github, with more details and logs.
-Wei
On Tue, 19 Oct 2021 at 12:32, Yordan Kostov <Yo...@nsogroup.com> wrote:
> Hey everyone,
>
> ACS 4.15.2 + XCP-NG 8.2.
> The usage server is configured a few months ago
> according to this guide -
> https://urldefense.com/v3/__http://docs.cloudstack.apache.org/en/latest/adminguide/usage.html?*configuring-the-usage-server__;Iw!!A6UyJA!z1Dr6BSwnLR6bhB5MsK92Ej2KjU6c1SDaW01Fx1XyvnDO6zCH0dkCj4rdpi0GSBYjC2SlN3Kbfqw$
> Decided to start working on some reports recenetly but
> it seems data is not being collected properly.
> In cloud_usage table there are entries between
> 2021-04-22
> 23:59:59 and 2021-05-19 23:59:59 but nothing after that.
>
> Here is /usage.log Warns and Errors:
>
> 2021-10-19 12:17:03,491 WARN [db.Transaction.Transaction]
> (Usage-Job-1:null) (logid:) txn: Commit called when it is not a
> transaction:
> -UsageManagerImpl.parse:858-UsageManagerImpl.runInContextInternal:405-
> UsageManagerImpl$1.runInContext:347-ManagedContextRunnable$1.run:48-De
> faultManagedContext$1.call:55-DefaultManagedContext.callWithContext:10
> 2-DefaultManagedContext.runWithContext:52-ManagedContextRunnable.run:4
> 5-UsageManagerImpl.run:349-Executors$RunnableAdapter.call:515-FutureTa
> sk.run:264-ScheduledThreadPoolExecutor$ScheduledFutureTask.run:304
> 2021-10-19 12:17:03,491 WARN [apache.cloudstack.alerts]
> (Usage-Job-1:null) (logid:) alertType:: 20 // dataCenterId:: 0 // podId::
> 0 // clusterId:: null // message:: Usage job failed. Job id: 250784
>
>
> 2021-10-19 12:21:18,343 ERROR [cloud.usage.UsageManagerImpl]
> (Usage-Job-1:null) (logid:) Exception in usage manager
> java.lang.NullPointerException
>
> Any idea what can be the issue here?
>
> Regards,
> Jordan
>
Re: Usage server not collecting data
Posted by Wei ZHOU <us...@gmail.com>.
Hi,
It looks like a bug. Please file an issue on github, with more details and
logs.
-Wei
On Tue, 19 Oct 2021 at 12:32, Yordan Kostov <Yo...@nsogroup.com> wrote:
> Hey everyone,
>
> ACS 4.15.2 + XCP-NG 8.2.
> The usage server is configured a few months ago according
> to this guide -
> http://docs.cloudstack.apache.org/en/latest/adminguide/usage.html?#configuring-the-usage-server
> Decided to start working on some reports recenetly but it
> seems data is not being collected properly.
> In cloud_usage table there are entries between 2021-04-22
> 23:59:59 and 2021-05-19 23:59:59 but nothing after that.
>
> Here is /usage.log Warns and Errors:
>
> 2021-10-19 12:17:03,491 WARN [db.Transaction.Transaction]
> (Usage-Job-1:null) (logid:) txn: Commit called when it is not a
> transaction:
> -UsageManagerImpl.parse:858-UsageManagerImpl.runInContextInternal:405-UsageManagerImpl$1.runInContext:347-ManagedContextRunnable$1.run:48-DefaultManagedContext$1.call:55-DefaultManagedContext.callWithContext:102-DefaultManagedContext.runWithContext:52-ManagedContextRunnable.run:45-UsageManagerImpl.run:349-Executors$RunnableAdapter.call:515-FutureTask.run:264-ScheduledThreadPoolExecutor$ScheduledFutureTask.run:304
> 2021-10-19 12:17:03,491 WARN [apache.cloudstack.alerts]
> (Usage-Job-1:null) (logid:) alertType:: 20 // dataCenterId:: 0 // podId::
> 0 // clusterId:: null // message:: Usage job failed. Job id: 250784
>
>
> 2021-10-19 12:21:18,343 ERROR [cloud.usage.UsageManagerImpl]
> (Usage-Job-1:null) (logid:) Exception in usage manager
> java.lang.NullPointerException
>
> Any idea what can be the issue here?
>
> Regards,
> Jordan
>