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

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

Open
georgehu0815 opened this issue Apr 7, 2024 · 2 comments

Comments

@georgehu0815
Copy link

georgehu0815 commented Apr 7, 2024

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 georgehu0815 changed the title Permissions assignment failed for secure file Permissions assignment failed for secure file: Got '0o677' instead of '0o0600'. Apr 7, 2024
@liqul
Copy link
Contributor

liqul commented Apr 8, 2024

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.

@georgehu0815
Copy link
Author

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

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