Date: Mon, 04 Jan 2021 16:57:37 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 252413] [pkg] Set timeout don't work Message-ID: <bug-252413-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252413 Bug ID: 252413 Summary: [pkg] Set timeout don't work Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: albert.shih@obspm.fr Hi,=20 When a server of pkg repos are down the set of FETCH_TIMEOUT and FETCH_RETRY does not work correctly. If the server are still reachable on the IP level, the FETCH_TIMEOUT & FETCH_RETRY work fine.=20 If the server are off the FETCH_TIMEOUT not working.=20 Way to test :=20 Set a FETCH_TIMEOUT are very low like 2 ou 4. Set any IP address not up in the /usr/local/etc/pkg/repos/YOUR_REPOS.conf Try to do the pkg -d update. I also try to passe HTTP_TIMEOUT through PKG_ENV but don't change anything Example: Options in pkg.conf debug_level: 4, fetch_retry: 1, fetch_timeout: 1, When the nginx are down but the server himself are up [root /usr/local/etc]# date; pkg update ; date Mon Jan 4 17:40:26 CET 2021 DBG(1)[14018]> PkgConfig: loading repositories in /etc/pkg/ DBG(1)[14018]> PkgConfig: loading repositories in /usr/local/etc/pkg/repos/ DBG(1)[14018]> PKgConfig: loading /usr/local/etc/pkg/repos//122R-default.co= nf DBG(1)[14018]> PkgConfig: parsing key '122R-default' DBG(1)[14018]> PkgConfig: parsing repository object 122R-default DBG(1)[14018]> PKgConfig: loading /usr/local/etc/pkg/repos//FreeBSD.conf DBG(1)[14018]> PkgConfig: parsing key 'FreeBSD' DBG(1)[14018]> PkgConfig: parsing repository object FreeBSD Updating 122R-default repository catalogue... DBG(1)[14018]> PkgRepo: verifying update for 122R-default DBG(1)[14018]> PkgRepo: need forced update of 122R-default DBG(1)[14018]> Pkgrepo, begin update of '/var/db/pkg/repo-122R-default.sqli= te' DBG(1)[14018]> Request to fetch pkg+http://x.y.z.t/packages/122R-default/meta.conf DBG(1)[14018]> opening libfetch fetcher DBG(1)[14018]> Fetch > libfetch: connecting DBG(1)[14018]> Fetch: fetching from: http://x.y.z.t/packages/122R-default/meta.conf with opts "iv" resolving server address: x.y.z.t:80 failed to connect to x.y.z.t:80 DBG(1)[14018]> Request to fetch pkg+http://x.y.z.t/packages/122R-default/meta.txz DBG(1)[14018]> opening libfetch fetcher DBG(1)[14018]> Fetch > libfetch: connecting DBG(1)[14018]> Fetch: fetching from: http://x.y.z.t/packages/122R-default/meta.txz with opts "iv" resolving server address: x.y.z.t:80 failed to connect to x.y.z.t:80 pkg: http://x.y.z.t/packages/122R-default/meta.txz: Connection refused repository 122R-default has no meta file, using default settings DBG(1)[14018]> Request to fetch pkg+http://x.y.z.t/packages/122R-default/packagesite.txz DBG(1)[14018]> opening libfetch fetcher DBG(1)[14018]> Fetch > libfetch: connecting DBG(1)[14018]> Fetch: fetching from: http://x.y.z.t/packages/122R-default/packagesite.txz with opts "iv" resolving server address: x.y.z.t:80 failed to connect to x.y.z.t:80 pkg: http://x.y.z.t/packages/122R-default/packagesite.txz: Connection refus= ed Unable to update repository 122R-default Error updating repositories!=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 Mon Jan 4 17:40:26 CET 2021=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 [root /usr/local/etc]#=20 When the server are down [root /usr/local/etc]# date; pkg update ; date=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Mon Jan 4 17:46:20 CET 2021 DBG(1)[23143]> PkgConfig: loading repositories in /etc/pkg/ DBG(1)[23143]> PkgConfig: loading repositories in /usr/local/etc/pkg/repos/ DBG(1)[23143]> PKgConfig: loading /usr/local/etc/pkg/repos//122R-default.co= nf DBG(1)[23143]> PkgConfig: parsing key '122R-default' DBG(1)[23143]> PkgConfig: parsing repository object 122R-default DBG(1)[23143]> PKgConfig: loading /usr/local/etc/pkg/repos//FreeBSD.conf DBG(1)[23143]> PkgConfig: parsing key 'FreeBSD' DBG(1)[23143]> PkgConfig: parsing repository object FreeBSD Updating 122R-default repository catalogue... DBG(1)[23143]> PkgRepo: verifying update for 122R-default DBG(1)[23143]> PkgRepo: need forced update of 122R-default DBG(1)[23143]> Pkgrepo, begin update of '/var/db/pkg/repo-122R-default.sqli= te' DBG(1)[23143]> Request to fetch pkg+http://x.y.z.t/packages/122R-default/meta.conf DBG(1)[23143]> opening libfetch fetcher DBG(1)[23143]> Fetch > libfetch: connecting DBG(1)[23143]> Fetch: fetching from: http://x.y.z.t/packages/122R-default/meta.conf with opts "iv" resolving server address: x.y.z.t:80 failed to connect to x.y.z.t:80 DBG(1)[23143]> Request to fetch pkg+http://x.y.z.t/packages/122R-default/meta.txz DBG(1)[23143]> opening libfetch fetcher DBG(1)[23143]> Fetch > libfetch: connecting DBG(1)[23143]> Fetch: fetching from: http://x.y.z.t/packages/122R-default/meta.txz with opts "iv" resolving server address: x.y.z.t:80 failed to connect to x.y.z.t:80 pkg: http://x.y.z.t/packages/122R-default/meta.txz: Operation timed out repository 122R-default has no meta file, using default settings DBG(1)[23143]> Request to fetch pkg+http://x.y.z.t/packages/122R-default/packagesite.txz DBG(1)[23143]> opening libfetch fetcher DBG(1)[23143]> Fetch > libfetch: connecting DBG(1)[23143]> Fetch: fetching from: http://x.y.z.t/packages/122R-default/packagesite.txz with opts "iv" resolving server address: x.y.z.t:80 failed to connect to x.y.z.t:80 pkg: http://x.y.z.t/packages/122R-default/packagesite.txz: Operation timed = out Unable to update repository 122R-default Error updating repositories! Mon Jan 4 17:50:06 CET 2021 [root /usr/local/etc]# --=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-252413-7788>