Dear experts,
Hi, I came here after facing consistent error in
creating data_settings.yml template file.
I am using a Big sur MacOS, already installed cpac & docker.
I tried the first command in the picture below to create data_settings file so that I can generate configuration file.
However, I constantly get 'Read-only file system: ‘/logs’ error whenever I write this command in the terminal.
This is the code that I wrote.
hal@HALui-MacPro python3.10 % cpac pull
Loading 🐳 Docker
Pulling from fcpindi/c-pac
latest
Digest: sha256:af7c4923989a9d042d24b293280db8079545ebde10fd91da6cca459a64160b0c
Status: Image is up to date for fcpindi/c-pac:latest
hal@HALui-MacPro python3.10 % cpac utils data_config new_settings_template
Loading 🐳 Docker
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/bin/cpac", line 8, in <module>
sys.exit(run())
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cpac/__main__.py", line 446, in run
main(parsed)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cpac/__main__.py", line 365, in main
Backends(**arg_vars).clarg(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cpac/backends/__init__.py", line 24, in Backends
{
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cpac/backends/docker.py", line 35, in __init__
self._collect_config(**kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cpac/backends/docker.py", line 78, in _collect_config
kwargs = self.collect_config_bindings(self.config, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cpac/backends/platform.py", line 242, in collect_config_bindings
os.makedirs(inner_binding, exist_ok=True)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/os.py", line 225, in makedirs
mkdir(name, mode)
OSError: [Errno 30] Read-only file system: '/logs'
I simply pulled to initiate cpac and tried to create data settings file.
I thought of several reasons for this
-
need to change permission of ‘/logs’ file ?: After this error showed up, I tried to change mode into read-and-write of the /logs file, but failed because I couldn’t find the path and the directory to ‘/logs/’.
-
perhaps pwd of the command was wrong?: Should I write the command in a different path? I tried this in a variety of directories where my data is, but failed.
I tried to do the docker version of creating data settings file (shown in the third command in the picture), but guess I misunderstood the ‘/path/to/data_config’ part. But after trying the docker command, I want to run a simpler first command if possible.
Does anyone have any idea on this problem?
I am a total novice in this field and any help would be so helpful!
Thanks a lot and have a nice day!
Park.