Problem Login in NativeAuth after upgrade_db

Hello, I have stopped having network authorisation working.
Initially I was running an old jupyterhub with the following config:

import os
c = get_config()  # noqa: F821c.JupyterHub.spawner_class = "dockerspawner.DockerSpawner"c.DockerSpawner.image = os.environ["DOCKER_NOTEBOOK_IMAGE"]
spawn_cmd = os.environ.get("DOCKER_SPAWN_CMD", "start-singleuser.sh")
c.DockerSpawner.cmd = spawn_cmd
network_name = os.environ["DOCKER_NETWORK_NAME"]
c.DockerSpawner.use_internal_ip = Truec.DockerSpawner.network_name = network_name
notebook_dir = os.environ.get("DOCKER_NOTEBOOK_DIR", "/home/jovyan/work")
c.DockerSpawner.notebook_dir = notebook_dir
c.DockerSpawner.volumes = {"jupyterhub-user-{username}": notebook_dir}
c.DockerSpawner.remove = Truec.DockerSpawner.debug = Truec.JupyterHub.hub_ip = "jupyterhub"c.JupyterHub.hub_port = 8080c.JupyterHub.cookie_secret_file = "/data/jupyterhub_cookie_secret"c.JupyterHub.db_url = "sqlite:////data/jupyterhub.sqlite"c.JupyterHub.authenticator_class = "nativeauthenticator.NativeAuthenticator"c.NativeAuthenticator.open_signup = Truec.JupyterHub.services = [
    {
        'name': 'cull-idle',        'admin': True,        'command': 'python cull_idle_servers.py --timeout=3600'.split()
    }
]
admin = os.environ.get("JUPYTERHUB_ADMIN")
if admin:
    c.Authenticator.admin_users = [admin]

After re-lifting I got an error about the necessity of updating the database and the upgrade_db call connector, I re-lifted it.
Then there was a problem with authorisation, that is, when registering new users it allows you to create them (it is important that it writes that there is and at the same time when trying to register the same user writes an error). Also when trying to log in under old users, it gives an error, although the password is exactly correct.
I saw that there may not be enough accesses for the database file and so through chmod added seem to be all right.
I would be grateful for help

Can you turn on debug logging, restart, and show us your logs? They’ll hopefully contain information on what’s failing.