shbone commented on issue #291: URL: https://github.com/apache/incubator-hugegraph-ai/issues/291#issuecomment-3118037891
> Hello [@shbone](https://github.com/shbone) . Can you show me your .env file under docker directory & your project directory? btw, maybe you can tell me you failed at which step (show me the command)? <img width="304" height="543" alt="Image" src="https://github.com/user-attachments/assets/5a586d68-6d3b-47a3-be0e-7aa7c36fcb50" /> after execute `docker-compose -f docker-compose-network.yml up -d` <img width="289" height="555" alt="Image" src="https://github.com/user-attachments/assets/dbc99e58-e1e0-4775-a817-975075d332ce" /> and after execute `docker-compose -f docker-compose-network.yml ps` <img width="1766" height="150" alt="Image" src="https://github.com/user-attachments/assets/3e0453de-f582-4054-af93-7a9eb8ebc14f" /> hugegraph-rag container log show ``` bash fd = os.open(path, flags, mode) IsADirectoryError: [Errno 21] Is a directory: '/home/work/hugegraph-llm/.env' [07/25/25 14:21:01] INFO llm: Current working base_prompt_config.py:48 directory is the project root, proceeding to run the app. INFO llm: Loading prompt file base_prompt_config.py:58 'config_prompt.yaml' successfully. INFO llm: Add configuration items to base_config.py:109 the environment variable file: GRAPH_URL=127.0.0.1:8080 ERROR llm: An error occurred when base_config.py:88 checking the .env variable file: [Errno 21] Is a directory: '/home/work/hugegraph-llm/.env' ERROR llm: An error occurred when base_config.py:134 initializing the configuration object: [Errno 21] Is a directory: '/home/work/hugegraph-llm/.env' Traceback (most recent call last): File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/work/hugegraph-llm/src/hugegraph_llm/demo/rag_demo/app.py", line 24, in <module> from hugegraph_llm.api.admin_api import admin_http_api File "/home/work/hugegraph-llm/src/hugegraph_llm/api/admin_api.py", line 24, in <module> from hugegraph_llm.api.models.rag_requests import LogStreamRequest File "/home/work/hugegraph-llm/src/hugegraph_llm/api/models/rag_requests.py", line 23, in <module> from hugegraph_llm.config import prompt File "/home/work/hugegraph-llm/src/hugegraph_llm/config/__init__.py", line 31, in <module> huge_settings = HugeGraphConfig() File "/home/work/hugegraph-llm/src/hugegraph_llm/config/models/base_config.py", line 130, in __init__ self.check_env() File "/home/work/hugegraph-llm/src/hugegraph_llm/config/models/base_config.py", line 86, in check_env self._sync_object_to_env(env_config, config_dict) File "/home/work/hugegraph-llm/src/hugegraph_llm/config/models/base_config.py", line 112, in _sync_object_to_env set_key(env_path, obj_key, obj_value_str, quote_mode="never") File "/home/work/.venv/lib/python3.10/site-packages/dotenv/main.py", line 183, in set_key with rewrite(dotenv_path, encoding=encoding) as (source, dest): File "/usr/local/lib/python3.10/contextlib.py", line 135, in __enter__ return next(self.gen) File "/home/work/.venv/lib/python3.10/site-packages/dotenv/main.py", line 135, in rewrite pathlib.Path(path).touch() File "/usr/local/lib/python3.10/pathlib.py", line 1168, in touch self._accessor.touch(self, mode, exist_ok) File "/usr/local/lib/python3.10/pathlib.py", line 331, in touch fd = os.open(path, flags, mode) IsADirectoryError: [Errno 21] Is a directory: '/home/work/hugegraph-llm/.env' [07/25/25 14:21:56] INFO llm: Current working base_prompt_config.py:48 directory is the project root, proceeding to run the app. INFO llm: Loading prompt file base_prompt_config.py:58 'config_prompt.yaml' successfully. INFO llm: Add configuration items to base_config.py:109 the environment variable file: GRAPH_URL=127.0.0.1:8080 ERROR llm: An error occurred when base_config.py:88 checking the .env variable file: [Errno 21] Is a directory: '/home/work/hugegraph-llm/.env' ERROR llm: An error occurred when base_config.py:134 initializing the configuration object: [Errno 21] Is a directory: '/home/work/hugegraph-llm/.env' Traceback (most recent call last): File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/work/hugegraph-llm/src/hugegraph_llm/demo/rag_demo/app.py", line 24, in <module> from hugegraph_llm.api.admin_api import admin_http_api File "/home/work/hugegraph-llm/src/hugegraph_llm/api/admin_api.py", line 24, in <module> from hugegraph_llm.api.models.rag_requests import LogStreamRequest File "/home/work/hugegraph-llm/src/hugegraph_llm/api/models/rag_requests.py", line 23, in <module> from hugegraph_llm.config import prompt File "/home/work/hugegraph-llm/src/hugegraph_llm/config/__init__.py", line 31, in <module> huge_settings = HugeGraphConfig() File "/home/work/hugegraph-llm/src/hugegraph_llm/config/models/base_config.py", line 130, in __init__ self.check_env() File "/home/work/hugegraph-llm/src/hugegraph_llm/config/models/base_config.py", line 86, in check_env self._sync_object_to_env(env_config, config_dict) File "/home/work/hugegraph-llm/src/hugegraph_llm/config/models/base_config.py", line 112, in _sync_object_to_env set_key(env_path, obj_key, obj_value_str, quote_mode="never") File "/home/work/.venv/lib/python3.10/site-packages/dotenv/main.py", line 183, in set_key with rewrite(dotenv_path, encoding=encoding) as (source, dest): File "/usr/local/lib/python3.10/contextlib.py", line 135, in __enter__ return next(self.gen) File "/home/work/.venv/lib/python3.10/site-packages/dotenv/main.py", line 135, in rewrite pathlib.Path(path).touch() File "/usr/local/lib/python3.10/pathlib.py", line 1168, in touch self._accessor.touch(self, mode, exist_ok) File "/usr/local/lib/python3.10/pathlib.py", line 331, in touch fd = os.open(path, flags, mode) IsADirectoryError: [Errno 21] Is a directory: '/home/work/hugegraph-llm/.env' ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
