Fail to start Datalore with Hub configuration

Datalore: 2022.3
Hub: 2022.3.15181
Docker: 20.10.21
Docker Compose: v2.12.2
OS: Rocky Linux 9

Following the instruction, I’ve configured Hub. But I can’t visit Datalore when Datalore starts with Hub configuration. When visiting Datalore(http://172.16.40.250:8080), it will redirect the browser to http://127.0.0.1:8080/api/hub/openid/login, then the browser gets the error message ERR_CONNECTION_REFUSED.
Datalore can start successfully without Hub configuration.

Here is log

Attaching to docker-compose-datalore-1, docker-compose-hub-1
docker-compose-datalore-1  | Starting datalore 2022.3
docker-compose-datalore-1  | Using default docker.agents-config.yaml. If you want to customize in please mount your's agents-config.yaml into /opt/datalore/configs/agents-config.yaml
docker-compose-datalore-1  | WARN  : Forking second JVM due to forking module(s): [logging-jul-capture]. Use --dry-run to generate the command line to avoid forking.
docker-compose-hub-1       | Starting Hub...
docker-compose-hub-1       | * Configuring JetBrains Hub 2022.3
docker-compose-hub-1       | * JetBrains Hub 2022.3 runtime environment is successfully configured
docker-compose-hub-1       | * Loading logging configuration from /opt/hub/lib/ext/log4j.xml
docker-compose-hub-1       | * Redirecting JetBrains Hub 2022.3 logging to /opt/hub/logs/internal/services/bundleProcess
docker-compose-hub-1       | * Configuring Service-Container[bundleProcess]
docker-compose-hub-1       | * Configuring Bundle Backend Service
docker-compose-hub-1       | * Configuring Starting Page Service
docker-compose-hub-1       | * Configuring Hub Configurator
docker-compose-hub-1       | * Configuring Hub
docker-compose-hub-1       | * Configuring Bundle Hub Configurator
docker-compose-hub-1       | * Starting Service-Container[bundleProcess]
docker-compose-hub-1       | * Starting Bundle Backend Service
docker-compose-hub-1       | * Starting Starting Page Service
docker-compose-hub-1       | * JetBrains Hub 2022.3 will be available on [http://172.16.40.250:8082/bundle/starting] after start
docker-compose-hub-1       | * Starting Hub Configurator
docker-compose-hub-1       | * Starting Hub
docker-compose-hub-1       | * Starting Bundle Hub Configurator
docker-compose-datalore-1  | 15:56:49.109 INFO  [main] o.s.web.context.ContextLoader            Root WebApplicationContext: initialization started
docker-compose-datalore-1  | 15:56:49.109 INFO  [main] o.s.web.context.ContextLoader            Root WebApplicationContext: initialization started
docker-compose-datalore-1  | 15:56:53.239 INFO  [main] o.f.core.internal.command.DbValidate     Successfully validated 87 migrations (execution time 00:00.447s)
docker-compose-datalore-1  | 15:56:53.248 INFO  [main] o.f.core.internal.command.DbMigrate      Current version of schema "infra": 086
docker-compose-datalore-1  | 15:56:53.249 INFO  [main] o.f.core.internal.command.DbMigrate      Schema "infra" is up to date. No migration necessary.
docker-compose-datalore-1  | 15:56:57.851 INFO  [main] o.s.web.context.ContextLoader            Root WebApplicationContext initialized in 8740 ms
docker-compose-datalore-1  | 15:56:57.956 INFO  [taskScheduler-1] j.d.u.s.impl.groups.HubGroupsServiceImpl No Hub events have been ever processed. Importing initial Hub groups.
docker-compose-datalore-1  | 15:56:58.159 ERROR [taskScheduler-1] o.s.s.s.TaskUtils$LoggingErrorHandler    Unexpected error occurred in scheduled task
docker-compose-datalore-1  | javax.ws.rs.ProcessingException: java.net.ConnectException: Connection refused
docker-compose-datalore-1  |    at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:269)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:297)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$1(JerseyInvocation.java:675)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.call(JerseyInvocation.java:697)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.lambda$runInScope$3(JerseyInvocation.java:691)
docker-compose-datalore-1  |    at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
docker-compose-datalore-1  |    at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
docker-compose-datalore-1  |    at org.glassfish.jersey.internal.Errors.process(Errors.java:205)
docker-compose-datalore-1  |    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:390)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.runInScope(JerseyInvocation.java:691)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:674)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:422)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:318)
docker-compose-datalore-1  |    at jetbrains.jetpass.client.oauth2.OAuth2Client.getHubScope(OAuth2Client.kt:45)
docker-compose-datalore-1  |    at jetbrains.jetpass.client.hub.HubClient.getAccountsClient(HubClient.kt:51)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.hub.b.invoke(b.java:7)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.hub.b.invoke(b.java:1)
docker-compose-datalore-1  |    at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.hub.LazyHubAccountsClient.a(LazyHubAccountsClient.kt:9)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.hub.LazyHubAccountsClient.getEventClient(LazyHubAccountsClient.kt:10)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.groups.HubGroupsServiceImpl.c(HubGroupsServiceImpl.kt:170)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.groups.HubGroupsServiceImpl.a(HubGroupsServiceImpl.kt:6)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.groups.HubGroupsServiceImpl.a(HubGroupsServiceImpl.kt:135)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.groups.HubGroupsServiceImpl.updateGroupsFromHub(HubGroupsServiceImpl.kt:264)
docker-compose-datalore-1  |    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
docker-compose-datalore-1  |    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
docker-compose-datalore-1  |    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
docker-compose-datalore-1  |    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
docker-compose-datalore-1  |    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
docker-compose-datalore-1  |    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
docker-compose-datalore-1  |    at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
docker-compose-datalore-1  |    at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388)
docker-compose-datalore-1  |    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
docker-compose-datalore-1  |    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
docker-compose-datalore-1  |    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
docker-compose-datalore-1  |    at jdk.proxy3/jdk.proxy3.$Proxy145.updateGroupsFromHub(Unknown Source)
docker-compose-datalore-1  |    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
docker-compose-datalore-1  |    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
docker-compose-datalore-1  |    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
docker-compose-datalore-1  |    at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
docker-compose-datalore-1  |    at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
docker-compose-datalore-1  |    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.lang.Thread.run(Unknown Source)
docker-compose-datalore-1  | Caused by: java.net.ConnectException: Connection refused
docker-compose-datalore-1  |    at java.base/sun.nio.ch.Net.connect0(Native Method)
docker-compose-datalore-1  |    at java.base/sun.nio.ch.Net.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.nio.ch.Net.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.nio.ch.NioSocketImpl.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.net.Socket.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.NetworkClient.doConnect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.<init>(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.net.HttpURLConnection.getResponseCode(Unknown Source)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:378)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:267)
docker-compose-datalore-1  |    ... 48 common frames omitted

