Red Gate forums :: View topic - Using DM on a server which requires a proxy for internet
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
Deployment Manager
Deployment Manager forum

Using DM on a server which requires a proxy for internet

Search in Deployment Manager forum
Post new topic   Reply to topic
Jump to:  
Author Message
rickjr82



Joined: 22 May 2013
Posts: 14

PostPosted: Fri Oct 18, 2013 2:01 pm    Post subject: Using DM on a server which requires a proxy for internet Reply with quote

I installed DM on a server- I was able to access the website, but a short time later it gave a 404 error.

In the windows logs it shows an error about being unable to connect to the update site (I can hit the update site through IE).

Are these problems related? I can't even hit the website locally when logged into the server.
Back to top
View user's profile Send private message
rickjr82



Joined: 22 May 2013
Posts: 14

PostPosted: Fri Oct 18, 2013 2:35 pm    Post subject: Reply with quote

This is the error

2013-10-18 08:27:19,287 [18] ERROR RedGate.Deploy.Server.Tasks.TaskRunner [(null)] - System.AggregateException: One or more errors occurred. ---> RedGate.Deploy.Server.Tasks.ActivityFailedException: An error occurred while retrieving updates from the web service ---> RedGate.Deploy.Server.CheckForUpdates.UpdateServiceException: An error occurred while retrieving updates from the web service ---> System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at http://update.red-gate.com/UpdateServer/check.asmx that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.Net.WebException: The remote name could not be resolved: 'update.red-gate.com'
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStreamAsyncResult.CompleteGetRequestStream(IAsyncResult result)
--- End of inner exception stack trace ---

Server stack trace:
at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStreamAsyncResult.CompleteGetRequestStream(IAsyncResult result)
at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStreamAsyncResult..ctor(HttpWebRequest httpWebRequest, HttpOutput httpOutput, AsyncCallback callback, Object state)
at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.BeginGetOutputStream(AsyncCallback callback, Object state)
at System.ServiceModel.Channels.HttpOutput.SendAsyncResult.SendWithoutChannelBindingToken()
at System.ServiceModel.Channels.HttpOutput.BeginSend(TimeSpan timeout, AsyncCallback callback, Object state)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.SendWebRequest()
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.BeginSendRequest(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, Object state)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartSend(Boolean completedSynchronously)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.FinishEnsureOpen(IAsyncResult result, Boolean completedSynchronously)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartEnsureOpen(Boolean completedSynchronously)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.FinishEnsureInteractiveInit(IAsyncResult result, Boolean completedSynchronously)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartEnsureInteractiveInit()
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.Begin()
at System.ServiceModel.Channels.ServiceChannel.BeginCall(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, TimeSpan timeout, AsyncCallback callback, Object asyncState)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeBeginService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at RedGate.Deploy.Server.CheckForUpdates.Service.CheckSoap.BeginCheckForUpdates(CheckForUpdatesRequest request, AsyncCallback callback, Object asyncState)
at RedGate.Deploy.Server.CheckForUpdates.Service.CheckSoapClient.RedGate.Deploy.Server.CheckForUpdates.Service.CheckSoap.BeginCheckForUpdates(CheckForUpdatesRequest request, AsyncCallback callback, Object asyncState)
at System.Threading.Tasks.TaskFactory`1.FromAsyncImpl[TArg1](Func`4 beginMethod, Func`2 endMethod, TArg1 arg1, Object state, TaskCreationOptions creationOptions)
at RedGate.Deploy.Server.CheckForUpdates.Api.Client.<CheckForUpdatesAsync>d__0.MoveNext()

Exception rethrown at [1]:
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
at RedGate.Deploy.Server.CheckForUpdates.UpdateService.<GetUpdatesAsync>d__0.MoveNext()
--- End of inner exception stack trace ---

Server stack trace:
at RedGate.Deploy.Server.CheckForUpdates.UpdateService.<GetUpdatesAsync>d__0.MoveNext()

Exception rethrown at [0]:
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at RedGate.Deploy.Server.CheckForUpdates.UpdateControllerActivity.<Execute>d__7.MoveNext()
--- End of inner exception stack trace ---
at RedGate.Deploy.Server.CheckForUpdates.UpdateControllerActivity.<Execute>d__7.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at RedGate.Deploy.Server.Tasks.TaskRunner.<>c__DisplayClass1.<Execute>b__0()
---> (Inner Exception #0) RedGate.Deploy.Server.Tasks.ActivityFailedException: An error occurred while retrieving updates from the web service ---> RedGate.Deploy.Server.CheckForUpdates.UpdateServiceException: An error occurred while retrieving updates from the web service ---> System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at http://update.red-gate.com/UpdateServer/check.asmx that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.Net.WebException: The remote name could not be resolved: 'update.red-gate.com'
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStreamAsyncResult.CompleteGetRequestStream(IAsyncResult result)
--- End of inner exception stack trace ---

Server stack trace:
at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStreamAsyncResult.CompleteGetRequestStream(IAsyncResult result)
at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStreamAsyncResult..ctor(HttpWebRequest httpWebRequest, HttpOutput httpOutput, AsyncCallback callback, Object state)
at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.BeginGetOutputStream(AsyncCallback callback, Object state)
at System.ServiceModel.Channels.HttpOutput.SendAsyncResult.SendWithoutChannelBindingToken()
at System.ServiceModel.Channels.HttpOutput.BeginSend(TimeSpan timeout, AsyncCallback callback, Object state)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.SendWebRequest()
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.BeginSendRequest(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, Object state)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartSend(Boolean completedSynchronously)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.FinishEnsureOpen(IAsyncResult result, Boolean completedSynchronously)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartEnsureOpen(Boolean completedSynchronously)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.FinishEnsureInteractiveInit(IAsyncResult result, Boolean completedSynchronously)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartEnsureInteractiveInit()
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.Begin()
at System.ServiceModel.Channels.ServiceChannel.BeginCall(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, TimeSpan timeout, AsyncCallback callback, Object asyncState)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeBeginService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at RedGate.Deploy.Server.CheckForUpdates.Service.CheckSoap.BeginCheckForUpdates(CheckForUpdatesRequest request, AsyncCallback callback, Object asyncState)
at RedGate.Deploy.Server.CheckForUpdates.Service.CheckSoapClient.RedGate.Deploy.Server.CheckForUpdates.Service.CheckSoap.BeginCheckForUpdates(CheckForUpdatesRequest request, AsyncCallback callback, Object asyncState)
at System.Threading.Tasks.TaskFactory`1.FromAsyncImpl[TArg1](Func`4 beginMethod, Func`2 endMethod, TArg1 arg1, Object state, TaskCreationOptions creationOptions)
at RedGate.Deploy.Server.CheckForUpdates.Api.Client.<CheckForUpdatesAsync>d__0.MoveNext()

