Skip to main content

Hi,

 

When trying to deploy my processes to the Live environment i am getting an error.

 

I am doing the deploy from the command line and have done this many times in the past now for some reason i am getting errors.

All development is done on a different server /environment identical to the live and i am able to succesfully do the deploy on the DEV environment

 

The deply command i am using is:

msbuild "D:K2ProcessDeploymentsStockAvailabilityFlow20170208_1StockAvailability.msbuild" /P:TestOnly=True;Environment=JKMDeploy

 

and the error i get back is:

Build started 08/02/2017 07:38:01 AM.
Project "D:StockAvailabilityFlow20170208_1StockAvailability.msbuild" on node 1 (default targets).
Deploy Processes:
Deploy Processes: Task Started (08/02/2017 07:38:02 AM)
D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: The "SourceCode.DeploymentTasks.ExportProcessTask" task failed unexpectedly.

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: SourceCode.Hosting.Exceptions.APICommunicationException: Error Receiving Buffer:An existing connection was forcibly closed by the remote host ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at System.Net.Sockets.Socket.Receive(ByteB] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.Hosting.Client.BaseAPI.SocketBaseAPIConnection.OnReceiveBuffer(ByteB]& recvBuff)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.ReceiveData(ValueType& hd)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: --- End of inner exception stack trace ---

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.ReceiveData(ValueType& hd)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.WindowsAuthentication(SCConnectionStringBuilder connectionStringBuilder)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.Authenticate(String connectionString)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.Hosting.Client.BaseAPI.SocketBaseAPIConnection.OnOpen(SCConnectionStringBuilder connectionStringBuilder)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnectionBroker.OnOpen(SCConnectionStringBuilder connectionStringBuilder)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.Open(String connectionString)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.DeploymentTasks.ExportProcessTask.CheckServerFrameworkSupport(Version targetFramework)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.DeploymentTasks.ExportProcessTask.Execute()

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
Done Building Project "D:StockAvailabilityFlow20170208_1StockAvailability.msbuild" (default targets) -- FAILED.


Build FAILED.

"D:StockAvailabilityFlow20170208_1StockAvailability.msbuild" (default target) (1) ->
(Deploy Processes target) ->
D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error
MSB4018: The "SourceCode.DeploymentTasks.ExportProcessTask" task failed unexpectedly.

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: SourceCode.Hosting.Exceptions.APICommunicationException: Error Receiving Buffer:An existing connection was forcibly closed by the remote host ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at System.Net.Sockets.Socket.Receive(ByteB] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.Hosting.Client.BaseAPI.SocketBaseAPIConnection.OnReceiveBuffer(ByteB]& recvBuff)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.ReceiveData(ValueType& hd)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: --- End of inner exception stack trace ---

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.ReceiveData(ValueType& hd)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.WindowsAuthentication(SCConnectionStringBuilder connec
tionStringBuilder)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.Authenticate(String connectionString)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.Hosting.Client.BaseAPI.SocketBaseAPIConnection.OnOpen(SCConnectionStringBuilder connectionStrin
gBuilder)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnectionBroker.OnOpen(SCConnectionStringBuilder connectionStrin
gBuilder)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.Open(String connectionString)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.DeploymentTasks.ExportProcessTask.CheckServerFrameworkSupport(Version targetFramework)

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at SourceCode.DeploymentTasks.ExportProcessTask.Execute()

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()

D:StockAvailabilityFlow20170208_1StockAvailability.msbuild(390,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()

0 Warning(s)
1 Error(s)

 

 

Any help would be much appreciated as i have already missed the deadline on this deployment

Thanks.

It appears to be due to this error:


 


SourceCode.Hosting.Exceptions.APICommunicationException: Error Receiving Buffer:An existing connection was forcibly closed by the remote host ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host


 


Is deployment done on the server?  If from a different machine, perhaps there is some network configuration (firewall, ip address resolution, load balancer) that maybe closing/terminating the connection.


 


How does the value in the .msbuild file look for the 'JKMDeploy' environment?  Do the environment fields look correct?


Reply