<?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: Is anyone postgresql expert here? in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Is-anyone-postgresql-expert-here/m-p/248404#M41515</link>
    <description>&lt;P&gt;I have already reached out to those individuals; however, it is surprising that despite providing all the necessary details, the case was assigned to a Level 1 engineer. I repeatedly requested during the call that R&amp;amp;D or a senior engineer be involved, as I have conducted extensive troubleshooting. The response I received was quite unexpected. They instructed me to create a new virtual machine and restore it. I explained that this is an AWS virtual machine, and obtaining the same private IP address, which is utilized for SIC, may not be feasible. I believe that starting anew should not be considered a viable solution. This situation clearly indicates an issue with the database that can be resolved, correct?&lt;/P&gt;</description>
    <pubDate>Thu, 08 May 2025 02:51:25 GMT</pubDate>
    <dc:creator>Blason_R</dc:creator>
    <dc:date>2025-05-08T02:51:25Z</dc:date>
    <item>
      <title>Is anyone postgresql expert here?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Is-anyone-postgresql-expert-here/m-p/248313#M41494</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I am encountering a problem with the PostgreSQL service failing to start on CP R81.10, which has resulted in the CPM being down. Upon conducting some debugging, I noticed that it appears the PostgreSQL superuser is missing (which I think).&lt;/P&gt;
&lt;P&gt;This issue arose after I expanded the lv_current disk and rebooted the management server. I have already opened a case with TAC, but I anticipate that it may take some time to resolve, as it might require involvement from R&amp;amp;D.&lt;/P&gt;
&lt;P&gt;In the meantime, I am hoping that someone from the community can assist me in rectifying this error or if someone have competency on postgres&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'setupPreparationBean' defined in class path resource [objectStoreConfiguration.xml]: Invocation of init method failed; nested exception is CpmGeneralException{base='com.checkpoint.management.is.exceptions.CpmGeneralException: Couldn't connect to database', errorCode='CP_ERR_DATABASE_CONNECTION', errorFamily='null', messageForUser='null', message='Couldn't connect to database'}
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
        at org.springframework.context.support.ClassPathXmlApplicationContext.&amp;lt;init&amp;gt;(ClassPathXmlApplicationContext.java:139)
        at org.springframework.context.support.ClassPathXmlApplicationContext.&amp;lt;init&amp;gt;(ClassPathXmlApplicationContext.java:93)
        at com.checkpoint.infrastructure.spring.IgnoringDuplicateBeansClassPathXmlApplicationContext.&amp;lt;init&amp;gt;(IgnoringDuplicateBeansClassPathXmlApplicationContext.java:10)
        at com.checkpoint.management.cpm.Cpm.initSpringContext(Cpm.java:9)
        at com.checkpoint.management.cpm.Cpm.main(Cpm.java:168)
Caused by: CpmGeneralException{base='com.checkpoint.management.is.exceptions.CpmGeneralException: Couldn't connect to database', errorCode='CP_ERR_DATABASE_CONNECTION', errorFamily='null', messageForUser='null', message='Couldn't connect to database'}
&lt;/LI-CODE&gt;
&lt;P&gt;Now when I tried restarting from scripts&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;bash -x ./postgres_restart.sh
++ pwd
+ ORIG_DIR=/opt/CPsuite-R81.10/fw1/scripts
+ cd /opt/CPsuite-R81.10/fw1
+ su -s /bin/bash -c '/opt/CPsuite-R81.10/fw1/scripts/postgres_commands.sh restart ' cp_postgres
Running pg_ctl restart
waiting for server to shut down.... done
server stopped
waiting for server to start.... done
server started
Running pg_ctl reload
server signaled
+ cd /opt/CPsuite-R81.10/fw1/scripts
&lt;/LI-CODE&gt;
&lt;P&gt;I guess it has something realted to role postgres&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;025-05-07 13:42:58.772 IST [27601] LOG:  listening on Unix socket "/tmp/.s.PGSQL.5432"
2025-05-07 13:42:58.816 IST [27602] LOG:  database system was shut down at 2025-05-07 13:42:58 IST
2025-05-07 13:42:58.819 IST [27601] LOG:  database system is ready to accept connections
2025-05-07 13:42:58.863 IST [27601] LOG:  received SIGHUP, reloading configuration files
2025-05-07 13:43:19.723 IST [28451] FATAL:  role "postgres" does not exist
2025-05-07 13:45:19.661 IST [32543] FATAL:  role "postgres" does not exist
2025-05-07 13:45:19.712 IST [32741] FATAL:  role "postgres" does not exist
2025-05-07 13:45:55.423 IST [686] FATAL:  role "admin" does not exist
2025-05-07 13:47:19.700 IST [2195] FATAL:  role "postgres" does not exist
2025-05-07 13:48:19.678 IST [3222] FATAL:  role "postgres" does not exist
2025-05-07 13:49:19.707 IST [6859] FATAL:  role "postgres" does not exist
2025-05-07 13:51:19.671 IST [8942] FATAL:  role "postgres" does not exist
2025-05-07 13:51:19.723 IST [9145] FATAL:  role "postgres" does not exist
2025-05-07 13:51:44.335 IST [27601] LOG:  received fast shutdown request
2025-05-07 13:51:44.337 IST [27601] LOG:  aborting any active transactions
2025-05-07 13:51:44.337 IST [27601] LOG:  background worker "logical replication launcher" (PID 27608) exited with exit code 1
2025-05-07 13:51:44.338 IST [27603] LOG:  shutting down
2025-05-07 13:51:44.359 IST [27601] LOG:  database system is shut down
2025-05-07 13:51:44.442 IST [9450] LOG:  listening on IPv4 address "127.0.0.1", port 5432
2025-05-07 13:51:44.446 IST [9450] LOG:  listening on Unix socket "/tmp/.s.PGSQL.5432"
2025-05-07 13:51:44.491 IST [9455] LOG:  database system was shut down at 2025-05-07 13:51:44 IST
2025-05-07 13:51:44.494 IST [9450] LOG:  database system is ready to accept connections
2025-05-07 13:51:44.537 IST [9450] LOG:  received SIGHUP, reloading configuration files
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 08:34:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Is-anyone-postgresql-expert-here/m-p/248313#M41494</guid>
      <dc:creator>Blason_R</dc:creator>
      <dc:date>2025-05-07T08:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone postgresql expert here?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Is-anyone-postgresql-expert-here/m-p/248346#M41501</link>
      <description>&lt;P&gt;The message 'role "postgres" does not exist' suggests TAC should be involved here:&amp;nbsp;&lt;A href="https://support.checkpoint.com/results/sk/sk164656" target="_blank"&gt;https://support.checkpoint.com/results/sk/sk164656&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 14:06:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Is-anyone-postgresql-expert-here/m-p/248346#M41501</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2025-05-07T14:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone postgresql expert here?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Is-anyone-postgresql-expert-here/m-p/248403#M41514</link>
      <description>&lt;P&gt;Im not an expert in it by any means, but I have some experience. Here is what I would try.&lt;/P&gt;
