Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use tags cache at /mnt/abc/projects/xyz/.aider.tags.cache.v3, falling back to memory cache #2855

Open
mcfetz opened this issue Jan 13, 2025 · 1 comment

Comments

@mcfetz
Copy link

mcfetz commented Jan 13, 2025

Issue

We store our projects on a network share which is mounted using CIFS. Aider has problems creating the tags cache in the project folder. After starting aider, I get the following message:

Unable to use tags cache at /mnt/abc/projects/xyz/.aider.tags.cache.v3, falling back to memory cache

aider was able to create the subfolder .aider.tags.cache.v3 but doesn't create the cache.db.

If I copy the project folder to a local drive and start aider, I don't get the error. If I copy the cache.db from my local folder to the project on the network drive, the error is gone. Aider is now able to read and write the cache.db. I checked the tables with sqlite3 and I can see newly created rows.

Version and model info

aider -v
Config files search order, if no --config:
  - /mnt/dua/projects/xyz/.aider.conf.yml
  - /home/ddd/.aider.conf.yml (exists)

Loaded /home/ddd/.env
Too soon to check version: 7.5 hours
Command Line Args:   ...-v

Environment Variables:
  AIDER_OPENAI_API_KEY:...-
  AIDER_OPENAI_API_BASE:http://abc:4000/v1
Config File (/home/ddd/.aider.conf.yml):
  model:             openai/azure...-gpt...-4o
  weak...-model:        openai/azure...-gpt...-4o...-mini
  show...-model...-warnings:False
  git:               True
  subtree...-only:      True
  editor:            hx

Defaults:
  ...-...-set...-env:         []
  ...-...-api...-key:         []
  ...-...-model...-settings...-file:.aider.model.settings.yml
  ...-...-model...-metadata...-file:.aider.model.metadata.json
  ...-...-cache...-keepalive...-pings:0
  ...-...-map...-refresh:     auto
  ...-...-map...-multiplier...-no...-files:2
  ...-...-input...-history...-file:/mnt/dua/projects/xyz/.aider.input.history
  ...-...-chat...-history...-file:/mnt/dua/projects/xyz/.aider.chat.history.md
  ...-...-user...-input...-color:#00cc00
  ...-...-tool...-error...-color:#FF2222
  ...-...-tool...-warning...-color:#FFA500
  ...-...-assistant...-output...-color:#0088ff
  ...-...-code...-theme:      default
  ...-...-aiderignore:     /mnt/dua/projects/xyz/.aiderignore
  ...-...-lint...-cmd:        []
  ...-...-test...-cmd:        []
  ...-...-voice...-format:    wav
  ...-...-voice...-language:  en
  ...-...-encoding:        utf...-8
  ...-...-env...-file:        /mnt/dua/projects/xyz/.env

Option settings:
  - aiderignore: /mnt/dua/projects/xyz/.aiderignore
  - alias: None
  - analytics: None
  - analytics_disable: False
  - analytics_log: None
  - anthropic_api_key: None
  - api_key: []
  - apply: None
  - apply_clipboard_edits: False
  - assistant_output_color: #0088ff
  - attribute_author: True
  - attribute_commit_message_author: False
  - attribute_commit_message_committer: False
  - attribute_committer: True
  - auto_commits: True
  - auto_lint: True
  - auto_test: False
  - cache_keepalive_pings: 0
  - cache_prompts: False
  - chat_history_file: /mnt/dua/projects/xyz/.aider.chat.history.md
  - chat_language: None
  - check_update: True
  - code_theme: default
  - commit: False
  - commit_prompt: None
  - completion_menu_bg_color: None
  - completion_menu_color: None
  - completion_menu_current_bg_color: None
  - completion_menu_current_color: None
  - config: None
  - copy_paste: False
  - dark_mode: False
  - detect_urls: True
  - dirty_commits: True
  - dry_run: False
  - edit_format: None
  - editor: hx
  - editor_edit_format: None
  - editor_model: None
  - encoding: utf...-8
  - env_file: /mnt/dua/project/sxyz/.env
  - exit: False
  - fancy_input: True
  - file: None
  - files: []
  - git: True
  - gitignore: True
  - gui: False
  - input_history_file: /mnt/dua/projects/xyz/.aider.input.history
  - install_main_branch: False
  - just_check_update: False
  - light_mode: False
  - lint: False
  - lint_cmd: []
  - list_models: None
  - llm_history_file: None
  - load: None
  - map_multiplier_no_files: 2
  - map_refresh: auto
  - map_tokens: None
  - max_chat_history_tokens: None
  - message: None
  - message_file: None
  - model: openai/azure...-gpt...-4o
  - model_metadata_file: .aider.model.metadata.json
  - model_settings_file: .aider.model.settings.yml
  - multiline: False
  - openai_api_base: http://abc:4000/v1
  - openai_api_deployment_id: None
  - openai_api_key: ...-
  - openai_api_type: None
  - openai_api_version: None
  - openai_organization_id: None
  - pretty: True
  - read: None
  - restore_chat_history: False
  - set_env: []
  - show_diffs: False
  - show_model_warnings: False
  - show_prompts: False
  - show_release_notes: None
  - show_repo_map: False
  - skip_sanity_check_repo: False
  - stream: True
  - subtree_only: True
  - suggest_shell_commands: True
  - test: False
  - test_cmd: []
  - timeout: None
  - tool_error_color: #FF2222
  - tool_output_color: None
  - tool_warning_color: #FFA500
  - upgrade: False
  - user_input_color: #00cc00
  - verbose: True
  - verify_ssl: True
  - vim: False
  - voice_format: wav
  - voice_input_device: None
  - voice_language: en
  - watch_files: False
  - weak_model: openai/azure...-gpt...-4o...-mini
  - yes_always: None

