{"id":12293,"date":"2019-03-15T16:19:41","date_gmt":"2019-03-15T15:19:41","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/"},"modified":"2019-03-15T16:19:41","modified_gmt":"2019-03-15T15:19:41","slug":"documentum-dctm-job-locked-docbase-installation","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/","title":{"rendered":"Documentum : Dctm job locked after docbase installation"},"content":{"rendered":"<p>A correct configuration of Documentum jobs is paramount, that&#8217;s why it is the first thing we do after the docbase installation.<br \/>\nA few days ago, I configured the jobs on a new docbase using DQL, and I got an error because a job is locked by the user dmadmin.<br \/>\n<!--more--><\/p>\n<p>The error message was:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1 highlight: [5]\">\nDQL&gt; UPDATE dm_job OBJECTS SET target_server=' ' WHERE target_server!=' ' ;\n...\n[DM_QUERY_F_UP_SAVE]fatal:  \"UPDATE:  An error has occurred during a save operation.\"\n\n[DM_SYSOBJECT_E_LOCKED]error:  \"The operation on dm_FTQBS_WEEKLY sysobject was unsuccessful because it is locked by user dmadmin.\"\n<\/pre>\n<p>I checked the status of this job:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1 highlight: [4,18,21,27,32]\">\nAPI&gt; ?,c,select r_object_id from dm_job where object_name ='dm_FTQBS_WEEKLY';\nr_object_id\n----------------\n0812D68780000ca6\n(1 row affected)\n\nAPI&gt; dump,c,0812D68780000ca6\n...\nUSER ATTRIBUTES\n\n  object_name                     : dm_FTQBS_WEEKLY\n  title                           :\n  subject                         : qbs weekly job\n...\n  start_date                      : 2\/28\/2019 05:21:15\n  expiration_date                 : 2\/28\/2027 23:00:00\n...\n  is_inactive                     : T\n  inactivate_after_failure        : F\n...\n  run_now                         : T\n...\n\nSYSTEM ATTRIBUTES\n\n  r_object_type                   : dm_job\n  r_creation_date                 : 2\/28\/2019 05:21:15\n  r_modify_date                   : 2\/28\/2019 05:24:48\n  r_modifier                      : dmadmin\n...\n  r_lock_owner                    : dmadmin\n  r_lock_date                     : 2\/28\/2019 05:24:48\n...\n\nAPPLICATION ATTRIBUTES\n\n...\n  a_status                        :\n  a_is_hidden                     : F\n...\n  a_next_invocation               : 3\/7\/2019 05:21:15\n\nINTERNAL ATTRIBUTES\n\n  i_is_deleted                    : F\n...\n<\/pre>\n<p>The job was locked 3 minutes after the creation date&#8230; And still locked since (4 days).<\/p>\n<p>Let&#8217;s check job logs:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n[dmadmin@CONTENT_SERVER1 ~]$ ls -rtl $DOCUMENTUM\/dba\/log\/repository1\/agentexec\/*0812D68780000ca6*\n-rw-r--r--. 1 dmadmin dmadmin   0 Feb 28 05:24 \/app\/dctm\/server\/dba\/log\/repository1\/agentexec\/job_0812D68780000ca6.lck\n-rw-rw-rw-. 1 dmadmin dmadmin 695 Feb 28 05:24 \/app\/dctm\/server\/dba\/log\/repository1\/agentexec\/job_0812D68780000ca6\n[dmadmin@CONTENT_SERVER1 ~]$\n[dmadmin@CONTENT_SERVER1 ~]$ cat \/app\/dctm\/server\/dba\/log\/repository1\/agentexec\/job_0812D68780000ca6\nThu Feb 28 05:24:50 2019 [ERROR] [LAUNCHER 20749] Detected while preparing job ? for execution: Command Failed: connect,repository1.repository1,dmadmin,'',,,try_native_first, \nstatus: 0, with error message [DM_DOCBROKER_E_NO_SERVERS_FOR_DOCBASE]error:  \"The DocBroker running on host (CONTENT_SERVER1:1489) does not know of a server for the specified docbase (repository1)\"\n...NO HEADER (RECURSION) No session id for current job.\nThu Feb 28 05:24:50 2019 [FATAL ERROR] [LAUNCHER 20749] Detected while preparing job ? for execution: Command Failed: connect,repository1.repository1,dmadmin,'',,,try_native_first, status: 0, with error message .\n..NO HEADER (RECURSION) No session id for current job.\n<\/pre>\n<p>I noted three important information here:<br \/>\n\t1. The DocBroker consider that the docbase is stopped when the AgentExec sent the request.<br \/>\n\t2. The timestamp corresponds to the installation date of the docbase.<br \/>\n\t3. LAUNCHER 20749.<\/p>\n<p>I checked the install logs to confirm the first point:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1 highlight: [3]\">\n[dmadmin@CONTENT_SERVER1 ~]$ egrep \" The installer will s.*. repository1\" $DOCUMENTUM\/product\/7.3\/install\/logs\/install.log*\n\/app\/dctm\/server\/product\/7.3\/install\/logs\/install.log.2019.2.28.8.7.22:05:03:24,757  INFO [main]  - The installer will start component process for repository1.\n\/app\/dctm\/server\/product\/7.3\/install\/logs\/install.log.2019.2.28.8.7.22:05:24:39,588  INFO [main]  - The installer will stop component process for repository1.\n\/app\/dctm\/server\/product\/7.3\/install\/logs\/install.log.2019.2.28.8.7.22:05:26:49,110  INFO [main]  - The installer will start component process for repository1.\n<\/pre>\n<p>The AgentExec logs:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1 highlight: [2,13]\">\n[dmadmin@CONTENT_SERVER1 ~]$ ls -rtl $DOCUMENTUM\/dba\/log\/repository1\/agentexec\/*agentexec.log*\n-rw-rw-rw-. 1 dmadmin dmadmin    640 Feb 28 05:24 agentexec.log.save.02.28.19.05.27.54\n-rw-rw-rw-. 1 dmadmin dmadmin    384 Feb 28 05:36 agentexec.log.save.02.28.19.05.42.26\n-rw-r-----. 1 dmadmin dmadmin      0 Feb 28 05:42 agentexec.log.save.02.28.19.09.51.24\n...\n-rw-r-----. 1 dmadmin dmadmin 569463 Mar  8 09:11 agentexec.log\n[dmadmin@CONTENT_SERVER1 ~]$\n[dmadmin@CONTENT_SERVER1 ~]$ cat $DOCUMENTUM\/dba\/log\/repository1\/agentexec\/agentexec.log.save.02.28.19.05.27.54\nThu Feb 28 05:17:48 2019 [INFORMATION] [LAUNCHER 19584] Detected during program initialization: Version: 7.3.0050.0039  Linux64\nThu Feb 28 05:22:19 2019 [INFORMATION] [LAUNCHER 20191] Detected during program initialization: Version: 7.3.0050.0039  Linux64\nThu Feb 28 05:22:49 2019 [INFORMATION] [LAUNCHER 20253] Detected during program initialization: Version: 7.3.0050.0039  Linux64\nThu Feb 28 05:24:19 2019 [INFORMATION] [LAUNCHER 20555] Detected during program initialization: Version: 7.3.0050.0039  Linux64\nThu Feb 28 05:24:49 2019 [INFORMATION] [LAUNCHER 20749] Detected during program initialization: Version: 7.3.0050.0039  Linux64\n<\/pre>\n<p>I found here the LAUNCHER 20749 noted above \ud83d\ude09 So, this job corresponds to the last job executed by the AgentExec before being stopped.<br \/>\nThe AgentExec was up, the Docbase should be up also, but the DocBroker said that the docbase is down \ud83d\ude41<\/p>\n<p>Now, the question is : when execatly the DocBroker was informed that the docbase is shut down?<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1 \">\n[dmadmin@CONTENT_SERVER1 ~]$ cat $DOCUMENTUM\/dba\/log\/repository1.log.save.02.28.2019.05.26.49\n...\n2019-02-28T05:24:48.644873      20744[20744]    0112D68780000003        [DM_DOCBROKER_I_PROJECTING]info:  \"Sending information to Docbroker located on host (CONTENT_SERVER1) with port (1489).  \nInformation: (Config(repository1), Proximity(1), Status(Server shut down by user (dmadmin)), Dormancy Status(Active)).\"\n<\/pre>\n<p>To recapitulate:<br \/>\n\t&#8211; 05:24:48.644873 \t: Docbase shut down and DocBroker informed<br \/>\n\t&#8211; 05:24:49\t\t\t: AgentExec sent request to DocBroker<\/p>\n<p>So, we can say that the AgentExec was still alive after the docbase stop! <\/p>\n<p>Now, to resolve the issue it is easy \ud83d\ude00<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1 \">\nAPI&gt; unlock,c,0812D68780000ca6\n...\nOK\n<\/pre>\n<p>I didn&#8217;t find in the logs when exactly the docbase stop the AgentExec, I guess the docbase request the stop (kill) but don&#8217;t check if it has been really stopped.<br \/>\nI confess that I encounter this error many times after docbase installation, that&#8217;s why it is useful to know why and how to resolve it quickly. I advise you to configure Dctm jobs after each installation, at least check if the r_lock_date is set and if it is justified.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A correct configuration of Documentum jobs is paramount, that&#8217;s why it is the first thing we do after the docbase installation. A few days ago, I configured the jobs on a new docbase using DQL, and I got an error because a job is locked by the user dmadmin.<\/p>\n","protected":false},"author":46,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197,525],"tags":[1213,129,338,1542],"type_dbi":[],"class_list":["post-12293","post","type-post","status-publish","format-standard","hentry","category-application-integration-middleware","category-enterprise-content-management","tag-docbase","tag-documentum","tag-job","tag-jobs"],"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>Documentum : Dctm job locked after docbase installation - dbi Blog<\/title>\n<meta name=\"description\" content=\"Documentum job locked after docbase installation\" \/>\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\/documentum-dctm-job-locked-docbase-installation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Documentum : Dctm job locked after docbase installation\" \/>\n<meta property=\"og:description\" content=\"Documentum job locked after docbase installation\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-15T15:19:41+00:00\" \/>\n<meta name=\"author\" content=\"David Diab\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"David Diab\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 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\/documentum-dctm-job-locked-docbase-installation\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/\"},\"author\":{\"name\":\"David Diab\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/deb907c3360cacdc6c7df54b4bac3c86\"},\"headline\":\"Documentum : Dctm job locked after docbase installation\",\"datePublished\":\"2019-03-15T15:19:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/\"},\"wordCount\":310,\"commentCount\":0,\"keywords\":[\"docbase\",\"Documentum\",\"Job\",\"Jobs\"],\"articleSection\":[\"Application integration &amp; Middleware\",\"Enterprise content management\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/\",\"name\":\"Documentum : Dctm job locked after docbase installation - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2019-03-15T15:19:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/deb907c3360cacdc6c7df54b4bac3c86\"},\"description\":\"Documentum job locked after docbase installation\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documentum : Dctm job locked after docbase installation\"}]},{\"@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\/deb907c3360cacdc6c7df54b4bac3c86\",\"name\":\"David Diab\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/212b1b2e4650bad3116f644ab4fb4663786d94195d7685d0704c8426da088e60?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/212b1b2e4650bad3116f644ab4fb4663786d94195d7685d0704c8426da088e60?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/212b1b2e4650bad3116f644ab4fb4663786d94195d7685d0704c8426da088e60?s=96&d=mm&r=g\",\"caption\":\"David Diab\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/david-diab\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Documentum : Dctm job locked after docbase installation - dbi Blog","description":"Documentum job locked after docbase installation","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\/documentum-dctm-job-locked-docbase-installation\/","og_locale":"en_US","og_type":"article","og_title":"Documentum : Dctm job locked after docbase installation","og_description":"Documentum job locked after docbase installation","og_url":"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/","og_site_name":"dbi Blog","article_published_time":"2019-03-15T15:19:41+00:00","author":"David Diab","twitter_card":"summary_large_image","twitter_misc":{"Written by":"David Diab","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/"},"author":{"name":"David Diab","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/deb907c3360cacdc6c7df54b4bac3c86"},"headline":"Documentum : Dctm job locked after docbase installation","datePublished":"2019-03-15T15:19:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/"},"wordCount":310,"commentCount":0,"keywords":["docbase","Documentum","Job","Jobs"],"articleSection":["Application integration &amp; Middleware","Enterprise content management"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/","url":"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/","name":"Documentum : Dctm job locked after docbase installation - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2019-03-15T15:19:41+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/deb907c3360cacdc6c7df54b4bac3c86"},"description":"Documentum job locked after docbase installation","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/documentum-dctm-job-locked-docbase-installation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Documentum : Dctm job locked after docbase installation"}]},{"@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\/deb907c3360cacdc6c7df54b4bac3c86","name":"David Diab","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/212b1b2e4650bad3116f644ab4fb4663786d94195d7685d0704c8426da088e60?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/212b1b2e4650bad3116f644ab4fb4663786d94195d7685d0704c8426da088e60?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/212b1b2e4650bad3116f644ab4fb4663786d94195d7685d0704c8426da088e60?s=96&d=mm&r=g","caption":"David Diab"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/david-diab\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/12293","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\/46"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=12293"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/12293\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=12293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=12293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=12293"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=12293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}