<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic sas-run-tool: Service executor failed to execute successfully: exit status 1 in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/940184#M28855</link>
    <description>&lt;P&gt;We have installed Viya 4 Kubernetes, and deployed OpenSearch Dashboards for logging . I see the error&lt;/P&gt;&lt;P&gt;Logsource: sas-run-tool&amp;nbsp;&lt;/P&gt;&lt;P&gt;message :&amp;nbsp;&lt;SPAN&gt;Tool executor failed starting service: exit status 1&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;Level : Error&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;then right after&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;Level : Fatal&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Logsource: sas-run-tool&amp;nbsp;&lt;/P&gt;&lt;P&gt;message :&amp;nbsp;&lt;SPAN&gt;Service executor failed to execute successfully: exit status 1&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;Level : Fatal&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Did it happen in your environment and you know what this is? I googled but did not find much for this error.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thanks a lot,&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 21 Aug 2024 02:20:03 GMT</pubDate>
    <dc:creator>drhorg</dc:creator>
    <dc:date>2024-08-21T02:20:03Z</dc:date>
    <item>
      <title>sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/940184#M28855</link>
      <description>&lt;P&gt;We have installed Viya 4 Kubernetes, and deployed OpenSearch Dashboards for logging . I see the error&lt;/P&gt;&lt;P&gt;Logsource: sas-run-tool&amp;nbsp;&lt;/P&gt;&lt;P&gt;message :&amp;nbsp;&lt;SPAN&gt;Tool executor failed starting service: exit status 1&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;Level : Error&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;then right after&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;Level : Fatal&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Logsource: sas-run-tool&amp;nbsp;&lt;/P&gt;&lt;P&gt;message :&amp;nbsp;&lt;SPAN&gt;Service executor failed to execute successfully: exit status 1&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;Level : Fatal&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Did it happen in your environment and you know what this is? I googled but did not find much for this error.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thanks a lot,&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Aug 2024 02:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/940184#M28855</guid>
      <dc:creator>drhorg</dc:creator>
      <dc:date>2024-08-21T02:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/940326#M28859</link>
      <description>What is the name of the pod that is throwing these messages?</description>
      <pubDate>Wed, 21 Aug 2024 15:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/940326#M28859</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2024-08-21T15:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/942073#M28916</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;, sorry for delay, missed your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kube.pod - sas-backup-purge-job&lt;/P&gt;&lt;P&gt;level -fatal&lt;/P&gt;&lt;P&gt;kube.container - sas-backup-purge-job&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;kube.annotations.sas_com/component-name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;sas-backup-job&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if any other info needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2024 02:52:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/942073#M28916</guid>
      <dc:creator>drhorg</dc:creator>
      <dc:date>2024-08-31T02:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/942305#M28930</link>
      <description>The sas-backup-purge-job I think runs daily and removes old backups, this message suggests one such execution of a job failed. If you look at your job history do you see these show as completed?&lt;BR /&gt;kubectl -n namespace get jobs -l app.kubernetes.io/name=sas-backup-purge-job</description>
      <pubDate>Tue, 03 Sep 2024 14:34:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/942305#M28930</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2024-09-03T14:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/943049#M28970</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;, yes the purge failed multiple times. Sorry by mistake I accepted my reply as solution instead of your reply. I fixed this now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your help!&lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2024 01:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/943049#M28970</guid>
      <dc:creator>drhorg</dc:creator>
      <dc:date>2024-09-08T01:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/953502#M29407</link>
      <description>&lt;P&gt;Greg,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sometimes my backup gives failed in viya 24.03.&lt;/P&gt;
