Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOf3y-0007ey-Ux for pgsql-general@arkaria.postgresql.org; Wed, 15 Apr 2020 10:14:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jOf3x-0005Cd-Pk for pgsql-general@arkaria.postgresql.org; Wed, 15 Apr 2020 10:14:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOf3x-0005CV-IM for pgsql-general@lists.postgresql.org; Wed, 15 Apr 2020 10:14:33 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOf3r-0001r1-Mr for pgsql-general@lists.postgresql.org; Wed, 15 Apr 2020 10:14:32 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 216342CE6; Wed, 15 Apr 2020 12:14:25 +0200 (CEST) Date: Wed, 15 Apr 2020 12:14:25 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: pg_restore: could not close data file: Success Message-ID: <20200415101425.GA25489@hjp.at> References: <20200415100146.GA22324@hjp.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline In-Reply-To: <20200415100146.GA22324@hjp.at> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020-04-15 12:01:46 +0200, Peter J. Holzer wrote: > I'm trying to restore a backup on a different machine and it terminates > with the not really helpful messages: >=20 > pg_restore: [directory archiver] could not close data file: Success > pg_restore: [parallel archiver] a worker process died unexpectedly [...] > My guess is that maybe one of the data files is damaged As is often the case the matter became obvious a few minutes after writing the mail.=20 There were indeed two file with length 0 in the dump. That happened because the backup failed because it couldn't obtain a lock on a table. I nicer error message (something like "cannot decompress '13503.dat.gz': Empty file") would have helped. hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl6W3nwACgkQ8g5IURL+ KF0ClA//RzElSZigOujshbsw/mR9HDWrRhKj/ubsYKtEXh7rQyGtWqO15ehByW9D m4pPfcYPMhLijOjtvqVPEr5/Q6zW8DBL/0sb/Dnj3IFS1kInR3zi/7dgj0k4wFmV /BcR7Y3TkjA339yjQH8v8wn4L4Zz8Jq8Lugyl5c6fNgcSfgKtS3ziXEJpnoV/EC9 cKa6wcA9JI59QhFAHnma/Y5VHI7BZKz+HD1LTI4NwrIfjpmu21dtyzX3H6QJrfOR M1DSVdckTk9I9XZo9z8A1auFRUvwu2mHpVF0Ooi7pI6QJxGugjUnoWI4jDVPVvuM Fh41mhI4bs/5qVieduO+sGkpsTa9y96k0T61D4MymX8g7jzp3F6+9kJIa65+3aQY sUPC0ntqX3jQEFmuU1RW75sru2s21m+uedugnxBsl5iRuIv2BkbGu2td5IN97agr 6+WGIQMQIR+F3JXjRPaLKIhskzkyop4DlNtbM+J9LGySVsnGyjwxP7swVKlXmTsi Pl+5hPuRo00GQ18E/2gGqMJWnr5YYvSeBeclOddMDKmzXg53KOQHENUPL4CLWKDD TMZHl82INjiBMV2oX84S0OXfptTYLbBmPMIxV8BPr6+cS+ppRHHo+ohNTDqNpbBT MGdfvfSHu+vHmBh+vdVr0lUXoOJ6Vfvl6CxVAmUxaPcv5LAd9es= =vSbc -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV--