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

[AI-Server] MODULES_PATH has the wrong value #19

Open
lalexdotcom opened this issue Dec 6, 2023 · 1 comment
Open

[AI-Server] MODULES_PATH has the wrong value #19

lalexdotcom opened this issue Dec 6, 2023 · 1 comment

Comments

@lalexdotcom
Copy link

Hey there, thanks for your great project

I noticed that when I install a module, I don't find it anymore when I restart the addon...
It seem like the MODULES_PATH parameter is not updated...

In the appsettings.json (I did use Portainer to check it), I see "ModulesPath": "/config/ai-server/modules" which seem right
But in the addon logs, I see Infor MODULES_PATH = /app/modules

The DATA_DIR is OK, but passed as a CLI option it seem, I think that's why it works....

Maybe the wrong file is used (I saw appsettings.linux.json and maby other one), or maybe the file is loaded before it's updated by run.sh?
I'm using the addon on HassOS on a amd64 platform...

This is where my skills are not enough... 😅

Any clue?

@lalexdotcom
Copy link
Author

By investigating a bit more, I found "ModulesDirPath": "%ROOT_PATH%/modules", in appsettings.json... it seems to fit, maybe this option too has to be set to the MODULES_PATH value too...

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

1 participant