Checking imports for version 0.71.1 and executable /usr/bin/python3
Installs file: /home/ddd/.aider/installs.json
Installs file exists and loaded
Not first run, loading imports in background thread
No model settings files loaded
Searched for model settings files:
  - /home/ddd/.aider.model.settings.yml
  - /mnt/dua/projects/xyz/.aider.model.settings.yml
Loaded model metadata from:
  - /home/ddd/.aider.model.metadata.json
Model metadata:
{
    "key": "azure-gpt-4o",
    "max_tokens": 4096,
    "max_input_tokens": 128000,
    "max_output_tokens": 16384,
    "input_cost_per_token": 2.39866e-06,
    "cache_creation_input_token_cost": null,
    "cache_read_input_token_cost": null,
    "input_cost_per_character": null,
    "input_cost_per_token_above_128k_tokens": null,
    "input_cost_per_query": null,
    "input_cost_per_second": null,
    "input_cost_per_audio_token": null,
    "output_cost_per_token": 9.5947e-06,
    "output_cost_per_audio_token": null,
    "output_cost_per_character": null,
    "output_cost_per_token_above_128k_tokens": null,
    "output_cost_per_character_above_128k_tokens": null,
    "output_cost_per_second": null,
    "output_cost_per_image": null,
    "output_vector_size": null,
    "litellm_provider": "openai",
    "mode": "chat",
    "supported_openai_params": [
        "frequency_penalty",
        "logit_bias",
        "logprobs",
        "top_logprobs",
        "max_tokens",
        "max_completion_tokens",
        "modalities",
        "prediction",
        "n",
        "presence_penalty",
        "seed",
        "stop",
        "stream",
        "stream_options",
        "temperature",
        "top_p",
        "tools",
        "tool_choice",
        "function_call",
        "functions",
        "max_retries",
        "extra_headers",
        "parallel_tool_calls",
        "response_format"
    ],
    "supports_system_messages": null,
    "supports_response_schema": null,
    "supports_vision": false,
    "supports_function_calling": false,
    "supports_assistant_prefill": false,
    "supports_prompt_caching": false,
    "supports_audio_input": false,
    "supports_audio_output": false,
    "supports_pdf_input": false,
    "tpm": null,
    "rpm": null
}
Model settings:
cache_control: false
caches_by_default: false
edit_format: "diff"
editor_edit_format: "diff"
editor_model_name: null
examples_as_sys_msg: false
extra_params: null
lazy: false
name: "openai/azure-gpt-4o"
reminder: "user"
send_undo_reply: true
streaming: true
use_repo_map: true
use_system_prompt: true
use_temperature: true
weak_model_name: "openai/azure-gpt-4o-mini"
Tags cache error: database is locked
Unable to use tags cache at /mnt/dua/projects/xyz/.aider.tags.cache.v3, falling back to memory cache
Cache recreation error: [Errno 39] Directory not empty: '/mnt/dua/projects/xyz/.aider.tags.cache.v3'
RepoMap initialized with map_mul_no_files: 2
Aider v0.71.1
Main model: openai/azure-gpt-4o with diff edit format
Weak model: openai/azure-gpt-4o-mini
Git repo: .git with 11 files
Repo-map: using 4096 tokens, auto refresh

@coredevorg
Copy link

Hi @mcfetz, I encountered the same problem and created patch that allows me to move the cache directory to a local device. See PR #2911 for details. Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants