Skip to content

IO errors

FileExistsError: [WinError 183] Cannot create a file when that file already exists:

You may get the above error:

[2021-10-19 14:49:57 Task.py:70 - __init__() ] 1634676084 newfilename is IMG_0385.pdf
Traceback (most recent call last):
  File "converter_daemon.py", line 159, in <module>
    job = ConverterManager(str(task), server, list_processes, q)
  File "c:\doconverter\doconverter\doconverter\engines\ConverterManager.py", line 36, in __init__
    self.task = Task.getaskbyid(taskid=taskid, queue=queue, dir=APPCONFIG[self.server]['tasks'])
  File "c:\doconverter\doconverter\doconverter\tools\Task.py", line 136, in getaskbyid
    remotehost=data['remotehost'], options=data['options'], taskid=taskid, queue=queue)
  File "c:\doconverter\doconverter\doconverter\tools\Task.py", line 71, in __init__
    self.__createTask()
  File "c:\doconverter\doconverter\doconverter\tools\Task.py", line 76, in __createTask
    os.makedirs(os.path.join(APPCONFIG[self.server]['uploadsresults'], str(self.taskid)))
  File "C:\Python\venv\doconverter\lib\os.py", line 220, in makedirs
    mkdir(name, mode)
FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'Y:\\project\\d\\doconverter\\doconv
erter01\\var\\uploadsresults\\1634676084'
Exception in thread Thread-1:
Traceback (most recent call last):
  File "c:\Python36\Lib\multiprocessing\connection.py", line 312, in _recv_bytes
    nread, err = ov.GetOverlappedResult(True)
BrokenPipeError: [WinError 109] The pipe has been ended

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\Python36\Lib\threading.py", line 916, in _bootstrap_inner
    self.run()
  File "c:\Python36\Lib\threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "c:\Python36\Lib\logging\handlers.py", line 1476, in _monitor
    record = self.dequeue(True)
  File "c:\Python36\Lib\logging\handlers.py", line 1425, in dequeue
    return self.queue.get(block)
  File "c:\Python36\Lib\multiprocessing\queues.py", line 94, in get
    res = self._recv_bytes()
  File "c:\Python36\Lib\multiprocessing\connection.py", line 216, in recv_bytes
    buf = self._recv_bytes(maxlength)
  File "c:\Python36\Lib\multiprocessing\connection.py", line 321, in _recv_bytes
    raise EOFError
EOFError

The solution would be to unmount/mount the Y: drive at the shell where you are running the command: e.g.

net use Y: /delete
net use Y: \\cernbox-sbm.cern.ch\eos
Try to run also the shell: cmd.exe with admin rights.

Tasks with 0 KB

If you get tasks with 0 KB this means there was an issue while writing to EOS. Just delete it.


Last update: October 19, 2021