Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Unable to clone a case that I do not have write permissions for

bmartinez

Ben Martinez
New Member
What version of the code are you using?

I am using cime5.6.49


Have you made any changes to files in the source tree?

No changes.


Describe every step you took leading up to the problem:

I am attempting to clone a case that I do not have write permissions for. The case I am attempting to clone is /glade/work/sglanvil/cases/b.e21.BWHIST.SD.f09_g17.002, and I am attempting to clone it to the new case /glade/u/home/bmartinez/b.e21.BWHIST.SD.f09_g17.002_NEWX. I tried setting the --cime-output-root flag to a directory that I did have write access to (for example, the same directory as the new case I am creating), but it still fails with the following error:

ERROR: Command: '/usr/bin/xmllint --format --output /glade/work/sglanvil/cases/b.e21.BWHIST.SD.f09_g17.002/env_workflow.xml -' failed with error 'b'I/O error : Permission denied\nI/O error : Permission denied'' from dir '/glade/work/bmartinez/code/cesm3/cime/scripts'

The command I tried to use to make the clone is:

./create_clone --case /glade/u/home/bmartinez/b.e21.BWHIST.SD.f09_g17.002_NEWX --clone /glade/work/sglanvil/cases/b.e21.BWHIST.SD.f09_g17.002 --cime-output-root /glade/u/home/bmartinez/b.e21.BWHIST.SD.f09_g17.002_NEWX

If this is a port to a new machine: Please attach any files you added or changed for the machine port (e.g., config_compilers.xml, config_machines.xml, and config_batch.xml) and tell us the compiler version you are using on this machine.
Please attach any log files showing error messages or other useful information.


Describe your problem or question:


I think that, at some point during the cloning process, it wants to edit the env_workflow.xml file in the original case, but, since I don't have write access, it causes the clone to fail. Is it possible to clone without modifying that xml file?
 

slevis

Moderator
I came across this unanswered post. Did you solve it? If so and you get a chance, please share so as to help others who may encounter the same problem.
 

bmartinez

Ben Martinez
New Member
I did not solve it. Instead, I used the information in the case’s README.case and CaseStatus files to create a new case and duplicated the relevant xmlchange commands from the original case (as suggested here: 6. Cloning a Case — CIME master documentation). However, I would still like to be able to use the ./create_clone command directly, so I hope this question might be answered eventually.
 
Top