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

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

Open
phdelodder opened this issue Nov 5, 2024 · 2 comments
Open

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

phdelodder opened this issue Nov 5, 2024 · 2 comments

Comments

@phdelodder
Copy link

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"
@arcuru
Copy link
Owner

arcuru commented Nov 6, 2024

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"

@phdelodder
Copy link
Author

Thanks solved it!

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