You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by France <ma...@isg.si> on 2016/02/15 14:23:29 UTC
Pending job for too long. How to find what it's doing?
Hi guys,
i have found a job that is pending for 12 days by now:
WARN [o.a.c.f.j.i.AsyncJobMonitor] (Timer-1:ctx-91c53d64) Task (job-17491) has been pending for 476801 seconds
What is the recommended way to find more info about this job?
I will also greep logs for it, but not sure what will I find if anything.
We are on CS 4.3.2 from ShapeBlue.
Regards,
F.
Re: Pending job for too long. How to find what it's doing?
Posted by France <ma...@isg.si>.
After successfully creating snapshot and trying to create a template from it, I hit a bug with CS 4.3.2.
Here is how it looks:
INFO [o.a.c.f.j.i.AsyncJobMonitor] (Job-Executor-3:ctx-f32c1db1) Add job-17535 into job monitoring
WARN [o.a.c.f.j.i.AsyncJobMonitor] (Timer-1:ctx-f80c5d23) Task (job-17535) has been pending for 126 seconds
….
WARN [o.a.c.f.j.i.AsyncJobMonitor] (Timer-1:ctx-a56825b3) Task (job-17535) has been pending for 1386 seconds
INFO [c.c.a.ApiServer] (http-6443-exec-6:ctx-915ed8c1 ctx-223b02c6) Unable to execute API command queryasyncjobresult due to invalid value. Invalid parameter jobid value=3aa54bce-310c-468c-a240-2ea5748821ac due to incorrect long value format, or entity does not exist or due to incorrect parameter annotation for the field in api cmd class.
WARN [o.a.c.f.j.i.AsyncJobMonitor] (Timer-1:ctx-7e4f9dfb) Task (job-17535) has been pending for 1446 seconds
...
WARN [o.a.c.f.j.i.AsyncJobMonitor] (Timer-1:ctx-78c36940) Task (job-17535) has been pending for 4806 seconds
ERROR [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-3:ctx-f32c1db1) Double exception
java.lang.NullPointerException
at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:527)
at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
WARN [o.a.c.f.j.i.AsyncJobMonitor] (Timer-1:ctx-ae1d9731) Task (job-17535) has been pending for 4866 seconds
If anyone can help, please do.
Regards,
F.
On 15 Feb 2016, at 14:23, France <ma...@isg.si> wrote:
> Hi guys,
>
> i have found a job that is pending for 12 days by now:
> WARN [o.a.c.f.j.i.AsyncJobMonitor] (Timer-1:ctx-91c53d64) Task (job-17491) has been pending for 476801 seconds
>
> What is the recommended way to find more info about this job?
>
> I will also greep logs for it, but not sure what will I find if anything.
> We are on CS 4.3.2 from ShapeBlue.
>
> Regards,
> F.