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

OSError: [Errno 17] File exists

xyli@geo_uio_no

New Member
Dear all,

When I tried to build a case with compset BW1850 with version CESM2.1.1,
I got the following error.
Any idea about this?

./create_newcase --case /cluster/home/xiangyuli/cases/BW0624-SO2 --compset BW1850 --res f09_g17 --machine fram
./case.setup
./case.build

Trying to download file: 'cesm2_init/b.e20.B1850.f09_g17.pi_control.all.299_merge_v3waccm/0134-01-01' to path '/cluster/work/users/xiangyuli/inputdata/cesm2_init/b.e20.B1850.f09_g17.pi_control.all.299_merge_v3waccm/0134-01-01' using WGET protocol.
Creating directory /cluster/work/users/xiangyuli/inputdata/cesm2_init/b.e20.B1850.f09_g17.pi_control.all.299_merge_v3waccm/0134-01-01
Traceback (most recent call last):
File "./case.build", line 147, in
_main_func(__doc__)
File "./case.build", line 142, in _main_func
save_build_provenance=save_build_provenance)
File "/cluster/home/xiangyuli/cesm/cime/scripts/Tools/../../scripts/lib/CIME/build.py", line 570, in case_build
return run_and_log_case_status(functor, "case.build", caseroot=caseroot)
File "/cluster/home/xiangyuli/cesm/cime/scripts/Tools/../../scripts/lib/CIME/utils.py", line 1667, in run_and_log_case_status
rv = func()
File "/cluster/home/xiangyuli/cesm/cime/scripts/Tools/../../scripts/lib/CIME/build.py", line 569, in
save_build_provenance)
File "/cluster/home/xiangyuli/cesm/cime/scripts/Tools/../../scripts/lib/CIME/build.py", line 513, in _case_build_impl
complist, ninst_build, smp_value, model_only, buildlist)
File "/cluster/home/xiangyuli/cesm/cime/scripts/Tools/../../scripts/lib/CIME/build.py", line 204, in _build_checks
case.create_namelists()
File "/cluster/home/xiangyuli/cesm/cime/scripts/Tools/../../scripts/lib/CIME/case/preview_namelists.py", line 61, in create_namelists
self.stage_refcase()
File "/cluster/home/xiangyuli/cesm/cime/scripts/Tools/../../scripts/lib/CIME/case/check_input_data.py", line 223, in stage_refcase
success = _downloadfromserver(self, input_data_root=input_data_root, data_list_dir=data_list_dir)
File "/cluster/home/xiangyuli/cesm/cime/scripts/Tools/../../scripts/lib/CIME/case/check_input_data.py", line 183, in _downloadfromserver
user=user, passwd=passwd)
File "/cluster/home/xiangyuli/cesm/cime/scripts/Tools/../../scripts/lib/CIME/case/check_input_data.py", line 338, in check_input_data
isdirectory=isdirectory)
File "/cluster/home/xiangyuli/cesm/cime/scripts/Tools/../../scripts/lib/CIME/case/check_input_data.py", line 122, in _download_if_in_repo
os.makedirs(full_path+".tmp")
File "/cluster/software/Python/2.7.15-intel-2018b/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 17] File exists: '/cluster/work/users/xiangyuli/inputdata/cesm2_init/b.e20.B1850.f09_g17.pi_control.all.299_merge_v3waccm/0134-01-01.tmp'

Best regards,

Xiang-Yu
 

jedwards

CSEG and Liaisons
Staff member
It wants to create file /cluster/work/users/xiangyuli/inputdata/cesm2_init/b.e20.B1850.f09_g17.pi_control.all.299_merge_v3waccm/0134-01-01.tmpbut it already exists.  Try again after removing it.  You can get input data with ./check_input_data --downlaod 
 

acgvar

Alvin C.G. Varquez
Member
I erased the
/scratch/b.day1.0/run/b40.1850.track1.2deg.003.cam.h0.PSL.000101-100012.nc
multiple times but it kept on showing:
os.symlink(cam2file, camfile)
OSError: [Errno 17] File exists

Is this a bug in the 'case.build' or in the python os module?
 
Top