Skip to content

Error embedding into AnythingLLM: Error adding files to anythingLLM: Expecting value: line 1 column 1 (char 0) #8

@DrGump

Description

@DrGump

Hi, is this script still being maintained? I'm very interested in using it.
It appears I have it working up until the last step: embedding into AnythingLLM. It is not creating the workspaces and continues to find the same 129 files to add.
I'm using AnythingLLM desktop version and it is open. It is also running on the same machine as Ollama.
It gives the error shown in the log below and says that it deleted the folder Journal 2000 but the folder is not empty and it hasn't actually deleted the folder.

My .env:

ANYTHING_LLM_API=secret
ANYTHING_LLM_URL=http://host.docker.internal:3001

USE_CRON=true #if true, then it updates based on timings. If false, you can only update via post request to localhost:PORT/update_files/update/
CHECK_FILES_CRON=*/5 * * * * #Every five minutes
CREATE_WORKSPACES=true #automatically creates workspaces when new folders have been detected

OLLAMA_URL=http://192.168.50.6:11434/api/generate
IMAGE_DESCRIPTION_ACTIVATE=true
IMAGE_DESCRIPTION_MODEL=gemma3:12b
IMAGE_DESCRIPTION_LANGUAGE=english

SORT_FILES=false
DELETE_UNUSED_FOLDERS=false

VERBOSE=true

My docker yaml:

services:
web:
build:
context: .
container_name: any_folder
image: any_folder
volumes:
- static_volume:/app/static
- storage_volume:/app/storage
- database_volume:/app/database
- C:\Users\joelb\LOCAL-OBSIDIAN\Well Being:/app/AnythingLLM
# - C:\MySecondFolder:/app/AnythingLLM2
env_file:
- .env
environment:
- DJANGO_SETTINGS_MODULE=main.settings
- PYTHONPATH=/app
- DATABASE_DIR=/app/database
- STORAGE_DIR=/app/storage
- HOST_FOLDER=/app/AnythingLLM
- PORT=8000
ports:
- "8000:8000"
extra_hosts:
- "host.docker.internal:host-gateway"
tty: true
stdin_open: true
restart: always
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"

volumes:
static_volume:
storage_volume:
database_volume:

Partial LOG:

any_folder | Found 129 files to add, 0 files that changed and 0 files that got deleted. Updating AnythingLLM now
any_folder | Uploading file /app/AnythingLLM/JOURNALS/2000 Journal/All Year 2000.md to AnythingLLM: http://host.docker.internal:3001/api/v1/document/upload/
any_folder | Error adding files to anythingLLM: Expecting value: line 1 column 1 (char 0)
any_folder | Workspaces to update: {}
any_folder | Deleted folder: 2000-journal

any_folder | Done Updating, task was successful. 0 documents in DB
any_folder | Done Updating, task was successful. Found 129 files to add, 0 files that changed and 0 files that got deleted.
any_folder | Processed 'check_for_files.tasks.main' (delaware-timing-bacon-vermont)

Thank you very much for your assistance.

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