question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hub_connect_ip, hub_connect_port, hub_connect_url - ?

See original GitHub issue

I ran into this warning while starting up a JupyterHub deployed with z2jh.

[W 2018-08-01 10:17:10.155 JupyterHub app:1129] JupyterHub.hub_connect_port is deprecated as of 0.9. Use JupyterHub.hub_connect_url to fully specify the URL for connecting to the Hub.

This is what it looks like in the z2jh hub’s jupyterhub_config.py:

c.JupyterHub.base_url = get_config('hub.base_url')
c.JupyterHub.db_url = get_config('hub.db_url')
c.JupyterHub.ip = os.environ['PROXY_PUBLIC_SERVICE_HOST']
c.JupyterHub.port = int(os.environ['PROXY_PUBLIC_SERVICE_PORT'])

# the hub should listen on all interfaces, so the proxy can access it
c.JupyterHub.hub_ip = '0.0.0.0'
c.JupyterHub.hub_connect_ip = os.environ['HUB_SERVICE_HOST']
c.JupyterHub.hub_connect_port = int(os.environ['HUB_SERVICE_PORT'])

# Spawner related
# ------------------------------------------------------------------------------
# Gives spawned containers access to the API of the hub
c.KubeSpawner.hub_connect_ip = os.environ['HUB_SERVICE_HOST']
c.KubeSpawner.hub_connect_port = int(os.environ['HUB_SERVICE_PORT'])

KubeSpawner question

  • Do we need to make a change within kubespawner as well?

JupyterHub / Z2jh confirmation…

  • Does this seem right?
c.JupyterHub.hub_connect_url = '{host}:{port}'.format(
    host=os.environ['HUB_SERVICE_HOST'],
    port=os.environ['HUB_SERVICE_PORT']
)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
minrkcommented, Aug 18, 2018

Do we need to make a change within kubespawner as well?

The kubespawner hub_connect logic should be deprecated, in favor of the JupyterHub config

JupyterHub 0.8 (or 0.7?) added hub_connect config itself, which had been implemented in a few different Spawners. The Spawner implementations should be slowly deprecated, instead relying on the hub config. The first step is to have the Spawner values default to the Hub config, with a warning when they are overridden directly.

0reactions
consideRatiocommented, Oct 25, 2020

We have updated the connection settings in jupyterhub_config.py part of the JupyterHub helm chart.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HubConnection Class (Microsoft.AspNetCore.SignalR.Client)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. HubConnectionBuilder Class (Microsoft.AspNetCore.SignalR ...
Read more >
How to use existing SignalR hubconnection in different pages ...
I have Blazor application (client and Server). In client application hub connection initialized in mainLayout with this code:
Read more >
SignalR-Client-Swift/HubConnection.swift at master - GitHub
`HubConnection` is the client for interacting with SignalR server. It allows invoking server side hub methods and register handlers for client side methods....
Read more >
SignalR modules with a shared connection using a C# Source ...
When we register a handler using the HubConnection.On method, it returns an IDisposable that can be used to unsubscribe from the hub method....
Read more >
HubConnection | Documentation - Tivadar György Nagy
The HubConnection class is the main entry point for a SignalR Core connection. Protocols. SignalR Core supports different protocols to encode its messages ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found