Here is docker-compose.yaml

version: "3.9"
services:
  datalore:
    image: jetbrains/datalore-server:2022.3
    ports:
      - "8080:8080"
    expose: [ "8081", "5050", "4060" ]
    networks:
      - datalore-backend-network
    volumes:
      - "/opt/jetbrains/datalore/data:/opt/data"
      - "/var/run/docker.sock:/var/run/docker.sock"
    environment:
      DB_PASSWORD: "password"
      DB_USER: "username"
      DB_URL: "jdbc:postgresql://172.16.40.250:5432/datalore"
      HUB_PUBLIC_BASE_URL: "http://172.16.40.250:8082/hub"
      HUB_DATALORE_SERVICE_ID: "2c8caadc-a3db-4b9e-9ac8-5b36365488fa"
      HUB_DATALORE_SERVICE_SECRET: "zkjYtLOBVwxe"
      HUB_PERM_TOKEN: "perm:YWRtaW4=.NDQtMA==.jVN3xblFxkPkaXMD0HexOU7QijbcyV"
      HUB_FORCE_EMAIL_VERIFICATION: "false"
      TZ: "Asia/Shanghai"
    depends_on:
      - hub

  hub:
    image: jetbrains/hub:2022.3.15181
    ports:
      - "8082:8080"
      - "8443:8443"
    networks:
      - datalore-backend-network
    volumes:
      - "/opt/jetbrains/hub/data:/opt/hub/data"
      - "/opt/jetbrains/hub/conf:/opt/hub/conf"
      - "/opt/jetbrains/hub/log:/opt/hub/logs"
      - "/opt/jetbrains/hub/backup:/opt/hub/backups"
    environment:
      TZ: "Asia/Shanghai"

networks:
  datalore-backend-network:
    name: datalore-backend-network

Hi @wzhy ,

Please verify URL settings in Hub (Home URL and Base URL for Datalore service).

It may also help to specify DATALORE_PUBLIC_URL: "http://172.16.40.250:8080/" in Datalore environment.

Hope this answers your question!

Best regards,
Igor Medovolkin
QA Engineer in Datalore

Hi @igro,
I add DATALORE_PUBLIC_URL: "http://172.16.40.250:8080" in Datalore environment, then Datalore can redirect browser to Hub.
But after accepting the request, the browser gets HTTP ERROR 500 and log keeps the same error.


docker-compose-datalore-1  | 10:20:04.430 INFO  [taskScheduler-1] j.d.u.s.impl.groups.HubGroupsServiceImpl No Hub events have been ever processed. Importing initial Hub groups.
docker-compose-datalore-1  | 10:20:04.441 ERROR [taskScheduler-1] o.s.s.s.TaskUtils$LoggingErrorHandler    Unexpected error occurred in scheduled task
docker-compose-datalore-1  | javax.ws.rs.ProcessingException: java.net.ConnectException: Connection refused
docker-compose-datalore-1  |    at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:269)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:297)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$1(JerseyInvocation.java:675)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.call(JerseyInvocation.java:697)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.lambda$runInScope$3(JerseyInvocation.java:691)
docker-compose-datalore-1  |    at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
docker-compose-datalore-1  |    at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
docker-compose-datalore-1  |    at org.glassfish.jersey.internal.Errors.process(Errors.java:205)
docker-compose-datalore-1  |    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:390)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.runInScope(JerseyInvocation.java:691)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:674)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:422)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:318)
docker-compose-datalore-1  |    at jetbrains.jetpass.client.oauth2.OAuth2Client.getHubScope(OAuth2Client.kt:45)
docker-compose-datalore-1  |    at jetbrains.jetpass.client.hub.HubClient.getAccountsClient(HubClient.kt:51)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.hub.b.invoke(b.java:7)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.hub.b.invoke(b.java:1)
docker-compose-datalore-1  |    at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.hub.LazyHubAccountsClient.a(LazyHubAccountsClient.kt:9)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.hub.LazyHubAccountsClient.getEventClient(LazyHubAccountsClient.kt:10)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.groups.HubGroupsServiceImpl.c(HubGroupsServiceImpl.kt:170)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.groups.HubGroupsServiceImpl.a(HubGroupsServiceImpl.kt:6)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.groups.HubGroupsServiceImpl.a(HubGroupsServiceImpl.kt:135)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.groups.HubGroupsServiceImpl.updateGroupsFromHub(HubGroupsServiceImpl.kt:264)
docker-compose-datalore-1  |    at jdk.internal.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
docker-compose-datalore-1  |    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
docker-compose-datalore-1  |    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
docker-compose-datalore-1  |    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
docker-compose-datalore-1  |    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
docker-compose-datalore-1  |    at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
docker-compose-datalore-1  |    at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388)
docker-compose-datalore-1  |    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
docker-compose-datalore-1  |    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
docker-compose-datalore-1  |    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
docker-compose-datalore-1  |    at jdk.proxy3/jdk.proxy3.$Proxy145.updateGroupsFromHub(Unknown Source)
docker-compose-datalore-1  |    at jdk.internal.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
docker-compose-datalore-1  |    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
docker-compose-datalore-1  |    at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
docker-compose-datalore-1  |    at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
docker-compose-datalore-1  |    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.lang.Thread.run(Unknown Source)
docker-compose-datalore-1  | Caused by: java.net.ConnectException: Connection refused
docker-compose-datalore-1  |    at java.base/sun.nio.ch.Net.connect0(Native Method)
docker-compose-datalore-1  |    at java.base/sun.nio.ch.Net.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.nio.ch.Net.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.nio.ch.NioSocketImpl.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.net.Socket.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.NetworkClient.doConnect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.<init>(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.net.HttpURLConnection.getResponseCode(Unknown Source)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:378)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:267)
docker-compose-datalore-1  |    ... 46 common frames omitted

