{"id":12185,"date":"2019-06-01T07:58:06","date_gmt":"2019-06-01T05:58:06","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/"},"modified":"2024-09-10T17:32:22","modified_gmt":"2024-09-10T15:32:22","slug":"what-to-do-in-case-all-active-documentum-jobs-are-no-more-running","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/","title":{"rendered":"What to do in case all active Documentum jobs are no more running ?"},"content":{"rendered":"<p>The application support informed me that their jobs are not running anymore. When I started the analysis, I found that all activated jobs did not start for a few weeks.<br \/>\n<!--more--><\/p>\n<p>First of all, I decided to work on a specific job which is not one from application team but where I know that I can start it several times without impacting the business.<br \/>\nDo you know which one? dm_ContentWarning<\/p>\n<p>I checked the job attributes like start_date, expiration_date, is_inactive, target_server (as we have several Content Server to cover the high availability), a_last_invocation, a_next_invocation and of course the a_current_status.<br \/>\nOnce this first check was done, with the DA I started the job (selected run now and saved the job).<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">  object_name                : dm_ContentWarning\n  start_date                 : 5\/30\/2017 20:00:00\n  expiration_date            : 5\/30\/2025 20:00:00\n  max_iterations             : 0\n  run_interval               : 1\n  run_mode                   : 3\n  is_inactive                : F\n  inactivate_after_failure   : F\n  target_server              : Docbase1.Docbase1@vmcs1.dbi-services.com\n  a_last_invocation          : 9\/20\/2018 19:05:29\n  a_last_completion          : 9\/20\/2018 19:07:00\n  a_current_status           : ContentWarning Tool Completed at\n                        9\/20\/2018 19:06:50.  Total duration was\n                        1 minutes.\n  a_next_invocation          : 9\/21\/2018 19:05:00\n<\/pre>\n<p>Few minutes later, I checked again the result and the different attributes, not all attributes like before but only a_last_completion and a_next_invocation and of course the content of the job log file. The job ran as expected when I forced the job to run.<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">  a_last_completion          : 10\/31\/2018 10:41:25\n  a_current_status           : ContentWarning Tool Completed at\n                        10\/31\/2018 10:41:14.  Total duration\n                        was 2 minutes.\n  a_next_invocation          : 10\/31\/2018 19:05:00\n<\/pre>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">[dmadmin@vmcs1 agentexec]$ more job_0801234380000359\nWed Oct 31 10:39:54 2018 [INFORMATION] [LAUNCHER 12071] Detected while preparing job dm_ContentWarning for execution: Agent Exec\nconnected to server Docbase1:  [DM_SESSION_I_SESSION_START]info:  \"Session 01012343807badd5 started for user dmadmin.\"\n...\n...\n<\/pre>\n<p>Ok the job ran and the a_next_invocation was set accordingly to run_interval and run_mode in our case once a day. (I thought), I found the reason of the issue: the repository was stopped for a few days and therefore, when restarted, the a_next_invocation date was in the past (a_next_invocation: 9\/21\/2018 19:05:00). So I decided to see the result the day after once the job ran based on the defined schedule (a_next_invocation: 10\/31\/2018 19:05:00).<\/p>\n<p>The next day&#8230; the job did not run. Strange!<br \/>\nI decided to think a bit deeper ;-). Do something else to go a step further and set the a_next_invocation date to run the job in 5 minutes.<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">update dm_job objects set a_next_invocation = date('01.11.2018 11:53:00','dd.mm.yyyy hh:mi:ss') where object_name = 'dm_ContentWarning';\n1\n\nselect r_object_id, object_name, a_next_invocation from dm_job where object_name = 'dm_ContentWarning';\n0801234380000359\tdm_ContentWarning\t11\/01\/2018 11:53:00\n<\/pre>\n<p>Result, the job did not start. \ud83d\ude41 Hmmm, why ?<\/p>\n<p>Before continuing to work on the job, I did some other checks, like analyzing the log files, repository, agent_exec, sysadmin etc.<br \/>\nI found that the DB was down a few days before and decided to restart the repository, set the a_next_invocation again but unfortunately this did not help.<\/p>\n<p>To be sure it&#8217;s not related to the full installation, I ran, successfully, a distributed job (the <em>dm_contentWarningvmcs2_Docbase1<\/em>) on the second Content Server. This meant the issue is only located on my first Content Server.<\/p>\n<p>Searching in the OpenText knowledge base (<a href=\"https:\/\/knowledge.opentext.com\/knowledge\/cs.dll\/kcs\/kbarticle\/view\/KB9264366\" target=\"_blank\" rel=\"noopener noreferrer\">KB9264366<\/a>, <a href=\"https:\/\/knowledge.opentext.com\/knowledge\/cs.dll\/kcs\/kbarticle\/view\/KB8716186\" target=\"_blank\" rel=\"noopener noreferrer\">KB8716186<\/a> and <a href=\"https:\/\/knowledge.opentext.com\/knowledge\/cs.dll\/kcs\/kbarticle\/view\/KB6327280\" target=\"_blank\" rel=\"noopener noreferrer\">KB6327280<\/a>), none of them gave me the solution.<\/p>\n<p>I knew, even if I did not used often it in my last 20 years in the Documentum world, that we can trace the agent_exec so let&#8217;s see this point:<\/p>\n<ol>\n<li>add for the dm_agent_method the parameter -trace_level 1<\/li>\n<li>reinit the server<\/li>\n<li>kill the dm_agent_exec process related to Docbase1, the process will be started automatically after few minutes.<\/li>\n<\/ol>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">[dmadmin@vmcs1 agentexec]$ ps -ef | grep agent | grep Docbase1\ndmadmin  27312 26944  0 Oct31 ?        00:00:49 .\/dm_agent_exec -enable_ha_setup 1 -docbase_name dmadmin  27312 26944  0 Oct31 ?        00:00:49 .\/dm_agent_exec -enable_ha_setup 1 -docbase_name Docbase1.Docbase1 -docbase_owner dmadmin -sleep_duration 0\n[dmadmin@vmcs1 agentexec]$ kill -9 27312\n[dmadmin@vmcs1 agentexec]$ ps -ef | grep agent | grep Docbase1\n[dmadmin@vmcs1 agentexec]$\n[dmadmin@vmcs1 agentexec]$ ps -ef | grep agent | grep Docbase1\ndmadmin  15440 26944 57 07:48 ?        00:00:06 .\/dm_agent_exec -enable_ha_setup 1 -trace_level 1 -docbase_name Docbase1.Docbase1 -docbase_owner dmadmin -sleep_duration 0\n[dmadmin@vmcs1 agentexec]$\n<\/pre>\n<p>I changed again the a_next_invocation and check the agent_exec log file where the executed queries have been recorded.<br \/>\nTwo recorded queries seemed to be important:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">SELECT count(r_object_id) as cnt FROM dm_job WHERE ( (run_now = 1) OR ((is_inactive = 0) AND ( ( a_next_invocation &lt;= DATE('now') AND a_next_invocation IS NOT NULLDATE ) OR ( a_next_continuation  DATE('now')) OR (expiration_date IS NULLDATE)) AND ((max_iterations = 0) OR (a_iterations &lt; max_iterations))) ) AND (i_is_reference = 0 OR i_is_reference is NULL) AND (i_is_replica = 0 OR i_is_replica is NULL) AND UPPER(target_server) = 'DOCBASE1.DOCBASE1@VMCS1.DBI-SERVICES-COM'\n\nSELECT ALL r_object_id, a_next_invocation FROM dm_job WHERE ( (run_now = 1) OR ((is_inactive = 0) AND ( ( a_next_invocation &lt;= DATE('now') AND a_next_invocation IS NOT NULLDATE ) OR ( a_next_continuation  DATE('now')) OR (expiration_date IS NULLDATE)) AND ((max_iterations = 0) OR (a_iterations &lt; max_iterations))) ) AND (i_is_reference = 0 OR i_is_reference is NULL) AND (i_is_replica = 0 OR i_is_replica is NULL) AND UPPER(target_server) = 'DOCBASE1.DOCBASE1@VMCS1.DBI-SERVICES-COM' ORDER BY run_now DESC, a_next_invocation, r_object_id ENABLE (RETURN_TOP 3 )\n<\/pre>\n<p>I executed the second query and it found three jobs (RETURN_TOP 3) which are from the application team. As the three selected jobs have an old a_next_invocation value, they will never run and will always be selected when the job is executed and unfortunately this means my dm_ContentWarning job will never be selected for automatic execution.<\/p>\n<p>I informed the application team that I will keep only one job active (dm_ContentWarning) to see if the job will run. And guess what, it ran &#8230; YES!<\/p>\n<p>Okay, now we have the solution:<\/p>\n<ul>\n<li>reactivate all previously deactivated job<\/li>\n<li>set the a_next_invocation to a future date<\/li>\n<\/ul>\n<p>And do not forget to deactivate the trace for the dm_agent_exec.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The application support informed me that their jobs are not running anymore. When I started the analysis, I found that all activated jobs did not start for a few weeks.<\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[525],"tags":[129,1542,44],"type_dbi":[],"class_list":["post-12185","post","type-post","status-publish","format-standard","hentry","category-enterprise-content-management","tag-documentum","tag-jobs","tag-troubleshooting"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>What to do in case all active Documentum jobs are no more running ? - dbi Blog<\/title>\n<meta name=\"description\" content=\"Documentum jobs are no more running use agent exec trace\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What to do in case all active Documentum jobs are no more running ?\" \/>\n<meta property=\"og:description\" content=\"Documentum jobs are no more running use agent exec trace\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-01T05:58:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-10T15:32:22+00:00\" \/>\n<meta name=\"author\" content=\"Middleware Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Middleware Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/\"},\"author\":{\"name\":\"Middleware Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"headline\":\"What to do in case all active Documentum jobs are no more running ?\",\"datePublished\":\"2019-06-01T05:58:06+00:00\",\"dateModified\":\"2024-09-10T15:32:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/\"},\"wordCount\":631,\"commentCount\":0,\"keywords\":[\"Documentum\",\"Jobs\",\"Troubleshooting\"],\"articleSection\":[\"Enterprise content management\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/\",\"name\":\"What to do in case all active Documentum jobs are no more running ? - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2019-06-01T05:58:06+00:00\",\"dateModified\":\"2024-09-10T15:32:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"description\":\"Documentum jobs are no more running use agent exec trace\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What to do in case all active Documentum jobs are no more running ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\",\"name\":\"Middleware Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"caption\":\"Middleware Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"What to do in case all active Documentum jobs are no more running ? - dbi Blog","description":"Documentum jobs are no more running use agent exec trace","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/","og_locale":"en_US","og_type":"article","og_title":"What to do in case all active Documentum jobs are no more running ?","og_description":"Documentum jobs are no more running use agent exec trace","og_url":"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/","og_site_name":"dbi Blog","article_published_time":"2019-06-01T05:58:06+00:00","article_modified_time":"2024-09-10T15:32:22+00:00","author":"Middleware Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Middleware Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/"},"author":{"name":"Middleware Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"headline":"What to do in case all active Documentum jobs are no more running ?","datePublished":"2019-06-01T05:58:06+00:00","dateModified":"2024-09-10T15:32:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/"},"wordCount":631,"commentCount":0,"keywords":["Documentum","Jobs","Troubleshooting"],"articleSection":["Enterprise content management"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/","url":"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/","name":"What to do in case all active Documentum jobs are no more running ? - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2019-06-01T05:58:06+00:00","dateModified":"2024-09-10T15:32:22+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"description":"Documentum jobs are no more running use agent exec trace","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/what-to-do-in-case-all-active-documentum-jobs-are-no-more-running\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"What to do in case all active Documentum jobs are no more running ?"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1","name":"Middleware Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","caption":"Middleware Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/12185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=12185"}],"version-history":[{"count":1,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/12185\/revisions"}],"predecessor-version":[{"id":34692,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/12185\/revisions\/34692"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=12185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=12185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=12185"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=12185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}