我们将共享的Windows驱动器从filesvrA更改为filesvrB。
但是,现在我们的自动构建过程失败,因为尝试将文件从共享Windows目录获取到本地Solaris构建框时,FTP操作失败。它适用于Linux,但不适用于Solaris。
当我说它失败时,它不会抛出任何错误信息,它只是说
0 files retrieved.
FTP可以与Filezilla或Unix ftp命令一起使用:
dv87adm@cmap02:/evaluate/xxx/xxxx$ ftp filesvrB
Connected to filesvrB.xxxxx.com.
220 Microsoft FTP Service
Name (filesvrB:jayv): anonymous
331 Anonymous access allowed, send identity (e-mail name) as password.
Password:
230 User logged in.
Remote system type is Windows_NT.
ftp> cd Evaluate/Releases/Sun/8.7/29
250 CWD command successful.
ftp> dir
200 PORT command successful.
125 Data connection already open; Transfer starting.
02-28-14 04:51PM 73728 Product Release Sheet.doc
02-28-14 05:01PM 73216 Release Installation Instructions.doc
03-03-14 02:38PM 792 release.properties
226 Transfer complete.
554 bytes received in 0.00046 seconds (1179.52 Kbytes/s)
ftp> get release.properties
200 PORT command successful.
150 Opening ASCII mode data connection.
226 Transfer complete.
local: release.properties remote: release.properties
792 bytes received in 0.023 seconds (34.06 Kbytes/s)
但是,与下面的蚂蚁脚本相同:
<ftp action="get"
server="${rollout.library.host}"
remotedir="${rollout.library.install.path}"
userid="${rollout.library.userid}"
password="${rollout.library.password}"
verbose="yes"
binary="no">
<fileset file="release.properties"/>
</ftp>
我得到以下输出:
[echo] Getting evaluate.release.properties from /evaluate/Releases/Sun/8.7/29 on filesvr3
[echo]
[copy] Copying 1 file to /opt/xxx/xxxx/rollout
[copy] Copying /opt/evaluate/xxx/xxxx/release.properties to /opt/evaluate/xxx/xxxx/release.properties.030514-165722
[ftp] getting files
[ftp] 0 files retrieved
[chmod] Applied chmod to 1 file and 0 directories.
当我们将文件服务器更改为filesvrA时,它可以正常工作。
我知道我必须更改新文件vrB的一些权限,任何人都可以指出我正确的方向,我必须检查什么?我需要查看哪些日志?