:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: Check :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: postgresql-server-9.3.5-5.fc21.x86_64 :: [ PASS ] :: Checking for the presence of postgresql-server rpm :: [ 11:14:56 ] :: Package versions: :: [ 11:14:56 ] :: postgresql-server-9.3.5-5.fc21.x86_64 :: [ PASS ] :: service postgresql should be stopped (Assert: 3 should equal 3) :: [ PASS ] :: File /var/lib/pgsql/data/PG_VERSION should not exist :: [ PASS ] :: run under root user (Assert: expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: Test :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ BEGIN ] :: Running 'postgresql-setup --initdb' Usage: /usr/bin/postgresql-setup {initdb|upgrade} [SERVICE_NAME] Script is aimed to help sysadmin with basic database cluster administration. The SERVICE_NAME is used for selection of proper unit configuration file; For more info and howto/when use this script please look at the docu file /usr/share/doc/postgresql/README.rpm-dist. The 'postgresql' string is used when no SERVICE_NAME is explicitly passed. Available operation mode: initdb Create a new PostgreSQL database cluster. This is usually the first action you perform after PostgreSQL server installation. upgrade Upgrade PostgreSQL database cluster to be usable with new server. Use this if you upgraded your PostgreSQL server to newer major version (currently from 9.2 to 9.3). Environment: PGSETUP_INITDB_OPTIONS Options carried by this variable are passed to subsequent call of `initdb` binary (see man initdb(1)). This variable is used also during 'upgrade' mode because the new cluster is actually re-initialized from the old one. PGSETUP_PGUPGRADE_OPTIONS Options in this variable are passed next to the subsequent call of `pg_upgrade`. For more info about possible options please look at man pg_upgrade(1). PGSETUP_DEBUG Set to '1' if you want to see debugging output. :: [ FAIL ] :: Command 'postgresql-setup --initdb' (Expected 0, got 2) Redirecting to /bin/systemctl status postgresql.service ● postgresql.service - PostgreSQL database server Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled) Active: inactive (dead) Oct 21 11:14:40 03f9ce285124ef2804e859dba7df2bcf---dbtests pg_ctl[1702]: HINT: Future log output will appear in directory "pg_log". Oct 21 11:14:41 03f9ce285124ef2804e859dba7df2bcf---dbtests systemd[1]: Started PostgreSQL database server. Oct 21 11:14:41 03f9ce285124ef2804e859dba7df2bcf---dbtests systemd[1]: Stopping PostgreSQL database server... Oct 21 11:14:42 03f9ce285124ef2804e859dba7df2bcf---dbtests systemd[1]: Stopped PostgreSQL database server. Oct 21 11:14:52 03f9ce285124ef2804e859dba7df2bcf---dbtests systemd[1]: Starting PostgreSQL database server... Oct 21 11:14:52 03f9ce285124ef2804e859dba7df2bcf---dbtests pg_ctl[1811]: LOG: redirecting log output to logging collector process Oct 21 11:14:52 03f9ce285124ef2804e859dba7df2bcf---dbtests pg_ctl[1811]: HINT: Future log output will appear in directory "pg_log". Oct 21 11:14:53 03f9ce285124ef2804e859dba7df2bcf---dbtests systemd[1]: Started PostgreSQL database server. Oct 21 11:14:53 03f9ce285124ef2804e859dba7df2bcf---dbtests systemd[1]: Stopping PostgreSQL database server... Oct 21 11:14:54 03f9ce285124ef2804e859dba7df2bcf---dbtests systemd[1]: Stopped PostgreSQL database server. Redirecting to /bin/systemctl start postgresql.service Job for postgresql.service failed. See "systemctl status postgresql.service" and "journalctl -xe" for details. :: [ 11:14:57 ] :: [ ERROR ] :: rlServiceStart: Starting service postgresql failed :: [ 11:14:57 ] :: [ ERROR ] :: Status of the failed service: :: [ 11:14:58 ] :: Redirecting to /bin/systemctl status postgresql.service :: [ 11:14:58 ] :: ● postgresql.service - PostgreSQL database server :: [ 11:14:58 ] :: Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled) :: [ 11:14:58 ] :: Active: failed (Result: exit-code) since Tue 2014-10-21 11:14:57 UTC; 196ms ago :: [ 11:14:58 ] :: Process: 2229 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGDATA} (code=exited, status=1/FAILURE) :: [ 11:14:58 ] :: :: [ 11:14:58 ] :: Oct 21 11:14:57 03f9ce285124ef2804e859dba7df2bcf---dbtests postgresql-check-db-dir[2229]: "/var/lib/pgsql/data" is missing or empty. :: [ 11:14:58 ] :: Oct 21 11:14:57 03f9ce285124ef2804e859dba7df2bcf---dbtests postgresql-check-db-dir[2229]: Use "postgresql-setup initdb" to initialize the database cluster. :: [ 11:14:58 ] :: Oct 21 11:14:57 03f9ce285124ef2804e859dba7df2bcf---dbtests postgresql-check-db-dir[2229]: See /usr/share/doc/postgresql/README.rpm-dist for more information. :: [ 11:14:58 ] :: Oct 21 11:14:57 03f9ce285124ef2804e859dba7df2bcf---dbtests systemd[1]: postgresql.service: control process exited, code=exited status=1 :: [ 11:14:58 ] :: Oct 21 11:14:57 03f9ce285124ef2804e859dba7df2bcf---dbtests systemd[1]: Failed to start PostgreSQL database server. :: [ 11:14:59 ] :: Oct 21 11:14:57 03f9ce285124ef2804e859dba7df2bcf---dbtests systemd[1]: Unit postgresql.service entered failed state. :: [ 11:14:59 ] :: Oct 21 11:14:57 03f9ce285124ef2804e859dba7df2bcf---dbtests systemd[1]: postgresql.service failed. :: [ FAIL ] :: service postgresql should be started (Assert: 3 should equal 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: Cleanup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Redirecting to /bin/systemctl status postgresql.service ● postgresql.service - PostgreSQL database server Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled) Active: failed (Result: exit-code) since Tue 2014-10-21 11:14:57 UTC; 1s ago Process: 2229 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGDATA} (code=exited, status=1/FAILURE) Oct 21 11:14:57 03f9ce285124ef2804e859dba7df2bcf---dbtests postgresql-check-db-dir[2229]: "/var/lib/pgsql/data" is missing or empty. Oct 21 11:14:57 03f9ce285124ef2804e859dba7df2bcf---dbtests postgresql-check-db-dir[2229]: Use "postgresql-setup initdb" to initialize the database cluster. Oct 21 11:14:57 03f9ce285124ef2804e859dba7df2bcf---dbtests postgresql-check-db-dir[2229]: See /usr/share/doc/postgresql/README.rpm-dist for more information. Oct 21 11:14:57 03f9ce285124ef2804e859dba7df2bcf---dbtests systemd[1]: postgresql.service: control process exited, code=exited status=1 Oct 21 11:14:57 03f9ce285124ef2804e859dba7df2bcf---dbtests systemd[1]: Failed to start PostgreSQL database server. Oct 21 11:14:57 03f9ce285124ef2804e859dba7df2bcf---dbtests systemd[1]: Unit postgresql.service entered failed state. Oct 21 11:14:57 03f9ce285124ef2804e859dba7df2bcf---dbtests systemd[1]: postgresql.service failed. :: [ PASS ] :: service postgresql should be stopped (Assert: 3 should equal 3) :: [ BEGIN ] :: Running 'rm -rf /var/lib/pgsql/data' :: [ PASS ] :: Command 'rm -rf /var/lib/pgsql/data' (Expected 0, got 0) :: [ 11:15:00 ] :: JOURNAL XML: /var/tmp/beakerlib-2G5iq6F/journal.xml :: [ 11:15:00 ] :: JOURNAL TXT: /var/tmp/beakerlib-2G5iq6F/journal.txt