Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Nov 2024 06:59:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 282928] ports-mgmt/fastest_pkg crashes with a python runtime error on application start
Message-ID:  <bug-282928-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282928

            Bug ID: 282928
           Summary: ports-mgmt/fastest_pkg crashes with a python runtime
                    error on application start
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ehaupt@FreeBSD.org
          Reporter: polyduekes@proton.me
                CC: ehaupt@FreeBSD.org
          Assignee: ehaupt@FreeBSD.org
             Flags: maintainer-feedback?(ehaupt@FreeBSD.org)
                CC: ehaupt@FreeBSD.org
             Flags: maintainer-feedback?(ehaupt@FreeBSD.org)

Overview: running the program results in crash after some delay

Steps to Reproduce:

(1) start the program with fastest_pkg, fastest_pkg -v or fastest_pkg -t
timeout.

(2) the application will crash after few seconds with only the python crash
lines as output.

Actual Results:=20

the application crashed after few seconds with the following output:-

Traceback (most recent call last):
  File "/usr/local/bin/fastest_pkg", line 33, in <module>
    sys.exit(load_entry_point('fastest-pkg=3D=3D0.2.1', 'console_scripts',
'fastest_pkg')())
=20=20=20=20=20=20=20=20=20=20=20=20
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastest_pkg/fastest_pkg.py",
line 130, in main
    mirrors =3D get_mirrors()
              ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastest_pkg/fastest_pkg.py",
line 87, in get_mirrors
    pkg_mirrors =3D resolver.resolve("_http._tcp.pkg.all.freebsd.org", "SRV=
")
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dns/resolver.py", line 1320=
, in
resolve
    timeout =3D self._compute_timeout(start, lifetime, resolution.errors)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dns/resolver.py", line 1076=
, in
_compute_timeout
    raise LifetimeTimeout(timeout=3Dduration, errors=3Derrors)
dns.resolver.LifetimeTimeout: The resolution lifetime expired after 5.463
seconds: Server Do53:192.168.0.1@53 answered ; Server Do53:192.168.0.1@53
answered The DNS operation timed out.; Server Do53:192.168.0.1@53 answered ;
Server Do53:192.168.0.1@53 answered The DNS operation timed out.; Server
Do53:192.168.0.1@53 answered ; Server Do53:192.168.0.1@53 answered The DNS
operation timed out.

Expected Results:=20

the application should run properly with the command fastest_pkg and display
the pkg mirrors speed and tell the fastest pkg mirror


Build Date & Hardware: 2024-11-01T19:51:35+0000 build on FreeBSD-14.1-RELEA=
SE

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-282928-7788>