Upsource refuses to start again after reboot/restart.

So i installed Hub in c:\Hub and the only thing i changed is the hostname.

Works fine, i can access it through the admin account just fine.

Then unpacked Upsource into c:\Upsource and started it with c:\upsource\bin\upsource start.

Browser opens and I get to the config, I change the Hostname and the Port and tell it to integrate into the Hub above. Works all nicely.

I can log into Upsource, add a Project, have it Analyze the code on a Git repository and stuff. Everything is peachy.

But if I stop Upsource through c:\upsource\bin\upsource stop, or reboot the System then Upsource will not start again.

I get this error in error.log.

[2015-09-08 16:10:12,828]  ERROR - es.impl.HubConfiguratorService - Could not register service(s) in Hub because service-in-hub.id and/or service-in-hub.secret properties not set or incorrect in conf/internal/bundle.properties file. Please provide correct values for these properties. It may require to create service by hand, change its password or make it verified. Problem: Bundle service does not exists in Hub (http://hub.mydomain:8080/hub)
com.jetbrains.bundle.util.hub.UpdaterHubServiceException: Bundle service does not exists in Hub (http://hub.mydomain:8080/hub)
 at com.jetbrains.bundle.hub_client.util.BundleHubClient.getBundleHubAccountsClient(BundleHubClient.java:122)
 at com.jetbrains.bundle.util.hub.HubServiceUpdater.updateHubInfo(HubServiceUpdater.java:147)
 at com.jetbrains.bundle.util.hub.HubServiceUpdater.update(HubServiceUpdater.java:49)
 at com.jetbrains.bundle.services.impl.HubConfiguratorService.doStart(HubConfiguratorService.java:65)
 at com.jetbrains.bundle.services.impl.ServiceBase.start(ServiceBase.java:62)
 at com.jetbrains.bundle.Services.startService(Services.java:509)
 at com.jetbrains.bundle.Services.startAllServices(Services.java:481)
 at com.jetbrains.bundle.Services.start(Services.java:459)
 at com.jetbrains.bundle.BundleMain.start(BundleMain.java:248)
 at com.jetbrains.bundle.BundleMain.start(BundleMain.java:208)
 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:497)
 at com.jetbrains.bundle.bootstrap.Bundle$EntryPointProvider$1.invoke(Bundle.java:108)
 at com.sun.proxy.$Proxy2.start(Unknown Source)
 at com.jetbrains.bundle.bootstrap.Bundle.start(Bundle.java:54)
 at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:83)
 at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:81)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)
Caused by: com.intellij.hub.auth.oauth2.consumer.OAuth2TokenLoadException: Can't load token: invalid_client (Service with id "f4120572-7884-400b-a80a-68ea05a24a26" was not found)
 at jetbrains.jetpass.client.oauth2.SimpleTokenLoader.loadAccessToken(SimpleTokenLoader.java:60)
 at jetbrains.jetpass.client.oauth2.token.OAuth2TokenFlow.getTokenData(OAuth2TokenFlow.java:69)
 at jetbrains.jetpass.client.oauth2.token.OAuth2TokenFlow.getToken(OAuth2TokenFlow.java:46)
 at jetbrains.jetpass.client.oauth2.token.OAuth2TokenFlow.getHeader(OAuth2TokenFlow.java:90)
 at jetbrains.jetpass.client.BaseClient.prepare(BaseClient.java:50)
 at jetbrains.jetpass.client.accounts.ServiceClient.get(ServiceClient.java:71)
 at jetbrains.jetpass.client.accounts.ServiceClient.getService(ServiceClient.java:56)
 at com.jetbrains.bundle.hub_client.util.HubUtil.checkService(HubUtil.java:34)
 at com.jetbrains.bundle.hub_client.util.BundleHubClient.checkBundleService(BundleHubClient.java:159)
 at com.jetbrains.bundle.hub_client.util.BundleHubClient.getBundleHubAccountsClient(BundleHubClient.java:94)
 ... 22 more
[2015-09-08 16:10:12,831]  ERROR -                 bundle.startup - Error while starting JetBrains Upsource 2.0: Bundle service does not exists in Hub (http://hub.mydomain:8080/hub)


Just restarting Upsource made it stop working.

Any help would be apprechiated.

Thomas

4 comments
Comment actions Permalink

Hi Thomas.

Sorry for that inconvenience.

Looks like a bug that is described here - https://youtrack.jetbrains.com/issue/UP-5116

Product update will be available shortly.

0
Comment actions Permalink

Thomas,

Please try this version - http://download.jetbrains.com/upsource/upsource-2.0.3682.zip

Let me know if it helps.

Thanks.

0
Comment actions Permalink

Thanks. I will give it a try and report back.

0
Comment actions Permalink

This version resolves the problem for me.
Thanks!

0

Please sign in to leave a comment.