<?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 Re: Unable to delete compute context in Viya 3.5 in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Unable-to-delete-compute-context-in-Viya-3-5/m-p/750884#M22514</link>
    <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60315"&gt;@jcFranklin&lt;/a&gt; - yes indeed, there appears to be a constraint issue in Postgres.  The screenshots above are taken from SAS Environment Manager in Viya 3.5.&lt;BR /&gt;&lt;BR /&gt;Are there any alternative mechanisms for removing compute contexts?</description>
    <pubDate>Mon, 28 Jun 2021 20:36:18 GMT</pubDate>
    <dc:creator>AllanBowe</dc:creator>
    <dc:date>2021-06-28T20:36:18Z</dc:date>
    <item>
      <title>Unable to delete compute context in Viya 3.5</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Unable-to-delete-compute-context-in-Viya-3-5/m-p/750553#M22510</link>
      <description>&lt;P&gt;We are seeing the following message when trying to delete a custom context using SAS Environment Manager in Viya 3.5:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;A data error occurred that prevented the successful completion of the operation.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AllanBowe_0-1624654506205.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60770i6D67180B2148CA58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AllanBowe_0-1624654506205.png" alt="AllanBowe_0-1624654506205.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Opening up the console, the following request is submitted:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AllanBowe_1-1624654606786.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60771i43AC74AD5849295F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AllanBowe_1-1624654606786.png" alt="AllanBowe_1-1624654606786.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the following response:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="json"&gt;{
  "errorCode":1008,
  "message":"A data error occurred that prevented the successful completion of the operation.",
  "details":["traceId: 1e951e833e7ebb4b","path: /compute/contexts/7e258745-c716-42fd-b8ac-375f2f2b7065"],
  "links":[],"version":2,"httpStatusCode":500
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking in the compute logs (/var/log/sas/viya/compute/default) for this event, the following is revealed:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="shell"&gt;2021-06-25 10:08:39.047  WARN 10609 --- [-auto-1-exec-49] o.h.engine.jdbc.spi.SqlExceptionHelper   : allbow(7e30b736) [e40f73af84b0c415] SQL Error: 0, SQLState: 23503
2021-06-25 10:08:39.048 ERROR 10609 --- [-auto-1-exec-49] o.h.engine.jdbc.spi.SqlExceptionHelper   : allbow(7e30b736) [e40f73af84b0c415] ERROR: update or delete on table "compute_server_context" violates foreign key constraint "compute_server_fk01" on table "compute_server"
  Detail: Key (compute_server_context_id)=(7e258745-c716-42fd-b8ac-375f2f2b7065) is still referenced from table "compute_server".
2021-06-25 10:08:39.053  INFO 10609 --- [-auto-1-exec-49] o.h.e.j.b.internal.AbstractBatchImpl     : allbow(7e30b736) [e40f73af84b0c415] HHH000010: On release of batch it still contained JDBC statements
2021-06-25 10:08:39.053 ERROR 10609 --- [-auto-1-exec-49] o.h.i.ExceptionMapperStandardImpl        : allbow(7e30b736) [e40f73af84b0c415] HHH000346: Error during managed flush [org.hibernate.exception.ConstraintViolationException: could not execute statement]
2021-06-25 10:08:39.061 ERROR 10609 --- [-auto-1-exec-49] com.sas.commons.rest.ExceptionLog        : allbow(7e30b736) [e40f73af84b0c415] org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [compute_server_fk01]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement
2021-06-25 10:08:39.061 ERROR 10609 --- [-auto-1-exec-49] com.sas.commons.rest.ExceptionLog        : allbow(7e30b736) [e40f73af84b0c415]   caused by: org.hibernate.exception.ConstraintViolationException: could not execute statement
2021-06-25 10:08:39.061 ERROR 10609 --- [-auto-1-exec-49] com.sas.commons.rest.ExceptionLog        : allbow(7e30b736) [e40f73af84b0c415]   caused by: org.postgresql.util.PSQLException: ERROR: update or delete on table "compute_server_context" violates foreign key constraint "compute_server_fk01" on table "compute_server"
          Detail: Key (compute_server_context_id)=(7e258745-c716-42fd-b8ac-375f2f2b7065) is still referenced from table "compute_server".&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I am able to modify all attributes for this context EXCEPT the name (I can't rename or delete it).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This issue also appears to be severely affecting ALL other compute contexts by making them run very slowly, or not at all (due to timeouts), but ONLY when `&lt;SPAN&gt;reuseServerProcesses` is true.&amp;nbsp; If&amp;nbsp;reuseServerProcesses is false or not set, the jobs run fine (albeit under end user credentials).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to rectify, or further troubleshoot?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 21:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Unable-to-delete-compute-context-in-Viya-3-5/m-p/750553#M22510</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2021-06-25T21:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete compute context in Viya 3.5</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Unable-to-delete-compute-context-in-Viya-3-5/m-p/750827#M22512</link>
      <description>&lt;P&gt;The error you are getting is coming from the postgres database.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried deleting the compute context using EV yet?&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/doc/en/calcdc/3.5/calcontexts/n03002viyaprgmsrvs00000admin.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/calcdc/3.5/calcontexts/n03002viyaprgmsrvs00000admin.htm&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 14:44:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Unable-to-delete-compute-context-in-Viya-3-5/m-p/750827#M22512</guid>
      <dc:creator>jcFranklin</dc:creator>
      <dc:date>2021-06-28T14:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete compute context in Viya 3.5</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Unable-to-delete-compute-context-in-Viya-3-5/m-p/750884#M22514</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60315"&gt;@jcFranklin&lt;/a&gt; - yes indeed, there appears to be a constraint issue in Postgres.  The screenshots above are taken from SAS Environment Manager in Viya 3.5.&lt;BR /&gt;&lt;BR /&gt;Are there any alternative mechanisms for removing compute contexts?</description>
      <pubDate>Mon, 28 Jun 2021 20:36:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Unable-to-delete-compute-context-in-Viya-3-5/m-p/750884#M22514</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2021-06-28T20:36:18Z</dc:date>
    </item>
  </channel>
</rss>