&lt;P&gt;I cannot find the reason, because if I fire this job again, it succeeds.&lt;/P&gt;
&lt;P&gt;Maybe you have a solution ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{"level":"info","version":1,"source":"sas-backupjob","messageKey":"Checking if job is allowed to run.","properties":{"logger":"backupjob","caller":"backupjob/main.go:314"},"timeStamp":"2024-12-13T02:02:04.280263+01:00","message":"Checking if job is allowed to run."}&lt;BR /&gt;{"level":"info","version":1,"source":"sas-backupjob","messageKey":"backupjob-log-icu.updating.k8s.job.labels.info.log","messageParameters":{"jobName":"sas-scheduled-backup-dpyxjx3i-28900860"},"properties":{"logger":"backupjob/kubeutils","caller":"kubeutils/kube_client.go:126"},"timeStamp":"2024-12-13T02:02:04.334724+01:00","message":"Updating the Kubernetes job sas-scheduled-backup-dpyxjx3i-28900860 with given label."}&lt;BR /&gt;{"level":"info","version":1,"source":"sas-backupjob","messageKey":"backupjob-log-icu.updated.k8s.job.info.log","messageParameters":{"jobName":"sas-scheduled-backup-dpyxjx3i-28900860"},"properties":{"logger":"backupjob/kubeutils","caller":"kubeutils/kube_client.go:152"},"timeStamp":"2024-12-13T02:02:04.345526+01:00","message":"Updated the Kubernetes job the sas-scheduled-backup-dpyxjx3i-28900860."}&lt;BR /&gt;{"level":"error","version":1,"source":"sas-backupjob","messageKey":"Job is not allowed to run.","properties":{"logger":"backupjob","caller":"backupjob/main.go:476"},"timeStamp":"2024-12-13T02:02:04.345565+01:00","message":"Job is not allowed to run."}&lt;BR /&gt;{"level":"error","version":1,"source":"sas-backupjob","messageKey":"backupjob-log-icu.remote.backup.agent.process.grep.pid.error.log","messageParameters":{"error":"exit status 1"},"properties":{"logger":"backupjob","caller":"backupjob/main.go:529"},"timeStamp":"2024-12-13T02:04:14.495204+01:00","message":"backupjob-log-icu.remote.backup.agent.process.grep.pid.error.log [error:exit status 1]"}&lt;BR /&gt;{"level":"error","version":1,"source":"sas-run-tool","messageKey":"Tool executor failed starting service: exit status 1","properties":{"logger":"tools/run","caller":"impl/executor.go:69"},"timeStamp":"2024-12-13T02:04:14.497860+01:00","message":"Tool executor failed starting service: exit status 1"}&lt;BR /&gt;{"level":"fatal","version":1,"source":"sas-run-tool","messageKey":"Service executor failed to execute successfully: exit status 1","properties":{"logger":"tools/run","caller":"impl/tooling.go:139"},"timeStamp":"2024-12-13T02:04:14.497901+01:00","message":"Service executor failed to execute successfully: exit status 1"}&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 11:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/953502#M29407</guid>
      <dc:creator>paterd2</dc:creator>
      <dc:date>2024-12-13T11:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/953660#M29408</link>
      <description>The failure message here is "Job is not allowed to run." Usually this happens because another backup is already running.</description>
      <pubDate>Mon, 16 Dec 2024 14:01:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/953660#M29408</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2024-12-16T14:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/953829#M29419</link>
      <description>Greg, thank you, but I don't run 2 backups in the night, can I simutlate the check that a backup is already running ?&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Dec 2024 11:31:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/953829#M29419</guid>
      <dc:creator>paterd2</dc:creator>
      <dc:date>2024-12-17T11:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/953849#M29420</link>
      <description>From what I can tell keys are created in the SAS Configuration Server with the backup job id (e.g. backup-job-uuid or backup-job-incr-uuid). It checks if such a key is present and, depending on the type of backup being requested will stop if it finds one. It would also stop if it can't create such a key.&lt;BR /&gt;You may want to turn on debug logging of the backup, this should provide more detail on the failure. To do that, you could set the environment variable SAS_LOG_LEVEL_BACKUPJOB to debug on the cronjob, for example:&lt;BR /&gt;kubectl -n namespace set env cronjob/sas-scheduled-backup-job SAS_LOG_LEVEL_BACKUPJOB=DEBUG</description>
      <pubDate>Tue, 17 Dec 2024 15:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/953849#M29420</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2024-12-17T15:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/954132#M29426</link>
      <description>&lt;P&gt;Greg, thank you, now we have more output, we will investigate further..&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 07:46:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/954132#M29426</guid>
      <dc:creator>paterd2</dc:creator>
      <dc:date>2024-12-19T07:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/954136#M29427</link>
      <description>&lt;P&gt;Greg, we found it.&lt;/P&gt;
