Open pveierland opened 9 months ago
There's one theory in our mind. Is it possible for you to experiment our fix with your environment if I suggest it?
Sure! Depends a bit on the fix given the constraints of the setup, but I'll try.
so in codebase metrics_head.py
shutil.copytree(GRAFANA_CONFIG_INPUT_PATH, grafana_config_output_path)
you have this code. Can you change it to
shutil.copytree(GRAFANA_CONFIG_INPUT_PATH, grafana_config_output_path, copy_function=copy)
? (the default is copy2 which I believe requires more extensive permission).
What happened + What you expected to happen
When using the ray python package via Nix (using dream2nix), where the package is located on an immutable file system (
/nix/store
), the dashboard crashes during initialization when it attempts to create directories within a non-writable directory.This appears to happen because
shutil.copytree
is used to copyGRAFANA_CONFIG_INPUT_PATH
which is a non-writable directory to a new location, and thenos.makedirs
is called to create directories within this non-writable directory.Output from
session/logs/dashboard.err
:The expected behavior would be that permissions for copies made from the package source are explicitly set such that Ray is compatible with immutable package management systems.
Versions / Dependencies
Reproduction script
ray start --head --include-dashboard=true
Issue Severity
Medium: It is a significant difficulty but I can work around it.