Moving Upsource and Hub

Recently my team moved servers and I can't restore Upsource from the copy of it I have. When selecting the copy as the upgrade source it complains that it can't reach the external hub (which is valid since the external hub's URL changed) but I also have no option to change that URL.

4 comments

Hi Mitchell,

Are there any errors in Upsource logs?

Could you please post it, so we have better understanding on what is going on?

Thank you in advance.

0

[2016-09-01 09:50:50,860]  DEBUG - estResponseBodyMethodProcessor - Written [ValidationResult: externalHubUrl <== INVALID_HUB_URL [Can't connect to Hub: Connection timed out: connect];] as "application/json" using [org.springframework.http.converter.json.MappingJackson2HttpMessageConverter@5e0754c0]
[2016-09-01 09:50:50,860]  DEBUG - .web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'InstallerServletDispatcher': assuming HandlerAdapter completed request handling
[2016-09-01 09:50:50,860]  DEBUG - .web.servlet.DispatcherServlet - Successfully completed request
[2016-09-01 09:51:41,345]  DEBUG - .web.servlet.DispatcherServlet - DispatcherServlet with name 'InstallerServletDispatcher' processing POST request for [/api/wizard/connections]
[2016-09-01 09:51:41,345]  DEBUG - n.RequestMappingHandlerMapping - Looking up handler method for path /wizard/connections
[2016-09-01 09:51:41,346]  DEBUG - n.RequestMappingHandlerMapping - Returning handler method [public com.jetbrains.installer.model.TestConnection com.jetbrains.installer.rest.TestConnectionResource.createEndpoint(com.jetbrains.installer.model.TestConnection) throws com.jetbrains.bundle.hub_client.util.validation.ValidationException]
[2016-09-01 09:51:41,346]  DEBUG - ort.DefaultListableBeanFactory - Returning cached instance of singleton bean 'testConnectionResource'
[2016-09-01 09:51:41,346]  DEBUG - vlet.mvc.WebContentInterceptor - Looking up cache seconds for [/wizard/connections]
[2016-09-01 09:51:41,346]  DEBUG - vlet.mvc.WebContentInterceptor - Applying default cache seconds to [/wizard/connections]
[2016-09-01 09:51:41,346]  DEBUG - estResponseBodyMethodProcessor - Reading [class com.jetbrains.installer.model.TestConnection] as "application/json;charset=UTF-8" using [org.springframework.http.converter.json.MappingJackson2HttpMessageConverter@5e0754c0]
[2016-09-01 09:51:41,347]  DEBUG - estResponseBodyMethodProcessor - Written [com.jetbrains.installer.model.TestConnection@2d226973] as "application/json" using [org.springframework.http.converter.json.MappingJackson2HttpMessageConverter@5e0754c0]
[2016-09-01 09:51:41,347]  DEBUG - .web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'InstallerServletDispatcher': assuming HandlerAdapter completed request handling
[2016-09-01 09:51:41,347]  DEBUG - .web.servlet.DispatcherServlet - Successfully completed request
[2016-09-01 09:51:41,369]  DEBUG - .web.servlet.DispatcherServlet - DispatcherServlet with name 'InstallerServletDispatcher' processing DELETE request for [/api/wizard/connections/173c980b-3d7a-4bb7-baf1-3bccee6c8192]
[2016-09-01 09:51:41,369]  DEBUG - n.RequestMappingHandlerMapping - Looking up handler method for path /wizard/connections/173c980b-3d7a-4bb7-baf1-3bccee6c8192
[2016-09-01 09:51:41,370]  DEBUG - .web.servlet.DispatcherServlet - DispatcherServlet with name 'InstallerServletDispatcher' processing POST request for [/api/wizard/upgrade-settings]
[2016-09-01 09:51:41,370]  DEBUG - n.RequestMappingHandlerMapping - Looking up handler method for path /wizard/upgrade-settings
[2016-09-01 09:51:41,370]  DEBUG - n.RequestMappingHandlerMapping - Returning handler method [public com.jetbrains.installer.model.blocks.UpgradeSettings com.jetbrains.installer.rest.UpgradeSettingsResource.post(com.jetbrains.installer.model.blocks.UpgradeSettings) throws java.io.IOException]
[2016-09-01 09:51:41,370]  DEBUG - ort.DefaultListableBeanFactory - Returning cached instance of singleton bean 'upgradeSettingsResource'
[2016-09-01 09:51:41,370]  DEBUG - n.RequestMappingHandlerMapping - Returning handler method [public void com.jetbrains.installer.rest.TestConnectionResource.deleteEndpoint(javax.servlet.http.HttpServletRequest,java.lang.String) throws com.jetbrains.bundle.hub_client.util.validation.ValidationException,com.jetbrains.installer.rest.UnknownResourceException]
[2016-09-01 09:51:41,370]  DEBUG - ort.DefaultListableBeanFactory - Returning cached instance of singleton bean 'testConnectionResource'
[2016-09-01 09:51:41,370]  DEBUG - vlet.mvc.WebContentInterceptor - Looking up cache seconds for [/wizard/upgrade-settings]
[2016-09-01 09:51:41,370]  DEBUG - vlet.mvc.WebContentInterceptor - Applying default cache seconds to [/wizard/upgrade-settings]
[2016-09-01 09:51:41,370]  DEBUG - vlet.mvc.WebContentInterceptor - Looking up cache seconds for [/wizard/connections/173c980b-3d7a-4bb7-baf1-3bccee6c8192]
[2016-09-01 09:51:41,370]  DEBUG - vlet.mvc.WebContentInterceptor - Applying default cache seconds to [/wizard/connections/173c980b-3d7a-4bb7-baf1-3bccee6c8192]
[2016-09-01 09:51:41,370]  DEBUG - estResponseBodyMethodProcessor - Reading [class com.jetbrains.installer.model.blocks.UpgradeSettings] as "application/json;charset=UTF-8" using [org.springframework.http.converter.json.MappingJackson2HttpMessageConverter@5e0754c0]
[2016-09-01 09:51:41,371]  DEBUG - .web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'InstallerServletDispatcher': assuming HandlerAdapter completed request handling
[2016-09-01 09:51:41,371]  DEBUG - .web.servlet.DispatcherServlet - Successfully completed request
[2016-09-01 09:52:02,427]  DEBUG - _client.util.HubClientProvider - Cannot connect to Hub url https://dev.groundctl.com/hub/. Status CANT_CONNECT: Can't connect to Hub. Reason: java.net.ConnectException: Connection timed out: connect
[2016-09-01 09:52:02,427]  DEBUG - _client.util.HubClientProvider - Rethrow HubUrlValidationException in buildAndValidateHubClient. Hub url https://dev.groundctl.com/hub/
com.jetbrains.bundle.hub_client.util.validation.HubUrlValidationException: Connection timed out: connect
    at com.jetbrains.bundle.hub_client.util.HubClientProvider.buildAndValidateHubClient(HubClientProvider.java:183)
    at com.jetbrains.bundle.hub_client.util.HubClientProvider.validateAndRememberHubClient(HubClientProvider.java:89)
    at com.jetbrains.bundle.hub_client.util.validation.HubUrlValidator.validate(HubUrlValidator.java:68)
    at com.jetbrains.bundle.hub_client.util.validation.HubUrlValidator.validate(HubUrlValidator.java:192)
    at com.jetbrains.installer.rest.UpgradeSettingsResource.post(UpgradeSettingsResource.java:59)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)
    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:749)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:689)
    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:863)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
    at com.jetbrains.installer.filters.CorsFilter.doFilter(CorsFilter.java:34)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.eclipse.jetty.server.Server.handle(Server.java:497)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: Connection timed out: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
    at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
    at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:389)
    at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:284)
    at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:255)
    at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:700)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)
    at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:696)
    at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:420)
    at org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:316)
    at jetbrains.jetpass.client.oauth2.OAuth2Client.getHubScope(OAuth2Client.java:54)
    at jetbrains.jetpass.client.accounts.BaseAccountsClient.checkServiceCredentials(BaseAccountsClient.java:78)
    at com.jetbrains.bundle.hub_client.util.HubClientProvider.buildAndValidateHubClient(HubClientProvider.java:123)
    ... 47 more