&lt;P&gt;Based on those errors:&lt;/P&gt;
&lt;P&gt;1) connect as super user and run:&lt;/P&gt;
&lt;P&gt;\du&lt;/P&gt;
&lt;P&gt;2) If role is missing, you can try recreate it:&lt;/P&gt;
&lt;P&gt;CREATE ROLE postgres WITH SUPERUSER LOGIN PASSWORD 'your_password';&lt;/P&gt;
&lt;P&gt;3)&amp;nbsp;Check pg_hba.conf&lt;/P&gt;
&lt;P&gt;line should allow postgres to connect, something along the lines local all postgres peer&lt;/P&gt;
&lt;P&gt;4) See if any additional logs that could be helpful&lt;/P&gt;
&lt;P&gt;I can also ask one of my colleagues, he is real genius when it comes to this, Im sure he can give way better insight into it.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 02:15:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Is-anyone-postgresql-expert-here/m-p/248403#M41514</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2025-05-08T02:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone postgresql expert here?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Is-anyone-postgresql-expert-here/m-p/248404#M41515</link>
      <description>&lt;P&gt;I have already reached out to those individuals; however, it is surprising that despite providing all the necessary details, the case was assigned to a Level 1 engineer. I repeatedly requested during the call that R&amp;amp;D or a senior engineer be involved, as I have conducted extensive troubleshooting. The response I received was quite unexpected. They instructed me to create a new virtual machine and restore it. I explained that this is an AWS virtual machine, and obtaining the same private IP address, which is utilized for SIC, may not be feasible. I believe that starting anew should not be considered a viable solution. This situation clearly indicates an issue with the database that can be resolved, correct?&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 02:51:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Is-anyone-postgresql-expert-here/m-p/248404#M41515</guid>
      <dc:creator>Blason_R</dc:creator>
      <dc:date>2025-05-08T02:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone postgresql expert here?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Is-anyone-postgresql-expert-here/m-p/248405#M41516</link>
      <description>&lt;P&gt;I appreciate your assistance; however, I am not an expert in PostgreSQL and lack a comprehensive understanding of its functionality. While I am quite familiar with MariaDB/MySQL, PostgreSQL and its customization by checkpoint remain unfamiliar to me. Nevertheless, I will review the pg_hba configuration file to investigate further. Thank you once again for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 02:53:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Is-anyone-postgresql-expert-here/m-p/248405#M41516</guid>
      <dc:creator>Blason_R</dc:creator>
      <dc:date>2025-05-08T02:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone postgresql expert here?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Is-anyone-postgresql-expert-here/m-p/248406#M41517</link>
      <description>&lt;P&gt;Yea, of course, not a problem. Let me check with my colleague tomorrow morning and I will let you know what he says.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 03:13:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Is-anyone-postgresql-expert-here/m-p/248406#M41517</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2025-05-08T03:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is anyone postgresql expert here?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Is-anyone-postgresql-expert-here/m-p/248435#M41527</link>
      <description>&lt;P&gt;IPs matter insofar as implied rules go, but SIC itself doesn't authenticate with IP addresses.&lt;BR /&gt;If the issue is, in fact, database corruption, a backup/restore of the same environment also exhibiting the same behavior would be expected.&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 13:10:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Is-anyone-postgresql-expert-here/m-p/248435#M41527</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2025-05-08T13:10:02Z</dc:date>
    </item>
  </channel>
</rss>

