>Number: 157499 >Category: misc >Synopsis: fetch confused me with it's error message >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 01 14:20:05 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Konstantin >Release: 8.2-RELEASE/7.3-RELEASE >Organization: Kaspersky Lab >Environment: FreeBSD ourhost.kaspersky.com 7.3-RELEASE-p3 FreeBSD 7.3-RELEASE-p3 #0: Tue Sep 21 18:03:17 MSD 2010 r...@ourhost.kaspersky.com:/usr/obj/usr/src/sys/GENERIC amd64
>Description: I have found out some strange error handling in /usr/bin/fetch. Here it is: # fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz fetch: ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz: Syntax error, command unrecognized So it's very confusing error message. With some extra debug it looks more clear: # fetch -vvv ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz scheme: [ftp] user: [] password: [] host: [ftp.freebsd.org] port: [0] document: [/pub/FreeBSD/ports/ports/ports.tar.gz] ---> ftp.freebsd.org:21 looking up ftp.freebsd.org connecting to ftp.freebsd.org:21 <<< 220 Welcome to freebsd.isc.org. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: >>> USER anonymous <<< 331 Please specify the password. >>> PASS r...@h-ksn-hkg-fe-2.kaspersky-labs.com <<< 500 OOPS: cannot change directory:/home/ftp fetch: ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz: Syntax error, command unrecognized # host ftp.freebsd.org ftp.freebsd.org has address 204.152.184.73 ftp.freebsd.org has address 87.51.34.132 ftp.freebsd.org has address 149.20.64.73 ftp.freebsd.org has IPv6 address 2001:4f8:0:2::e ftp.freebsd.org has IPv6 address 2001:6c8:2:600::132 Actually this problem exists only with 204.152.184.73 server. See ftp connect to it: # ftp ftp> open ftp.freebsd.org Trying 204.152.184.73... Connected to ftp.freebsd.org. 220 Welcome to freebsd.isc.org. Name (ftp.freebsd.org:root): ftp 331 Please specify the password. Password: 500 OOPS: cannot change directory:/home/ftp ftp: Login failed. ftp> exit 500 OOPS: priv_sock_get_cmd I don't know why fetch on 7.3 sticked to this server and I had error 'Syntax error, command unrecognized' every time I run fetch. It could be some problem in DNS resolving algorithm on 7.3. On 8.2 fetch works with different servers, so I had this error n ot very often. Anyway, error message 'Syntax error, command unrecognized' on some FTP problems sounds very confusing for me. _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"