Skip to content

Error creating source: Failed to create record #112

@svonjoi

Description

@svonjoi

i was able to upload a simple 1-page pdf and its extracted and worked, using ollama, but nothing more

getting this error from the UI when trying to analize uploaded txt file. When uploading something else it can hang and kill my browser, or just throw this error

RuntimeError: API request failed: 500 - {"detail":"Error creating source: Failed to create record"}

File "/app/pages/stream_app/source.py", line 115, in add_source
    sources_service.create_source(
File "/app/api/sources_service.py", line 128, in create_source
    source_data = api_client.create_source(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/client.py", line 311, in create_source
    return self._make_request("POST", "/api/sources", json=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/client.py", line 49, in _make_request
    raise RuntimeError(

ollama is accesible:

Image

my dockercompose look like

services:
  open_notebook_single:
    image: lfnovo/open_notebook:latest-single
    ports:
      - "8502:8502" # Streamlit UI
      - "5055:5055" # REST API
    environment:
      - OLLAMA_API_BASE=http://host.docker.internal:11434
      # - OPENAI_API_KEY=sk-your-actual-key-here
      - SURREAL_URL=ws://localhost:8000/rpc
      - SURREAL_USER=root
      - SURREAL_PASSWORD=root
      - SURREAL_NAMESPACE=open_notebook
      - SURREAL_DATABASE=production
    volumes:
      - ./notebook_data:/app/data # Application data
      - ./surreal_single_data:/mydata # SurrealDB data
    restart: always

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions