Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
APPLE FINAL CUT PRO:HomeFCP ForumFCP XFCPX TechniquesFCP TutorialsFC ServerBasics ForumPodcastFAQ

Not clearing the job queue

COW Forums : Apple Final Cut Server

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook
Bruno BrigagaoNot clearing the job queue
by on Aug 12, 2010 at 7:26:28 pm

Hello everyone,


We've been experiencing some oddities in our database and we hope to find some help around here. The scenario is as follows:

Our job queue shows 13 pages of jobs, updated in the last 5 days, in which we find lots of jobs - actually most of them from 3 days ago - with the progress showing "transcoding clip" and the status as "RUN".
When we try to cancel any of those jobs we get an error message that says: "Error cancelling - this job is currently not running".

We have tried flushing the event queue from Terminal using the following commands:

fcsvr_client flush_response_queue

fcsvr_run psql px pxdb -c "vacuum analyze verbose;"

but none of them solved our problem. We cannot clear the event tables in the db. We have even tried a more desperate solution by accessing the db via Navicat and manually deleting each and every row (!!!), visually clearing the tables.
BUT on the next day they did not only reappear but double in quantity. So now we have 18,826 pages in our table which seems to grow indefinitely (and for no apparent reason).

We fear that our problem may get worse and cause us bigger problems. Any help would be very appreciated.

Thank you in advance,
Bruno


Return to posts index
Reply   Like  

Bruno BrigagaoRe: Not clearing the job queue
by on Aug 12, 2010 at 10:01:30 pm

Just a minor correction. I guess I didn't express myself correctly in the line that says:

"BUT on the next day they did not only reappear but double in quantity. So now we have 18,826 pages in our table which seems to grow indefinitely (and for no apparent reason)."

It should be: they reappear (something around 4K entries) and in the next day they are increased by another 4K entries and so on, growing indefinitely.

The tables I was talking about were pxevent and pxeventresponse (just in case).

Thanks


Return to posts index
Reply   Like  

John McVeyRe: Not clearing the job queue
by on Aug 13, 2010 at 1:25:42 pm

Stop screwing around with Apple's 'friendly' little DB utilities and just flush them all out manually using the PostgreSQL backend.

fcsvr_run psql px pxdb -c 'delete from pxjob;'
fcsvr_run psql px pxdb -c 'delete from pxeventresponse;'
fcsvr_run psql px pxdb -c 'delete from pxevent;'

That'll kill all the jobs in the table and take out anything that's jammed in the event tables. Now if they fill up again - then you have something like a watcher or a scan that's re-kicking them off?


Return to posts index
Reply   Like  


Bruno BrigagaoRe: Not clearing the job queue
by on Aug 17, 2010 at 1:34:06 pm

Thank you John, for your reply.

We followed you tip and checked the watchers and scans, it looked like we had a misconfigured scan running which was generating all the entries. The tables look fine now, "pxevent" and "pxeventresponse" look alright and the job queue on FCS is clearing every day as it should be doing.

Once again, thank you.
Have a good day.


Return to posts index
Reply   Like  

Bruno BrigagaoRe: Not clearing the job queue
by on Aug 17, 2010 at 7:00:07 pm

Dear John,


as I've said before, the pxevent and pxeventresponse issues are dealed with BUT we are running into the same problem posted in my original post:
when you perform a "search all jobs" in FCS, you get a lot of jobs with the status set to RUN eventhough they are not running. If we try to CANCEL it, it won't and gives us an error message saying that this job is currently not running.
When you "get info" it says the job failed to run twice which should automatically turn its status to FAIL.


Have you seen this before and know what is causing this?
I'm attaching some images so you can get the picture (just in case I was not clear enough).

Search all jobs queue: searchalljobs.jpg

Error trying to cancel: errorcanceling.jpg

Get info: get_info.jpg

Thanks


Return to posts index
Reply   Like  

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook


FORUMSTUTORIALSFEATURESVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2013 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]