[2016-09-01 09:52:02,429]  DEBUG - eptionHandlerExceptionResolver - Resolving exception from handler [public com.jetbrains.installer.model.blocks.UpgradeSettings com.jetbrains.installer.rest.UpgradeSettingsResource.post(com.jetbrains.installer.model.blocks.UpgradeSettings) throws java.io.IOException]: com.jetbrains.bundle.hub_client.util.validation.ValidationException: Invalid data
[2016-09-01 09:52:02,429]  DEBUG - ort.DefaultListableBeanFactory - Returning cached instance of singleton bean 'requestErrorHandler'
[2016-09-01 09:52:02,430]  DEBUG - eptionHandlerExceptionResolver - Invoking @ExceptionHandler method: public com.jetbrains.bundle.hub_client.util.validation.ValidationResult com.jetbrains.installer.rest.RequestErrorHandler.handleException(com.jetbrains.bundle.hub_client.util.validation.ValidationException,javax.servlet.http.HttpServletRequest)
[2016-09-01 09:52:02,430]  DEBUG - aller.rest.RequestErrorHandler - Validation error on POST request to /api/wizard/upgrade-settings:
externalHubUrl ==> INVALID_HUB_URL[Can't connect to Hub: Connection timed out: connect][null]

0

Mitchell,

Please make sure that no Upsource services are running and execute the following command:

upsource.sh configure --hub-url=https://hub_url:XXX/hub

where https://hub_url:XXX/hub is obviously your new Hub URL

And then try to start Upsource.

0

Yeah, that worked. Thanks. I absolutely couldn't find that in the documentation.

0

Please sign in to leave a comment.