Skip to content
Docs
Request access

Diagnose with nuramesh doctor

Available

nuramesh doctor checks the machine you are on and prints one line per check: PASS, WARN or FAIL, each with a hint when something needs doing. It changes nothing on the machine, and without --network-checks it connects nowhere.

  • NuraMesh installed (Install).
  • The environment the server will run with: run doctor in the same shell, or container, so it sees the same NURAMESH_ variables.
  1. Run the checks.

    Terminal window
    nuramesh doctor
    PASS python: Python 3.12.3 (needs 3.12 or newer)
    PASS port: 127.0.0.1:8765 is free
    PASS database: no NURAMESH_DATABASE_URL: runs use a local SQLite file
    WARN auth_key: NURAMESH_AUTH_KEY_FILE is not set: MFA enrolment is off
    fix: for MFA, put a 32-byte key in a mode 0600 file and set NURAMESH_AUTH_KEY_FILE to its path
    PASS docker: container runtime docker is available
    PASS extras: all extras are installed: yaml, server, content, postgres, langgraph, azure
    WARN email: NURAMESH_SMTP_HOST is not set: email is off
    fix: for sign-up mails set NURAMESH_SMTP_HOST, NURAMESH_SMTP_FROM, NURAMESH_PUBLIC_URL
    SKIPPED email_connect: mail server connection not tested
    fix: not run: add --network-checks to test the mail server connection
    PASS tls_proxy: no proxy and no custom CA bundle set
    PASS disk: 31101 MiB free here
    7 passed, 2 warnings, 0 failed, 1 not run

    Your lines will differ with your machine.

  2. Also test the connections, when you want to. This connects to the database (when NURAMESH_DATABASE_URL is set) and to the mail server.

    Terminal window
    nuramesh doctor --network-checks
  3. Check another address or port than the default, or get JSON for a script.

    Terminal window
    nuramesh doctor --port 9000 --output json
Check What it looks at
python the Python version
port whether the address and port nuramesh serve would use are free (--host, --port)
database whether a database URL is set; with --network-checks, whether it connects
auth_key the key file that two-step sign-in needs
docker a container runtime for the sandbox
extras which optional extras are installed
email, email_connect the outgoing email settings; with --network-checks, the connection to the mail server
tls_proxy proxy and CA bundle variables. It only reads the environment and never connects
disk free disk space in the current folder

The last line counts the results, for example 7 passed, 2 warnings, 0 failed, 1 not run. The exit code is 1 when a check failed and 0 otherwise. A WARN is a feature that is off, not an error.

You see Do this
FAIL on a line Follow the fix: hint under it, then run doctor again
SKIPPED The check needs --network-checks
WARN auth_key Two-step sign-in is off until the key file is set: Turn on two-step sign-in
WARN email Email is off until the SMTP settings are set: Outgoing email

Was this page helpful?