chaz icon indicating copy to clipboard operation
chaz copied to clipboard

Failed to load config at '/root/.config/aichat/config.yaml'

Open phdelodder opened this issue 1 year ago • 2 comments

When interacting with Chaz I get the following error:

!chaz Error: Error: Failed to load config at '/root/.config/aichat/config.yaml'  Caused by:     No such file or directory (os error 2) 

Docker:

  chaz:
    image: arcuru/chaz:main # Set to your desired version
    container_name: chaz
    restart: unless-stopped
    network_mode: host
    volumes:
      # Mount your config file to /config.yaml
      - /opt/synapse/chaz/config.yaml:/config.yaml
      # Mount your aichat config to /aichat, AND SET THAT LOCATION IN CHAZ'S CONFIG.YAML
      - /opt/synapse/chaz/aichat-state:/aichat
      - /opt/synapse/chaz/aichat.yaml:/aichat/config.yaml
      # Mount the volume into the same location specified in config.yaml
      - /opt/synapse/chaz/state:/state

config.yaml:

homeserver_url: https://matrix.example.something
username: "chaz"
password: "password"
state_dir: "/state"
aichat_config_dir: "/aichat"
allow_list: "@.*:.example.something"

phdelodder avatar Nov 05 '24 08:11 phdelodder

Thanks for the report! It seems that I broke that setting in the latest update.

As a workaround until I get the chance to fix it, removing the aichat_config_dir from your config.yaml and mounting the files into the default directory should work.

Docker:

  chaz:
    image: arcuru/chaz:main # Set to your desired version
    container_name: chaz
    restart: unless-stopped
    network_mode: host
    volumes:
      # Mount your config file to /config.yaml
      - /opt/synapse/chaz/config.yaml:/config.yaml
      # Mount your aichat config to /aichat, AND SET THAT LOCATION IN CHAZ'S CONFIG.YAML
      - /opt/synapse/chaz/aichat-state:/root/.config/aichat
      - /opt/synapse/chaz/aichat.yaml:/root/.config/aichat/config.yaml
      # Mount the volume into the same location specified in config.yaml
      - /opt/synapse/chaz/state:/state

config.yaml:

homeserver_url: https://matrix.example.something
username: "chaz"
password: "password"
state_dir: "/state"
allow_list: "@.*:.example.something"

arcuru avatar Nov 06 '24 00:11 arcuru

Thanks solved it!

phdelodder avatar Nov 06 '24 13:11 phdelodder