This error occurs when the core files cannot be found in the /var/tmp directory (the default location for Fujitsu Enterprise Postgres core files set up by WebAdmin).
This can happen because, by default, Linux deletes from /var/tmp any content that has not been accessed for 30 days or more.
The directory to output core files is specified by the core_directory parameter in postgresql.conf. When you create an instance in WebAdmin, /var/tmp/xxxxx/yyyyy/core is set by default.
Resolution
Do one of the following:
You can either remove the tmpwatch package (which is responsible for deleting content from /tmp and /var/tmp) or you disable the cron entry.
Please note that in some cases, you may not be able to remove the tmpwatch package, because of its dependencies, so you may want to disable the cron entry instead.
Execute one of the commands below:
# rpm -e tmpwatch
or
# yum remove tmpwatch
Execute one of the commands below:
# mv /etc/cron.daily/tmpwatch /other/location/tmpwatch.bkp
or
# rm /etc/cron.daily/tmpwatch
For details, refer to Fujitsu Enterprise Postgres Installation and Setup Guide for Server > Chapter 4 - Setup > 4.2 - Preparations for setup > 4.2.2 - Preparing directories for resource placement [Linux version] [Windows version].
Product: Fujitsu Enterprise Postgres Standard Edition, Fujitsu Enterprise Postgres Advanced Edition
Versions: from 9.4
Architecture: X86, S390x
Operating System: Windows, Linux
This answer is based on the following environment and configuration:
Follow the steps below:
listen_addresses = * port = 27500
firewall-cmd-zone = public-add-port = 27500/tcp-permanent
firewall-cmd-reload
host all all 192.168.93.0/24 md5
$pg_ctl restart -D instance_destination_directory
For details, refer to Fujitsu Enterprise Postgres Installation and Setup Guide for Server > Chapter 4 - Setup > 4.4 - Configuring remote connections > 4.4.2 - When an instance was created with the initdb command [Linux version] [Windows version].
Product: Fujitsu Enterprise Postgres Standard Edition, Fujitsu Enterprise Postgres Advanced Edition
Versions: from 9.4
Architecture: X86, S390x
Operating System: Linux
The pg_stat_statements library is pre-installed (along with other modules) in the contrib folder of the installation folder, so no additional libraries are required to be installed.
Follow the steps below to configure Fujitsu Enterprise Postgres to use pg_stat_statements:
shared_preload_libraries = 'pg_stat_statements'
pg_ctl restart -D instance_destination_directory
psql -d postgres -c "CREATE EXTENSION pg_stat_statements"
Product: Fujitsu Enterprise Postgres Standard Edition, Fujitsu Enterprise Postgres Advanced Edition
Versions: from 9.4
Architecture: X86, S390x
Operating System: Linux
This error message is displayed when the Postgres server has not been stopped properly, and fails to clean up the lock file postmaster.pid. This lock file is created when Postgres is started to prevent double booting; normally the file is removed when the database is shut down.
To fix this issue, simply delete the postmaster.pid file, and then start the database agian.
The postmaster.pid file is located in the data directory. Its location is determied by the -D option of the pg_ctl command, or by the PG_DATA environment variable if the command/option was not specified.
Product: Fujitsu Enterprise Postgres Standard Edition, Fujitsu Enterprise Postgres Advanced Edition, PostgreSQL
Versions: from 9.4
Architecture: X86, S390x
Operating System: Linux
This error occurs when the port specified in the port setting of postgresql.conf could not be used by the database, which happened because it is already in use either by a running instance of the database or by some other software.
In order to fix this issue, you need to either:
To check the software using the port, use the the netstat command and grep for the port number (you may need to install the net-tools package if it is not already installed):
netstat -ltnp | grep -w ':27500'
-or-
Make sure that the setting is not commented (comments in the configuration file begin with #).
Product: Fujitsu Enterprise Postgres Standard Edition, Fujitsu Enterprise Postgres Advanced Edition, PostgreSQL
Versions: from 9.4
Architecture: X86, S390x
Operating System: Linux
Often, this error message is displayed when the correct path settings cannot be acquired using the PATH and LD_LIBRARY_PATH environment variables.
This may happen because of one of the following:
If the path is set to /usr/bin as below, and the OSS PostgreSQL is installed in that directory, the paramters specific to Fujitsu Enterprise Postgres will not be processed:
PATH=/usr/bin
The environment variables PATH and LD_LIBRARY_PATH must not only list the Fujitsu Enterprise Postgres installation directory - they must do list it before the PostgreSQL installation directory:
(assuming the Fujitsu Enterprise Postgres installation directory is /opt/fsepv12server64)
export PATH=/opt/fsepv12server64/bin:$PATH export LD_LIBRARY_PATH=/opt/fsepv12server64/lib:$LD_LIBRARY_PATH
(assuming the Fujitsu Enterprise Postgres installation directory is C:\Program Files\Fujitsu\fsepv12server64)
SET PATH = C:\Program Files\Fujitsu\fsepv12server64\bin; C:\Program Files\Fujitsu\fsepv12server64\lib; %PATH%
Product: Fujitsu Enterprise Postgres Standard Edition, Fujitsu Enterprise Postgres Advanced Edition, PostgreSQL
Versions: from 9.4
Architecture: X86, S390x
Operating System: Linux, Windows
The likely cause of this scenario is that the database is recovering from a crash or non-standard shutdown (such as immediate shutdown mode). You can verify whether it is in crash recovery mode by checking if the log file contains the message database system was not properly shut down; automatic recovery in progress.
If a crash recovery is in progress, you will need to wait until it is complete, at which point the database will start up normally.
You can reduce the time taken for crash recovery by increasing the frequency of checkpoints (reduce the values of max_wal_size and checkpoint_timeout in postgresql.conf to achieve that). But keep in mind that the higher the frequency of checkpoints, the higher the I/O load, so set an appropriate value for operational considerations.
Product: Fujitsu Enterprise Postgres Standard Edition, Fujitsu Enterprise Postgres Advanced Edition
Versions: from 9.4
Architecture: X86, S390x
Operating System: Linux, Windows
Follow the steps below:
*: The items displayed depend on the products you have installed. This article shows an example of installing Fujitsu Enterprise Postgres 13 Advanced Edition.
Product: Fujitsu Enterprise Postgres Standard Edition, Fujitsu Enterprise Postgres Advanced Edition
Versions: from 9.5
Architecture: X86
Operating System: Windows
Step 1: Prerequisites
Step 2: Create an instance using initdb
C:\Program Files\Fujitsu\fsepv13server64>SET PATH=C:\Program Files\Fujitsu\fsepv13server64\bin;C:\Program Files\Fujitsu\fsepvl3server64\lib;%PATH%
C:\Program Files\FujitstAfsepv13server64>initdb -D C:\work\database\instl --waldir.C:\work\transaction\ins it --Ic-collate--C- --1c-ctype--C- --encodingUTF8
Success. You can now start the database server using:
Step 3: Start the database server
C:\Program Files\Fujitsu\fsepv13server64>pg_ct1 register -N "inst1" -U fepuser -P password -D C:\work\database\inst1
C:\Program Files\Fujltsu\fsepv13server64>pg_ctl start -D C:\work\database\instl waiting for server to start....2021-10-07 03:34:32.286 GAT (1572) WARNING: The license will expire in 90 days. 2021-10-07 14:34:32.318 AEDT (1572] LOG: starting PostgreSQL 13.3, compiled by Visual C++ build 1927, 64-bit 2021-10-07 14:34:32.324 AEDT [1572] LOG: listening on IPv6 address "::1", port 27500 2021-10-07 14:34:32.324 AEDT (1572] LOG: listening on IPv4 address "127.0.0.1", port 27500 2021-10-07 14:34:32.416 AEDT [12092] LOG: database system was shut down at 2021-10-07 14:33:22 AEDT (10100) 2021-10.07 14:34:32.769 AEDT [1572) LOG: database system is ready to accept connections (11202) done server started
Step 4: Connect to the database using psql.
C:\Program Files\Fujitst\fsepv13server64>psql -d postgres psql (13.3) WARNING: Console code page (850) differs from Windows code page (1252) 8-bit characters might not work correctly. See psql reference page 'Notes for Windows users' for details. Type 'help' for help. postgres=#
Product: Fujitsu Enterprise Postgres Standard Edition, Fujitsu Enterprise Postgres Advanced Edition
Versions: from 9.5
Architecture: X86
Operating System: Windows
Read our most recent articles regarding all aspects of PostgreSQL and FUJITSU Enterprise Postgres.