controller.log file Permission Denied while running docker container for llava controller #749
Unanswered
omkargadute
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am getting the following error while running the llava controller using the command "CMD ["python3","-m","llava.serve.controller","--host","0.0.0.0","--port","10000"]"
There was a problem when trying to write in your cache folder (/.cache/huggingface/hub). You should set the environment variable TRANSFORMERS_CACHE to a writable directory.
/usr/local/lib/python3.10/site-packages/bitsandbytes/cextension.py:34: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
warn("The installed version of bitsandbytes was compiled without GPU support. "
/usr/local/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so: undefined symbol: cadam32bit_grad_fp32
[2023-11-03 10:45:56,397] [INFO] [real_accelerator.py:110:get_accelerator] Setting ds_accelerator to cuda (auto detect)
2023-11-03 10:45:58 | ERROR | stderr | Traceback (most recent call last):
2023-11-03 10:45:58 | ERROR | stderr | File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
2023-11-03 10:45:58 | ERROR | stderr | return _run_code(code, main_globals, None,
2023-11-03 10:45:58 | ERROR | stderr | File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
2023-11-03 10:45:58 | ERROR | stderr | exec(code, run_globals)
2023-11-03 10:45:58 | ERROR | stderr | File "/app/llava/serve/controller.py", line 25, in
2023-11-03 10:45:58 | ERROR | stderr | logger = build_logger("controller", "controller.log")
2023-11-03 10:45:58 | ERROR | stderr | File "/app/llava/utils.py", line 49, in build_logger
2023-11-03 10:45:58 | ERROR | stderr | handler = logging.handlers.TimedRotatingFileHandler(
2023-11-03 10:45:58 | ERROR | stderr | File "/usr/local/lib/python3.10/logging/handlers.py", line 214, in init
2023-11-03 10:45:58 | ERROR | stderr | BaseRotatingHandler.init(self, filename, 'a', encoding=encoding,
2023-11-03 10:45:58 | ERROR | stderr | File "/usr/local/lib/python3.10/logging/handlers.py", line 58, in init
2023-11-03 10:45:58 | ERROR | stderr | logging.FileHandler.init(self, filename, mode=mode,
2023-11-03 10:45:58 | ERROR | stderr | File "/usr/local/lib/python3.10/logging/init.py", line 1169, in init
2023-11-03 10:45:58 | ERROR | stderr | StreamHandler.init(self, self._open())
2023-11-03 10:45:58 | ERROR | stderr | File "/usr/local/lib/python3.10/logging/init.py", line 1201, in _open
2023-11-03 10:45:58 | ERROR | stderr | return open_func(self.baseFilename, self.mode,
2023-11-03 10:45:58 | ERROR | stderr | PermissionError: [Errno 13] Permission denied: '/app/controller.log'
its not able to access the controller file, can anybody help me with this, below is my docker file for reference:
FROM python:3.10-slim
USER root
WORKDIR /app
COPY . /app
RUN pip install --upgrade pip &&
pip install -e .
RUN mkdir /.cache && chmod 777 /.cache
ENV PORT 10000
EXPOSE ${PORT}
RUN chmod 777 /app
CMD ["python3","-m","llava.serve.controller","--host","0.0.0.0","--port","10000"]
Beta Was this translation helpful? Give feedback.
All reactions