&lt;P&gt;the sas-backup-purge-job cannot run simultaneous with the sas-scheduled-backup-job.&lt;/P&gt;
&lt;P&gt;So this explains why it went ok if we run it by hand in the morning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We will reschedule the full backups.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;kubectl -n $ns get cronjob | grep backup | grep False&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;sas-backup-purge-job&lt;/STRONG&gt; 15 0 1/1 * ? False 0 8h 127d&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;sas-scheduled-backup-job&lt;/STRONG&gt; 0 1 * * 0 False 0 4d8h 127d&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;sas-scheduled-backup-kbx7pj33&lt;/STRONG&gt; 0 1 * * 1-5 False 0 8h 16d&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Adjusted to :&lt;BR /&gt;sas-backup-purge-job 15 0 1/1 * ? False 0 8h 127d&lt;BR /&gt;sas-scheduled-backup-job 0 &lt;STRONG&gt;4&lt;/STRONG&gt; * * 0 False 0 4d8h 127d&lt;BR /&gt;sas-scheduled-backup-kbx7pj33 0 &lt;STRONG&gt;4&lt;/STRONG&gt; * * 1-5 False 0 8h 16d&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;Tomorrow we know it for sure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 09:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/954136#M29427</guid>
      <dc:creator>paterd2</dc:creator>
      <dc:date>2024-12-19T09:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/955325#M29458</link>
      <description>&lt;P&gt;Greg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the reason is that the purge job runs for hours .&lt;/P&gt;
&lt;P&gt;The pg_dump must be dumping with -Fd , we get 469000 *.dat.gz files . The purge proces has a lot of work to do with so many files.&lt;/P&gt;
&lt;P&gt;Is it possible to adjust this to -Fc just one bigfile, or some other solution ...&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Dik&lt;/P&gt;
&lt;P&gt;We are on 2403 lts , maybe this behavior will change in the next upgrade.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 14:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/955325#M29458</guid>
      <dc:creator>paterd2</dc:creator>
      <dc:date>2025-01-07T14:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/955674#M29471</link>
      <description>You are correct that the backup uses the --format directory option for pgdump, this is hard-coded and not customizable.&lt;BR /&gt;As far as how long purge is taking to complete though, that seems high. My oldest backup's postgres dump contains 36,544 files and my last purge job took 2 minutes to complete. In the logs for the purge job do you see any indication of why it's taking so long?</description>
      <pubDate>Thu, 09 Jan 2025 21:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/955674#M29471</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2025-01-09T21:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/956754#M29523</link>
      <description>&lt;P&gt;We see entries in the table pg_catalog.pg_largeobject, for example job history and report transfer data. We export the reports with the sas-viya cli tool.&lt;/P&gt;
