<?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: Recovery Database Failed, how do I fix this? in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Recovery-Database-Failed-how-do-I-fix-this/m-p/775175#M23260</link>
    <description>Have you checked the log for the Web Infrastructure Platform Data Server to see if there are any corresponding errors there?</description>
    <pubDate>Tue, 19 Oct 2021 17:04:32 GMT</pubDate>
    <dc:creator>gwootton</dc:creator>
    <dc:date>2021-10-19T17:04:32Z</dc:date>
    <item>
      <title>Recovery Database Failed, how do I fix this?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Recovery-Database-Failed-how-do-I-fix-this/m-p/341261#M7913</link>
      <description>&lt;P&gt;I am a new Admin for SAS.&lt;/P&gt;&lt;P&gt;I am working with SAS 9.4 on a Linux back end.&lt;/P&gt;&lt;P&gt;I am trying to "validate" our recovery process to one, be able to have it documented for my admin group and two to be able to apply hotfixes and have the ability to "rollback" if the hotfixes don't install correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When attempting to recover from a backup, when I the process gets to the database I get the following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sourceType: database&lt;BR /&gt;status: failed&lt;BR /&gt;serverSideReturnCode: 312&lt;BR /&gt;hosts&lt;BR /&gt;hostName:&amp;nbsp;localhost&lt;BR /&gt;status: failed&lt;BR /&gt;size: 520260364&lt;BR /&gt;logFilePath: /opt/sasinside/sas/Lev1/Backup/Logs/2017-03-15T09_07_50/recover/Database&lt;BR /&gt;backupLocation: /opt/sasinside/sas/Lev1/Backup/Vault/2017-03-15T08_39_53/db&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I look into the Database Logs I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2017-03-15 09:09:19,367 [main] INFO com.sas.svcs.backup.server.handler.PostgresRecoveryHandler - pg_restore: [archiver (db)] Error while PROCESSING TOC:&lt;BR /&gt;2017-03-15 09:09:19,367 [main] INFO com.sas.svcs.backup.server.handler.PostgresRecoveryHandler - pg_restore: [archiver (db)] Error from TOC entry 5; 2615 2200 SCHEMA public dbmsowner&lt;BR /&gt;2017-03-15 09:09:19,367 [main] INFO com.sas.svcs.backup.server.handler.PostgresRecoveryHandler - pg_restore: [archiver (db)] could not execute query: ERROR: cannot drop schema public because other objects depend on it&lt;/P&gt;&lt;P&gt;2017-03-15 09:09:19,368 [main] INFO com.sas.svcs.backup.server.handler.PostgresRecoveryHandler - pg_restore: [archiver (db)] could not execute query: ERROR: schema "public" already exists&lt;BR /&gt;2017-03-15 09:09:19,368 [main] INFO com.sas.svcs.backup.server.handler.PostgresRecoveryHandler - Command was: CREATE SCHEMA public;&lt;/P&gt;&lt;P&gt;2017-03-15 09:09:24,884 [main] INFO com.sas.svcs.backup.server.handler.PostgresRecoveryHandler - jmdbadmin /opt/sasinside/sashome/SASWebInfrastructurePlatformDataServer/9.4/bin /opt/sasinside/sas/Lev1/Backup/Vault/2017-03-15T08_39_53/db/105363afdaade2f159e8f9731c6951467910af93 null /opt/sasinside/sashome/SASWebInfrastructurePlatformDataServer/9.4/lib&lt;BR /&gt;2017-03-15 09:09:24,886 [main] INFO com.sas.svcs.backup.server.handler.PostgresRecoveryHandler - pg_restore: connecting to database for restore&lt;BR /&gt;2017-03-15 09:09:24,886 [main] INFO com.sas.svcs.backup.server.handler.PostgresRecoveryHandler - pg_restore: [archiver (db)] connection to database "postgres" failed: could not connect to server: Connection refused&lt;BR /&gt;2017-03-15 09:09:24,886 [main] INFO com.sas.svcs.backup.server.handler.PostgresRecoveryHandler - Is the server running on host "localhost" &amp;nbsp;and accepting&lt;BR /&gt;2017-03-15 09:09:24,886 [main] INFO com.sas.svcs.backup.server.handler.PostgresRecoveryHandler - TCP/IP connections on port 9452?&lt;BR /&gt;2017-03-15 09:09:24,887 [main] INFO com.sas.svcs.backup.server.handler.PostgresRecoveryHandler - pg_restore: *** aborted because of error&lt;BR /&gt;2017-03-15 09:09:24,888 [main] ERROR com.sas.svcs.backup.server.handler.PostgresRecoveryHandler - The recovery encountered exception(s): Error Code: 313&lt;BR /&gt;2017-03-15 09:09:24,888 [main] ERROR com.sas.svcs.backup.server.BackupServerSession - An exception while running the command: Error Code: 313&lt;BR /&gt;2017-03-15 09:09:24,888 [main] INFO com.sas.svcs.backup.server.BackupServerSession - Calling post processor : com.sas.svcs.backup.server.handler.PostgresRecoveryHandler&lt;BR /&gt;2017-03-15 09:09:24,901 [main] INFO com.sas.svcs.backup.server.BackupServerSession - Found session result properties : 27&lt;BR /&gt;2017-03-15 09:09:24,916 [main] ERROR com.sas.svcs.backup.server.BackupDriver - An exception while running the BackupServer executable, Exiting..... : Error Code: 313&lt;BR /&gt;Error Code: 312, Stack Trace: com.sas.svcs.backup.server.handler.PostgresRecoveryHandler.recover(PostgresRecoveryHandler.java:204) com.sas.svcs.backup.server.handler.PostgresRecoveryHandler.execute(PostgresRecoveryHandler.java:394)... Nested BackupException : Error code - 313&lt;BR /&gt;at com.sas.svcs.backup.server.handler.PostgresRecoveryHandler.recover(PostgresRecoveryHandler.java:215)&lt;BR /&gt;at com.sas.svcs.backup.server.handler.PostgresRecoveryHandler.execute(PostgresRecoveryHandler.java:394)&lt;BR /&gt;at com.sas.svcs.backup.server.handler.PostgresRecoveryHandler.execute(PostgresRecoveryHandler.java:35)&lt;BR /&gt;at com.sas.svcs.backup.server.BackupServerSession.execute(BackupServerSession.java:107)&lt;BR /&gt;at com.sas.svcs.backup.server.BackupDriver.main(BackupDriver.java:131)&lt;BR /&gt;Caused by: Error Code: 313&lt;BR /&gt;at com.sas.svcs.backup.server.handler.PostgresRecoveryHandler.recover(PostgresRecoveryHandler.java:204)&lt;BR /&gt;... 4 more&lt;BR /&gt;2017-03-15 09:09:24,916 [main] ERROR com.sas.svcs.backup.server.BackupDriver - [Ljava.lang.StackTraceElement;@6e67a769&lt;BR /&gt;2017-03-15 09:09:24,916 [main] INFO com.sas.svcs.backup.server.BackupDriver - Exiting with status code: 312&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have gotten this error before (&lt;SPAN&gt;Is the server running on host "my localhost" &amp;nbsp;and accepting&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;TCP/IP connections on port 9452?)&lt;/SPAN&gt; and have tried to fix it by checking to see what runs on it normally before I go offline. I found it to be my postgres server and on my next attempt to do a recovery used the &amp;nbsp; /opt/sasinside/sas/Lev1/DataRemediationDataServer/dmrmdtdsvrc.sh start command to start the postgres server. The only other logs that I find that show something is wrong is located at&amp;nbsp;/opt/sasinside/sas/Lev1/WebInfrastructurePlatformDataServer/Logs saying that an unexpected EOF on client connection followed by&amp;nbsp;sending cancel to blocking autovacuum. &amp;nbsp;I think this might be the smoking gun, but I can't find this issue in documentation and don't have enough knowledge of the system to know where to go to fix this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wayne&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 17:15:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Recovery-Database-Failed-how-do-I-fix-this/m-p/341261#M7913</guid>
      <dc:creator>wjsnyder</dc:creator>
      <dc:date>2017-03-15T17:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Database Failed, how do I fix this?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Recovery-Database-Failed-how-do-I-fix-this/m-p/341509#M7932</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/93300"&gt;@wjsnyder&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is a great question. And it is a known issue within PostreSQL DBAs.&lt;/P&gt;
