You are not logged in.

#1 2013-11-13 20:19:40

ttgump
Member
Registered: 2013-02-04
Posts: 13

Can't start postgresql on arch linux

Hi, when I try to start postgresql on arch, it displays the error message:

sudo systemctl start postgresql
sudo systemctl status postgresql
  Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled)
   Active: failed (Result: exit-code) since Wed 2013-11-13 15:05:34 EST; 9min ago
  Process: 1054 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGROOT}/data (code=exited, status=1/FAILURE)

Nov 13 15:05:34 Arch-Linux-Thinkpad-T400 postgres[1054]: An old version of the database format was found.
Nov 13 15:05:34 Arch-Linux-Thinkpad-T400 systemd[1]: postgresql.service: control process exited, code=exited status=1
Nov 13 15:05:34 Arch-Linux-Thinkpad-T400 systemd[1]: Failed to start PostgreSQL database server.
Nov 13 15:05:34 Arch-Linux-Thinkpad-T400 systemd[1]: Unit postgresql.service entered failed state.

Offline

#2 2013-11-14 21:35:50

teekay
Member
Registered: 2011-10-26
Posts: 271

Re: Can't start postgresql on arch linux

Welcome to Archlinux!

First thing to note is: always check what pacman is going to update before blindly hitting the return key. There are packages that will require post-upgrade maintenance work, and postgresql is one of them.

Nov 13 15:05:34 Arch-Linux-Thinkpad-T400 postgres[1054]: An old version of the database format was found.

--> https://wiki.archlinux.org/index.php/Po … PostgreSQL

Offline

#3 2013-11-30 21:22:40

sorrat
Member
Registered: 2011-06-18
Posts: 2

Re: Can't start postgresql on arch linux

Thanks for tip, teekay.

Offline

Board footer

Powered by FluxBB