Exception rethrown at [1]:
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
at RedGate.Deploy.Server.CheckForUpdates.UpdateService.<GetUpdatesAsync>d__0.MoveNext()
--- End of inner exception stack trace ---

Server stack trace:
at RedGate.Deploy.Server.CheckForUpdates.UpdateService.<GetUpdatesAsync>d__0.MoveNext()

Exception rethrown at [0]:
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at RedGate.Deploy.Server.CheckForUpdates.UpdateControllerActivity.<Execute>d__7.MoveNext()
--- End of inner exception stack trace ---
at RedGate.Deploy.Server.CheckForUpdates.UpdateControllerActivity.<Execute>d__7.MoveNext()<---
Back to top
View user's profile Send private message
rickjr82



Joined: 22 May 2013
Posts: 14

PostPosted: Fri Oct 18, 2013 3:10 pm    Post subject: Reply with quote

ok, I was able to resolve that error by running the dm service with my id (it's an authenticated proxy).

The timeout error was still there- I was able to resolve that by using my ip instead of dns name- that is still an outstanding issue. I am currently running a Jenkins instance on the same server w/o issue.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1116
Location: My desk.

PostPosted: Mon Oct 21, 2013 4:54 pm    Post subject: Reply with quote

Thanks for posting back - it makes sense that running it as yourself worked. Unfortunately our tools don't currently offer proxy authentication, so when your proxy server returns the auth request, we try to interpret that as the response we expect, and fail.

Can you clarify the name/IP timeout problem? I'd guess some sort of name resolution problem but if you can clarify exactly what's happening that would be great
Back to top
View user's profile Send private message
jehrman



Joined: 07 Nov 2013
Posts: 2

PostPosted: Thu Nov 07, 2013 5:31 pm    Post subject: Reply with quote

Is it possible to define a proxy to update the server?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group