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 1oILlQ-00023Z-VL for pgsql-general@arkaria.postgresql.org; Mon, 01 Aug 2022 03:06:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oILlO-00027M-DF for pgsql-general@arkaria.postgresql.org; Mon, 01 Aug 2022 03:06:38 +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 1oILlM-00024E-Pq for pgsql-general@lists.postgresql.org; Mon, 01 Aug 2022 03:06:38 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oILlI-0006jY-EV for pgsql-general@lists.postgresql.org; Mon, 01 Aug 2022 03:06:36 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 403995C0103; Sun, 31 Jul 2022 23:06:29 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 31 Jul 2022 23:06:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1659323189; x= 1659409589; bh=xw5Da/FpOdnzWaHtULyTin9QIljvM8kCdrXTDP877jI=; b=n w+OxjJGFo9wdlFNE7/SspVXKjzsHvNAGsFnWjp0E1St+QGaD64CquMaqGez0milv W0T3dqVW/03PQ/yD9ZY2aSdbdYVBKY3AuTJKg5s7ejr1zQybYpRKYMGPxEIpq75e rPVp2rjil6p9EeDgm6cr0YzGbea+2fBVBRBKeHV1CVGatwb6HEOzq3LT0P0oXt/7 QHVr7dBe9mkTLYCVjbG2UDvqPhdH7rqqQ4gsVZsML5BdyY2dCXwWWsv56/gMiwOV 4TAD6+j4vBpmMAGeQ01DOZfSfF/o1WIpfTwoONtHFFIa6ZwRFA04ac9P8nF6KbDw BW19EowoPwKN7Kojjqr1A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1659323189; x= 1659409589; bh=xw5Da/FpOdnzWaHtULyTin9QIljvM8kCdrXTDP877jI=; b=X mgGHLHY0JYx7F26/6HkwbZoZ48JOuc3UmSyoWyk6gE2MqUoJJn0SYHb0JsYanQRK nKAnWovK24qJvwIcCANTu3FND0XuO03MWDBi2gpCTJoqMN6ieeSWD1TlqT8BCkpL Opr4Zz+eXs6AGoMu6wL1+U2G/1nL3t7CzJwC020v7h75r2nqhQps6KCSHiTw9xpd +BkGw43R0/c8DrYlO1ngaLFctwX6ksF/Ly7EFL850XhYSickJbvfeaE4WxCHDUfz xSgSdUyGNjD29UArGMQEWO8oGOX/0EER8SXh1s2P163Cxvd8f+OanPfQLGnfw2uW fhgbi5mtwVLL7epdZ04SA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddvvddgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepjeeikefggfevffetueefteetueeitefffeduveel jeevvddugfffvdejlefhjeefnecuffhomhgrihhnpehgihhthhhusgdrtghomhdprghpph hlvgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 31 Jul 2022 23:06:28 -0400 (EDT) Message-ID: <00efda45-309d-57b9-3eed-9ff6ff2080f7@aklaver.com> Date: Sun, 31 Jul 2022 20:06:27 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: Connecting to postgres on OSX from Swift using PostgresClientKit Content-Language: en-US To: howardnews@selestial.com Cc: Rob Sargent , pgsql-general@lists.postgresql.org References: <8b3c9c27-3a13-1a45-b3de-a995a4cbbf19@gmail.com> <55172d40109beb0daee6ad81a97352fe@selestial.com> <74020545-e16c-8880-bacd-f1c98557d937@aklaver.com> <8ba4268bb21ba789acbef323b0928f9c@selestial.com> From: Adrian Klaver In-Reply-To: <8ba4268bb21ba789acbef323b0928f9c@selestial.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/31/22 17:27, howardnews@selestial.com wrote: > On 2022-08-01 01:04, Adrian Klaver wrote: >> On 7/31/22 16:53, howardnews@selestial.com wrote: >>> On 2022-07-31 23:42, Rob Sargent wrote: > 2022-08-01T00:20:18.530Z Connection-1 finer] Created socket > [2022-08-01T00:20:18.532Z Connection-1 fine] Opening connection to port > 5432 on host localhost > 2022-08-01 01:20:18.534308+0100 TestPostgres[10654:120173] > dnssd_clientstub ConnectToServer: connect() failed A search on above error message found: https://github.com/firebase/firebase-ios-sdk/issues/3033 https://developer.apple.com/forums/thread/67792 https://github.com/emqx/CocoaMQTT/issues/202 all of which point to what Tom Lane mentioned, sandboxing. > path:/var/run/mDNSResponder Socket:13 Err:-1 Errno:1 Operation not > permitted > 2022-08-01 01:20:18.535617+0100 TestPostgres[10654:120173] > [si_destination_compare] socket(PF_SYSTEM, SOCK_DGRAM, SYSPROTO_CONTROL) > failed: Operation not permitted > 2022-08-01 01:20:18.535694+0100 TestPostgres[10654:120173] > [si_destination_compare] socket(PF_SYSTEM, SOCK_DGRAM, SYSPROTO_CONTROL) > failed: Operation not permitted > [2022-08-01T00:20:18.537Z Connection-1 severe] Unable to connect socket: > Error code: -9989(0x-2705), Operation not permitted > [2022-08-01T00:20:18.537Z Connection-1 finer] Closing socket -- Adrian Klaver adrian.klaver@aklaver.com