<?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: Corrupted metadata objects in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Corrupted-project-repository/m-p/543526#M15885</link>
    <description>&lt;P&gt;Here's my 2 cents worth. I have once ran into similar issues (with project repositories) and had to save the cake by using drastic measures. Drastic enough that I shouldissue warnings and dislaimers and tell you not to do this. And then you're on your own. So make backups! And then some more. And if the damage is such that metadata backups from management console don't work, make backups of your file systems while the server is stopped. Have a solid contingency plan. This is all assuming there is no chance of undoing the work of those (hopefully ex-)colleagues of yours that deleted the physical files of your repository.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use a datastep and the metadata_delobj() function on A0000001.A5C0JUSF (did I read that correctly?) to eliminate the occurrence of that wrecked repos. Then restart your server and see what's left.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are other ways like creating a new repository, backing up the files (they are SAS datasets). Then remove the repos again and dive into those tables. Find the references to the now deleted repos and edit them into references to the lost repos. Now stick those datasets in the location that was deleted in the first place. Now you may be able to start the server and get rid of this repos once and for all. I recommend to not ever to use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I expect some flame from fellow admins and rightfully so. But desperate times call for desperate measures. And if someone has a way of getting things back on track without this then so much the better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;-- Jan.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2019 13:31:25 GMT</pubDate>
    <dc:creator>jklaverstijn</dc:creator>
    <dc:date>2019-03-15T13:31:25Z</dc:date>
    <item>
      <title>Corrupted project repository</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Corrupted-project-repository/m-p/543455#M15883</link>
      <description>&lt;P&gt;I have an issue with a Repository that has no path. What probably happened is that someone eliminated the physical repository folder. The metadata for the deleted repository is still active and it is in an Admin STATE. I have accessed management console as an unrestricted user but cannot seem to repair, eliminate or unregistered the metadata object under metadata manager&amp;gt;&amp;gt;repository&lt;/P&gt;&lt;P&gt;I have attached screenshots to illustrate the errors.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="repo_error.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27960iE68790FB7C71E6EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="repo_error.JPG" alt="repo_error.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="repo_error_1.JPG" style="width: 379px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27958i28C405CBC23ECDAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="repo_error_1.JPG" alt="repo_error_1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="repo_error_2.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27959i805CE01D642AC35B/image-size/large?v=v2&amp;amp;px=999" role="button" title="repo_error_2.JPG" alt="repo_error_2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 10:11:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Corrupted-project-repository/m-p/543455#M15883</guid>
      <dc:creator>PhiSlogan</dc:creator>
      <dc:date>2019-03-21T10:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Corrupted metadata objects</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Corrupted-project-repository/m-p/543526#M15885</link>
      <description>&lt;P&gt;Here's my 2 cents worth. I have once ran into similar issues (with project repositories) and had to save the cake by using drastic measures. Drastic enough that I shouldissue warnings and dislaimers and tell you not to do this. And then you're on your own. So make backups! And then some more. And if the damage is such that metadata backups from management console don't work, make backups of your file systems while the server is stopped. Have a solid contingency plan. This is all assuming there is no chance of undoing the work of those (hopefully ex-)colleagues of yours that deleted the physical files of your repository.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use a datastep and the metadata_delobj() function on A0000001.A5C0JUSF (did I read that correctly?) to eliminate the occurrence of that wrecked repos. Then restart your server and see what's left.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are other ways like creating a new repository, backing up the files (they are SAS datasets). Then remove the repos again and dive into those tables. Find the references to the now deleted repos and edit them into references to the lost repos. Now stick those datasets in the location that was deleted in the first place. Now you may be able to start the server and get rid of this repos once and for all. I recommend to not ever to use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I expect some flame from fellow admins and rightfully so. But desperate times call for desperate measures. And if someone has a way of getting things back on track without this then so much the better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;-- Jan.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 13:31:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Corrupted-project-repository/m-p/543526#M15885</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2019-03-15T13:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Corrupted metadata objects</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Corrupted-project-repository/m-p/543569#M15888</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12460"&gt;@jklaverstijn&lt;/a&gt;&amp;nbsp; I am currently heading towards the same path undesirable but now i will have to wait for our infrastructure teams decision.. I am following this issue to try recover from an earlier physical server backup...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 14:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Corrupted-project-repository/m-p/543569#M15888</guid>
      <dc:creator>PhiSlogan</dc:creator>
      <dc:date>2019-03-15T14:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Corrupted metadata objects</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Corrupted-project-repository/m-p/543731#M15891</link>
      <description>&lt;P&gt;Good luck with finding your data back; it's always your best bet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just figured out another way I couldn't possibly recommend:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Shut down your metadata server, make a backup of the repository manager data in &amp;lt;SASConfig&amp;gt;/Lev1/SASMeta/MetadataServer/rposmgr. Then use a SAS Base session to edit the table RPOSCTRL table in that location. Delete the record that refers to the lost repository. Restart the metadata server and hope for the best. A Metadata Analyse&amp;amp;Repair would be in order as a first step when (if) your server comes back to live.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;-- Jan.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2019 14:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Corrupted-project-repository/m-p/543731#M15891</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2019-03-16T14:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Corrupted metadata objects</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Corrupted-project-repository/m-p/544514#M15897</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12460"&gt;@jklaverstijn&lt;/a&gt;&amp;nbsp; and others following this thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried what &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12460"&gt;@jklaverstijn&lt;/a&gt;&amp;nbsp;suggested - &lt;STRONG&gt;editing the repoctrl&amp;nbsp; table&lt;/STRONG&gt; - with the following observed results:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I made a &lt;STRONG&gt;backup&lt;/STRONG&gt; of the repository manager directory - /opt/sas/Lev1/SASMeta/MetadataServer/rposmgr - and proceeded to &lt;STRONG&gt;pause the MetadataServer&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Then i downloaded the physical table&amp;nbsp;&lt;EM&gt;rposctrl.sas7dabat&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;I then loaded and edited the table &lt;EM&gt;rposctrl.sas7dabat&amp;nbsp;&lt;/EM&gt;using &lt;STRONG&gt;SAS Enterprise Guide&lt;/STRONG&gt;&amp;nbsp;- below is a code example&amp;nbsp;&lt;OL&gt;&lt;LI&gt;*nota: the objective is to &lt;STRONG&gt;delete &lt;/STRONG&gt;the &lt;STRONG&gt;registered damaged repository&lt;/STRONG&gt;&amp;nbsp;- by the way we load the table to an existing library so as to run the program that deletes the row:&lt;/LI&gt;&lt;LI&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc SQL;