&lt;P&gt;These entries are exported as blob&amp;lt;loid&amp;gt;.dat.gz&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;- How can I delete the job history in viya ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- For the reports we are investigating.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 14:57:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/956754#M29523</guid>
      <dc:creator>paterd2</dc:creator>
      <dc:date>2025-01-21T14:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/957295#M29535</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Greg,&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;more information :&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;I made a sas studio job ;&amp;nbsp;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;cas;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;%put "ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ" ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;run ;&lt;/FONT&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Logged into postgres pod :&amp;nbsp;kn exec&amp;nbsp;sas-crunchy-platform-postgres-00-b56g-0 -it -- sh&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;psql&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;\c SharedServices&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;SharedServices=# select loid from pg_catalog.pg_largeobject where data like '%ZZZZZ%' ;&lt;BR /&gt;loid&lt;BR /&gt;---------&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;6612731&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;6612732&lt;BR /&gt;6613030&lt;BR /&gt;6613031&lt;BR /&gt;6613039&lt;BR /&gt;6613038&lt;BR /&gt;6765563&lt;BR /&gt;(7 rows)&lt;BR /&gt;What is in the data column ?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;select loid,substr(encode(data, 'escape'),1100) as data from pg_catalog.pg_largeobject where data like '%ZZZZZ%' limit 1;&lt;/EM&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;loid | data &lt;BR /&gt;---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;6612731&lt;/STRONG&gt; &lt;/FONT&gt;| kers."},{"version":1,"type":"source","line":"593 %put \\"ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ\\" ;"},{"version":1,"type":"normal","line":"\\"ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ\\""},{"version":1,"type":"source","line":"594 "},{"version":1,"type":"source","line":"595 run ;"},{"version":1,"type":"source","line":"596 %JESEND"},{"version":1,"type":"note","line":""}],"count":674,"limit":674,"links":[]}&lt;BR /&gt;(1 row)&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Login the backup pod OR another pod which has the backup directory mounted&amp;nbsp; and goto the directory where the pgdump file is and zcat the file blob_&amp;lt;loid&amp;gt;.dat.gz&lt;/FONT&gt;&lt;BR /&gt;/sasviyabackup/20250127-010206F/__default__/postgres/SharedServices_pg_dump.dmp $ zcat blob_6612731.dat.gz | tail -40 | fold -80 | tail -10&lt;BR /&gt;The user is &amp;lt;d.pater&amp;gt; and the active caslib is CASUSER(&amp;lt;d.pater&amp;gt;)&lt;BR /&gt;."},{"version":1,"type":"note","line":"NOTE: The SAS option SESSREF was updated&lt;BR /&gt;with the value CASAUTO."},{"version":1,"type":"note","line":"NOTE: The SAS macro&lt;BR /&gt;_SESSREF_ was updated with the value CASAUTO."},{"version":1,"type":"note","lin&lt;BR /&gt;e":"NOTE: The session is using 2 workers."},{"version":1,"type":"source","line":&lt;BR /&gt;"593 %put \"ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ\" ;"},{"version":&lt;BR /&gt;1,"type":"normal","line":"\"ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ\""&lt;BR /&gt;},{"version":1,"type":"source","line":"594 "},{"version":1,"type":"source","lin&lt;BR /&gt;e":"595 run ;"},{"version":1,"type":"source","line":"596 %JESEND"},{"version":&lt;BR /&gt;1,"type":"note","line":""}],"count":674,"limit":674,"links":[]}&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Questions :&lt;/P&gt;
