Creating project fails with error "Field service must be unique"

Hello community,

I'm trying to setup a project in Upsource but fail to succeed. Although connection to the git repository is working and there is no other project so far I keep getting following error: "Project was not created: Could not create project 'projectname' in Hub: Field service must be unique"

When browsing the upsource log files, following exception appears in the upsource-stdout.log:

[2016-04-26 00:54:24,270] 00:54:24,253 WARN [BaseExceptionMapper ] REST exception for URL: /hub/api/rest/resources
[2016-04-26 00:54:24,385] jetbrains.jetpass.rest.common.JetPassRestException: Field service must be unique
[2016-04-26 00:54:24,385] at jetbrains.jetpass.rest.common.ExceptionExt.wrapWithRestException(ExceptionExt.java:58)
[2016-04-26 00:54:24,386] at jetbrains.jetpass.rest.api.ServiceRestExt.eval(ServiceRestExt.java:59)
[2016-04-26 00:54:24,386] at jetbrains.jetpass.rest.api.ServiceRestExt.createResource(ServiceRestExt.java:23)
[2016-04-26 00:54:24,386] at jetbrains.jetpass.rest.api.security.ResourcesResource.doCreate(ResourcesResource.java:87)
[2016-04-26 00:54:24,386] at jetbrains.jetpass.rest.api.security.ResourcesResource.post(ResourcesResource.java:68)
[2016-04-26 00:54:24,387] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2016-04-26 00:54:24,387] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2016-04-26 00:54:24,388] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2016-04-26 00:54:24,388] at java.lang.reflect.Method.invoke(Method.java:497)
[2016-04-26 00:54:24,388] at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
[2016-04-26 00:54:24,388] at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
[2016-04-26 00:54:24,388] at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
[2016-04-26 00:54:27,446] at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)
[2016-04-26 00:54:28,328] at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
[2016-04-26 00:54:28,328] at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
[2016-04-26 00:54:28,329] at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
[2016-04-26 00:54:28,337] at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
[2016-04-26 00:54:28,337] at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:309)

[2016-04-26 00:54:28,337] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
[2016-04-26 00:54:28,338] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
[2016-04-26 00:54:28,338] at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
[2016-04-26 00:54:28,338] at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
[2016-04-26 00:54:28,339] at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
[2016-04-26 00:54:28,339] at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
 

Any ideas?

Thanks and best regards,

Tobias

2 comments
Comment actions Permalink

Hi Tobias,

Looks like you have some conflicts on the Hub side..

Could you please check what is going on here -

http://upsource_base-url/hub/projects

and

http://upsource_base-url/hub/services

0
Comment actions Permalink

Hi Artem,

thanks for your response. Unter http://upsource_base-url/hub/projects I see one single project named Global, which has been there right from the start. Under http://upsource_base-url/hub/services I see three entries, one being Upsource, one Hub, and one Upsource Plugin for IntelliJ IDEA. All of them trusted and also otherwise looking quite unsuspicious.

Is that of any help for you?

 

 

0

Please sign in to leave a comment.