Date: Sun, 21 Nov 2010 14:19:11 GMT From: Aleksandr <developerunix@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/152446: portsnap error Message-ID: <201011211419.oALEJB9A041748@yellow.freebsd.org> Resent-Message-ID: <201011211420.oALEK8tI025083@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 152446 >Category: ports >Synopsis: portsnap error >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Nov 21 14:20:08 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Aleksandr >Release: FreeBSD 8.0-RELEASE-p4 >Organization: >Environment: FreeBSD xakep.x-os.lv 8.0-RELEASE-p4 FreeBSD 8.0-RELEASE-p4 #2: Sun Nov 21 15:26:28 EET 2010 root@xakep.x-os.lv:/usr/obj/usr/src/sys/GENERIC i386 >Description: I try: portsnap fetch Looking up portsnap.FreeBSD.org mirrors... 5 mirrors found. Fetching snapshot tag from portsnap5.FreeBSD.org... invalid snapshot tag. Fetching snapshot tag from portsnap2.FreeBSD.org... invalid snapshot tag. Fetching snapshot tag from portsnap6.FreeBSD.org... invalid snapshot tag. Fetching snapshot tag from portsnap1.FreeBSD.org... invalid snapshot tag. Fetching snapshot tag from portsnap4.FreeBSD.org... invalid snapshot tag. No mirrors remaining, giving up. ---- If I make: portsnap --debug fetch Looking up portsnap.FreeBSD.org mirrors... 5 mirrors found. Fetching snapshot tag from portsnap5.FreeBSD.org... fetch: http://portsnap5.FreeBSD.org/latest.ssl: size of remote file is not known latest.ssl 724 B 7845 kBps RSA operation error 8751:error:0406706C:rsa routines:RSA_EAY_PUBLIC_DECRYPT:data greater than mod len:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rsa/rsa_eay.c:657: invalid snapshot tag. Fetching snapshot tag from portsnap2.FreeBSD.org... fetch: http://portsnap2.FreeBSD.org/latest.ssl: size of remote file is not known latest.ssl 724 B 8330 kBps RSA operation error 8782:error:0406706C:rsa routines:RSA_EAY_PUBLIC_DECRYPT:data greater than mod len:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rsa/rsa_eay.c:657: invalid snapshot tag. Fetching snapshot tag from portsnap1.FreeBSD.org... fetch: http://portsnap1.FreeBSD.org/latest.ssl: size of remote file is not known latest.ssl 724 B 10 MBps RSA operation error 8807:error:0406706C:rsa routines:RSA_EAY_PUBLIC_DECRYPT:data greater than mod len:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rsa/rsa_eay.c:657: invalid snapshot tag. Fetching snapshot tag from portsnap6.FreeBSD.org... fetch: http://portsnap6.FreeBSD.org/latest.ssl: size of remote file is not known latest.ssl 724 B 10 MBps RSA operation error 8829:error:0406706C:rsa routines:RSA_EAY_PUBLIC_DECRYPT:data greater than mod len:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rsa/rsa_eay.c:657: invalid snapshot tag. Fetching snapshot tag from portsnap4.FreeBSD.org... fetch: http://portsnap4.FreeBSD.org/latest.ssl: size of remote file is not known latest.ssl 724 B 10 MBps RSA operation error 8851:error:0406706C:rsa routines:RSA_EAY_PUBLIC_DECRYPT:data greater than mod len:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rsa/rsa_eay.c:657: invalid snapshot tag. No mirrors remaining, giving up. ----- third step: sh -x /usr/sbin/portsnap --debug fetch + export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin + export LC_ALL=C + get_params --debug fetch + init_params + KEYPRINT='' + EXTRACTPATH='' + WORKDIR='' + PORTSDIR='' + CONFFILE='' + COMMAND='' + COMMANDS='' + QUIETREDIR='' + QUIETFLAG='' + STATSREDIR='' + XARGST='' + NDEBUG='' + DDSTATS='' + INDEXONLY='' + SERVERNAME='' + REFUSE='' + LOCALDESC='' + parse_cmdline --debug fetch + [ 2 -gt 0 ] + QUIETREDIR=/dev/stderr + STATSREDIR=/dev/stderr + QUIETFLAG=' ' + NDEBUG=' ' + XARGST=-t + DDSTATS=.. + shift + [ 1 -gt 0 ] + COMMANDS=' fetch' + shift + [ 0 -gt 0 ] + [ -z ' fetch' ] + sanity_conffile + [ ! -z '' ] + default_conffile + [ -z '' ] + CONFFILE=/etc/portsnap.conf + parse_conffile + [ -r /etc/portsnap.conf ] + eval '_=$KEYPRINT' + _='' + [ -z '' ] + grep ^KEYPRINT= /etc/portsnap.conf + cut -f 2- -d = + tail -1 + eval KEYPRINT=9b5feee6d69f170e3dd0a2c8e469ddbd64f13f978f2f3aede40c98633216c330 + KEYPRINT=9b5feee6d69f170e3dd0a2c8e469ddbd64f13f978f2f3aede40c98633216c330 + eval '_=$WORKDIR' + _='' + [ -z '' ] + grep ^WORKDIR= /etc/portsnap.conf+ cut -f 2- -d = + tail -1 + eval WORKDIR=/var/db/portsnap + WORKDIR=/var/db/portsnap + eval '_=$PORTSDIR' + _='' + [ -z '' ] + grep ^PORTSDIR= /etc/portsnap.conf + cut -f 2- -d = + tail -1 + eval PORTSDIR=/usr/ports + PORTSDIR=/usr/ports + eval '_=$SERVERNAME' + _='' + [ -z '' ] + grep ^SERVERNAME= /etc/portsnap.conf + cut -f 2- -d = + tail -1 + eval SERVERNAME=portsnap.FreeBSD.org + SERVERNAME=portsnap.FreeBSD.org + grep -qE '^REFUSE[[:space:]]' /etc/portsnap.conf + grep -qE '^INDEX[[:space:]]' /etc/portsnap.conf + grep -E '^INDEX[[:space:]]' /etc/portsnap.conf + cut -c 7- + tr ' ' '|' + xargs echo + INDEXPAIRS='INDEX-6|DESCRIBE.6 INDEX-7|DESCRIBE.7 INDEX-8|DESCRIBE.8' + default_params + _QUIETREDIR=/dev/null + _QUIETFLAG=-q + _STATSREDIR=/dev/stdout + _WORKDIR=/var/db/portsnap + _PORTSDIR=/usr/ports + _NDEBUG=-n + _LOCALDESC=/dev/null + eval '_=$QUIETREDIR' + _=/dev/stderr + eval '__=$_QUIETREDIR' + __=/dev/null + [ -z /dev/stderr ] + eval '_=$QUIETFLAG' + _=' ' + eval '__=$_QUIETFLAG' + __=-q + [ -z ' ' ] + eval '_=$STATSREDIR' + _=/dev/stderr + eval '__=$_STATSREDIR' + __=/dev/stdout + [ -z /dev/stderr ] + eval '_=$WORKDIR' + _=/var/db/portsnap + eval '__=$_WORKDIR' + __=/var/db/portsnap + [ -z /var/db/portsnap ] + eval '_=$PORTSDIR' + _=/usr/ports + eval '__=$_PORTSDIR' + __=/usr/ports + [ -z /usr/ports ] + eval '_=$NDEBUG' + _=' ' + eval '__=$_NDEBUG' + __=-n + [ -z ' ' ] + eval '_=$LOCALDESC' + _='' + eval '__=$_LOCALDESC' + __=/dev/null + [ -z '' ] + eval LOCALDESC=/dev/null + LOCALDESC=/dev/null + cmd_fetch + [ ! -t 0 ] + fetch_check_params + uname -r + export 'HTTP_USER_AGENT=portsnap (fetch, 8.0-RELEASE-p4)' + _SERVERNAME_z='SERVERNAME must be given via command line or configuration file.' + _KEYPRINT_z='Key must be given via -k option or configuration file.' + _KEYPRINT_bad='Invalid key fingerprint: ' + _WORKDIR_bad='Directory does not exist or is not writable: ' + [ -z portsnap.FreeBSD.org ] + [ -z 9b5feee6d69f170e3dd0a2c8e469ddbd64f13f978f2f3aede40c98633216c330 ] + echo 9b5feee6d69f170e3dd0a2c8e469ddbd64f13f978f2f3aede40c98633216c330 + grep -qE '^[0-9a-f]{64}$' + [ -d /var/db/portsnap -a -w /var/db/portsnap ] + cd /var/db/portsnap + BSPATCH=/usr/bin/bspatch + SHA256=/sbin/sha256 + PHTTPGET=/usr/libexec/phttpget + fetch_run + fetch_pick_server_init + : + which -s host + echo -n 'Looking up portsnap.FreeBSD.org mirrors... ' Looking up portsnap.FreeBSD.org mirrors... + MLIST=_http._tcp.portsnap.FreeBSD.org + host -t srv _http._tcp.portsnap.FreeBSD.org + sed -nE 's/_http._tcp.portsnap.FreeBSD.org (has SRV record|server selection) //p' + cut -f 1,2,4 -d ' ' + sort + sed -e 's/\.$//' + wc -l + [ 5 -eq 0 ] + wc -l + echo 5 'mirrors found.' 5 mirrors found. + [ -n '' ] + jot -r 1 0 999999999 + RANDVALUE=810029781 + fetch_pick_server + sort serverlist_tried + comm -23 serverlist_full - + wc -l + [ 5 -eq 0 ] + cut -f 1 -d ' ' serverlist + sort -n + head -1 + SRV_PRIORITY=1 + SRV_WSUM=0 + read X + echo 1 10 portsnap1.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=10 + SRV_WSUM=10 + read X + echo 1 10 portsnap2.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=10 + SRV_WSUM=20 + read X + echo 1 10 portsnap6.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=10 + SRV_WSUM=30 + read X + echo 1 20 portsnap5.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=20 + SRV_WSUM=50 + read X + read X + [ 50 -eq 0 ] + SRV_W_ADD=0 + expr 810029781 % 50 + SRV_RND=31 + read X + echo 1 10 portsnap1.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=10 + SRV_W=10 + [ 31 -lt 10 ] + SRV_RND=21 + read X + echo 1 10 portsnap2.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=10 + SRV_W=10 + [ 21 -lt 10 ] + SRV_RND=11 + read X + echo 1 10 portsnap6.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=10 + SRV_W=10 + [ 11 -lt 10 ] + SRV_RND=1 + read X + echo 1 20 portsnap5.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=20 + SRV_W=20 + [ 1 -lt 20 ] + echo 1 20 portsnap5.FreeBSD.org + cut -f 3 -d ' ' + SERVERNAME=portsnap5.FreeBSD.org + echo '1 20 portsnap5.FreeBSD.org' + break + fetch_key + [ -r pub.ssl ] + /sbin/sha256 -q pub.ssl + [ 9b5feee6d69f170e3dd0a2c8e469ddbd64f13f978f2f3aede40c98633216c330 = 9b5feee6d69f170e3dd0a2c8e469ddbd64f13f978f2f3aede40c98633216c330 ] + return 0 + [ -d files -a -r tag -a -r INDEX -a -r tINDEX ] + fetch_update + rm -f patchlist diff OLD NEW filelist INDEX.new + cut -f 2 -d '|' + OLDSNAPSHOTDATE=1282476344 + cut -f 3 -d '|' + OLDSNAPSHOTHASH=f70f7d086f5cd9524d9dee2be294294253b7e6caad2020bddd87bd7239ac58ec + fetch_tag latest + rm -f snapshot.ssl tag.new + echo 'Fetching snapshot tag from portsnap5.FreeBSD.org... ' Fetching snapshot tag from portsnap5.FreeBSD.org... + fetch http://portsnap5.FreeBSD.org/latest.ssl fetch: http://portsnap5.FreeBSD.org/latest.ssl: size of remote file is not known latest.ssl 724 B 9691 kBps + [ -r latest.ssl ] + openssl rsautl -pubin -inkey pub.ssl -verify RSA operation error 9106:error:0406706C:rsa routines:RSA_EAY_PUBLIC_DECRYPT:data greater than mod len:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rsa/rsa_eay.c:657: + true + rm latest.ssl + wc -l + [ 0 = 1 ] + echo 'invalid snapshot tag.' invalid snapshot tag. + return 1 + fetch_pick_server + sort serverlist_tried + comm -23 serverlist_full - + wc -l + [ 4 -eq 0 ] + cut -f 1 -d ' ' serverlist + sort -n + head -1 + SRV_PRIORITY=1 + SRV_WSUM=0 + read X + echo 1 10 portsnap1.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=10 + SRV_WSUM=10 + read X + echo 1 10 portsnap2.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=10 + SRV_WSUM=20 + read X + echo 1 10 portsnap6.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=10 + SRV_WSUM=30 + read X + read X + [ 30 -eq 0 ] + SRV_W_ADD=0 + expr 810029781 % 30 + SRV_RND=21 + read X + echo 1 10 portsnap1.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=10 + SRV_W=10 + [ 21 -lt 10 ] + SRV_RND=11 + read X + echo 1 10 portsnap2.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=10 + SRV_W=10 + [ 11 -lt 10 ] + SRV_RND=1 + read X + echo 1 10 portsnap6.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=10 + SRV_W=10 + [ 1 -lt 10 ] + echo 1 10 portsnap6.FreeBSD.org + cut -f 3 -d ' ' + SERVERNAME=portsnap6.FreeBSD.org + echo '1 10 portsnap6.FreeBSD.org' + break + fetch_tag latest + rm -f snapshot.ssl tag.new + echo 'Fetching snapshot tag from portsnap6.FreeBSD.org... ' Fetching snapshot tag from portsnap6.FreeBSD.org... + fetch http://portsnap6.FreeBSD.org/latest.ssl fetch: http://portsnap6.FreeBSD.org/latest.ssl: size of remote file is not known latest.ssl 724 B 10 MBps + [ -r latest.ssl ] + openssl rsautl -pubin -inkey pub.ssl -verify RSA operation error 9140:error:0406706C:rsa routines:RSA_EAY_PUBLIC_DECRYPT:data greater than mod len:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rsa/rsa_eay.c:657: + true + rm latest.ssl + wc -l + [ 0 = 1 ] + echo 'invalid snapshot tag.' invalid snapshot tag. + return 1 + fetch_pick_server + sort serverlist_tried + comm -23 serverlist_full - + wc -l + [ 3 -eq 0 ] + cut+ sort -n -f 1 -d ' ' serverlist + head -1 + SRV_PRIORITY=1 + SRV_WSUM=0 + read X + echo+ cut -f 2 -d ' ' 1 10 portsnap1.FreeBSD.org + SRV_W=10 + SRV_WSUM=10 + read X + + echo 1 10 portsnap2.FreeBSD.org cut -f 2 -d ' ' + SRV_W=10 + SRV_WSUM=20 + read X + read X + [ 20 -eq 0 ] + SRV_W_ADD=0 + expr 810029781 % 20 + SRV_RND=1 + read X + echo 1 10 portsnap1.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=10 + SRV_W=10 + [ 1 -lt 10 ] + echo 1 10 portsnap1.FreeBSD.org + cut -f 3 -d ' ' + SERVERNAME=portsnap1.FreeBSD.org + echo '1 10 portsnap1.FreeBSD.org' + break + fetch_tag latest + rm -f snapshot.ssl tag.new + echo 'Fetching snapshot tag from portsnap1.FreeBSD.org... ' Fetching snapshot tag from portsnap1.FreeBSD.org... + fetch http://portsnap1.FreeBSD.org/latest.ssl fetch: http://portsnap1.FreeBSD.org/latest.ssl: size of remote file is not known latest.ssl 724 B 10 MBps + [ -r latest.ssl ] + openssl rsautl -pubin -inkey pub.ssl -verify RSA operation error 9165:error:0406706C:rsa routines:RSA_EAY_PUBLIC_DECRYPT:data greater than mod len:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rsa/rsa_eay.c:657: + true + rm latest.ssl + wc -l + [ 0 = 1 ] + echo 'invalid snapshot tag.' invalid snapshot tag. + return 1 + fetch_pick_server + sort serverlist_tried + comm -23 serverlist_full - + wc -l + [ 2 -eq 0 ] + cut -f 1 -d ' ' serverlist + sort -n + head -1 + SRV_PRIORITY=1 + SRV_WSUM=0 + read X + echo 1 10 portsnap2.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=10 + SRV_WSUM=10 + read X + read X + [ 10 -eq 0 ] + SRV_W_ADD=0 + expr 810029781 % 10 + SRV_RND=1 + read X + echo 1 10 portsnap2.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=10 + SRV_W=10 + [ 1 -lt 10 ] + echo 1 10 portsnap2.FreeBSD.org + cut -f 3 -d ' ' + SERVERNAME=portsnap2.FreeBSD.org + echo '1 10 portsnap2.FreeBSD.org' + break + fetch_tag latest + rm -f snapshot.ssl tag.new + echo 'Fetching snapshot tag from portsnap2.FreeBSD.org... ' Fetching snapshot tag from portsnap2.FreeBSD.org... + fetch http://portsnap2.FreeBSD.org/latest.ssl fetch: http://portsnap2.FreeBSD.org/latest.ssl: size of remote file is not known latest.ssl 724 B 10 MBps + [ -r latest.ssl ] + openssl rsautl -pubin -inkey pub.ssl -verify RSA operation error 9187:error:0406706C:rsa routines:RSA_EAY_PUBLIC_DECRYPT:data greater than mod len:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rsa/rsa_eay.c:657: + true + rm latest.ssl + wc -l + [ 0 = 1 ] + echo 'invalid snapshot tag.' invalid snapshot tag. + return 1 + fetch_pick_server + sort+ comm -23 serverlist_full - serverlist_tried + wc -l + [ 1 -eq 0 ] + cut -f 1 -d ' ' serverlist + sort -n + head -1 + SRV_PRIORITY=2 + SRV_WSUM=0 + read X + + cut -f 2 -d ' ' echo 2 10 portsnap4.FreeBSD.org + SRV_W=10 + SRV_WSUM=10 + read X + [ 10 -eq 0 ] + SRV_W_ADD=0 + expr 810029781 % 10 + SRV_RND=1 + read X + echo 2 10 portsnap4.FreeBSD.org + cut -f 2 -d ' ' + SRV_W=10 + SRV_W=10 + [ 1 -lt 10 ] + echo 2 10 portsnap4.FreeBSD.org + cut -f 3 -d ' ' + SERVERNAME=portsnap4.FreeBSD.org + echo '2 10 portsnap4.FreeBSD.org' + break + fetch_tag latest + rm -f snapshot.ssl tag.new + echo 'Fetching snapshot tag from portsnap4.FreeBSD.org... ' Fetching snapshot tag from portsnap4.FreeBSD.org... + fetch http://portsnap4.FreeBSD.org/latest.ssl fetch: http://portsnap4.FreeBSD.org/latest.ssl: size of remote file is not known latest.ssl 724 B 10 MBps + [ -r latest.ssl ] + openssl rsautl -pubin -inkey pub.ssl -verify RSA operation error 9209:error:0406706C:rsa routines:RSA_EAY_PUBLIC_DECRYPT:data greater than mod len:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rsa/rsa_eay.c:657: + true + rm latest.ssl + wc -l + [ 0 = 1 ] + echo 'invalid snapshot tag.' invalid snapshot tag. + return 1 + fetch_pick_server + sort serverlist_tried + comm -23 serverlist_full - + wc -l + [ 0 -eq 0 ] + echo 'No mirrors remaining, giving up.' No mirrors remaining, giving up. + return 1 + return 1 + return 1 + exit 1 >How-To-Repeat: I rebuild GENERIC kernel with: options IPFIREWALL options IPDIVERT options DUMMYNET options IPFIREWALL_DEFAULT_TO_ACCEPT options ALTQ options ALTQ_CBQ options ALTQ_RED # Random Early Detection (RED) options ALTQ_RIO # RED In/Out options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC) options ALTQ_PRIQ # Priority Queuing (PRIQ) options ALTQ_NOPCC # Required for SMP build options GEOM_MIRROR device pf device pflog device pfsync after this rebuild, portsnap fetch command return error. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011211419.oALEJB9A041748>