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 1jOern-0007Bw-VH for pgsql-general@arkaria.postgresql.org; Wed, 15 Apr 2020 10:01:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jOerl-0004Kn-Ko for pgsql-general@arkaria.postgresql.org; Wed, 15 Apr 2020 10:01:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOerl-0004Ke-Cu for pgsql-general@lists.postgresql.org; Wed, 15 Apr 2020 10:01:57 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOerc-0000by-PJ for pgsql-general@lists.postgresql.org; Wed, 15 Apr 2020 10:01:56 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id E05CC2CE6; Wed, 15 Apr 2020 12:01:46 +0200 (CEST) Date: Wed, 15 Apr 2020 12:01:46 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: pg_restore: could not close data file: Success Message-ID: <20200415100146.GA22324@hjp.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm trying to restore a backup on a different machine and it terminates with the not really helpful messages: pg_restore: [directory archiver] could not close data file: Success pg_restore: [parallel archiver] a worker process died unexpectedly The backup was made with pg_dump --compress=3D5 -v -Fd -f "$dirname" -j 4 $db (so it's in directory format) The restore command was pg_restore -c --if-exists -d $db -j 4 -v $dirname (I would use -C, but due to suboptimal partitioning I have to use a different tablspace, so I need to create $db before the restore) Both machines are running Ubuntu 18.04 and PostgreSQL is version 11.7 =66rom the pgdg repo. The error happens while restoring the data for the tables. My guess is that maybe one of the data files is damaged ("Success" probably means that errno is 0, so it wasn't a system call that failed, but something in the application). Does that sound plausible or should I look somewhere else? A web search returned nothing relevant. hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --ibTvN161/egqYuK8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl6W24UACgkQ8g5IURL+ KF0C+BAAh6cIpJNqb9M+XmRagZo2L9PORoP+aStPI4OWZ49glul2RqiTMAokPR+w 78liGIgwfdPWi/OXoDTyqg3mTi5amojrRYIcnpvdYlyFJdxz8N+Ue59keOu72/w6 k+IHvyhsHhmy3sq1G8Ev6G1x1FmNPmFAlZV7ts0Pg9xxfOGJYb5AiFZowVdgC+Hz 1jMGGt1N8q8f1RbID8H2fsFmLl02nzYueg7NOKAtLMKYFBT0auHu7kN6xgOg3rqe BxrgKCAOnFC2OkkCkljwbMgHgKcTDg50d4H6pY6QvMNfUPbeRaUqrYTZ3CchiyjB dq9tpmoHeT5CF/8wkex3lGQaaH7FdxXS881jhOwPl7xklGirvSFV1lMizhDkV3AS olYnsnsfD9r8Ky8BIN1+AyCzN4CLK56uZyk01RkiQuzsq3MSMmuDC1SphC0dly9z QylOM2VO5WN81335ojFEQCCUjl2eyYSWWIMmdrVXcIDHVlYULIU3MvtBa7k7ggjQ hM8iuSe3Txg/Z0esUtv859AjMIb0UucQ4S62agbZ1rF+FdJybxM7O7TnJka77CMr QKDXImsAYy0e/tMWExSSRNIIEkhkweJGMbiAa6bgu0cJjm8nuUdZ84Wk6+4HFttV W4qRDSOqtFdRhrCGimIoM5EyVnUEWkPRbcDqTDHkos4HRGxM79w= =kMze -----END PGP SIGNATURE----- --ibTvN161/egqYuK8--