Skip to content

olaf query ignores db_folder from config on Windows (v0.7.3) #59

@vipin2310

Description

@vipin2310

Hi, I just downloaded the latest Release (v0.7.3) for Windows:
olaf_cli-windows-x86_64.zip

After setting it up, I updated the paths in the olaf_config.json so that they point to the location where the database is stored.

  • Running olaf stats works as expected: it correctly finds the database in the configured db_folder.
  • Running olaf query audiofilename.wav does not use the configured db_folder and instead outputs:
    No home directory found, will use './db' as db folder

Workaround:

If I manually create a ./db/ folder and copy the database there, olaf query works. It also correctly applies other config parameters (e.g., "max_db_collisions": 35000). This suggests the issue is limited to db_folder not being respected by the query command.

Steps to Reproduce:

  1. Download and extract v0.7.3 Windows release.
  2. Configure olaf_config.json with an absolute db_folder path.
  3. Run olaf stats → works correctly.
  4. Run olaf query audiofilename.wav → ignores db_folder and falls back to ./db.

Environment:

  • Olaf version: v0.7.3 (Windows release)
  • OS: Windows 11
  • Config:
    {
        "db_folder": "C:/Users/username/.olaf/db",
        "cache_folder": "C:/Users/username/.olaf/cache",
        "fragment_duration_in_seconds": 45,
        "allowed_audio_file_extensions": [".mp3", ".wav"],
    
        "target_sample_rate": 16000,
        "max_db_collisions": 35000
     }
    

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