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 1t012B-0096od-VF for pgsql-general@arkaria.postgresql.org; Sun, 13 Oct 2024 16:01:32 +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 1t012A-005GyB-4C for pgsql-general@arkaria.postgresql.org; Sun, 13 Oct 2024 16:01:30 +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 1t0128-005Gxu-AE for pgsql-general@lists.postgresql.org; Sun, 13 Oct 2024 16:01:30 +0000 Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t0123-000rJ6-RK for pgsql-general@lists.postgresql.org; Sun, 13 Oct 2024 16:01:27 +0000 Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.stl.internal (Postfix) with ESMTP id 20975114008A; Sun, 13 Oct 2024 12:01:22 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Sun, 13 Oct 2024 12:01:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1728835281; x=1728921681; bh=GF0BtPLGEzxPXko0vXK8/Ylh7HTnBImv1u5QSiNepOw=; b= EbBNi8ogy/slx1Y00MQg25ZUspIqZIAycI0/aFPDcrjt4OhMM8jAYjdaMIyXZzQa hxlwXfrCYpI+l0OT6kPN780cCE9ez3tUyW735ARasvOMaYb/cOZ6ectnUtK8VPkv O9CgQQjh6bgys5/1L70pSQNzSJYnR8KO4ClF/oQ1QOW8uAUZCaSOsEiDO3b+HGf3 qc6DCb7Nuly07lJYrLVdrrQ8NLseoC+P3sC5xb6k12SAsKVXdLNvsD0ayVG9LeJy ddill3/n7fkAea8D5fJNGIrj3QU+ayvWladgiA4eU5hHRhi19OkbWdQhAFeoDh3t 2K2WaVHZWf+7Q0xP429IGA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1728835281; x= 1728921681; bh=GF0BtPLGEzxPXko0vXK8/Ylh7HTnBImv1u5QSiNepOw=; b=M MyzgyFQo11PGNwSk3a9JkZeBaA6h7c8sVDRaHmByqZC1BjB/7mDBVCOg72Yrvw3x 8EiJyak9BUD0edTanLzRoGfG0jNd5Ky5ya+kBSxL2ML+3xaZvavJaLCVsM7P5UG6 WabY+1ZUNZc4SbP0dbb+tyYtmuMzpPU5X1aH2382pFT+yQLj8bpSpX/GQKQTqBUD 8emju3QYp5M6ovN8PGugfDA2tD7xkmOgqLPbIXJpV4hK5eB8XcAKb1PmkrvrCY8G AB2IhiC98acdPVdjvD9z8ujXXl0q/L2eUbPOjYIiVjPQ3VtXQtdkd4n3FMtDxzIR oDk6Ojy0RnbWR4NZ7Ng5g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdegfedgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeen ucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeeivdfhieehheegueeileej ieettdejhedugeefleekvdelkeehtdfgiefffeekudenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprh gtphhtthhopehptgelledvieesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhl qdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 13 Oct 2024 12:01:21 -0400 (EDT) Message-ID: <3217758f-a9e0-4ed3-b78b-0ab2622279e0@aklaver.com> Date: Sun, 13 Oct 2024 09:01:20 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Unknown temp directories and library files To: Priancka Chatz , pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: 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 10/10/24 11:36, Priancka Chatz wrote: > Hi admins, > > I am observing a new/unknown behavior on some of my instances. My > postgres Data directory path is /home/postgres/pgdata/pgroot/data. And I > see a temp directory present inside /home/postgres/pgdata which has 100s > of directory underneath it and inside each directory some library files > related to Psycopg2. Not sure what these files are and why it is getting > created. However, the only pattern I found is wherever Postgres is down > this behavior is seen. They are coming from an install of psycopg2-binary: pip install psycopg2-binary ll lib/python3.12/site-packages/psycopg2_binary.libs/ total 6944 drwxrwxr-x 2 aklaver aklaver 4096 Oct 13 08:55 ./ drwxrwxr-x 348 aklaver aklaver 20480 Oct 13 08:55 ../ -rwxrwxr-x 1 aklaver aklaver 17497 Oct 13 08:55 libcom_err-2abe824b.so.2.1* -rwxrwxr-x 1 aklaver aklaver 3133185 Oct 13 08:55 libcrypto-0628e7d4.so.1.1* -rwxrwxr-x 1 aklaver aklaver 345209 Oct 13 08:55 libgssapi_krb5-497db0c6.so.2.2* -rwxrwxr-x 1 aklaver aklaver 219953 Oct 13 08:55 libk5crypto-b1f99d5c.so.3.1* -rwxrwxr-x 1 aklaver aklaver 17913 Oct 13 08:55 libkeyutils-dfe70bd6.so.1.5* -rwxrwxr-x 1 aklaver aklaver 1018953 Oct 13 08:55 libkrb5-fcafa220.so.3.3* -rwxrwxr-x 1 aklaver aklaver 76873 Oct 13 08:55 libkrb5support-d0bcff84.so.0.1* -rwxrwxr-x 1 aklaver aklaver 60977 Oct 13 08:55 liblber-5a1d5ae1.so.2.0.200* -rwxrwxr-x 1 aklaver aklaver 447329 Oct 13 08:55 libldap-5d2ff197.so.2.0.200* -rwxrwxr-x 1 aklaver aklaver 406817 Oct 13 08:55 libpcre-9513aab5.so.1.2.0* -rwxrwxr-x 1 aklaver aklaver 370777 Oct 13 08:55 libpq-e8a033dd.so.5.16* -rwxrwxr-x 1 aklaver aklaver 119217 Oct 13 08:55 libsasl2-883649fd.so.3.0.0* -rwxrwxr-x 1 aklaver aklaver 178337 Oct 13 08:55 libselinux-0922c95c.so.1* -rwxrwxr-x 1 aklaver aklaver 646065 Oct 13 08:55 libssl-3e69114b.so.1.1* Looks like something is setting up psycopg2-binary and psycopg2 as part of some script/tool/orm/etc in your $DATA directory. Are you using something that uses psycopg2 as the client library? > > I am attaching screenshots for reference. > > Can anyone shed some light or direct me to any links to troubleshoot this? > > Regards, > Priyanka -- Adrian Klaver adrian.klaver@aklaver.com