&lt;P&gt;1.is this normal behavior ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Must i register a case with SAS for this behavior ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 13:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/957295#M29535</guid>
      <dc:creator>paterd2</dc:creator>
      <dc:date>2025-01-27T13:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/957298#M29537</link>
      <description>When a file gets upload to the files service, the data is physically stored in a large object in postgres.&lt;BR /&gt;&lt;BR /&gt;This includes files uploaded through SAS Content, but also for any job that has run, the results of that job.&lt;BR /&gt;&lt;BR /&gt;This job history, including logs, is preserved based on the expiration attribute of the job, which is set based on the "expiresAfter" parameter of the jobRequest.&lt;BR /&gt;&lt;BR /&gt;When you create a jobRequest through SAS Studio, this expiration is set to 72 hours. When you create a job in Environment Manager, the expiration is not set, meaning the job history is preserved indefinitely.&lt;BR /&gt;&lt;BR /&gt;I created a series of pyviyatools tools to address the issue of job history being preserved indefinitely:&lt;BR /&gt;1. setjobrequestexpire.py - &lt;A href="https://github.com/sassoftware/pyviyatools/blob/master/setjobrequestexpire.py" target="_blank"&gt;https://github.com/sassoftware/pyviyatools/blob/master/setjobrequestexpire.py&lt;/A&gt; - Allows you to set the expiresAfter parameter for jobRequests. This will cause any future jobs run under that jobRequest to carry an expiration based on that parameter.&lt;BR /&gt;2. deletejobhistory.py - &lt;A href="https://github.com/sassoftware/pyviyatools/blob/master/deletejobhistory.py" target="_blank"&gt;https://github.com/sassoftware/pyviyatools/blob/master/deletejobhistory.py&lt;/A&gt; - Allows you to delete the job history (contents of the Monitoring tab) based on filters, so for example any jobs that completed over a week ago, or all the history for a specific job.&lt;BR /&gt;3. deleteorphanedfiles.py - &lt;A href="https://github.com/sassoftware/pyviyatools/blob/master/deleteorphanedfiles.py" target="_blank"&gt;https://github.com/sassoftware/pyviyatools/blob/master/deleteorphanedfiles.py&lt;/A&gt; - When you delete a job history object, the associated files for that object should be deleted as well automatically. Sometimes this process fails resulting in a file object without a valid parent (as the job history object has been deleted). This tool identifies any files objects without a parent (i.e. the parentUri when called returns a 404), and deletes them.&lt;BR /&gt;&lt;BR /&gt;So #1 prevents future job history from being preserved indefinitely and #2 and #3 clean up existing history.&lt;BR /&gt;&lt;BR /&gt;For exports, the transfer service has functions to create an export package and download it. After you've downloaded it, the package is still present on the server and could be downloaded again, until such time as you delete the export package. When I'm doing an export, I include a delete to keep the database free of old packages once they've been downloaded:&lt;BR /&gt;sas-viya transfer export (produces ID as output)&lt;BR /&gt;sas-viya transfer download --id id-from-above&lt;BR /&gt;sas-viya transfer delete --id-from-above&lt;BR /&gt;&lt;BR /&gt;You can also remove old packages using the sas-viya transfer delete CLI command if you no longer need them on the server, the sas-viya transfer list command will show you the packages that still exist on the server.</description>
      <pubDate>Mon, 27 Jan 2025 14:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/957298#M29537</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2025-01-27T14:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/957445#M29542</link>
      <description>&lt;P&gt;Mr.Gwooton,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had some problems with the quoting &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This works for the Update CAS Audit Data, we have a lot of records, I also could have used createdBy,sas.audit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;python3 deletejobhistory.py -e -f 'eq(jobRequest.name,"Update CAS Audit data")' -p 1000 -l 100 -w&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you, we will add 72 hours or so,&amp;nbsp; to our jobs that don't have an expiry set.&lt;/P&gt;
&lt;P&gt;I will also take a look at the orphan script.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Dik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 10:21:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/957445#M29542</guid>
      <dc:creator>paterd2</dc:creator>
      <dc:date>2025-01-28T10:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/957563#M29553</link>
      <description>&lt;P&gt;Mr. Gwooton&lt;/P&gt;