Have you marked “Datalore” service in Hub as trusted? Such error could occur if it is not trusted.

Datalore service is trusted in Hub.

According the following log, I think it is caused by something about the token. I recreated the token in Hub and updated docker compose.yaml, but it remains the same.

docker-compose-datalore-1  | 11:13:29.276 WARN  [qtp195615004-14] j.o.b.s.webmvc.ExceptionControllerAdvice Unhandled exception from spring controllers while processing GET request for url /api/hub/openid/login?code=f8kgX7R6&state=xSFjwd
docker-compose-datalore-1  | java.net.ConnectException: Connection refused
docker-compose-datalore-1  |    at java.base/sun.nio.ch.Net.connect0(Native Method)
docker-compose-datalore-1  |    at java.base/sun.nio.ch.Net.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.nio.ch.Net.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.nio.ch.NioSocketImpl.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.net.Socket.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.NetworkClient.doConnect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.<init>(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.net.HttpURLConnection.getResponseCode(Unknown Source)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.internal.HttpUrlConnector.handleException(HttpUrlConnector.java:549)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:375)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:267)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:297)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$0(JerseyInvocation.java:662)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.call(JerseyInvocation.java:697)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.lambda$runInScope$3(JerseyInvocation.java:691)
docker-compose-datalore-1  |    at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
docker-compose-datalore-1  |    at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
docker-compose-datalore-1  |    at org.glassfish.jersey.internal.Errors.process(Errors.java:205)
docker-compose-datalore-1  |    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:390)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.runInScope(JerseyInvocation.java:691)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:661)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:439)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:345)
docker-compose-datalore-1  |    at jetbrains.jetpass.client.oauth2.SimpleTokenLoader.loadAccessToken(SimpleTokenLoader.kt:49)
docker-compose-datalore-1  |    at jetbrains.jetpass.client.oauth2.token.OAuth2TokenFlow.getTokenData(OAuth2TokenFlow.kt:71)
docker-compose-datalore-1  |    at jetbrains.jetpass.client.oauth2.token.OAuth2TokenFlow.getToken(OAuth2TokenFlow.kt:40)
docker-compose-datalore-1  |    at jetbrains.jetpass.client.oauth2.token.OAuth2TokenFlow.getHeader(OAuth2TokenFlow.kt:92)
docker-compose-datalore-1  |    at jetbrains.jetpass.client.accounts.HubClientUtilKt.authenticate(HubClientUtil.kt:81)
docker-compose-datalore-1  |    at jetbrains.jetpass.client.accounts.UserClient.getUser(UserClient.kt:755)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.hub.HubOAuthController.a(HubOAuthController.kt:59)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.hub.HubOAuthController.process(HubOAuthController.kt:72)
docker-compose-datalore-1  |    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
docker-compose-datalore-1  |    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
docker-compose-datalore-1  |    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
docker-compose-datalore-1  |    at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
docker-compose-datalore-1  |    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
docker-compose-datalore-1  |    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
docker-compose-datalore-1  |    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
docker-compose-datalore-1  |    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
docker-compose-datalore-1  |    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
docker-compose-datalore-1  |    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067)
docker-compose-datalore-1  |    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)
docker-compose-datalore-1  |    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
docker-compose-datalore-1  |    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
docker-compose-datalore-1  |    at javax.servlet.http.HttpServlet.service(HttpServlet.java:503)
docker-compose-datalore-1  |    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
docker-compose-datalore-1  |    at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
docker-compose-datalore-1  |    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)
docker-compose-datalore-1  |    at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1624)
docker-compose-datalore-1  |    at org.eclipse.jetty.websocket.servlet.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:164)
docker-compose-datalore-1  |    at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
docker-compose-datalore-1  |    at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.api.audit.AuditHttpAccessFilter.doFilter(AuditHttpAccessFilter.kt:3)
docker-compose-datalore-1  |    at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
docker-compose-datalore-1  |    at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
docker-compose-datalore-1  |    at jetbrains.datalore.services.local.InternalApiFilter.doFilter(InternalApiFilter.kt:10)
docker-compose-datalore-1  |    at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
docker-compose-datalore-1  |    at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
docker-compose-datalore-1  |    at org.springframework.session.web.http.SessionRepositoryFilter.doFilterInternal(SessionRepositoryFilter.java:141)
docker-compose-datalore-1  |    at org.springframework.session.web.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:82)
docker-compose-datalore-1  |    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:354)
docker-compose-datalore-1  |    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:267)
docker-compose-datalore-1  |    at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
docker-compose-datalore-1  |    at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
docker-compose-datalore-1  |    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:506)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)
docker-compose-datalore-1  |    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1571)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1378)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)
docker-compose-datalore-1  |    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:463)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1544)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1300)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:51)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.Server.handle(Server.java:562)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:418)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:675)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:410)
docker-compose-datalore-1  |    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282)
docker-compose-datalore-1  |    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:319)
docker-compose-datalore-1  |    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)
docker-compose-datalore-1  |    at org.eclipse.jetty.io.SocketChannelEndPoint$1.run(SocketChannelEndPoint.java:101)
docker-compose-datalore-1  |    at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:412)
docker-compose-datalore-1  |    at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:381)
docker-compose-datalore-1  |    at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:268)
docker-compose-datalore-1  |    at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:138)
docker-compose-datalore-1  |    at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:407)
docker-compose-datalore-1  |    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:894)
docker-compose-datalore-1  |    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1038)
docker-compose-datalore-1  |    at java.base/java.lang.Thread.run(Unknown Source)
docker-compose-datalore-1  | 11:13:34.457 INFO  [taskScheduler-3] j.d.u.s.impl.groups.HubGroupsServiceImpl No Hub events have been ever processed. Importing initial Hub groups.
docker-compose-datalore-1  | 11:13:34.470 ERROR [taskScheduler-3] o.s.s.s.TaskUtils$LoggingErrorHandler    Unexpected error occurred in scheduled task
docker-compose-datalore-1  | javax.ws.rs.ProcessingException: java.net.ConnectException: Connection refused
docker-compose-datalore-1  |    at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:269)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:297)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$1(JerseyInvocation.java:675)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.call(JerseyInvocation.java:697)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.lambda$runInScope$3(JerseyInvocation.java:691)
docker-compose-datalore-1  |    at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
docker-compose-datalore-1  |    at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
docker-compose-datalore-1  |    at org.glassfish.jersey.internal.Errors.process(Errors.java:205)
docker-compose-datalore-1  |    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:390)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.runInScope(JerseyInvocation.java:691)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:674)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:422)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:318)
docker-compose-datalore-1  |    at jetbrains.jetpass.client.oauth2.OAuth2Client.getHubScope(OAuth2Client.kt:45)
docker-compose-datalore-1  |    at jetbrains.jetpass.client.hub.HubClient.getAccountsClient(HubClient.kt:51)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.hub.b.invoke(b.java:7)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.hub.b.invoke(b.java:1)
docker-compose-datalore-1  |    at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.hub.LazyHubAccountsClient.a(LazyHubAccountsClient.kt:9)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.hub.LazyHubAccountsClient.getEventClient(LazyHubAccountsClient.kt:10)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.groups.HubGroupsServiceImpl.c(HubGroupsServiceImpl.kt:170)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.groups.HubGroupsServiceImpl.a(HubGroupsServiceImpl.kt:6)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.groups.HubGroupsServiceImpl.a(HubGroupsServiceImpl.kt:135)
docker-compose-datalore-1  |    at jetbrains.datalore.userManagement.server.impl.groups.HubGroupsServiceImpl.updateGroupsFromHub(HubGroupsServiceImpl.kt:264)
docker-compose-datalore-1  |    at jdk.internal.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
docker-compose-datalore-1  |    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
docker-compose-datalore-1  |    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
docker-compose-datalore-1  |    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
docker-compose-datalore-1  |    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
docker-compose-datalore-1  |    at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
docker-compose-datalore-1  |    at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388)
docker-compose-datalore-1  |    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
docker-compose-datalore-1  |    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
docker-compose-datalore-1  |    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
docker-compose-datalore-1  |    at jdk.proxy3/jdk.proxy3.$Proxy145.updateGroupsFromHub(Unknown Source)
docker-compose-datalore-1  |    at jdk.internal.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
docker-compose-datalore-1  |    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
docker-compose-datalore-1  |    at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
docker-compose-datalore-1  |    at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
docker-compose-datalore-1  |    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.lang.Thread.run(Unknown Source)
docker-compose-datalore-1  | Caused by: java.net.ConnectException: Connection refused
docker-compose-datalore-1  |    at java.base/sun.nio.ch.Net.connect0(Native Method)
docker-compose-datalore-1  |    at java.base/sun.nio.ch.Net.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.nio.ch.Net.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.nio.ch.NioSocketImpl.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.net.Socket.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.NetworkClient.doConnect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.<init>(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
docker-compose-datalore-1  |    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
docker-compose-datalore-1  |    at java.base/java.net.HttpURLConnection.getResponseCode(Unknown Source)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:378)
docker-compose-datalore-1  |    at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:267)
docker-compose-datalore-1  |    ... 46 common frames omitted

