Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyaef-009NZE-3w for pgsql-novice@arkaria.postgresql.org; Thu, 02 Nov 2023 16:34:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qyaed-00EB7Z-RV for pgsql-novice@arkaria.postgresql.org; Thu, 02 Nov 2023 16:34:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyaed-00EB6m-Et for pgsql-novice@lists.postgresql.org; Thu, 02 Nov 2023 16:34:47 +0000 Received: from mailomta31-re.btinternet.com ([213.120.69.124] helo=re-prd-fep-042.btinternet.com) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyaeb-004Lwl-1w for pgsql-novice@lists.postgresql.org; Thu, 02 Nov 2023 16:34:46 +0000 Received: from re-prd-rgout-004.btmx-prd.synchronoss.net ([10.2.54.7]) by re-prd-fep-042.btinternet.com with ESMTP id <20231102163443.VQHV4314.re-prd-fep-042.btinternet.com@re-prd-rgout-004.btmx-prd.synchronoss.net> for ; Thu, 2 Nov 2023 16:34:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btinternet.com; s=btmx201904; t=1698942883; bh=hlZ7tRyDYVfjiclCRqFIGmHpwKHs7JLrQI9glUYjN2k=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version; b=a/Sbfgzl8XlADO3N8EnNJQvSdNVl5bbQUV5U2oGy6boJbOGaLtxV66U3Nt3n7A8ztdvuAQFVIVeG7KfekVEmQjHp949lk/zwYVxc/2AHkn5JN7bDuoog6Kg5UM+DBiBs0AYFwPQxD07X1thdLcmAJY92pSXhDTaf3kQLi6J4B5s77m65y85awWepWyqybINeXOaFBICdb3Zg5kfLV32o1CmAil998glhtvVP97o99100170lJz2AhJZhQPtmT0NpMPNPg6f+fzDMwoSr4uVaFw4chtgaYlHY6hN1SBn7Fjdrfe+p9W1fsAB+UUPB9R3Fhda/yQsV7jaClN8igAwbug== Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=bingmybong@btinternet.com; bimi=skipped X-SNCR-Rigid: 64D1736708975665 X-Originating-IP: [31.48.144.162] X-OWM-Source-IP: 31.48.144.162 (GB) X-OWM-Env-Sender: bingmybong@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvkedruddtiedgledtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecunecujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefkrghnshgvvghkshcuoegsihhnghhmhigsohhnghessghtihhnthgvrhhnvghtrdgtohhmqeenucggtffrrghtthgvrhhnpeeijeejieevjeejteeghfejgedtgeeitdeghfeijeejueetfeetjeffhefgjeefteenucfkphepfedurdegkedrudeggedrudeivdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopehlihgrnhdqlhhirdhlohgtrghlnhgvthdpihhnvghtpeefuddrgeekrddugeegrdduiedvpdhmrghilhhfrhhomhepsghinhhgmhihsghonhhgsegsthhinhhtvghrnhgvthdrtghomhdpnhgspghrtghpthhtohepuddprhgtphhtthhopehpghhsqhhlqdhnohhvihgtvgeslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrvghvkffrpehhohhsthefuddqgeekqddugeegqdduiedvrdhrrghnghgvfeduqdegkedrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghushgvrhepsghinhhgmhihsghonhhgsegsthhinhhtvghrnhgvthdrtghomhdpghgvohfkrfepifeupdfovfetjfhoshhtpehrvgdqphhrugdqrhhgohhuthdqtddtge X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean X-SNCR-hdrdom: btinternet.com Received: from lian-li.localnet (31.48.144.162) by re-prd-rgout-004.btmx-prd.synchronoss.net (5.8.814.02) (authenticated as bingmybong@btinternet.com) id 64D1736708975665 for pgsql-novice@lists.postgresql.org; Thu, 2 Nov 2023 16:34:43 +0000 From: Ianseeks To: pgsql-novice@lists.postgresql.org Subject: Re: fail to run postgresql16 after update from postgresql13 Date: Thu, 02 Nov 2023 16:34:44 +0000 Message-ID: <5722659.DvuYhMxLoT@lian-li> In-Reply-To: References: <4842483.GXAFRqVoOG@lian-li> <5997577.lOV4Wx5bFT@lian-li> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thursday, 2 November 2023 14:27:34 GMT Laurenz Albe wrote: > On Thu, 2023-11-02 at 11:13 +0000, Ianseeks wrote: > > On Thursday, 2 November 2023 10:16:33 GMT Laurenz Albe wrote: > > > > I can't get Akonadi to load as it fails to start postgresql16, its > > > > failing > > > > with a message saying it needs postgesql9.6 as the DB was originally > > > > created using 9.6. I can't see why it insists on ver 9.6 being there > > > > as > > > > i've updated to ver 16 and that process means i create an empty DB. I > > > > can't even install Ver 9.6 to see if that cures the problem as its no > > > > longer in the opensuse repos. > > > > > > > > This is from "systemctl status postgresql.service" > > > > > > > > Oct 31 16:24:13 Lian-Li systemd[1]: Starting PostgreSQL database > > > > server... > > > > Oct 31 16:24:13 Lian-Li postgresql-script[5916]: Your database files > > > > were created by PostgreSQL version 9.6.> > > > > These error messages are not from PostgreSQL, but they seem to be from > > > the script "postgresql-script". That script is not part of PostgreSQL. > > > > > > Look into that script and try to figure out how it arrives at that > > > conclusion. If you cannot figure it out yourself, please share the > > > relevant > > > parts. > > > > Is it acceptable to attach text files to email in this mailing list? I > > know some don't like it. > > I've found the script file (/usr/share/postgresql/postgresql-script) and > > that message is in there but the coding in it is beyond my expertise as i > > can only do basic stuff. > > Here is a cut and paste of part of it. > > > > ----- /usr/share/postgresql/postgresql-script ---- > > > > PG_SYSCONFIG=/etc/sysconfig/postgresql > > test -f $PG_SYSCONFIG && . $PG_SYSCONFIG > > Look into "/etc/sysconfig/postgresql" and see if it sets POSTGRES_DATADIR. > > > eval DATADIR=${POSTGRES_DATADIR:-~postgres/data} Seems it points here /var/lib/pgsql/data > If not, DATADIR is set to the subdirectory "data" of the home directory > of user "postgres". > > Is DATADIR the data directory you upgraded? No, its a database in my local login > > OPTIONS=${POSTGRES_OPTIONS} > > INITDB_OPTS=${POSTGRES_INITDB_OPTS} > > PIDFILE=$DATADIR/postmaster.pid > > > > # > > if test -r $DATADIR/PG_VERSION ; then > > > > DATA_VERSION=$(cat $DATADIR/PG_VERSION) > > POSTGRES=/usr/lib/postgresql$(echo -n $DATA_VERSION | tr -d > > .)/bin/postgres > > > > fi > > DATA_VERSION is set to the first line in the PG_VERSION file in DATADIR. > > What is that? According to the error message, it should be 9.6. Yes, it is 9.6 so thats where its getting it from. > POSTGRES is set to /usr/lib/postgresql removed>/bin/postgres > > if test -x /usr/bin/postgres; then > > > > ACTIVE=$(readlink -q -f /usr/bin/postgres) > > test -z "$POSTGRES" && POSTGRES="$ACTIVE" > > > > fi > > if test -n "$DATA_VERSION"; then > > > > if test -z "$ACTIVE" -o "$ACTIVE" != "$POSTGRES"; then > > > > echo " Your database files were created by PostgreSQL version > > $DATA_VERSION." > Looks like /usr/bin/postgres, if you resolve the symbolic link, is different > from POSTGRES constructed above. I'll have to pass this back to opensuse to solve. > Yours, > Laurenz Albe Thanks a lot for your help, its been very useful. All the best. opensuse:tumbleweed:20231031 Qt: 5.15.11 KDE Frameworks: 5.111.0 - KDE Plasma: 5.27.9 - kwin 5.27.9 kmail2 5.24.2 (23.08.2) - akonadiserver 5.24.2 (23.08.2) - Kernel: 6.5.9-1- default - kernel-firmware-radeon 20231019