&lt;P&gt;I still have some job related entries for example :&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;
&lt;P&gt;select count(*) from workloadorchestrator.job_std_output ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; count&lt;/P&gt;
&lt;P&gt;---------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;4495370&lt;/P&gt;
&lt;P&gt;(1 row)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SharedServices=# select count(*) from workloadorchestrator.job_std_output where line_txt like '%App.ComputeServer.Communication.HTTP%';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; count&lt;/P&gt;
&lt;P&gt;---------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;4266126&lt;/P&gt;
&lt;P&gt;(1 row)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SharedServices=# SELECT pg_size_pretty(pg_total_relation_size('workloadorchestrator.job_std_output')) AS table_size;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;table_size&lt;/P&gt;
&lt;P&gt;------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;3118 MB&lt;/P&gt;
&lt;P&gt;(1 row)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;UL&gt;
&lt;LI&gt;&amp;nbsp;Do you know how we can also get rid of these entries ?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I cannot find a logger with the name&amp;nbsp;App.ComputeServer.Communication.HTTP&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sas-viya -p $ns workload-orchestrator logs levels get | grep Loggers |awk -F"name:" '{for (i = 1; i &amp;lt;= NF; i++) {print $i}}'| grep -v NULL&lt;BR /&gt;Loggers [map[level:INFO&lt;BR /&gt;App.NLS] map[level:ERROR&lt;BR /&gt;App.tk.HTTPC.Conn] map[level:FATAL&lt;BR /&gt;App.tk.HTTPC.State] map[level:FATAL&lt;BR /&gt;App.tk.HTTPC.debug] map[level:FATAL&lt;BR /&gt;App.tk.jwtkeystore] map[level:INFO&lt;BR /&gt;App.tk.HTTPC.DNSCache] map[level:FATAL&lt;BR /&gt;App.tk.eam.rsa.Buffer] map[level:FATAL&lt;BR /&gt;App.tk.eam.ssl.openssl111] map[level:ERROR&lt;BR /&gt;App.Grid.SGMG.Log.Config.JSON] map[level:FATAL&lt;BR /&gt;App.SQLServices.RTE.Statement] map[level:FATAL&lt;BR /&gt;App.SQLServices.RTE.Environment] map[level:FATAL&lt;BR /&gt;App.SQLServices.RTE.Connection.DCM] map[level:FATAL&lt;BR /&gt;App.SQLServices.RTE.Statement.POSTGRES.stats]]&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 11:56:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/957563#M29553</guid>
      <dc:creator>paterd2</dc:creator>
      <dc:date>2025-01-29T11:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/957583#M29554</link>
      <description>&lt;P&gt;These records are not for jobs from the jobExecution service (those that show in the Monitoring tab of the Jobs and Flows page in SAS Environment Manager) but records stored by SAS Workload Orchestrator related to its job history. This would include anything launched to SWO, so would include all compute server, connect server and batch servers that result in a pod being created. The table you are looking at, job_std_output, captures a row for each line returned to stdout from each job up to the maxStdOutLines configuration in SWO.&lt;/P&gt;
&lt;P&gt;Removing these entries would remove the job history from the Workload Orchestrator page in Environment Manager. There is no function within SWO to remove these entries, so if you wanted to remove old entries from this table you would need to manipulate the tables in the database directly rather than through any interface Viya provides.&lt;/P&gt;
&lt;P&gt;If you engage SAS Technical Support, they can provide you with a script you can run on a SAS Workload Orchestrator StatefulSet pod to remove old entries.&lt;/P&gt;
&lt;P&gt;The script accepts as arguments a retention period in days and limit in the total number of job records to process, and it builds and executes a SQL query to:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Build a temporary table of job IDs that ended prior to the retention period up to the limit provided from the main job table.&lt;/LI&gt;
&lt;LI&gt;For each of those jobs, delete any associated records in the supporting tables.&lt;/LI&gt;
&lt;LI&gt;For each of those jobs, delete the record in the main job table.&lt;/LI&gt;
&lt;LI&gt;VACUUM ANALYZE and REINDEX each table.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Because this can take a long time to finish, the script nohup's the SQL query so you don't need to remain connected to the pod while it runs.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 14:34:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/957583#M29554</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2025-01-29T14:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: sas-run-tool: Service executor failed to execute successfully: exit status 1</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/957662#M29560</link>
      <description>Thank you, with this thread and the information you gave me , we are more in control.</description>
      <pubDate>Thu, 30 Jan 2025 08:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-run-tool-Service-executor-failed-to-execute-successfully/m-p/957662#M29560</guid>
      <dc:creator>paterd2</dc:creator>
      <dc:date>2025-01-30T08:30:18Z</dc:date>
    </item>
  </channel>
</rss>