Is there any update about this?

I am having exactly the same problem. I followed the instructions here, but I am getting “ERROR [taskScheduler-1] o.s.s.s.TaskUtils$LoggingErrorHandler Unexpected error occurred in scheduled task
docker-compose-datalore-1 | javax.ws.rs.ProcessingException: java.net.ConnectException: Connection refused” as above.

We didn’t manage to reproduce the error on our setup, but another customer with the same error found a typo in his config that was causing this behavior.

If you also run into this problem, please provide more information about your installation and attach configuration files (edit secrets beforehand), you can send this information to me personally via DM.

Thank you!

Best regards,
Igor Medovolkin
QA Engineer in Datalore

We are running into this same issue with 2023.2

docker-compose-hub-1 | * Starting Bundle Hub Configurator
docker-compose-datalore-1 | 19:37:19.969 ERROR [taskScheduler-4] o.s.s.s.TaskUtils$LoggingErrorHandler Unexpected error occurred in scheduled task
docker-compose-datalore-1 | javax.ws.rs.ProcessingException: java.net.ConnectException: Connection refused

cat docker-compose.yaml
version: "3.9"
services:
  datalore:
    image: jetbrains/datalore-server:2023.2
    ports:
      - "8080:8080"
    expose: [ "8081", "5050", "4060" ]
    networks:
      - datalore-agents-network
      - datalore-backend-network
    volumes:
      - "datalore-storage:/opt/data"
      - "/var/run/docker.sock:/var/run/docker.sock"
    environment:
      DATALORE_PUBLIC_URL: "http://datalore.camgian.com:8080"
      DB_PASSWORD: "REMOVED"
      DATABASES_DOCKER_NETWORK: "datalore-agents-network"
      SQL_SESSION_DOCKER_NETWORK: "datalore-agents-network"
      HUB_PUBLIC_BASE_URL: "http://dl-camgian.camgian.com:8082/hub"
      HUB_DATALORE_SERVICE_ID: "417e218e-8065-4e21-a544-1066b54245c7"
      HUB_DATALORE_SERVICE_SECRET: "REMOVED"
      HUB_PERM_TOKEN: "perm:REMOVED"
      HUB_FORCE_EMAIL_VERIFICATION: "false"
  postgresql:
    image: jetbrains/datalore-postgres:2023.2
    expose: [ "5432" ]
    networks:
      - datalore-backend-network
    volumes:
      - "postgresql-data:/var/lib/postgresql/data"
    environment:
      POSTGRES_PASSWORD: "REMOVED"
  hub:
    image: jetbrains/hub:2022.2.15039
    ports:
      - "8082:8080"
    networks:
      - datalore-backend-network
    volumes:
      - "hub-data:/data/hub/data"
      - "hub-conf:/data/hub/conf"
      - "hub-logs:/data/hub/logs"
      - "hub-backups:/data/hub/backups"
volumes:
  postgresql-data: { }
  datalore-storage: { }
  hub-data: { }
  hub-conf: { }
  hub-logs: { }
  hub-backups: { }
networks:
  datalore-agents-network:
    name: datalore-agents-network
  datalore-backend-network:
    name: datalore-backend-network

Hello @camgian,

You might also need to specify HUB_INTERNAL_BASE_URL (required when HUB_PUBLIC_BASE_URL is only available from outside and not inside the cluster).

Please let me know if it solves the issue for you, thank you!

Best regards,
Igor Medovolkin
QA Engineer in Datalore

A post was split to a new topic: Cannot load token: Not Found