Open t3chbg opened 4 years ago
which version of NativeAuthenticator where you using? I just updated the package on pip, could you check if this problem persists?
which version of NativeAuthenticator where you using? I just updated the package on pip, could you check if this problem persists?
Hi @leportella - I installed NativeAuthenticator as per instructions found here https://native-authenticator.readthedocs.io/en/latest/quickstart.html
git clone https://github.com/jupyterhub/nativeauthenticator.git
cd nativeauthenticator
pip install -e .
Git status output:
/opt/tljh/nativeauthenticator$ sudo git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
I see now that the error is because the authenticator can't find the original database:
'passwords.dbm' in ['passwords.dbm.dat', 'passwords.dbm.dir', 'jupyterhub.sqlite', 'passwords.dbm.bak'] or 'passwords.dbm.db' in ['passwords.dbm.dat', 'passwords.dbm.dir', 'jupyterhub.sqlite', 'passwords.dbm.bak']
Could you try with removing the importing users from FirstUse Auth option? If that works, please be sure to configure the correct database using the following confiugration:
c.Authenticator.firstuse_dbm_path = '/home/user/passwords.dbm'
@leportella no difference after removing the FirstUse Auth option.
If I recall accurately I added FirstUse Auth as troubleshooting step after experiencing issues. Just to confirm default folder path for passwords.dbm is /opt/tljh/state/passwords.dbm?
Current tljh config
users:
admin: []
https:
enabled: true
tls:
key: /etc/ssl/private/wildcard_ahri_org.key
cert: /etc/ssl/certs/wildcard_ahri_org.crt
auth:
type: nativeauthenticator.NativeAuthenticator
user_environment:
default_app: jupyterlab
Authenticator:
check_common_password: true
minimim_password_length: 10
allowed_failed_logins: 5
ask_email_on_signup: true
open_signup: true
limits:
memory: 8G
cpu: 1
@leportella i have exactly the same problem in the same config.
@t3chbg Did you find a fix to your problem?
@Paul-Barac not yet unfortunately.....
I noted this as well, but I haven't debugged this more in detail. Will try find time to do so in a few weeks, thanks for your effort to debug and document this experience so far! Note also that nativeauthenticator 1.0.5 has been released.
I think by using nativeauthenticator 1.0.5, and by configuring this in a jupyterhub config file:
import os
import nativeauthenticator
if not isinstance(c.JupyterHub.template_paths, list):
c.JupyterHub.template_paths = []
c.JupyterHub.template_paths.append(
f"{os.path.dirname(nativeauthenticator.__file__)}/templates/"
)
Things will work.
Having few issues with login and signup custom pages not displaying after enabling Native Authentication - jupyterhub/nativeauthenticator#69 suggestions do not seem to work for me and having trouble figuring out what the issues are.
Ran pytest ad getting 2 error and 2 warning messages. Also not sure if these errors are related to the issue or not.