[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ezjail-admin install FTP timeout logic error.



Host is a clean RELEASE 8.0 install from disc1.iso cdrom.
Can not get the FTP download to work in ezjail-admin install.
Looks like after logging in to ftp server, it just waits for 3-5 minutes
then server times out and the program goes into a logic loop. The
following is the log of what happens. Now if I use an different ftp site
all runs will. Log posted at end.
ezjail-admin install -h ftp2.freebsd.org
So I know this problem has nothing to do with my host install. But it
does bring to light a problem with ftp server time outs. And a hidden
problem with restarting the download. Way things are now, reissuing the
ezjail-admin install command after a time out will just restart the
download from the beginning and not restart from where it left off.

As a stop gap solution maybe to change the hard coded ftp server name in
ezjail-admin script from ftp.freebsd.org to ftp2.freebsd.org.
ftp2.freebsd.org has far less traffic than ftp.freebsd.org which is the
master distribution server.




# / >ezjail-admin install
Trying 204.152.184.73...
Connected to ftp.freebsd.org.
220 Welcome to freebsd.isc.org.
331 Please specify the password.
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Switching to Binary mode.
250 Directory successfully changed.

# It sets here for 3 to 5 minutes before continuing on.
# Looks like download starts but times out and then gets stuck
# in logic loop in ezjail-admin install routine.

Trying 204.152.184.73...
Connected to ftp.freebsd.org.
220 Welcome to freebsd.isc.org.
331 Please specify the password.
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Switching to Binary mode.
550 Failed to change directory.
221 Goodbye.
Trying 204.152.184.73...
Connected to ftp.freebsd.org.
220 Welcome to freebsd.isc.org.
331 Please specify the password.
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Switching to Binary mode.
550 Failed to change directory.
221 Goodbye.
Trying 204.152.184.73...
Connected to ftp.freebsd.org.
220 Welcome to freebsd.isc.org.
331 Please specify the password.
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Switching to Binary mode.
550 Failed to change directory.
221 Goodbye.
Trying 204.152.184.73...
Connected to ftp.freebsd.org.
220 Welcome to freebsd.isc.org.
331 Please specify the password.
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Switching to Binary mode.
550 Failed to change directory.
221 Goodbye.

Could not fetch base from ftp.freebsd.org.
  Maybe your release (8.0-RELEASE) is specified incorrectly or the host
ftp.freebsd.org does not provide that release build.
  Use the -r option to specify an existing release or the -h option to
specify an alternative ftp server.
Querying your ftp-server... The ftp server you specified
(ftp.freebsd.org) seems to provide the following builds:
Trying 204.152.184.73...
Ignore the next question, ezjail answers it for you.
Error: Package install script for base failed.

******************  end of first log  *******************


# / >ezjail-admin install -h ftp2.freebsd.org
Connected to moss.cse.buffalo.edu.
220 ftp-archive.freebsd.org FTP server (Version wu-2.6.2(1) Fri Jun 12
09:41:08 EDT 2009) ready.
331 Guest login ok, send your complete e-mail address as password.
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Type set to I.
250 CWD command successful.
local: CHECKSUM.MD5 remote: CHECKSUM.MD5
229 Entering Extended Passive Mode (|||36779|)
150 Opening BINARY mode data connection for CHECKSUM.MD5 (2016 bytes).
  0% |                                     |     0       0.00 KB/s
--:-- ETA100% |*************************************|  2016       5.10
KB/s    00:00 ETA
226 Transfer complete.
2016 bytes received in 00:00 (2.99 KB/s)
local: CHECKSUM.SHA256 remote: CHECKSUM.SHA256
229 Entering Extended Passive Mode (|||37702|)
150 Opening BINARY mode data connection for CHECKSUM.SHA256 (3451 bytes).
  0% |                                     |     0       0.00 KB/s
--:-- ETA100% |*************************************|  3451       8.68
KB/s    00:00 ETA
226 Transfer complete.
3451 bytes received in 00:00 (5.14 KB/s)
local: base.aa remote: base.aa
229 Entering Extended Passive Mode (|||22963|)
1KB/s    00:00 ETA
226 Transfer complete.
1425408 bytes received in 00:20 (69.45 KB/s)

sniped alot of download messages

local: install.sh remote: install.sh
229 Entering Extended Passive Mode (|||25298|)
150 Opening BINARY mode data connection for install.sh (442 bytes).
  0% |                                     |     0       0.00 KB/s
--:-- ETA100% |*************************************|   442      29.93
KB/s    00:00 ETA
226 Transfer complete.
442 bytes received in 00:00 (1.11 KB/s)
221-You have transferred 54680445 bytes in 43 files.
221-Total traffic for this session was 54690839 bytes in 44 transfers.
221-Thank you for using the FTP service on ftp-archive.freebsd.org.
221 Goodbye.
Ignore the next question, ezjail answers it for you.
You are about to extract the base distribution into /usr/jails/fulljail
- are you SURE
you want to do this over your installed system (y/n)?
/usr/jails/basejail/bin
/usr/jails/basejail/bin/cat
/usr/jails/basejail/bin/chflags
/usr/jails/basejail/boot/loader
/usr/jails/basejail/rescue/umount
60149 blocks
find: usr/games: No such file or directory
0 blocks
chflags: usr/games: No such file or directory
rm: usr/games: No such file or directory
/usr/jails/basejail/usr/include

sniped out alot in messages.

28753 blocks
Note: a non-standard /etc/make.conf was copied to the template jail in
order to get the ports collection running inside jails.