IO 오류가 발생했을 때 urllib.urlretrieve를 사용하여 디스크로 파일을 다운로드하고있었습니다.
Traceback (most recent call last):
File "utils.py", line 21, in ?
urllib.urlretrieve(file[1], GetLogFile(int(file[0][0:4]),int(file[0][5:7]),int(file[0][8:10]),int(file[0][11:13])))
File "/usr/lib64/python2.4/urllib.py", line 89, in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
File "/usr/lib64/python2.4/urllib.py", line 225, in retrieve
tfp = open(filename, 'wb')
IOError: [Errno 5] Input/output error: 'disk1/logdumps/2008-01/2008-01-05-05.gz'
기괴하게도 2008-01-05-05.gz 파일을 만들지 않고 파일 이름을 예약 한 것 같습니다. 지금이 파일을 만들 수 없습니다. WinSCP에서 생성하려고하면이 오류가 발생합니다.
General failure (server should provide error description).
Error code: 4
Error message from server: Failure
Request code: 3
그러나 다른 이름으로 파일을 만들 수 있습니다.
Linux (CentOS)를 사용하고 있는데 disk1은 3TB ext2 시스템의 마운트 지점입니다.
어떻게 된 거예요?