What's problem with Upsource and Gitlab integration?

Hi all! 

I try to set up Upsource and on-premise Gitlab works together.

We have  Keycloak as OAuth provider. I set up integration between  Upsource and keycloak -  users can enter to gitlab and on project page when I push button Login to Gitlab,  it says login succeeded. But, when I try to create Merge Request from branch it not creates. And I see in log upsource-frontend-stderr.log error 401.

How can I troubleshoot this error?

 

[2020-03-04 07:49:37,635] [Upsource Frontend Error] [2020-03-04 07:49:37,631] WARN gitlab-sync-1 .integration.gitlab.GitlabHttp - Access token doesn't look like neither OAuth nor private token. Using OAuth
[2020-03-04 07:49:37,655] [Upsource Frontend Error] [2020-03-04 07:49:37,646] WARN @coroutine#118556136 .integration.gitlab.GitlabHttp - Server returned HTTP response code: 401. Error: {"message":"401 Unauthorized"}
[2020-03-04 07:49:37,656] [Upsource Frontend Error] [2020-03-04 07:49:37,646] WARN gitlab-sync-1 ion.gitlab.GitlabImportService - Import failed: external-client-console-backend
[2020-03-04 07:49:37,656] [Upsource Frontend Error] com.jetbrains.upsource.UpsourceException: Import failed: external-client-console-backend
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.integration.gitlab.GitlabImporter.importAll(GitlabImporter.kt:85)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.integration.gitlab.GitlabImportService$sync$1.invoke(GitlabImportService.kt:115)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.integration.gitlab.GitlabImportService$sync$1.invoke(GitlabImportService.kt:28)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.core.db.ProjectHolder.with(ProjectHolder.kt:68)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.integration.gitlab.GitlabImportService.a(GitlabImportService.kt:113)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.integration.gitlab.GitlabImportService.a(GitlabImportService.kt:80)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.integration.gitlab.GitlabImportService.access$syncNow(GitlabImportService.kt:28)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.integration.gitlab.GitlabImportService$2.run(GitlabImportService.kt:49)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at com.jetbrains.upsource.util.NamedDaemonThreadFactory.a(NamedDaemonThreadFactory.java:34)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at java.lang.Thread.run(Thread.java:748)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] Caused by: java.lang.Error: java.io.IOException: Server returned HTTP response code: 401
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.integration.gitlab.GitlabHttp$1.b(GitlabHttp.java:169)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.integration.gitlab.GitlabHttp$1.hasNext(GitlabHttp.java:127)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.integration.gitlab.GitlabHttp.getAll(GitlabHttp.java:107)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.integration.gitlab.GitlabApiClient.getMergeRequests(GitlabApiClient.java:37)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.integration.gitlab.GitlabImporter.importMergeRequests(GitlabImporter.kt:95)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.integration.gitlab.GitlabImporter$importAll$1.invokeSuspend(GitlabImporter.kt:82)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:236)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at kotlinx.coroutines.EventLoopBase.processNextEvent(EventLoop.kt:123)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:69)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:45)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:35)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.integration.gitlab.GitlabImporter.importAll(GitlabImporter.kt:81)
[2020-03-04 07:49:37,656] [Upsource Frontend Error] ... 15 more
[2020-03-04 07:49:37,656] [Upsource Frontend Error] Caused by: java.io.IOException: Server returned HTTP response code: 401
[2020-03-04 07:49:37,656] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.integration.gitlab.GitlabHttp.a(GitlabHttp.java:239)
[2020-03-04 07:49:37,657] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.integration.gitlab.GitlabHttp.access$100(GitlabHttp.java:28)
[2020-03-04 07:49:37,657] [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.integration.gitlab.GitlabHttp$1.b(GitlabHttp.java:165)
[2020-03-04 07:49:37,657] [Upsource Frontend Error] ... 29 more

 

1 comment
Comment actions Permalink

Then, I setup Gitlab Auth module and users enter upsource with gitlab credentials, but on the projects pages, I see, users not logined to gitlab.

 

Then I click to Login to Gitlab and see error: invalid_request: Parameter 'response_type' is required

How I can fix error?

0

Please sign in to leave a comment.