Page MenuHomePhabricator

Wikipedia.py logs to the same file when multiple instances run
Closed, DuplicatePublic

Description

I use replace.py to collect candidates for working without interacting Wikipedia (with -xml -save); this saves titles for later investigation.
Sometimes this task is done in two or more separate Windows command windows to save time. 2 years ago I could do this with no problem.

Now the second task floods my screen with such messages:
`Traceback (most recent call last):

File "C:\Python27\lib\logging\handlers.py", line 77, in emit
  self.doRollover()
File "C:\Python27\lib\logging\handlers.py", line 350, in doRollover
  os.rename(self.baseFilename, dfn)

`WindowsError: [Error 32] A folyamat nem fÚr hozzß a fßjlhoz, mert azt egy mßsik folyamat hasznßlja
Logged from file wikipedia.py, line 10134``
The Hungarian message means "the process cannot use the file because it is used by another process".
Wikipedia.py, line 10134 is: log.log(_level, text, extra=context, **kwargs) from def logoutput.

Event Timeline

binbot raised the priority of this task from to Needs Triage.
binbot updated the task description. (Show Details)
binbot added a project: Pywikibot-compat.
binbot subscribed.
binbot triaged this task as High priority.Aug 4 2015, 7:27 AM
binbot updated the task description. (Show Details)
binbot set Security to None.
Ladsgroup lowered the priority of this task from High to Low.
Ladsgroup subscribed.

compat bugs should not have normal or more than normal priority as it's deprecated.