Cannot create GIT Repo in on-demand version

We've installed Space in our Kubernetes Cluster (on demand version) as described in the official documentation. However, it is behind a VPN so it's not publicy accessible

It seems to work fine, but we cannot create any GIT Repository. It always states "Failed to complete auth request. Token signature check failed". The JavaScript console has a bit more information:

name: "RpcException"
path: "RepositoryService/getRepoUrlPatterns"
stack: "RpcException: Call to RepositoryService/getRepoUrlPatterns failed with error: Failed to complete auth request. Token signature check failed\n

However, I can successfully open the separate GIT page from Space, where I can see that it is running and I can see that there is a key with the checksums there. So I'm not quite sure what is going on here.

Can anyone help / advice or should I create an issue in the issue tracker?

Thank you!

0
11 comments

Jens Rauch, the error description points to the mismatch of the vcs.secrets.spaceAccessKey and space.vcs.token values from your values.yaml file. As a result, the Space fails to authenticate in the VCS service. Could you please double-check that these parameters have similar values? Thanks!

1

You are correct, it works now. Probably missed that on installation. Thank you very much! 

0

However I have an follow up issue. When migrating a GitLab Repo it works perfectly, however I cannot manage to migrate an on-premise Bitbucket Repo. It always tells me that the Repo URI is not valid:

jetbrains.vcs.server.api.client.GitApiException: URL: http://jb-space-vcs:19084/~rpc, context: space/fit-fit-9de6463c, method: createRepository, status: 400 Bad Request, body start: "https://bitbucket.xxxxxxxxx.de/scm/misc/fit.git" is not a valid remote repository URI 

Any ideas how to fix this? I can clone via a terminal with that URI, but not from the Space GUI.

0

Hi Jens Rauch, let's try to add the following value to the VCS service in values.yml:

vcs.extraJavaOpts: "-Dvcs.git.mirror.any=true"

Please let me know about the results.

0

Pavel Boger thank you for the fast response. We've added it to the values.yml but it sadly did not help.

Just to be sure, we've checked if it got added:

jb-space-vcs-envs

now contains:

-Xms512m -Xmx512m -Dproperties.file=./app.conf -Dlogback.configurationFile=./logback.xml -XX:+StartAttachListener -XX:+UseContainerSupport -XX:+UseG1GC -XX:ParallelGCThreads=4 -Dcom.sun.management.jmxremote.port=5555 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dio.netty.eventLoopThreads=8 -Djava.util.concurrent.ForkJoinPool.common.parallelism=8 -XX:NativeMemoryTracking=summary -Dvcs.git.mirror.any=true

So it worked, but it still returns the same error when trying to migrate the GIT repo.

0

Jens Rauch, sorry, it seems I misled you with the incorrect option. Here's the one needed:

vcs.extraJavaOpts: "-DVCS_HOSTING_VCS_GIT_MIRROR_ANY=true"

 

1

That worked. Thank you very much!

Now everything seems to work properly. Thank you.

Out of curiosity: Is there a way (yet) to give Tags / Releases for the Repo in the GUI? I can see the tags it imported from GitLab, but I do not see how to give new tags in Space (I only found tags for issues not for GIT). Did I miss this or is it simply not (yet) implemented?

0

Jens Rauch, thanks for the patience. You're right tags are not implemented yet. This task already exists in our roadmap, so please stay tuned. 

0

This thread was excellent!

1. I ran into: It seems to work fine, but we cannot create any GIT Repository. It always states "Failed to complete auth request. Token signature check failed".  and the fix resolved my issue.  The docs on https://www.jetbrains.com/help/space/production-installation.html#plan-your-installation should be updated to reflect this.

2. I ran into: When migrating a GitLab Repo it works perfectly, however I cannot manage to migrate an on-premise Bitbucket Repo. It always tells me that the Repo URI is not valid - for a local gitolite git hosting solution and the fix resolved my issue.

3. I am UNABLE to upvote/downvote issues.  Clicking cause the page to reload, but the counts don't change.

0

Brooke Hedrick, I'm glad to hear this thread helped you, and yes, we're already preparing a FAQ section for the On-Premises installation, so please stay tuned 🙂

As for the last question, am I right you're referring to the upvote functionality here? If yes, it worked for me just fine. Maybe some issue with the browser session? Could you please try clearing the cache for this site? Thanks!

1

Upvoting is working.  I logged out/back in.  I don't understand why I could post to the forum but could not upvote.  In any case it is working.

0

Please sign in to leave a comment.