Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YM2TL-0005o8-LS for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Feb 2015 22:43:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YM2TL-0003X4-4M for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Feb 2015 22:42:59 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YM2TJ-0003Qb-5r for pgsql-bugs@postgresql.org; Thu, 12 Feb 2015 22:42:57 +0000 Received: from [2607:f2f8:a520::2] (helo=elysion.barrera.io) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YM2TD-0002MW-KS for pgsql-bugs@postgresql.org; Thu, 12 Feb 2015 22:42:53 +0000 Received: from elysion.barrera.io (localhost [127.0.0.1]); by elysion.barrera.io (OpenSMTPD) with ESMTP id c735decc; for ; Thu, 12 Feb 2015 22:42:40 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=barrera.io; h=date:from:to :subject:message-id:mime-version:content-type; s=elysion; bh=ywn 7uvsWkmbVFwcK5E8TKXy67HA=; b=Efue0np4+oIowwkT3kXf/5V22SfkJWU6sff W0Qd7NcF0YHy1wcHr5CRhHmca9pv26cf9QEt/2zM/GadbEm/NnYbAw7N4iwTsLJl ggXhHpmg2mVB5iNM/1mG6Mkc+neX1AFVgfTAHF6vTqDpVgk4EbzxzP9akQ/xYJnt fxj19W5fb5ctmhqojHqG51nDvEUNwUJB4UG00PuU5zAHPqxZclfR0FF1sJbB18ds PNZwWU1kDBqt6H+rfscQLhFqF/S33ilZtG7RaK2b89KdABjC0Fxyh7I2302X3PCs Rf9M2frU0/u3sNd40pK7EDRzgtr5F0cgEHNkEn3voo5Oguf8sOA== DomainKey-Signature: a=rsa-sha1; c=nofws; d=barrera.io; h=date:from:to :subject:message-id:mime-version:content-type; q=dns; s=elysion; b= VDCs1qz8pZyDNSLlibTE7W2ny18x82FtHTPP6AhFTU5Cj9Gy3qkkYl0tm5YtnQz9 VfnVGuzW1olWaP9KemcTiuyCEbWOgxAzRXmMLO3QxOO9ObAi8fm+od81Lj48hQ5R Fx2Yyr5KppH4od1f4bUMtpcz4eOcKUYctXci74vtFN9Ge1pplQBe/b3tE1iNgJ9u ZAHjkQrjx1za/31JSZnJR54YLj0RMQGknb4qSOzjcE8t5kJL8ZfIhzOeItNUW2TJ v/vBpSNiwsqMljzv6t0Xv7Yf6MfzERlKlXFaFQ1UP2B5JwjhcNW766kpZbysigb8 A8eMviC97EkKqC0NSX97yA== Received: from athena.barrera.io (2800:40:7aa:1:bae8:56ff:fe18:7bf6 [IPv6:2800:40:7aa:1:bae8:56ff:fe18:7bf6]); by smtp.barrera.io (OpenSMTPD) with ESMTPSA id df02b4b0; TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; for ; Thu, 12 Feb 2015 22:42:40 +0000 (GMT) Received: from athena.barrera.io (athena.barrera.io [IPv6:::1]); by athena.barrera.io (OpenSMTPD) with ESMTP id 98b53f5d; for ; Thu, 12 Feb 2015 22:42:57 +0000 (UTC) Date: Thu, 12 Feb 2015 19:42:57 -0300 From: Hugo Osvaldo Barrera To: pgsql-bugs@postgresql.org Subject: postgresql-server exiting abnormally after an OS upgrade Message-ID: <20150212224257.GA16161@athena.barrera.io> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wac7ysb48OaltWcw" Content-Disposition: inline User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f2f8:a520::2 (deferred) X-Pg-Spam-Score: -1.2 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --wac7ysb48OaltWcw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I've been running postgresql-server for some time on an OpenBSD box, and the latest OS upgrade (which also upgraded from 9.3 to 9.4) seems to have broke= n it in some way. I tried downgrading back to 9.3.6, but the issue persists, so = it looks like something else is broken, and not postgresql per se. Of course, I did the proper upgrade procedure, pg_dumpall, move everything = out of the way, and reinit the db. I also tried *not* reimporting the db on my last wipeout, and keeping the completely empty database. It crashed too upon connection attempts (which f= ail to authenticate because I haven't even created the users), so I guess the d= ata is no problem. The database is pretty small, and very few concurrent users = (the *whole* backup is ~400kB). Here's the error which repeats ad infinitum: LOG: database system was shut down at 2015-02-12 14:41:29 GMT LOG: database system is ready to accept connections LOG: autovacuum launcher started LOG: server process (PID 21205) was terminated by signal 6: Abort trap LOG: terminating any other active server processes WARNING: terminating connection because of crash of another server pro= cess DETAIL: The postmaster has commanded this server process to roll back = the current transaction and exit, because another server process exited abn= ormally and possibly corrupted shared memory. HINT: In a moment you should be able to reconnect to the database and = repeat your command. LOG: all server processes terminated; reinitializing LOG: database system was interrupted; last known up at 2015-02-12 14:4= 2:04 GMT LOG: database system was not properly shut down; automatic recovery in= progress LOG: record with zero length at 0/1690A90 LOG: redo is not required LOG: database system is ready to accept connections LOG: autovacuum launcher started I've searchd all over, and found little or nothing of help. Nothing seemed = to change the situation. I believe that these settings *are* relevant, so: kern.seminfo.semmni=3D256 kern.seminfo.semmns=3D512 kern.seminfo.semmnu=3D256 kern.seminfo.semmap=3D256 kern.shminfo.shmmax=3D134217728 kern.shminfo.shmseg=3D256 I also tried setting shared_buffers =3D 16MB, which, while small, discards several potential configuration issues. Note that before upgrading to the latest OS version, pg worked fine. Also relevant, other users of the same release have confirmed not having this is= sue and pg working fine for them. Any pointer? Thanks, --=20 Hugo Osvaldo Barrera A: Because we read from top to bottom, left to right. Q: Why should I start my reply below the quoted text? --wac7ysb48OaltWcw Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJU3SxxAAoJEG+f/xIrmMDNjG4P+QHMQunIl51HkWtuYYEyV5KJ IZspOs0C3RU2MF3LIPzD+sOkap+e4gXCL2ypH/G1JZfkhAsh/y9t+t6F7tiWqXJv rNtaNR5jiJj/55YLsoHTuFEjvFIXUtoQ17x+XHYbPdiGrJdd5eC36R3dY66WTwK9 KYHUtdNQi8zW9JpjmVCmZbpRqcH4h+47JB1QfENZyqURhf8cc8SCA1KWdO6HH55K kccLyrxZR1LFy6GYs4syou6bEIBAKqv6YST6nTJ78wS3J0Lz47XgjOGHQgRnScXz 1GfrcNXVQCPNGJbnbqjuyna7nXm/4twq8dUA0gvY8/r2QmSrrRHDDT4oeDcmXNCc FZKMofhQc7O6hpUp7H9C2I23FONlwPRzWXXH3wbqJfh6hCWdAdQUgcxtH32ULJJ9 Lg5k5F0WNShCJI6kgZW07gGejBBpATAlbLXYh5m8WqXOsn7NJonP0vJ9LWd8HY31 H5Qf8iiApOl7uTq21lf91lmAwQOqQC/rRwjIy3H3tXKkslul0z1l7WT2UJJe57uI SgCKaKt/QQX8XCN/FkWdFdXGN2v69eD2LIlliIVGQflSkkQtPAVEp1npRLSuZOVh jUscJMFQWfI/a4S/tMvu9Ru2D5WcEhz8y5Qnyzr9OSVXEflOIHk+lWmD77E/1k6B fIbBjvLbwAvDgE/6MXqF =ILgL -----END PGP SIGNATURE----- --wac7ysb48OaltWcw--