Hi All,
I’m encountering an issue while attempting to create a new project directory in CryoSPARC v3. An error message states that the project directory is not writable, even though I’ve verified that the permissions for each directory in the path allow both read and write access. I don’t know why this error is occurring. My CryoSPARC installed on a server accessible via SSH.
I would greatly appreciate your assistance in resolving this problem.
Full error message:
ServerError: Traceback (most recent call last): File “/data1/cryosparc_user/cryosparc_excelsior/v3/cryosparc_master/cryosparc_command/command_core/init.py”, line 150, in wrapper res = func(*args, **kwargs) File “/data1/cryosparc_user/cryosparc_excelsior/v3/cryosparc_master/cryosparc_command/command_core/init.py”, line 3012, in create_empty_project project_dir = create_and_return_new_project_dir(project_container_dir, new_uid) File “/data1/cryosparc_user/cryosparc_excelsior/v3/cryosparc_master/cryosparc_command/command_core/init.py”, line 2954, in create_and_return_new_project_dir new_project_dir = os.path.join(check_project_dir(project_container_dir), str(project_uid)) File “/data1/cryosparc_user/cryosparc_excelsior/v3/cryosparc_master/cryosparc_command/command_core/init.py”, line 2987, in check_project_dir assert os.access(full_project_dir, os.W_OK), “Project directory is not writable.” AssertionError: Project directory is not writable.
In which log did you observe the error, during which activity did you observe the error?
If the error occurred while trying to create a new project, what is the output of these commands
stat -f /path/where/you/create/new/project
ls -ld /path/where/you/create/new/project
ls -l /data1/cryosparc_user/cryosparc_excelsior/v3/cryosparc_master/bin/cryosparcm
ls -l /tmp/*sock
Maybe you also need all the directories in the path to have execute permission for the cryosparcuser? For directories, execute permission means permission to list the contents (which cryosparc probably needs).
[skumar@node002 skumar]$ ls -l /data1/cryosparc_user/cryosparc_excelsior/v3/cryosparc_master/bin/cryosparc_master
ls: cannot access ‘/data1/cryosparc_user/cryosparc_excelsior/v3/cryosparc_master/bin/cryosparc_master’: No such file or directory
[skumar@node002 skumar]$ ls -l /tmp/*sock
ls: cannot access ‘/tmp/*sock’: No such file or directory
Ooops. I mistyped the path. Please can you instead run:
ls -l /data1/cryosparc_user/cryosparc_excelsior/v3/cryosparc_master/bin/cryosparcm
Please provide more details on how your CryoSPARC instance is configured and how you access CryoSPARC:
The URL you type in your web browser to access the CryoSPARC user interface
The name and user id of Linux account that runs cryosparc_master processes. That Linux account must have write access to the directory where you wish to create CryoSPARC projects and will own CryoSPARC project directories.
The output of the command
/data1/cryosparc_user/cryosparc_excelsior/v3/cryosparc_master/bin/cryosparcm status | grep -v LICENSE
on the computer that runs cryosparc_master processes (if you have permission to run that command)
Admin created user account for me and given me username and password.
i have to just given this command on terminal and it open cryosparc on mozilla browser.
ssh -N -f -L localhost:40000:localhost:40000 skumar@xxx.xx.xx.xx
URL: http://localhost:40000
I’m not a superuser of the server, so i can’t access this directory: ```
/data1/cryosparc_user/cryosparc_excelsior/v3/cryosparc_master/bin/cryosparcm status | grep -v LICENSE
This presumably means that the cryosparc_user account would need permission to create the project directory (and later write processing output to the project directory) in the “container” directory that you specify during project creation. Together with the admin, you may want to carefully decide on the path, ownership and permissions of the container directory. PleasesSee the guide for a discussion.