&lt;P&gt;Your main problem is this kind of message:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;could not execute query: ERROR:  schema "public" already exists&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question to you would be: what maintance of SAS and OS are you running?&amp;nbsp; Do you have installed all the latest hotfixes?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Here is the thing: whilst this question can be answered and solved by PSQL dbas, I would strongly advise you to align the solution with SAS Technical Support, to ensure that is supported and probably you will get additional useful information and maybe even a hotfix (they will ask you for the DeploymentRegistry.xml of your SAS platform).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This link can explain to you the original problem, the solutions, considerations about the version of PSQL and drawbacks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://dba.stackexchange.com/questions/90258/pg-restore-archiver-db-could-not-execute-query-error-schema-public-alre" target="_blank"&gt;http://dba.stackexchange.com/questions/90258/pg-restore-archiver-db-could-not-execute-query-error-schema-public-alre&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this can help you a bit, Wayne.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Juan&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 10:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Recovery-Database-Failed-how-do-I-fix-this/m-p/341509#M7932</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2017-03-16T10:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Database Failed, how do I fix this?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Recovery-Database-Failed-how-do-I-fix-this/m-p/341638#M7952</link>
      <description>&lt;P&gt;Juan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer your questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What maintenance of SAS and OS are you running?&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS 9.4_M3 on RHEL's 6 (Linux x64)&lt;/P&gt;&lt;P&gt;Have you installed all the latest hotfixes?&lt;/P&gt;&lt;P&gt;Coincidently I am trying to perform a restore in order to assure my group that we have a safety net. Just in case&amp;nbsp;we install a hotfix and it breaks, either by applying something that we don't have or us not performing the post/pre-installation instructions correctly, our system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately you are saying that I should escalate this to SAS Tech Support?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wayne&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 15:45:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Recovery-Database-Failed-how-do-I-fix-this/m-p/341638#M7952</guid>
      <dc:creator>wjsnyder</dc:creator>
      <dc:date>2017-03-16T15:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Database Failed, how do I fix this?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Recovery-Database-Failed-how-do-I-fix-this/m-p/775154#M23259</link>
      <description>is this resolved?&lt;BR /&gt;I am getting the below error as databese backup failed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2021-10-19 16:05:49,030 [main] INFO  com.sas.svcs.backup.server.handler.PostgresBackupHandler - Exit code : 0&lt;BR /&gt;2021-10-19 16:05:49,030 [main] INFO  com.sas.svcs.backup.server.handler.PostgresBackupHandler - The backup successfully completed!!!&lt;BR /&gt;2021-10-19 16:05:49,032 [main] ERROR com.sas.svcs.backup.server.BackupServerSession - An exception while running the command: One of the database failed to backup see Database.log for details&lt;BR /&gt;2021-10-19 16:05:49,033 [main] INFO  com.sas.svcs.backup.server.BackupServerSession - Calling post processor : com.sas.svcs.backup.server.handler.PostgresBackupHandler&lt;BR /&gt;2021-10-19 16:05:49,050 [main] INFO  com.sas.svcs.backup.server.BackupServerSession - Found session result properties : 40&lt;BR /&gt;2021-10-19 16:05:49,072 [main] ERROR com.sas.svcs.backup.server.BackupDriver - An exception while running the BackupServer executable, Exiting..... : One of the database failed to backup see Database.log for details&lt;BR /&gt;Error Code: 310, Stack Trace: One of the database failed to backup see Database.log for details&lt;BR /&gt;        at com.sas.svcs.backup.server.handler.PostgresBackupHandler.execute(PostgresBackupHandler.java:512)&lt;BR /&gt;        at com.sas.svcs.backup.server.handler.PostgresBackupHandler.execute(PostgresBackupHandler.java:45)&lt;BR /&gt;        at com.sas.svcs.backup.server.BackupServerSession.execute(BackupServerSession.java:118)&lt;BR /&gt;        at com.sas.svcs.backup.server.BackupDriver.main(BackupDriver.java:131)&lt;BR /&gt;2021-10-19 16:05:49,073 [main] ERROR com.sas.svcs.backup.server.BackupDriver - [Ljava.lang.StackTraceElement;@ef9296d&lt;BR /&gt;2021-10-19 16:05:49,073 [main] INFO  com.sas.svcs.backup.server.BackupDriver - Exiting with status code: 310&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Oct 2021 15:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Recovery-Database-Failed-how-do-I-fix-this/m-p/775154#M23259</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2021-10-19T15:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Database Failed, how do I fix this?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Recovery-Database-Failed-how-do-I-fix-this/m-p/775175#M23260</link>
      <description>Have you checked the log for the Web Infrastructure Platform Data Server to see if there are any corresponding errors there?</description>
      <pubDate>Tue, 19 Oct 2021 17:04:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Recovery-Database-Failed-how-do-I-fix-this/m-p/775175#M23260</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-10-19T17:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Database Failed, how do I fix this?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Recovery-Database-Failed-how-do-I-fix-this/m-p/775192#M23263</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Job Monitoring Database Server uses&amp;nbsp;&lt;/SPAN&gt;9452.&amp;nbsp; This is one of the data servers that the Backup and Recovery Tool documentation refers to as "solution data servers".&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 4. Stop all servers and services except the SAS Metadata Server, SAS Web Infrastructure Platform Data Server (all instances, including all solution data servers, as well), and SAS Deployment Agent (all instances).&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/bicdc/9.4/bisag/n1s7of1sfm1qzfn1sce58rbbkvwu.htm#n03jxdrrz3ffkun1f429igjxistt" target="_blank"&gt;SAS Help Center: Performing a Recovery Using the Deployment Backup and Recovery Tool&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So make sure all * Data Server and * Database Server instances are started.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 18:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Recovery-Database-Failed-how-do-I-fix-this/m-p/775192#M23263</guid>
      <dc:creator>michele_sas</dc:creator>
      <dc:date>2021-10-19T18:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Database Failed, how do I fix this?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Recovery-Database-Failed-how-do-I-fix-this/m-p/775350#M23265</link>
      <description>Backup is success after all * Data Server and * Database Server instances are up and running(restarted these servcies )&lt;BR /&gt;Thanks for your help</description>
      <pubDate>Wed, 20 Oct 2021 10:08:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Recovery-Database-Failed-how-do-I-fix-this/m-p/775350#M23265</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2021-10-20T10:08:19Z</dc:date>
    </item>
  </channel>
</rss>

