Setting up new jupyter

Hi,

We are trying to setup a new jupyter server but we are getting the error below. Am i missing some configuration here? we are able to login to Jupyter but not able to start the “My Server”

500 : Internal Server Error

Failed to start your server on the last attempt. Please contact admin if the issue persists.
You can try restarting your server from the home page.

Also under Admin when we try to start the user instance it throws the error below.

API request failed (500): error

Please share your jupyterhub configuration, how you installed, package versions, and the jupyterhub logs (including startup) leading to the error.

Hi,

Below is the py file config and i have replace some info due to policy. We have copied the folder from another server to the new server and this normally work for us. Just for some reason not sure we are seeing this error now when we do the same for this server.

c.Authenticator.delete_invalid_users = True
c.JupyterHub.admin_access = True
c.JupyterHub.authenticator_class = ‘ldapauthenticator.LDAPAuthenticator’
c.LDAPAuthenticator.server_address = ‘AD server’
c.LDAPAuthenticator.use_ssl = True
c.LDAPAuthenticator.lookup_dn = True
c.LDAPAuthenticator.lookup_dn_search_filter = ‘(&(objectClass=*)({login_attr}={login}))’
c.LDAPAuthenticator.lookup_dn_search_user = ‘UserA’
c.LDAPAuthenticator.lookup_dn_search_password = “Password A”
c.LDAPAuthenticator.user_search_base = ‘Domain Name’
c.LDAPAuthenticator.user_attribute = ‘sLAccountName’
c.LDAPAuthenticator.lookup_dn_user_dn_attribute = ‘CN’
c.LDAPAuthenticator.escape_userdn = False
c.LDAPAuthenticator.bind_dn_template = [‘CN={username},OU=companyMY IDM Users,OU=Accounts,OU=MY,DC=companyMY,DC=companyDomain,DC=com’,‘CN={username},OU=companyIN Users,OU=Accounts,OU=MY,DC=companyMY,DC=companyDomain,DC=com’,‘CN={username},OU=GIOD GT,OU=Accounts,OU=MY,DC=companyMY,DC=companyDomain,DC=com’, ‘CN={username},OU=Users,OU=Department,OU=MBC,OU=MY,DC=companyMY,DC=companyDomain,DC=com’,‘CN={username},OU=L13,OU=Users,OU=CBBRDHCX,OU=Migration,OU=MY,DC=companyMY,DC=companyDomain,DC=com’]
c.JupyterHub.bind_url = ‘https://:port’
c.JupyterHub.config_file = ‘jupyterhub_config.py’
c.JupyterHub.cookie_max_age_days = float(0.0104)
c.JupyterHub.shutdown_on_logout = True
c.JupyterHub.ssl_cert = ‘/opt/thirdparty/jupyter/anaconda2/envs/py35/etc/jupyter/cert/ServerA.crt’
c.JupyterHub.ssl_key = ‘/opt/thirdparty/jupyter/anaconda2/envs/py35/etc/jupyter/cert/Server.key’
c.JupyterHub.tornado_settings = { ‘headers’: { ‘X-XSS-Protection’: ‘1; mode=block’, ‘X-Frame-Options’:‘DENY’, ‘X-Content-Type-Options’:‘nosniff’ } }
c.Spawner.notebook_dir = ‘/data/fol’
c.Authenticator.admin_users = {‘admin’}
c.PAMAuthenticator.open_sessions = False

jupyter notebook --version → 5.6.0
jupyter --version → 4.4.0
python -V → Python 2.7.15 :: Anaconda, Inc.
conda -V → conda 4.5.11

Hi Minrk…

Thanks for your feedback earlier. Manage to find the issue as the singleuser folder was not having sufficient permission and now it works fine.

1 Like