TeamCity SMB部署程序-无法通过SMB协议连接 [英] TeamCity SMB deployer - failed to connect via SMB protocol

查看:263
本文介绍了TeamCity SMB部署程序-无法通过SMB协议连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过SMB协议从具有安装的TeamCity服务器和TeamCity Build Agent的服务器上载文件到具有SMB网络共享文件夹的服务器,但出现错误:

I've tried to upload files from the server with installed TeamCity server and TeamCity Build Agent via SMB protocol to server with SMB network share folder, but I've gotten the error:

Step 3/3: Upload build to a Network Share (SMB Upload) (7s)
[04:11:21]  [Step 3/3] Starting upload via SMB to 
\someServerName\SomeShareFolder
[04:11:28]  [Step 3/3] jcifs.smb.SmbException: Failed to connect: 
someServerName/192.***.4.194
jcifs.util.transport.TransportException
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:210)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at jcifs.util.transport.Transport.readn(Transport.java:29)
at jcifs.smb.SmbTransport.peekKey(SmbTransport.java:388)
at jcifs.smb.SmbTransport.negotiate(SmbTransport.java:288)
at jcifs.smb.SmbTransport.doConnect(SmbTransport.java:319)
at jcifs.util.transport.Transport.run(Transport.java:241)
at java.lang.Thread.run(Thread.java:745)
at jcifs.util.transport.Transport.run(Transport.java:258)
at java.lang.Thread.run(Thread.java:745)
[04:11:28]  [Step 3/3] Step Upload build to a Network Share (SMB Upload) failed

TeamCity服务器和Build Agent安装在同一服务器上。 TeamCity是Professional 2017.1.4(内部版本47070)。构建步骤设置:

TeamCity server and Build Agent are installed on the same server. TeamCity is Professional 2017.1.4 (build 47070). Build Step settings:

我已经检查了两台服务器上的SMB1协议。已启用。
安装了TeamCity Build Agent和TeamCity服务器的服务器(操作系统Windows 10):

I've checked SMB1 protocol on both servers. It's enabled. The server with installed TeamCity Build Agent and TeamCity server(OS Windows 10):

具有SMB共享文件夹的服务器(OS Windows Server 2012):

The server with SMB share folder (OS Windows Server 2012 ):

在手动模式下,所有好的我成功地将文件从一台服务器复制到另一台服务器到SMB共享文件夹中。问题的原因是什么?

In manual mode, all work ok. I successfully copy files from one server to another server into SMB share folder. What is the cause of the problem?

推荐答案

ooops.SMB协议在路由器级别的本地网络上被禁用。

ooops.SMB protocol is disabled on the local network on the router level.

这篇关于TeamCity SMB部署程序-无法通过SMB协议连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