Skip to content

Missing Models #1180

@JOduMonT

Description

@JOduMonT

Server

  • Cloud (https://app.khoj.dev)
  • Self-Hosted Docker
  • Self-Hosted Python package
  • Self-Hosted source code

Clients

  • Web browser
  • Desktop/mobile app
  • Obsidian
  • Emacs
  • WhatsApp

OS

  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Khoj version

1.41.0

Describe the bug

So I migrated my server lately (this week) and
in my khoj

I tried

  • with khoj-cloud and khoj
  • by wiping my data but not my variables

with khoj-cloud I simply have no agent and no model available,
while with khoj; I have the default agent khoj and only few models;

Image

in both if I use docker logs khoj (the name of my khoj container) I see one error:

/usr/local/lib/python3.10/dist-packages/django/db/models/fields/init.py:1665: RuntimeWarning: DateTimeField Conversation.updated_at received a naive datetime (2025-05-08 15:03:18.662590) while time zone support is active.
warnings.warn(

Current Behavior

  • missing agents and models

Expected Behavior

  • having agents and models

Reproduction Steps

  1. Download the Khoj docker-compose.yml file from Github
mkdir ~/.khoj && cd ~/.khoj
wget https://raw.githubusercontent.com/khoj-ai/khoj/master/docker-compose.yml
  1. Configure the environment variables in the docker-compose.yml
  • Set KHOJ_ADMIN_PASSWORD, KHOJ_DJANGO_SECRET_KEY (and optionally the KHOJ_ADMIN_EMAIL) to something secure. This allows you to customize Khoj later via the admin panel.
  • Set OPENAI_API_KEY, ANTHROPIC_API_KEY, or GEMINI_API_KEY to your API key if you want to use OpenAI, Anthropic or Gemini commercial chat models respectively.
  1. Start Khoj by running the following command in the same directory as your docker-compose.yml file.
cd ~/.khoj
docker-compose up

Possible Workaround

No response

Additional Information

No response

Link to Discord or Github discussion

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixFix something that isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions