From nobody Sun Jul 14 12:15:15 2024 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WMPRg73lgz5QT3f for ; Sun, 14 Jul 2024 12:15:27 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WMPRg6Y8dz4mTQ for ; Sun, 14 Jul 2024 12:15:27 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720959327; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gwQBxJP8fPqyl+FptZ7j1/GKTRrXcryCNcOGlzfQOAw=; b=Ey3aID8FEHT/QNfVYKjremr084f2DKfeEPn/g6YnDcOQrwbgZFDaFnHGWAqlbqagCqF7Pf Xgok+eD7KEd3DzqNglQEIn5hMfc+9r6TIfq+/dK597GzUeacpkVEEOUqcF1mo7okeZw5a3 gMP7I+yrBpE+8hV8jjhoQG/Iuwm3ku7GTBUIq/24f16ubmDxb+ykX0LJqp5HOX2xXhuyBr gul5QRJiVFlzptWhFz2F4XsqSXHCX7XOJLg9LDIj6rxaOqCJPOXBEkG2Z5pB0rRrgBtD6P Y0nRlQh+wjnfBp2VhHU+IJ6W33Bx9b3JJmmA/JBVYrRmmiCkqLwtK+LB9RHdxg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720959327; a=rsa-sha256; cv=none; b=XVVaePz9WBnmvsDCVq/41DKnWETvQYS8qv9ef3KEFbddgUdJgGNkAnWZCLwbkDa5j/ur2i YBftoqckdR84Bz4m9BmdSglrmUjvjQiMV/Vf7Mai20V4QUiDWwLx3wFFJG88wwNMHWsHDI Nn2Yr87bdxOP0t0Xfc00dB7NJeN5wN9FWMNWIjT7ZczEa/hW6jK6NYNmFL1yLeqBhcSs2v zvRRFcp4K2m5DbiWsfie1GzmHwjXES0L2ASeCfrj3gZA2ULxIilS8lIUuIDMeyqSK2dmjO nKWnGQO43uTamcsqHFED6pmA1JdZ9QX2DldX+styzlyArHSViyUP0lKQwnOOxQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720959327; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gwQBxJP8fPqyl+FptZ7j1/GKTRrXcryCNcOGlzfQOAw=; b=JcylvGnCkXoggDT8BlP8vgn8cl7yHL+w9dqwckOXca+9rniMA3gC5GqfedJMs+k0Z6KhVb bAlhtQ3nshoOW78A17ecQntP87yQ1HvZ5/GfsK0cvt6TeMMvuBCrdIXKmK1sPTP99Ww67x rbrrDvwFiVOVqwAlCytNCozksu14IWJWzLPPo1h36gKTIeS/Oca98mpi7b1rO2ESreRjjS DWYnwyfk3FI4sGNd2F3Q7849ElZADphnKnqi/BwNSMA/dhMM4VRNniuzZ8G1y8swcaiwIb vKcu73a1Y9xCK9sglpmfrbSHNrEP99o7tQMOl+tOpnHhU/hR7EP4mY4wfo8Y3g== Received: from mail-vk1-f171.google.com (mail-vk1-f171.google.com [209.85.221.171]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WMPRg5xLDzXxV for ; Sun, 14 Jul 2024 12:15:27 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vk1-f171.google.com with SMTP id 71dfb90a1353d-4f2ee3be4a1so1618303e0c.2 for ; Sun, 14 Jul 2024 05:15:27 -0700 (PDT) X-Gm-Message-State: AOJu0Yx0a4UDcOi9f6mmVMLuaiSPk6TKuVrh7tKAyoCNWV+Pho6g4VZ4 mmcjTjRdfkUgxVKBmiEKjNFDYeJPOyusMUGNe3ty2SrHCtfkGmbbvmMRml7hFjks7caSjcbtzcZ 72XsgwBQRrE8zR7f62oFJAve+CGU= X-Google-Smtp-Source: AGHT+IGs83K1mmwa3QS8NWLdqg7WA4Nd03uNKk/iWnqgKkceKgvOeGSDsxmTkJQEhv1+V0zCnj2jdtuIDl3iyknlOKM= X-Received: by 2002:a05:6122:4f97:b0:4ec:fc23:7928 with SMTP id 71dfb90a1353d-4f33f39b95bmr21243425e0c.12.1720959327164; Sun, 14 Jul 2024 05:15:27 -0700 (PDT) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 References: <59b38c2d-e596-402d-9ef0-34e892a5e8c1@groumpf.org> In-Reply-To: <59b38c2d-e596-402d-9ef0-34e892a5e8c1@groumpf.org> From: Nuno Teixeira Date: Sun, 14 Jul 2024 13:15:15 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Duplicity ResourceWarning: unclosed file To: Xavier Humbert Cc: FreeBSD Ports ML Content-Type: multipart/alternative; boundary="0000000000005e6ef9061d3411df" --0000000000005e6ef9061d3411df Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Xavier, I'm running duplicity on amd64 main with no problems (backup and checked --version). I don't have access to amd64 logs right now but it builds fine without issues on my arm64 rpi4: http://freebsdrpi4.hopto.org/data/15aarch64-main/2024-07-12_12h32m44s/logs/= duplicity-3.0.0.log I will check amd64 logs when I've got the chance. Thanks, Xavier Humbert escreveu (domingo, 14/07/2024 =C3=A0(s) 09:11): > Hi, > > Since the last upgrade of Duplicity, I experience these warnings : > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > /usr/local/lib/python3.11/threading.py:986: ResourceWarning: unclosed > file <_io.BufferedReader name=3D5> > del self._target, self._args, self._kwargs > ResourceWarning: Enable tracemalloc to get the object allocation tracebac= k > /usr/local/lib/python3.11/site-packages/duplicity/backends/ssh_paramiko_b= ackend.py:461: > > ResourceWarning: unclosed file <_io.TextIOWrapper > name=3D'/etc/ssh/ssh_config' mode=3D'r' encoding=3D'UTF-8'> > sshconfig.parse(open(file)) > ResourceWarning: Enable tracemalloc to get the object allocation tracebac= k > Local and Remote metadata are synchronized, no sync needed. > Last full backup date: Mon Jul 1 10:33:46 2024 > /usr/local/lib/python3.11/site-packages/duplicity/dup_main.py:779: > ResourceWarning: unclosed file <_io.BufferedReader > > name=3Db'/root/.cache/duplicity/b0ba93458b58f009d3339ea64701a6b2/duplicit= y-inc.20240714T020354Z.to.20240714T075149Z.manifest.part'> > new_man_outfp.to_remote() > ResourceWarning: Enable tracemalloc to get the object allocation tracebac= k > /usr/local/lib/python3.11/site-packages/duplicity/dup_main.py:780: > ResourceWarning: unclosed file <_io.BufferedReader > > name=3Db'/root/.cache/duplicity/b0ba93458b58f009d3339ea64701a6b2/duplicit= y-inc.20240714T020354Z.to.20240714T075149Z.manifest.part'> > new_man_outfp.to_final() > ResourceWarning: Enable tracemalloc to get the object allocation tracebac= k > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > A similar issue has been reported in 2019 : > https://bugs.launchpad.net/duplicity/+bug/1847122 > > The warning appears also when I ask for Duplicity version : > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > duplicity 3.0.0 May 29, 2024 > /usr/local/lib/python3.11/threading.py:986: ResourceWarning: unclosed > file <_io.BufferedReader name=3D5> > del self._target, self._args, self._kwargs > ResourceWarning: Enable tracemalloc to get the object allocation tracebac= k > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Again in rebuild of duplicity, same warning > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D> duplicity-3.0.0 depends on package: py311-future>0 - found > =3D=3D=3D> duplicity-3.0.0 depends on package: py311-mock>0 - found > =3D=3D=3D> duplicity-3.0.0 depends on package: py311-paramiko>=3D0 - fo= und > =3D=3D=3D> duplicity-3.0.0 depends on package: py311-pexpect>0 - found > =3D=3D=3D> duplicity-3.0.0 depends on package: py311-requests>=3D0 - fo= und > =3D=3D=3D> duplicity-3.0.0 depends on package: py311-urllib3>=3D0 - fou= nd > =3D=3D=3D> duplicity-3.0.0 depends on package: py311-b2sdk>=3D0.1.8 - f= ound > =3D=3D=3D> duplicity-3.0.0 depends on package: py311-dropbox>0 - found > =3D=3D=3D> duplicity-3.0.0 depends on package: gnupg1>=3D1.4.7 - found > =3D=3D=3D> duplicity-3.0.0 depends on file: /usr/local/bin/python3.11 -= found > =3D=3D=3D> Generating temporary packing list > sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper > name=3D'/usr/ports/sysutils/duplicity/work/stage/usr/local/lib/python3.11= /site-packages/duplicity-3.0.0.dist-info/RECORD' > > mode=3D'r' encoding=3D'utf-8'> > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Should I report upstream ? > > Regards, > > Xavier > > -- > Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer > https://www.amdh.fr > > > --=20 Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org --0000000000005e6ef9061d3411df Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Xavier,

I'm runnin= g duplicity on amd64 main with no problems (backup and checked --version).<= br>
I don't have access to amd64 logs right now but it bu= ilds fine without issues on my arm64 rpi4:

I will check amd= 64 logs when I've got the chance.

Thanks,
<= /div>

Xavier Humbert <xavier@groump= f.org> escreveu (domingo, 14/07/2024 =C3=A0(s) 09:11):
Hi,

Since the last upgrade of Duplicity, I experience these warnings :

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
/usr/local/lib/python3.11/threading.py:986: ResourceWarning: unclosed
file <_io.BufferedReader name=3D5>
=C2=A0=C2=A0 del self._target, self._args, self._kwargs
ResourceWarning: Enable tracemalloc to get the object allocation traceback<= br> /usr/local/lib/python3.11/site-packages/duplicity/backends/ssh_paramiko_bac= kend.py:461:
ResourceWarning: unclosed file <_io.TextIOWrapper
name=3D'/etc/ssh/ssh_config' mode=3D'r' encoding=3D'UTF= -8'>
=C2=A0=C2=A0 sshconfig.parse(open(file))
ResourceWarning: Enable tracemalloc to get the object allocation traceback<= br> Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Mon Jul=C2=A0 1 10:33:46 2024
/usr/local/lib/python3.11/site-packages/duplicity/dup_main.py:779:
ResourceWarning: unclosed file <_io.BufferedReader
name=3Db'/root/.cache/duplicity/b0ba93458b58f009d3339ea64701a6b2/duplic= ity-inc.20240714T020354Z.to.20240714T075149Z.manifest.part'>
=C2=A0=C2=A0 new_man_outfp.to_remote()
ResourceWarning: Enable tracemalloc to get the object allocation traceback<= br> /usr/local/lib/python3.11/site-packages/duplicity/dup_main.py:780:
ResourceWarning: unclosed file <_io.BufferedReader
name=3Db'/root/.cache/duplicity/b0ba93458b58f009d3339ea64701a6b2/duplic= ity-inc.20240714T020354Z.to.20240714T075149Z.manifest.part'>
=C2=A0=C2=A0 new_man_outfp.to_final()
ResourceWarning: Enable tracemalloc to get the object allocation traceback<= br> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

A similar issue has been reported in 2019 :
https://bugs.launchpad.net/duplicity/+bug/1847122

The warning appears also when I ask for Duplicity version :

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
duplicity 3.0.0 May 29, 2024
/usr/local/lib/python3.11/threading.py:986: ResourceWarning: unclosed
file <_io.BufferedReader name=3D5>
=C2=A0=C2=A0 del self._target, self._args, self._kwargs
ResourceWarning: Enable tracemalloc to get the object allocation traceback<= br> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Again in rebuild of duplicity, same warning

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D>=C2=A0=C2=A0 duplicity-3.0.0 depends on package: py311-future&= gt;0 - found
=3D=3D=3D>=C2=A0=C2=A0 duplicity-3.0.0 depends on package: py311-mock>= ;0 - found
=3D=3D=3D>=C2=A0=C2=A0 duplicity-3.0.0 depends on package: py311-paramik= o>=3D0 - found
=3D=3D=3D>=C2=A0=C2=A0 duplicity-3.0.0 depends on package: py311-pexpect= >0 - found
=3D=3D=3D>=C2=A0=C2=A0 duplicity-3.0.0 depends on package: py311-request= s>=3D0 - found
=3D=3D=3D>=C2=A0=C2=A0 duplicity-3.0.0 depends on package: py311-urllib3= >=3D0 - found
=3D=3D=3D>=C2=A0=C2=A0 duplicity-3.0.0 depends on package: py311-b2sdk&g= t;=3D0.1.8 - found
=3D=3D=3D>=C2=A0=C2=A0 duplicity-3.0.0 depends on package: py311-dropbox= >0 - found
=3D=3D=3D>=C2=A0=C2=A0 duplicity-3.0.0 depends on package: gnupg1>=3D= 1.4.7 - found
=3D=3D=3D>=C2=A0=C2=A0 duplicity-3.0.0 depends on file: /usr/local/bin/p= ython3.11 - found
=3D=3D=3D>=C2=A0=C2=A0 Generating temporary packing list
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper
name=3D'/usr/ports/sysutils/duplicity/work/stage/usr/local/lib/python3.= 11/site-packages/duplicity-3.0.0.dist-info/RECORD'
mode=3D'r' encoding=3D'utf-8'>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Should I report upstream ?

Regards,

Xavier

--
Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer
https:= //www.amdh.fr




--
Nuno Teixeira
FreeBSD UNIX:=C2=A0 <eduardo@FreeBSD.org>=C2=A0 =C2=A0Web:=C2=A0 https://Fr= eeBSD.org
--0000000000005e6ef9061d3411df--