Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many logging errors #2395

Open
mesmith75 opened this issue Feb 18, 2025 · 3 comments
Open

Many logging errors #2395

mesmith75 opened this issue Feb 18, 2025 · 3 comments

Comments

@mesmith75
Copy link
Contributor

I am suffering from many of these:

  File "/cvmfs/ganga.cern.ch/Ganga/install/dirac_test/lib/python3.11/site-packages/ganga/GangaCore/Utility/logging/__init__.py", line 152, in handleError
    private_logger.error('Error writing to the log file.')
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/__init__.py", line 1518, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/__init__.py", line 1634, in _log
    self.handle(record)
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/__init__.py", line 1644, in handle
    self.callHandlers(record)
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/__init__.py", line 1706, in callHandlers
    hdlr.handle(record)
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/__init__.py", line 978, in handle
    self.emit(record)
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/handlers.py", line 77, in emit
    self.handleError(record)
  File "/cvmfs/ganga.cern.ch/Ganga/install/dirac_test/lib/python3.11/site-packages/ganga/GangaCore/Utility/logging/__init__.py", line 152, in handleError
    private_logger.error('Error writing to the log file.')
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/__init__.py", line 1518, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/__init__.py", line 1634, in _log
    self.handle(record)
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/__init__.py", line 1644, in handle
    self.callHandlers(record)
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/__init__.py", line 1706, in callHandlers
    hdlr.handle(record)
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/__init__.py", line 978, in handle
    self.emit(record)
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/handlers.py", line 77, in emit
    self.handleError(record)
  File "/cvmfs/ganga.cern.ch/Ganga/install/dirac_test/lib/python3.11/site-packages/ganga/GangaCore/Utility/logging/__init__.py", line 152, in handleError
    private_logger.error('Error writing to the log file.')
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/__init__.py", line 1518, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/__init__.py", line 1634, in _log
    self.handle(record)
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/__init__.py", line 1644, in handle
    self.callHandlers(record)
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/__init__.py", line 1706, in callHandlers
    hdlr.handle(record)
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/__init__.py", line 978, in handle
    self.emit(record)
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/handlers.py", line 77, in emit
    self.handleError(record)
  File "/cvmfs/ganga.cern.ch/Ganga/install/dirac_test/lib/python3.11/site-packages/ganga/GangaCore/Utility/logging/__init__.py", line 152, in handleError
    private_logger.error('Error writing to the log file.')
  File "/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/envs/diracenv/lib/python3.11/logging/__init__.py", line 1517, in error
    if self.isEnabledFor(ERROR):
       ^^^^^^^^^^^^^^^^^^^^^^^^
RecursionError: maximum recursion depth exceeded
@Rakesh-46-VR
Copy link

Can you explain the problem in detail ?

@egede
Copy link
Member

egede commented Mar 17, 2025

@mesmith75 Do you have any way of reproducing this problem?

@mesmith75
Copy link
Contributor Author

Not reliably. It occurs when I am monitoring a large number of jobs on the mass storage file system. I think it gets triggered by a stale file handle initially and then the logging ends up in a recursive loop.

My guess is it is a bit a problem of the file system being slow, the asyncio trying to do too much at one time and a genuine bug in how errors are raised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants