我对部署和管道相当新,但是今天我设法让他们在一个简单的测试站点上工作。 我现在正试图在适当的网站上复制相同内容,但在初始化期间失败了。我有很多要上传的文件(~3000),因为它是第一次上传,我不确定它是否由于这个原因或其他原因而失败(日志没有#t; t说什么具体)。是否有更详细的日志可以提供有关正在进行的更多信息?
谢谢
这是我的yml
image:samueldebruyn / debian-git
pipelines:
branches:
master:
- step:
script:
- apt-get update
- apt-get -qq install git-ftp
- git ftp init --user $FTPU --passwd $FTPP ftp_url
这是日志。如果总是在43号文件中失败
git ftp init --user $FTPU --passwd $FTPP ftp_url
+ git ftp init --user $FTPU --passwd $FTPP ftp_url
There are 2914 files to sync:
[1 of 2914] Buffered for upload URL
[2 of 2914] ...
....
[43 of 2914] Buffered for upload URL
Uploading ...
fatal: Could not upload files., exiting...
使用-v
的日志Thu May 18 13:24:27 UTC 2017: [43 of 2914] Buffered for upload url.
Thu May 18 13:24:27 UTC 2017: Uploading ...
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (9) Failed to MKD dir: 550
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (9) Failed to MKD dir: 550
curl: (25) Failed FTP upload: 553
curl: (9) Failed to MKD dir: 550
curl: (25) Failed FTP upload: 553
curl: (9) Failed to MKD dir: 550
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
curl: (25) Failed FTP upload: 553
Thu May 18 13:24:41 UTC 2017: fatal: Could not upload files., exiting...
答案 0 :(得分:0)
至少尝试mentioned here,在您的git ftp init
命令中添加-v。这会给你一个更好的主意。
当然,尝试使用相同的命令只需要上传几个文件,以确定文件的数量是否是问题:it was the case in 2014(issue 88,理论上由{ {3}})
答案 1 :(得分:0)
您使用的FTP帐户似乎没有足够的权限来创建所需的目录。这会导致脚本连续重试,直到超时为止。
// Other imports
import { FormsModule } from '@angular/forms';
@NgModule({
imports: [ ..., FormsModule ],
....
})
export class AppModule {}
首先尝试使用FTP应用程序测试帐户,例如FileZilla,然后复制目录的创建以查看是否允许您这样做。