Delete from LibEx.rposctrl
where ID=A0000001.A5C0JUSF;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;I uploaded the newly edited &lt;EM&gt;rposctrl.sas7dabat&amp;nbsp;&lt;/EM&gt;table to&amp;nbsp;repository manager directory - /opt/sas/Lev1/SASMeta/MetadataServer/rposmg - and &lt;STRONG&gt;resumed the MetadataServer&lt;/STRONG&gt;&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESULT - unsuccessful&lt;/STRONG&gt;&lt;BR /&gt;We Logged into SAS Management Console and found the registered damaged repository still present under the list of repositories. &lt;STRONG&gt;We have forwarded the issue to SAS Technical Support&lt;/STRONG&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;--PhiS&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 11:26:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Corrupted-project-repository/m-p/544514#M15897</guid>
      <dc:creator>PhiSlogan</dc:creator>
      <dc:date>2019-03-20T11:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Corrupted metadata objects</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Corrupted-project-repository/m-p/544694#M15904</link>
      <description>&lt;P&gt;I first felt disappointment but then saw some hope. You say you paused and resumed the server. I'd rather stop and start instead. Just to make absolutely sure the underlying tables are released.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyways it is always a good idea to involve SAS tech support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;-- Jan.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 20:02:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Corrupted-project-repository/m-p/544694#M15904</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2019-03-20T20:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Corrupted project repository</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Corrupted-project-repository/m-p/544789#M15912</link>
      <description>&lt;P&gt;I managed to Remove the Corrupted Project Repo by use Of Proc Metaoperate of the SAS® 9.4 Open Metadata Interface.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 10:22:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Corrupted-project-repository/m-p/544789#M15912</guid>
      <dc:creator>CarlosSpranger</dc:creator>
      <dc:date>2019-03-21T10:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Corrupted project repository</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Corrupted-project-repository/m-p/544799#M15915</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/261600"&gt;@CarlosSpranger&lt;/a&gt;&amp;nbsp;thanks!! We were struggling for days!!&lt;BR /&gt;I looked up the syntax for &lt;SPAN&gt;Proc Metaoperate&lt;/SPAN&gt;&amp;nbsp;and it solved our issue!!&lt;BR /&gt;&lt;BR /&gt;Here's the reference link: &lt;A href="https://documentation.sas.com/?docsetId=lrmeta&amp;amp;docsetTarget=n1jgbwzbr4219bn19szcvulhi4h6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;https://documentation.sas.com/?docsetId=lrmeta&amp;amp;docsetTarget=n1jgbwzbr4219bn19szcvulhi4h6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here's the code i ran:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc metaoperate
   action=delete
   repository="A0000001.A5C0JUSF"
   noautopause;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 11:01:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Corrupted-project-repository/m-p/544799#M15915</guid>
      <dc:creator>PhiSlogan</dc:creator>
      <dc:date>2019-03-21T11:01:09Z</dc:date>
    </item>
  </channel>
</rss>

