TaskWeaver icon indicating copy to clipboard operation
TaskWeaver copied to clipboard

Permissions assignment failed for secure file: Got '0o677' instead of '0o0600'.

Open georgehu0815 opened this issue 1 year ago • 2 comments
trafficstars

Describe the bug When run in execution_service in local model, it reached the issue.

{ "llm.api_base": "https://.openai.azure.com/", "llm.api_key": "", "llm.api_type":"azure", "llm.api_version":"2024-02-15-preview", "llm.model": "gpt-4", "llm.response_format":null, "execution_service.kernel_mode":"local" }

A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Start the service and go to UI
  2. Type the user query "genarate 100 random numbers"
  3. Wait for the response
  4. Type the user query "yyy"
  5. See error
  6. kw = await self.provisioner.pre_launch(**kw)
    

File "/home/bochuxt/.local/lib/python3.10/site-packages/jupyter_client/provisioning/local_provisioner.py", line 190, in pre_launch km.write_connection_file() File "/home/bochuxt/.local/lib/python3.10/site-packages/jupyter_client/connect.py", line 503, in write_connection_file self.connection_file, cfg = write_connection_file( File "/home/bochuxt/.local/lib/python3.10/site-packages/jupyter_client/connect.py", line 164, in write_connection_file with secure_write(fname) as f: File "/usr/lib/python3.10/contextlib.py", line 135, in enter return next(self.gen) File "/home/bochuxt/.local/lib/python3.10/site-packages/jupyter_core/paths.py", line 999, in secure_write raise RuntimeError(msg) RuntimeError: Permissions assignment failed for secure file: '/mnt/a/TaskWeaver2/project/workspace/sessions/20240407-163322-113f9167/ces/conn-20240407-163322-113f9167-knl-61c09b99b25f.json'. Got '0o677' instead of '0o0600'. image

Expected behavior

A clear and concise description of what you expected to happen. NA if feel not applicable.

Screenshots If applicable, add screenshots to help explain your problem.

Environment Information (please complete the following information):

  • OS: [ WSL]
  • Python Version [e.g. 3.10, 3.11]
  • LLM that you're using: [GPT-4]
  • Other Configurations except the LLM api/key related: [e.g., code_verification: true]

Additional context Add any other context about the problem here.

georgehu0815 avatar Apr 07 '24 16:04 georgehu0815

Thanks for reporting this issue. I found an issue here saying this is caused by the WSL file system permission. A workaround would be setting the environment variable JUPYTER_ALLOW_INSECURE_WRITES=true as described there.

liqul avatar Apr 08 '24 02:04 liqul

works now, thanks for your help. you can close this ticket.

georgehu0815 avatar Apr 09 '24 18:04 georgehu0815